aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/disklabel.h
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2002-10-01 19:29:19 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2002-10-01 19:29:19 +0000
commitc111eed9346c0bd34470689d97aff91f7d8e63a3 (patch)
treeb5f58f6fae0cb455b7d7ab3ff2219d86f2a69615 /sys/sys/disklabel.h
parentaa98088877f8a96fbe7af29a5f1ce1b2f6148ace (diff)
downloadsrc-c111eed9346c0bd34470689d97aff91f7d8e63a3.tar.gz
src-c111eed9346c0bd34470689d97aff91f7d8e63a3.zip
Divorce bsd disklabels, IBM PC MBR's and whatever the things are
called on NEC PC98 machines. Sponsored by: DARPA & NAI Labs.
Notes
Notes: svn path=/head/; revision=104314
Diffstat (limited to 'sys/sys/disklabel.h')
-rw-r--r--sys/sys/disklabel.h57
1 files changed, 0 insertions, 57 deletions
diff --git a/sys/sys/disklabel.h b/sys/sys/disklabel.h
index c2e3b8f0cef5..e4769588b06e 100644
--- a/sys/sys/disklabel.h
+++ b/sys/sys/disklabel.h
@@ -289,63 +289,6 @@ static const char *fstypenames[] = {
#define D_RAMDISK 0x08 /* disk emulator */
#define D_CHAIN 0x10 /* can do back-back transfers */
-/* DOS partition table -- located in boot block */
-
-#if defined(PC98) && !defined(PC98_ATCOMPAT)
-#define DOSBBSECTOR 0 /* DOS boot block relative sector number */
-#define DOSPARTOFF 0
-#define NDOSPART 16
-#define DOSPTYP_386BSD 0x94 /* 386BSD partition type */
-
-struct dos_partition {
- unsigned char dp_mid;
-#define DOSMID_386BSD (0x14|0x80) /* 386bsd|bootable */
- unsigned char dp_sid;
-#define DOSSID_386BSD (0x44|0x80) /* 386bsd|active */
- unsigned char dp_dum1;
- unsigned char dp_dum2;
- unsigned char dp_ipl_sct;
- unsigned char dp_ipl_head;
- unsigned short dp_ipl_cyl;
- unsigned char dp_ssect; /* starting sector */
- unsigned char dp_shd; /* starting head */
- unsigned short dp_scyl; /* starting cylinder */
- unsigned char dp_esect; /* end sector */
- unsigned char dp_ehd; /* end head */
- unsigned short dp_ecyl; /* end cylinder */
- unsigned char dp_name[16];
-};
-
-#else /* IBMPC */
-#define DOSBBSECTOR 0 /* DOS boot block relative sector number */
-#define DOSPARTOFF 446
-#define NDOSPART 4
-#define DOSPTYP_386BSD 0xa5 /* 386BSD partition type */
-#define DOSPTYP_LINSWP 0x82 /* Linux swap partition */
-#define DOSPTYP_LINUX 0x83 /* Linux partition */
-#define DOSPTYP_EXT 5 /* DOS extended partition */
-#define DOSPTYP_EXTLBA 15 /* DOS extended partition */
-
-struct dos_partition {
- unsigned char dp_flag; /* bootstrap flags */
- unsigned char dp_shd; /* starting head */
- unsigned char dp_ssect; /* starting sector */
- unsigned char dp_scyl; /* starting cylinder */
- unsigned char dp_typ; /* partition type */
- unsigned char dp_ehd; /* end head */
- unsigned char dp_esect; /* end sector */
- unsigned char dp_ecyl; /* end cylinder */
- u_int32_t dp_start; /* absolute starting sector number */
- u_int32_t dp_size; /* partition size in sectors */
-};
-#ifdef CTASSERT
-CTASSERT(sizeof (struct dos_partition) == 16);
-#endif
-#endif
-
-#define DPSECT(s) ((s) & 0x3f) /* isolate relevant bits of sector */
-#define DPCYL(c, s) ((c) + (((s) & 0xc0)<<2)) /* and those that are cylinder */
-
/*
* Disklabel-specific ioctls.
*