2007-07-05 16:01:23 +00:00
|
|
|
#ifndef __PARTITION_H
|
|
|
|
#define __PARTITION_H
|
|
|
|
|
|
|
|
struct device_d;
|
|
|
|
|
2007-10-19 06:45:57 +00:00
|
|
|
#define PARTITION_FIXED (1 << 0)
|
|
|
|
#define PARTITION_READONLY (1 << 1)
|
|
|
|
|
2007-07-05 16:01:35 +00:00
|
|
|
struct partition {
|
|
|
|
int num;
|
|
|
|
|
2007-10-19 06:45:57 +00:00
|
|
|
int flags;
|
2007-07-05 16:01:55 +00:00
|
|
|
|
2007-07-05 16:01:35 +00:00
|
|
|
unsigned long offset;
|
|
|
|
|
2007-07-05 16:01:53 +00:00
|
|
|
struct device_d *physdev;
|
2007-07-05 16:01:35 +00:00
|
|
|
struct device_d device;
|
|
|
|
|
|
|
|
char name[16];
|
2009-04-22 21:39:27 +00:00
|
|
|
struct cdev cdev;
|
2007-07-05 16:01:35 +00:00
|
|
|
};
|
|
|
|
|
2007-07-05 16:01:23 +00:00
|
|
|
#endif /* __PARTITION_H */
|
|
|
|
|