blob: cdf6368fd45eac9bcf9c9eb7fa6fb766bd06c7eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#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;
struct device_d *physdev;
struct device_d device;
char name[16];
};
#ifdef CONFIG_PARTITION
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
/* FIXME: counterpart missing */
#endif /* __PARTITION_H */
|