1 /* ----------------------------------------------------------------------- * 2 * 3 * Copyright 2009 Pierre-Alexandre Meyer 4 * 5 * Some parts borrowed from chain.c32: 6 * 7 * Copyright 2003-2009 H. Peter Anvin - All Rights Reserved 8 * Copyright 2009 Intel Corporation; author: H. Peter Anvin 9 * 10 * This file is part of Syslinux, and is made available under 11 * the terms of the GNU General Public License version 2. 12 * 13 * ----------------------------------------------------------------------- */ 14 15 #ifndef _PARTITION_H_ 16 #define _PARTITION_H_ 17 18 #include <stdint.h> 19 20 #define PARTITION_TABLES_OFFSET 0x1be 21 22 /* A DOS partition table entry */ 23 struct part_entry { 24 uint8_t active_flag; /* 0x80 if "active" */ 25 uint8_t start_head; 26 uint8_t start_sect; 27 uint8_t start_cyl; 28 uint8_t ostype; 29 uint8_t end_head; 30 uint8_t end_sect; 31 uint8_t end_cyl; 32 uint32_t start_lba; 33 uint32_t length; 34 } __attribute__ ((packed)); 35 36 void get_label(int label, char **buffer_label); 37 #endif /* _PARTITION_H_ */ 38