aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/apm.h
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2008-06-12 04:37:37 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2008-06-12 04:37:37 +0000
commit26371d590ec639b1fd7c85896faee81716564d99 (patch)
treea2d8f19c2decc3e2f083e93b10f42b47b627fac8 /sys/sys/apm.h
parentbda386db88be4959cf16d056df25ca75bf02918f (diff)
downloadsrc-26371d590ec639b1fd7c85896faee81716564d99.tar.gz
src-26371d590ec639b1fd7c85896faee81716564d99.zip
Define APM_ENT_NAMELEN and APM_ENT_TYPELEN for general use.
Notes
Notes: svn path=/head/; revision=179747
Diffstat (limited to 'sys/sys/apm.h')
-rw-r--r--sys/sys/apm.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/sys/apm.h b/sys/sys/apm.h
index f93ed833ee9b..5fbfa65bbb04 100644
--- a/sys/sys/apm.h
+++ b/sys/sys/apm.h
@@ -37,6 +37,9 @@ struct apm_ddr {
uint32_t ddr_blkcount;
};
+#define APM_ENT_NAMELEN 32
+#define APM_ENT_TYPELEN 32
+
/* Partition Map Entry Record. */
struct apm_ent {
uint16_t ent_sig;
@@ -45,8 +48,8 @@ struct apm_ent {
uint32_t ent_pmblkcnt;
uint32_t ent_start;
uint32_t ent_size;
- char ent_name[32];
- char ent_type[32];
+ char ent_name[APM_ENT_NAMELEN];
+ char ent_type[APM_ENT_TYPELEN];
};
#define APM_ENT_TYPE_SELF "Apple_partition_map"