svn commit: r292424 - in head/sys: arm/ti dev/ofw
Warner Losh
imp at FreeBSD.org
Fri Dec 18 05:29:23 UTC 2015
Author: imp
Date: Fri Dec 18 05:29:22 2015
New Revision: 292424
URL: https://svnweb.freebsd.org/changeset/base/292424
Log:
Create a simplebus PNP info wrapper.
Differential Review: https://reviews.freebsd.org/D4517
Modified:
head/sys/arm/ti/aintc.c
head/sys/dev/ofw/ofw_bus_subr.h
Modified: head/sys/arm/ti/aintc.c
==============================================================================
--- head/sys/arm/ti/aintc.c Fri Dec 18 03:06:39 2015 (r292423)
+++ head/sys/arm/ti/aintc.c Fri Dec 18 05:29:22 2015 (r292424)
@@ -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)
Modified: head/sys/dev/ofw/ofw_bus_subr.h
==============================================================================
--- head/sys/dev/ofw/ofw_bus_subr.h Fri Dec 18 03:06:39 2015 (r292423)
+++ head/sys/dev/ofw/ofw_bus_subr.h Fri Dec 18 05:29:22 2015 (r292424)
@@ -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 *);
More information about the svn-src-all
mailing list