summaryrefslogtreecommitdiffstats
path: root/include/driver.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-06-17 12:40:04 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-06-18 09:01:01 +0200
commitbc31d85c6e23d724664e76bcfc3b2eda778012a3 (patch)
tree7555fa7f2093c7777635f576941c4a59bd7038db /include/driver.h
parentacc930f1e9c482dc826bb63a6b9d36463a280210 (diff)
downloadbarebox-bc31d85c6e23d724664e76bcfc3b2eda778012a3.tar.gz
barebox-bc31d85c6e23d724664e76bcfc3b2eda778012a3.tar.xz
cdev: Add partuuid string to struct cdev
This adds the partuuid string to struct cdev in order to have this available for constructing a suitable Linux root=PARTUUID= option for booting Linux. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/driver.h')
-rw-r--r--include/driver.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/driver.h b/include/driver.h
index d0cdcc9715..9c6005454c 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -435,6 +435,8 @@ struct file_operations {
int (*memmap)(struct cdev*, void **map, int flags);
};
+#define MAX_PARTUUID_STR sizeof("00112233-4455-6677-8899-AABBCCDDEEFF")
+
struct cdev {
struct file_operations *ops;
void *priv;
@@ -445,6 +447,7 @@ struct cdev {
char *partname; /* the partition name, usually the above without the
* device part, i.e. name = "nand0.barebox" -> partname = "barebox"
*/
+ char partuuid[MAX_PARTUUID_STR];
loff_t offset;
loff_t size;
unsigned int flags;