9
0
Fork 0
barebox/include/partition.h

37 lines
686 B
C
Raw Normal View History

2007-07-05 16:01:23 +00:00
#ifndef __PARTITION_H
#define __PARTITION_H
struct device_d;
#define PARTITION_FIXED (1 << 0)
#define PARTITION_READONLY (1 << 1)
struct partition {
int num;
int flags;
unsigned long offset;
2007-07-05 16:01:53 +00:00
struct device_d *physdev;
struct device_d device;
char name[16];
};
#ifdef CONFIG_PARTITION
2007-07-05 16:01:53 +00:00
struct device_d *dev_add_partition(struct device_d *dev, unsigned long offset,
size_t size, int flags, const char *name);
#else
static inline struct device_d *dev_add_partition(struct device_d *dev,
unsigned long offset, size_t size, int flags,
const char *name)
{
return 0;
}
#endif
2007-07-05 16:01:53 +00:00
/* FIXME: counterpart missing */
2007-07-05 16:01:23 +00:00
#endif /* __PARTITION_H */