Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/fdt/simplebus.h
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | struct simplebus_devinfo *simplebus_setup_dinfo(device_t dev, phandle_t node, | ||||
struct simplebus_devinfo *di); | struct simplebus_devinfo *di); | ||||
int simplebus_fill_ranges(phandle_t node, | int simplebus_fill_ranges(phandle_t node, | ||||
struct simplebus_softc *sc); | struct simplebus_softc *sc); | ||||
int simplebus_attach(device_t dev); | int simplebus_attach(device_t dev); | ||||
int simplebus_attach_impl(device_t dev); | int simplebus_attach_impl(device_t dev); | ||||
int simplebus_detach(device_t dev); | int simplebus_detach(device_t dev); | ||||
ssize_t simplebus_get_property(device_t bus, device_t child, | bus_get_property_t simplebus_get_property; | ||||
andrew: Do any subclasses use this directly? If not we could move it to `simplebus.c` and make static. | |||||
kdAuthorUnsubmitted Done Inline ActionsAll buses that expose OFW will need to sue it, see D33437. kd: All buses that expose OFW will need to sue it, see D33437.
On the side note other places, such… | |||||
andrewUnsubmitted Not Done Inline ActionsCouldn't we have a default implementation that calls the parent device_get_property? andrew: Couldn't we have a default implementation that calls the parent device_get_property? | |||||
kdAuthorUnsubmitted Done Inline ActionsGood idea. I'll look into it. kd: Good idea. I'll look into it. | |||||
kdAuthorUnsubmitted Done Inline Actionskd: @andrew take a look at D34031 | |||||
const char *propname, void *propvalue, size_t size); | |||||
#endif /* _FDT_SIMPLEBUS_H */ | #endif /* _FDT_SIMPLEBUS_H */ |
Do any subclasses use this directly? If not we could move it to simplebus.c and make static.