powerpc: Move of_drconf_cell struct to asm/drmem.h
Now that the powerpc code parses dynamic reconfiguration memory LMB information from the LMB array and not the device tree directly we can move the of_drconf_cell struct to drmem.h where it fits better. In addition, the struct is renamed to of_drconf_cell_v1 in anticipation of upcoming support for version 2 of the dynamic reconfiguration property and the members are typed as __be* values to reflect how they exist in the device tree. Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
这个提交包含在:
@@ -66,7 +66,7 @@ static int drmem_update_dt_v1(struct device_node *memory,
|
||||
struct property *prop)
|
||||
{
|
||||
struct property *new_prop;
|
||||
struct of_drconf_cell *dr_cell;
|
||||
struct of_drconf_cell_v1 *dr_cell;
|
||||
struct drmem_lmb *lmb;
|
||||
u32 *p;
|
||||
|
||||
@@ -77,7 +77,7 @@ static int drmem_update_dt_v1(struct device_node *memory,
|
||||
p = new_prop->value;
|
||||
*p++ = cpu_to_be32(drmem_info->n_lmbs);
|
||||
|
||||
dr_cell = (struct of_drconf_cell *)p;
|
||||
dr_cell = (struct of_drconf_cell_v1 *)p;
|
||||
|
||||
for_each_drmem_lmb(lmb) {
|
||||
dr_cell->base_addr = cpu_to_be64(lmb->base_addr);
|
||||
|
在新工单中引用
屏蔽一个用户