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 EZD_PARTITION 0x55
22 #define DM6_AUX1PARTITION 0x51
23 #define DM6_AUX3PARTITION 0x53
24
25 struct partition {
26 unsigned char boot_ind;
27 unsigned char head;
28 unsigned char sector;
29 unsigned char cyl;
30 unsigned char sys_ind;
31 unsigned char end_head;
32 unsigned char end_sector;
33 unsigned char end_cyl;
34 unsigned int start_sect;
35 unsigned int nr_sects;
36 };
37
38 struct hd_struct {
39 long start_sect;
40 long nr_sects;
41 };
42
43 struct gendisk {
44 int major;
45 const char *major_name;
46 int minor_shift;
47
48 int max_p;
49 int max_nr;
50
51 void (*init)(struct gendisk *);
52 struct hd_struct *part;
53 int *sizes;
54 int nr_real;
55
56 void *real_devices;
57 struct gendisk *next;
58 };
59
60 extern int NR_GENDISKS;
61 extern struct gendisk *gendisk_head;
62
63 #endif