1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-03 09:00:21 +00:00

Add an OFWBUS_PNP_INFO() macro for devices that hang directly off the root

ofwbus.  Also, apply some style(9) whitespace fixing to the
SIMPLEBUS_PNP_INFO() macro (no functional change).
This commit is contained in:
Ian Lepore 2019-11-30 19:16:44 +00:00
parent 9da3dfff9a
commit 9977bd1d5b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=355239

View File

@ -69,7 +69,8 @@ struct intr_map_data_fdt {
#define FDTCOMPAT_PNP_INFO(t, busname) \ #define FDTCOMPAT_PNP_INFO(t, busname) \
MODULE_PNP_INFO(FDTCOMPAT_PNP_DESCR, busname, t, t, sizeof(t) / sizeof(t[0])); MODULE_PNP_INFO(FDTCOMPAT_PNP_DESCR, busname, t, t, sizeof(t) / sizeof(t[0]));
#define SIMPLEBUS_PNP_INFO(t) FDTCOMPAT_PNP_INFO(t, simplebus) #define OFWBUS_PNP_INFO(t) FDTCOMPAT_PNP_INFO(t, ofwbus)
#define SIMPLEBUS_PNP_INFO(t) FDTCOMPAT_PNP_INFO(t, simplebus)
/* 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);