diff options
author | paul <paul@FreeBSD.org> | 1994-10-15 14:34:49 +0000 |
---|---|---|
committer | paul <paul@FreeBSD.org> | 1994-10-15 14:34:49 +0000 |
commit | 581ec3e3923b0a00edf56165087c482ddb51309a (patch) | |
tree | 6655eb322004c9346bbb1f8525d82c23742f7fa3 /sbin/sysinstall/sysinstall.h | |
parent | 1a51ff14c389ff6d6741556ee876b2778be5bf7e (diff) | |
download | FreeBSD-src-581ec3e3923b0a00edf56165087c482ddb51309a.zip FreeBSD-src-581ec3e3923b0a00edf56165087c482ddb51309a.tar.gz |
Work in progress.
Diffstat (limited to 'sbin/sysinstall/sysinstall.h')
-rw-r--r-- | sbin/sysinstall/sysinstall.h | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/sbin/sysinstall/sysinstall.h b/sbin/sysinstall/sysinstall.h new file mode 100644 index 0000000..6fd37ab --- /dev/null +++ b/sbin/sysinstall/sysinstall.h @@ -0,0 +1,72 @@ +/* + * Copyright (c) 1994, Paul Richards. + * + * All rights reserved. + * + * This software may be used, modified, copied, distributed, and + * sold, in both source and binary form provided that the above + * copyright and these terms are retained, verbatim, as the first + * lines of this file. Under no circumstances is the author + * responsible for the proper functioning of this software, nor does + * the author assume any responsibility for damages incurred with + * its use. + */ + +#define MAX_NO_DISKS 10 +#define BOOT_MAGIC 0xAA55 +#define ACTIVE 0x80 + +struct mboot +{ + unsigned char padding[2]; /* force the longs to be long alligned */ + unsigned char bootinst[DOSPARTOFF]; + struct dos_partition parts[4]; + unsigned short int signature; +}; + +struct part_type +{ + unsigned char type; + char *name; +}part_types[] = +{ + {0x00, "unused"} + ,{0x01, "Primary DOS with 12 bit FAT"} + ,{0x02, "XENIX / filesystem"} + ,{0x03, "XENIX /usr filesystem"} + ,{0x04, "Primary DOS with 16 bit FAT"} + ,{0x05, "Extended DOS"} + ,{0x06, "Primary 'big' DOS (> 32MB)"} + ,{0x07, "OS/2 HPFS, QNX or Advanced UNIX"} + ,{0x08, "AIX filesystem"} + ,{0x09, "AIX boot partition or Coherent"} + ,{0x0A, "OS/2 Boot Manager or OPUS"} + ,{0x10, "OPUS"} + ,{0x40, "VENIX 286"} + ,{0x50, "DM"} + ,{0x51, "DM"} + ,{0x52, "CP/M or Microport SysV/AT"} + ,{0x56, "GB"} + ,{0x61, "Speed"} + ,{0x63, "ISC UNIX, other System V/386, GNU HURD or Mach"} + ,{0x64, "Novell Netware 2.xx"} + ,{0x65, "Novell Netware 3.xx"} + ,{0x75, "PCIX"} + ,{0x80, "Minix 1.1 ... 1.4a"} + ,{0x81, "Minix 1.4b ... 1.5.10"} + ,{0x82, "Linux"} + ,{0x93, "Amoeba filesystem"} + ,{0x94, "Amoeba bad block table"} + ,{0xA5, "386BSD"} + ,{0xB7, "BSDI BSD/386 filesystem"} + ,{0xB8, "BSDI BSD/386 swap"} + ,{0xDB, "Concurrent CPM or C.DOS or CTOS"} + ,{0xE1, "Speed"} + ,{0xE3, "Speed"} + ,{0xE4, "Speed"} + ,{0xF1, "Speed"} + ,{0xF2, "DOS 3.3+ Secondary"} + ,{0xF4, "Speed"} + ,{0xFF, "BBT (Bad Blocks Table)"} +}; + |