Create a simplebus PNP info wrapper.
Differential Review: https://reviews.freebsd.org/D4517
This commit is contained in:
parent
6e081f10fc
commit
31c9adb789
@ -158,6 +158,7 @@ static devclass_t ti_aintc_devclass;
|
|||||||
|
|
||||||
EARLY_DRIVER_MODULE(aintc, simplebus, ti_aintc_driver, ti_aintc_devclass,
|
EARLY_DRIVER_MODULE(aintc, simplebus, ti_aintc_driver, ti_aintc_devclass,
|
||||||
0, 0, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_MIDDLE);
|
0, 0, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_MIDDLE);
|
||||||
|
SIMPLEBUS_PNP_INFO(compat_data);
|
||||||
|
|
||||||
int
|
int
|
||||||
arm_get_next_irq(int last_irq)
|
arm_get_next_irq(int last_irq)
|
||||||
|
@ -52,6 +52,10 @@ struct ofw_compat_data {
|
|||||||
uintptr_t ocd_data;
|
uintptr_t ocd_data;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#define SIMPLEBUS_PNP_DESCR "Z:compat;P:private;"
|
||||||
|
#define SIMPLEBUS_PNP_INFO(t) \
|
||||||
|
MODULE_PNP_INFO(SIMPLEBUS_PNP_DESCR, simplebus, t, t, sizeof(t[0]), sizeof(t) / sizeof(t[0]));
|
||||||
|
|
||||||
/* Generic implementation of ofw_bus_if.m methods and helper routines */
|
/* Generic implementation of ofw_bus_if.m methods and helper routines */
|
||||||
int ofw_bus_gen_setup_devinfo(struct ofw_bus_devinfo *, phandle_t);
|
int ofw_bus_gen_setup_devinfo(struct ofw_bus_devinfo *, phandle_t);
|
||||||
void ofw_bus_gen_destroy_devinfo(struct ofw_bus_devinfo *);
|
void ofw_bus_gen_destroy_devinfo(struct ofw_bus_devinfo *);
|
||||||
|
Loading…
Reference in New Issue
Block a user