]> git.ozlabs.org Git - yaboot.git/blob - include/fdisk-part.h
Link yaboot at 1MB
[yaboot.git] / include / fdisk-part.h
1 /*
2  *  fdisk-part.h - Structure of fdisk partition table
3  *
4  *  Copyright (C) 2000 Peter Bergner
5  *                2000 David Engebretsen
6  *
7  *  This program is free software; you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License as published by
9  *  the Free Software Foundation; either version 2 of the License, or
10  *  (at your option) any later version.
11  *
12  *  This program is distributed in the hope that it will be useful,
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *  GNU General Public License for more details.
16  *
17  *  You should have received a copy of the GNU General Public License
18  *  along with this program; if not, write to the Free Software
19  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20  */
21
22 #define ACTIVE_FLAG     0x80
23
24 #define EXTENDED        0x05
25 #define WIN98_EXTENDED  0x0f
26 #define LINUX_PARTITION 0x81
27 #define LINUX_SWAP      0x82
28 #define LINUX_NATIVE    0x83
29 #define LINUX_EXTENDED  0x85
30 #define LINUX_RAID      0xfd
31
32 struct fdisk_partition {
33         unsigned char boot_ind;         /* 0x80 - active */
34         unsigned char head;             /* starting head */
35         unsigned char sector;           /* starting sector */
36         unsigned char cyl;              /* starting cylinder */
37         unsigned char sys_ind;          /* What partition type */
38         unsigned char end_head;         /* end head */
39         unsigned char end_sector;       /* end sector */
40         unsigned char end_cyl;          /* end cylinder */
41         unsigned char start4[4];        /* starting sector counting from 0 */
42         unsigned char size4[4];         /* nr of sectors in partition */
43 };