Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _LINUX_MSDOS_PARTITION_H
0003 #define _LINUX_MSDOS_PARTITION_H
0004 
0005 #define MSDOS_LABEL_MAGIC       0xAA55
0006 
0007 struct msdos_partition {
0008     u8 boot_ind;        /* 0x80 - active */
0009     u8 head;        /* starting head */
0010     u8 sector;      /* starting sector */
0011     u8 cyl;         /* starting cylinder */
0012     u8 sys_ind;     /* What partition type */
0013     u8 end_head;        /* end head */
0014     u8 end_sector;      /* end sector */
0015     u8 end_cyl;     /* end cylinder */
0016     __le32 start_sect;  /* starting sector counting from 0 */
0017     __le32 nr_sects;    /* nr of sectors in partition */
0018 } __packed;
0019 
0020 enum msdos_sys_ind {
0021     /*
0022      * These three have identical behaviour; use the second one if DOS FDISK
0023      * gets confused about extended/logical partitions starting past
0024      * cylinder 1023.
0025      */
0026     DOS_EXTENDED_PARTITION = 5,
0027     LINUX_EXTENDED_PARTITION = 0x85,
0028     WIN98_EXTENDED_PARTITION = 0x0f,
0029 
0030     LINUX_DATA_PARTITION = 0x83,
0031     LINUX_LVM_PARTITION = 0x8e,
0032     LINUX_RAID_PARTITION = 0xfd,    /* autodetect RAID partition */
0033 
0034     SOLARIS_X86_PARTITION = 0x82,   /* also Linux swap partitions */
0035     NEW_SOLARIS_X86_PARTITION = 0xbf,
0036 
0037     DM6_AUX1PARTITION = 0x51,   /* no DDO:  use xlated geom */
0038     DM6_AUX3PARTITION = 0x53,   /* no DDO:  use xlated geom */
0039     DM6_PARTITION = 0x54,       /* has DDO: use xlated geom & offset */
0040     EZD_PARTITION = 0x55,       /* EZ-DRIVE */
0041 
0042     FREEBSD_PARTITION = 0xa5,   /* FreeBSD Partition ID */
0043     OPENBSD_PARTITION = 0xa6,   /* OpenBSD Partition ID */
0044     NETBSD_PARTITION = 0xa9,    /* NetBSD Partition ID */
0045     BSDI_PARTITION = 0xb7,      /* BSDI Partition ID */
0046     MINIX_PARTITION = 0x81,     /* Minix Partition ID */
0047     UNIXWARE_PARTITION = 0x63,  /* Same as GNU_HURD and SCO Unix */
0048 };
0049 
0050 #endif /* LINUX_MSDOS_PARTITION_H */