partition.h

Go to the documentation of this file.
00001 /* Description of entry in partition table.  */
00002 #ifndef _PARTITION_H
00003 #define _PARTITION_H
00004 
00005 struct part_entry {
00006   unsigned char bootind;        /* boot indicator 0/ACTIVE_FLAG  */
00007   unsigned char start_head;     /* head value for first sector   */
00008   unsigned char start_sec;      /* sector value + cyl bits for first sector */
00009   unsigned char start_cyl;      /* track value for first sector  */
00010   unsigned char sysind;         /* system indicator              */
00011   unsigned char last_head;      /* head value for last sector    */
00012   unsigned char last_sec;       /* sector value + cyl bits for last sector */
00013   unsigned char last_cyl;       /* track value for last sector   */
00014   unsigned long lowsec;         /* logical first sector          */
00015   unsigned long size;           /* size of partition in sectors  */
00016 };
00017 
00018 #define ACTIVE_FLAG     0x80    /* value for active in bootind field (hd0) */
00019 #define NR_PARTITIONS   4       /* number of entries in partition table */
00020 #define PART_TABLE_OFF  0x1BE   /* offset of partition table in boot sector */
00021 
00022 /* Partition types. */
00023 #define NO_PART         0x00    /* unused entry */
00024 #define MINIX_PART      0x81    /* Minix partition type */
00025 
00026 #endif /* _PARTITION_H */

Generated on Fri Apr 14 22:56:56 2006 for minix by  doxygen 1.4.6