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