Home | History | Annotate | Download | only in linux
      1 /****************************************************************************
      2  ****************************************************************************
      3  ***
      4  ***   This header was automatically generated from a Linux kernel header
      5  ***   of the same name, to make information necessary for userspace to
      6  ***   call into the kernel available to libc.  It contains only constants,
      7  ***   structures, and macros generated from the original header, and thus,
      8  ***   contains no copyrightable information.
      9  ***
     10  ****************************************************************************
     11  ****************************************************************************/
     12 #ifndef _LINUX_GENHD_H
     13 #define _LINUX_GENHD_H
     14 
     15 #include <linux/types.h>
     16 
     17 enum {
     18 
     19  DOS_EXTENDED_PARTITION = 5,
     20  LINUX_EXTENDED_PARTITION = 0x85,
     21  WIN98_EXTENDED_PARTITION = 0x0f,
     22 
     23  LINUX_SWAP_PARTITION = 0x82,
     24  LINUX_RAID_PARTITION = 0xfd,
     25 
     26  SOLARIS_X86_PARTITION = LINUX_SWAP_PARTITION,
     27  NEW_SOLARIS_X86_PARTITION = 0xbf,
     28 
     29  DM6_AUX1PARTITION = 0x51,
     30  DM6_AUX3PARTITION = 0x53,
     31  DM6_PARTITION = 0x54,
     32  EZD_PARTITION = 0x55,
     33 
     34  FREEBSD_PARTITION = 0xa5,
     35  OPENBSD_PARTITION = 0xa6,
     36  NETBSD_PARTITION = 0xa9,
     37  BSDI_PARTITION = 0xb7,
     38  MINIX_PARTITION = 0x81,
     39  UNIXWARE_PARTITION = 0x63,
     40 };
     41 
     42 struct partition {
     43  unsigned char boot_ind;
     44  unsigned char head;
     45  unsigned char sector;
     46  unsigned char cyl;
     47  unsigned char sys_ind;
     48  unsigned char end_head;
     49  unsigned char end_sector;
     50  unsigned char end_cyl;
     51  unsigned int start_sect;
     52  unsigned int nr_sects;
     53 } __attribute__((packed));
     54 
     55 #endif
     56