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 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef _LINUX_GENHD_H 20 #define _LINUX_GENHD_H 21 #include <linux/types.h> 22 enum { 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 DOS_EXTENDED_PARTITION = 5, 25 LINUX_EXTENDED_PARTITION = 0x85, 26 WIN98_EXTENDED_PARTITION = 0x0f, 27 LINUX_SWAP_PARTITION = 0x82, 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 LINUX_RAID_PARTITION = 0xfd, 30 SOLARIS_X86_PARTITION = LINUX_SWAP_PARTITION, 31 NEW_SOLARIS_X86_PARTITION = 0xbf, 32 DM6_AUX1PARTITION = 0x51, 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 DM6_AUX3PARTITION = 0x53, 35 DM6_PARTITION = 0x54, 36 EZD_PARTITION = 0x55, 37 FREEBSD_PARTITION = 0xa5, 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 OPENBSD_PARTITION = 0xa6, 40 NETBSD_PARTITION = 0xa9, 41 BSDI_PARTITION = 0xb7, 42 MINIX_PARTITION = 0x81, 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 UNIXWARE_PARTITION = 0x63, 45 }; 46 struct partition { 47 unsigned char boot_ind; 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 unsigned char head; 50 unsigned char sector; 51 unsigned char cyl; 52 unsigned char sys_ind; 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 unsigned char end_head; 55 unsigned char end_sector; 56 unsigned char end_cyl; 57 unsigned int start_sect; 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 unsigned int nr_sects; 60 } __attribute__((packed)); 61 #endif 62