Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/virtio/mmio/virtio_mmio_fdt.c
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | |||||
static device_method_t vtmmio_fdt_methods[] = { | static device_method_t vtmmio_fdt_methods[] = { | ||||
/* Device interface. */ | /* Device interface. */ | ||||
DEVMETHOD(device_probe, vtmmio_fdt_probe), | DEVMETHOD(device_probe, vtmmio_fdt_probe), | ||||
DEVMETHOD(device_attach, vtmmio_fdt_attach), | DEVMETHOD(device_attach, vtmmio_fdt_attach), | ||||
DEVMETHOD_END | DEVMETHOD_END | ||||
}; | }; | ||||
DEFINE_CLASS_1(virtio_mmio, vtmmio_fdt_driver, vtmmio_fdt_methods, | DEFINE_CLASS_1(virtio, vtmmio_fdt_driver, vtmmio_fdt_methods, | ||||
sizeof(struct vtmmio_softc), vtmmio_driver); | sizeof(struct vtmmio_softc), vtmmio_driver); | ||||
static devclass_t vtmmio_fdt_devclass; | static devclass_t vtmmio_fdt_devclass; | ||||
DRIVER_MODULE(virtio_mmio, simplebus, vtmmio_fdt_driver, vtmmio_fdt_devclass, | DRIVER_MODULE(virtio_mmio, simplebus, vtmmio_fdt_driver, vtmmio_fdt_devclass, | ||||
0, 0); | 0, 0); | ||||
DRIVER_MODULE(virtio_mmio, ofwbus, vtmmio_fdt_driver, vtmmio_fdt_devclass, 0,0); | DRIVER_MODULE(virtio_mmio, ofwbus, vtmmio_fdt_driver, vtmmio_fdt_devclass, 0,0); | ||||
MODULE_DEPEND(virtio_mmio, simplebus, 1, 1, 1); | MODULE_DEPEND(virtio_mmio, simplebus, 1, 1, 1); | ||||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |