1 #ifndef _LINUX_GENHD_H
2 #define _LINUX_GENHD_H
3
4
5
6
7
8
9
10
11
12 #define CONFIG_MSDOS_PARTITION 1
13
14 #ifdef __alpha__
15 #define CONFIG_OSF_PARTITION 1
16 #endif
17
18 #define EXTENDED_PARTITION 5
19
20 #define DM6_PARTITION 0x54
21 #define DM6_AUXPARTITION 0x51
22
23 struct partition {
24 unsigned char boot_ind;
25 unsigned char head;
26 unsigned char sector;
27 unsigned char cyl;
28 unsigned char sys_ind;
29 unsigned char end_head;
30 unsigned char end_sector;
31 unsigned char end_cyl;
32 unsigned int start_sect;
33 unsigned int nr_sects;
34 };
35
36 struct hd_struct {
37 long start_sect;
38 long nr_sects;
39 };
40
41 struct gendisk {
42 int major;
43 char *major_name;
44 int minor_shift;
45
46 int max_p;
47 int max_nr;
48
49 void (*init)(void);
50 struct hd_struct *part;
51 int *sizes;
52 int nr_real;
53
54 void *real_devices;
55 struct gendisk *next;
56 };
57
58 extern int NR_GENDISKS;
59 extern struct gendisk *gendisk_head;
60
61 #endif