Adding upstream version 6.02~pre8+dfsg.
[syslinux-debian/hramrach.git] / com32 / gplinclude / disk / partition.h
blob5edf8281fd9f036527b354a9d8cac67d6ba54daf
1 /* ----------------------------------------------------------------------- *
3 * Copyright 2009 Pierre-Alexandre Meyer
5 * Some parts borrowed from chain.c32:
7 * Copyright 2003-2009 H. Peter Anvin - All Rights Reserved
8 * Copyright 2009 Intel Corporation; author: H. Peter Anvin
10 * This file is part of Syslinux, and is made available under
11 * the terms of the GNU General Public License version 2.
13 * ----------------------------------------------------------------------- */
15 #ifndef _PARTITION_H_
16 #define _PARTITION_H_
18 #include <stdint.h>
20 #define PARTITION_TABLES_OFFSET 0x1be
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));
36 void get_label(int label, char **buffer_label);
37 #endif /* _PARTITION_H_ */