X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=include%2Ffdisk-part.h;fp=include%2Ffdisk-part.h;h=382df2da1092d14fe1ee1c73663b53bac5ace542;hb=f4ebbd9f7ea23e3f0fcbe098754580c220894628;hp=0000000000000000000000000000000000000000;hpb=f42aaadb5c8c5f7f15e5159cbc251e64e1a4ac8f;p=yaboot.git diff --git a/include/fdisk-part.h b/include/fdisk-part.h new file mode 100644 index 0000000..382df2d --- /dev/null +++ b/include/fdisk-part.h @@ -0,0 +1,28 @@ +/* + * Structure of a fdisk driver descriptor (block 0) + * and partition table (blocks 1..n). + * + * Copyright 2000 IBM / Peter Bergner / David Engebretsen + */ + +#define ACTIVE_FLAG 0x80 + +#define EXTENDED 0x05 +#define WIN98_EXTENDED 0x0f +#define LINUX_PARTITION 0x81 +#define LINUX_SWAP 0x82 +#define LINUX_NATIVE 0x83 +#define LINUX_EXTENDED 0x85 + +struct fdisk_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 char start4[4]; /* starting sector counting from 0 */ + unsigned char size4[4]; /* nr of sectors in partition */ +};