source: branches/minix3-book/include/ibm/partition.h@ 25

Last change on this file since 25 was 4, checked in by Mattia Monga, 14 years ago

Importazione sorgenti libro

File size: 1.1 KB
Line 
1/* Description of entry in partition table. */
2#ifndef _PARTITION_H
3#define _PARTITION_H
4
5struct part_entry {
6 unsigned char bootind; /* boot indicator 0/ACTIVE_FLAG */
7 unsigned char start_head; /* head value for first sector */
8 unsigned char start_sec; /* sector value + cyl bits for first sector */
9 unsigned char start_cyl; /* track value for first sector */
10 unsigned char sysind; /* system indicator */
11 unsigned char last_head; /* head value for last sector */
12 unsigned char last_sec; /* sector value + cyl bits for last sector */
13 unsigned char last_cyl; /* track value for last sector */
14 unsigned long lowsec; /* logical first sector */
15 unsigned long size; /* size of partition in sectors */
16};
17
18#define ACTIVE_FLAG 0x80 /* value for active in bootind field (hd0) */
19#define NR_PARTITIONS 4 /* number of entries in partition table */
20#define PART_TABLE_OFF 0x1BE /* offset of partition table in boot sector */
21
22/* Partition types. */
23#define NO_PART 0x00 /* unused entry */
24#define MINIX_PART 0x81 /* Minix partition type */
25
26#endif /* _PARTITION_H */
Note: See TracBrowser for help on using the repository browser.