34#include <sys/kernel.h>
35#include <sys/module.h>
38#include <dev/pci/pcireg.h>
39#include <dev/pci/pcivar.h>
40#include <dev/pci/pci_private.h>
84 device_set_desc(
dev,
"OFW PCI bus");
85 return (BUS_PROBE_DEFAULT);
89static const struct ofw_bus_devinfo*
93 return OFW_BUS_GET_DEVINFO(device_get_parent(bus),
dev);
METHOD phandle_t parent
Return parent of node.
static __inline phandle_t ofw_bus_get_node(device_t dev)
static __inline const char * ofw_bus_get_compat(device_t dev)
static __inline const char * ofw_bus_get_type(device_t dev)
static __inline const char * ofw_bus_get_model(device_t dev)
static __inline const char * ofw_bus_get_name(device_t dev)
ofw_bus_get_name_t ofw_bus_gen_get_name
ofw_bus_get_node_t ofw_bus_gen_get_node
ofw_bus_get_model_t ofw_bus_gen_get_model
ofw_bus_get_compat_t ofw_bus_gen_get_compat
ofw_bus_get_type_t ofw_bus_gen_get_type
static devclass_t pci_devclass
DEFINE_CLASS_1(pci, ofw_pci_driver, ofw_pci_methods, sizeof(struct pci_softc), pci_driver)
static device_method_t ofw_pci_methods[]
static const struct ofw_bus_devinfo * pci_ofw_get_devinfo(device_t, device_t)
MODULE_DEPEND(ofw_pci, simplebus, 1, 1, 1)
MODULE_VERSION(ofw_pci, 1)
static int ofw_pci_probe(device_t)
DRIVER_MODULE(ofw_pci, pcib, ofw_pci_driver, pci_devclass, 0, 0)