Create a simplebus PNP info wrapper.

Differential Review: https://reviews.freebsd.org/D4517
This commit is contained in:
imp 2015-12-18 05:29:22 +00:00
parent dae1d253aa
commit a340182ee7
2 changed files with 5 additions and 0 deletions

View File

@ -158,6 +158,7 @@ static devclass_t ti_aintc_devclass;
EARLY_DRIVER_MODULE(aintc, simplebus, ti_aintc_driver, ti_aintc_devclass,
0, 0, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_MIDDLE);
SIMPLEBUS_PNP_INFO(compat_data);
int
arm_get_next_irq(int last_irq)

View File

@ -52,6 +52,10 @@ struct ofw_compat_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 */
int ofw_bus_gen_setup_devinfo(struct ofw_bus_devinfo *, phandle_t);
void ofw_bus_gen_destroy_devinfo(struct ofw_bus_devinfo *);