|
@@ -58,6 +58,22 @@ static inline int of_node_to_nid(struct device_node *device) { return 0; }
|
|
|
|
|
|
extern void of_instantiate_rtc(void);
|
|
|
|
|
|
+/* The of_drconf_cell struct defines the layout of the LMB array
|
|
|
+ * specified in the device tree property
|
|
|
+ * ibm,dynamic-reconfiguration-memory/ibm,dynamic-memory
|
|
|
+ */
|
|
|
+struct of_drconf_cell {
|
|
|
+ u64 base_addr;
|
|
|
+ u32 drc_index;
|
|
|
+ u32 reserved;
|
|
|
+ u32 aa_index;
|
|
|
+ u32 flags;
|
|
|
+};
|
|
|
+
|
|
|
+#define DRCONF_MEM_ASSIGNED 0x00000008
|
|
|
+#define DRCONF_MEM_AI_INVALID 0x00000040
|
|
|
+#define DRCONF_MEM_RESERVED 0x00000080
|
|
|
+
|
|
|
/* These includes are put at the bottom because they may contain things
|
|
|
* that are overridden by this file. Ideally they shouldn't be included
|
|
|
* by this file, but there are a bunch of .c files that currently depend
|