UPSTREAM: PCI: rockchip: Specify the link capability
[firefly-linux-kernel-4.4.55.git] / block / partitions / rk.h
1 /*
2  *  block/partitions/rk.h
3  */
4
5 /* error message prefix */
6 #define ERRP "rkpart: "
7
8 /* debug macro */
9 #define RKPART_DEBUG 0
10 #if RKPART_DEBUG
11 #define dbg(x)  do {    \
12 printk("DEBUG-CMDLINE-PART: "); \
13 printk x;       \
14 } while (0)
15 #else
16 #define dbg(x)
17 #endif
18
19 /* At least 1GB disk support*/
20 #define SECTOR_1G       0x200000
21
22 /* Default partition table offet got from loader: 4MB*/
23 #define FROM_OFFSET     0x2000
24
25 /* special size referring to all the remaining space in a partition */
26 #define SIZE_REMAINING UINT_MAX
27 #define OFFSET_CONTINUOUS UINT_MAX
28
29 struct rk_partition {
30         char *name;
31         sector_t from;
32         sector_t size;
33 };
34 struct cmdline_rk_partition {
35         struct cmdline_rk_partition *next;
36         char *rk_id;
37         int num_parts;
38         struct rk_partition *parts;
39 };
40 int rkpart_partition(struct parsed_partitions *state);