| #ifndef _LINUX_GENHD_H |
| #define _LINUX_GENHD_H |
| |
| /* |
| * genhd.h Copyright (C) 1992 Drew Eckhardt |
| * Generic hard disk header file by |
| * Drew Eckhardt |
| * |
| * <drew@colorado.edu> |
| * |
| * Stripped down for PA/Linux by Paul Bame <paul_bame@hp.com> |
| */ |
| |
| #define CONFIG_MSDOS_PARTITION 1 |
| |
| /* These three have identical behaviour; use the second one if DOS fdisk gets |
| confused about extended/logical partitions starting past cylinder 1023. */ |
| #define DOS_EXTENDED_PARTITION 5 |
| #define LINUX_EXTENDED_PARTITION 0x85 |
| #define WIN98_EXTENDED_PARTITION 0x0f |
| |
| #define LINUX_SWAP_PARTITION 0x82 |
| #define LINUX_RAID_PARTITION 0xfd /* autodetect RAID partition */ |
| #define LINUX_OLD_RAID_PARTITION 0x86 |
| |
| struct partition { |
| unsigned char boot_ind; /* 0x80 - active */ |
| unsigned char head; /* starting head */ |
| unsigned char sector; /* starting sector */ |
| unsigned char cyl; /* starting cylinder */ |
| unsigned char sys_ind; /* What partition type */ |
| unsigned char end_head; /* end head */ |
| unsigned char end_sector; /* end sector */ |
| unsigned char end_cyl; /* end cylinder */ |
| unsigned int start_sect; /* starting sector counting from 0 */ |
| unsigned int nr_sects; /* nr of sectors in partition */ |
| } __attribute__((packed)); |
| |
| #endif |