if ( res )
return res;
- res = gic_make_node(d, node, fdt);
+ res = gic_make_hwdom_dt_node(d, node, fdt);
if ( res )
return res;
spin_unlock(&gicv2.lock);
}
-static int hip04gic_make_dt_node(const struct domain *d,
- const struct dt_device_node *node, void *fdt)
+static int hip04gic_make_hwdom_dt_node(const struct domain *d,
+ const struct dt_device_node *node,
+ void *fdt)
{
const struct dt_device_node *gic = dt_interrupt_controller;
const void *compatible;
.write_lr = hip04gic_write_lr,
.read_vmcr_priority = hip04gic_read_vmcr_priority,
.read_apr = hip04gic_read_apr,
- .make_dt_node = hip04gic_make_dt_node,
+ .make_hwdom_dt_node = hip04gic_make_hwdom_dt_node,
};
/* Set up the GIC */
spin_unlock(&gicv2.lock);
}
-static int gicv2_make_dt_node(const struct domain *d,
- const struct dt_device_node *node, void *fdt)
+static int gicv2_make_hwdom_dt_node(const struct domain *d,
+ const struct dt_device_node *node,
+ void *fdt)
{
const struct dt_device_node *gic = dt_interrupt_controller;
const void *compatible = NULL;
.write_lr = gicv2_write_lr,
.read_vmcr_priority = gicv2_read_vmcr_priority,
.read_apr = gicv2_read_apr,
- .make_dt_node = gicv2_make_dt_node,
+ .make_hwdom_dt_node = gicv2_make_hwdom_dt_node,
};
/* Set up the GIC */
spin_unlock(&gicv3.lock);
}
-static int gicv3_make_dt_node(const struct domain *d,
- const struct dt_device_node *node, void *fdt)
+static int gicv3_make_hwdom_dt_node(const struct domain *d,
+ const struct dt_device_node *node,
+ void *fdt)
{
const struct dt_device_node *gic = dt_interrupt_controller;
const void *compatible = NULL;
.read_vmcr_priority = gicv3_read_vmcr_priority,
.read_apr = gicv3_read_apr,
.secondary_init = gicv3_secondary_cpu_init,
- .make_dt_node = gicv3_make_dt_node,
+ .make_hwdom_dt_node = gicv3_make_hwdom_dt_node,
};
static int __init gicv3_preinit(struct dt_device_node *node, const void *data)
"irq-maintenance", NULL);
}
-int gic_make_node(const struct domain *d,const struct dt_device_node *node,
- void *fdt)
+int gic_make_hwdom_dt_node(const struct domain *d,
+ const struct dt_device_node *node,
+ void *fdt)
{
- return gic_hw_ops->make_dt_node(d, node, fdt);
+ return gic_hw_ops->make_hwdom_dt_node(d, node, fdt);
}
/*
unsigned int (*read_apr)(int apr_reg);
/* Secondary CPU init */
int (*secondary_init)(void);
- int (*make_dt_node)(const struct domain *d,
- const struct dt_device_node *node, void *fdt);
+ int (*make_hwdom_dt_node)(const struct domain *d,
+ const struct dt_device_node *node, void *fdt);
};
void register_gic_ops(const struct gic_hw_operations *ops);
-int gic_make_node(const struct domain *d,const struct dt_device_node *node,
- void *fdt);
+int gic_make_hwdom_dt_node(const struct domain *d,
+ const struct dt_device_node *node,
+ void *fdt);
#endif /* __ASSEMBLY__ */
#endif