diff options
author | nyan <nyan@FreeBSD.org> | 2005-05-01 09:48:24 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2005-05-01 09:48:24 +0000 |
commit | f2f8efadaada780ad2534e7d6a70e22946223c7e (patch) | |
tree | cd411a2ca0af87bd893d11bca5f8904a30ff79bc /sys/sys/diskpc98.h | |
parent | 123c83cc66090aa52108735885d185f6864732df (diff) | |
download | FreeBSD-src-f2f8efadaada780ad2534e7d6a70e22946223c7e.zip FreeBSD-src-f2f8efadaada780ad2534e7d6a70e22946223c7e.tar.gz |
Add some convenience defines.
Diffstat (limited to 'sys/sys/diskpc98.h')
-rw-r--r-- | sys/sys/diskpc98.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/sys/diskpc98.h b/sys/sys/diskpc98.h index 93abc43..17a3e5d 100644 --- a/sys/sys/diskpc98.h +++ b/sys/sys/diskpc98.h @@ -37,7 +37,11 @@ #define DOSBBSECTOR 0 /* DOS boot block relative sector number */ #define DOSPARTOFF 0 +#define DOSPARTSIZE 32 #define NDOSPART 16 +#define DOSMAGICOFFSET 510 +#define DOSMAGIC 0xAA55 + #define DOSPTYP_386BSD 0x94 /* 386BSD partition type */ struct pc98_partition { @@ -59,7 +63,7 @@ struct pc98_partition { unsigned char dp_name[16]; }; #ifdef CTASSERT -CTASSERT(sizeof (struct pc98_partition) == 32); +CTASSERT(sizeof (struct pc98_partition) == DOSPARTSIZE); #endif void pc98_partition_dec(void const *pp, struct pc98_partition *d); |