Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/virtio/mmio/virtio_mmio_fdt.c
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
if (!ofw_bus_status_okay(dev)) | if (!ofw_bus_status_okay(dev)) | ||||
return (ENXIO); | return (ENXIO); | ||||
if (!ofw_bus_is_compatible(dev, "virtio,mmio")) | if (!ofw_bus_is_compatible(dev, "virtio,mmio")) | ||||
return (ENXIO); | return (ENXIO); | ||||
device_set_desc(dev, "VirtIO MMIO adapter"); | return (vtmmio_probe(dev)); | ||||
return (BUS_PROBE_DEFAULT); | |||||
} | } | ||||
static int | static int | ||||
vtmmio_setup_platform(device_t dev, struct vtmmio_softc *sc) | vtmmio_setup_platform(device_t dev, struct vtmmio_softc *sc) | ||||
{ | { | ||||
phandle_t platform_node; | phandle_t platform_node; | ||||
struct fdt_ic *ic; | struct fdt_ic *ic; | ||||
phandle_t xref; | phandle_t xref; | ||||
Show All 38 Lines |