2007-07-05 16:01:23 +00:00
|
|
|
#ifndef __PARTITION_H
|
|
|
|
#define __PARTITION_H
|
|
|
|
|
|
|
|
struct device_d;
|
|
|
|
|
2007-07-05 16:01:35 +00:00
|
|
|
struct partition {
|
|
|
|
int num;
|
|
|
|
|
2007-07-05 16:01:55 +00:00
|
|
|
int readonly;
|
|
|
|
|
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];
|
|
|
|
};
|
|
|
|
|
2007-07-05 16:01:53 +00:00
|
|
|
struct device_d *dev_add_partition(struct device_d *dev, unsigned long offset,
|
|
|
|
size_t size, char *name);
|
|
|
|
/* FIXME: counterpart missing */
|
|
|
|
|
2007-07-05 16:01:23 +00:00
|
|
|
#endif /* __PARTITION_H */
|
|
|
|
|