Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/virtio/mmio/virtio_mmio.c
Show First 20 Lines • Show All 140 Lines • ▼ Show 20 Lines | static device_method_t vtmmio_methods[] = { | ||||
DEVMETHOD(device_detach, vtmmio_detach), | DEVMETHOD(device_detach, vtmmio_detach), | ||||
DEVMETHOD(device_suspend, vtmmio_suspend), | DEVMETHOD(device_suspend, vtmmio_suspend), | ||||
DEVMETHOD(device_resume, vtmmio_resume), | DEVMETHOD(device_resume, vtmmio_resume), | ||||
DEVMETHOD(device_shutdown, vtmmio_shutdown), | DEVMETHOD(device_shutdown, vtmmio_shutdown), | ||||
/* Bus interface. */ | /* Bus interface. */ | ||||
DEVMETHOD(bus_driver_added, vtmmio_driver_added), | DEVMETHOD(bus_driver_added, vtmmio_driver_added), | ||||
DEVMETHOD(bus_child_detached, vtmmio_child_detached), | DEVMETHOD(bus_child_detached, vtmmio_child_detached), | ||||
DEVMETHOD(bus_child_pnpinfo_str, virtio_child_pnpinfo_str), | DEVMETHOD(bus_child_pnpinfo, virtio_child_pnpinfo), | ||||
DEVMETHOD(bus_read_ivar, vtmmio_read_ivar), | DEVMETHOD(bus_read_ivar, vtmmio_read_ivar), | ||||
DEVMETHOD(bus_write_ivar, vtmmio_write_ivar), | DEVMETHOD(bus_write_ivar, vtmmio_write_ivar), | ||||
/* VirtIO bus interface. */ | /* VirtIO bus interface. */ | ||||
DEVMETHOD(virtio_bus_negotiate_features, vtmmio_negotiate_features), | DEVMETHOD(virtio_bus_negotiate_features, vtmmio_negotiate_features), | ||||
DEVMETHOD(virtio_bus_with_feature, vtmmio_with_feature), | DEVMETHOD(virtio_bus_with_feature, vtmmio_with_feature), | ||||
DEVMETHOD(virtio_bus_alloc_virtqueues, vtmmio_alloc_virtqueues), | DEVMETHOD(virtio_bus_alloc_virtqueues, vtmmio_alloc_virtqueues), | ||||
DEVMETHOD(virtio_bus_setup_intr, vtmmio_setup_intr), | DEVMETHOD(virtio_bus_setup_intr, vtmmio_setup_intr), | ||||
▲ Show 20 Lines • Show All 219 Lines • ▼ Show 20 Lines | case VIRTIO_IVAR_SUBDEVICE: | ||||
break; | break; | ||||
case VIRTIO_IVAR_VENDOR: | case VIRTIO_IVAR_VENDOR: | ||||
*result = vtmmio_read_config_4(sc, VIRTIO_MMIO_VENDOR_ID); | *result = vtmmio_read_config_4(sc, VIRTIO_MMIO_VENDOR_ID); | ||||
break; | break; | ||||
case VIRTIO_IVAR_SUBVENDOR: | case VIRTIO_IVAR_SUBVENDOR: | ||||
case VIRTIO_IVAR_DEVICE: | case VIRTIO_IVAR_DEVICE: | ||||
/* | /* | ||||
* Dummy value for fields not present in this bus. Used by | * Dummy value for fields not present in this bus. Used by | ||||
* bus-agnostic virtio_child_pnpinfo_str. | * bus-agnostic virtio_child_pnpinfo. | ||||
*/ | */ | ||||
*result = 0; | *result = 0; | ||||
break; | break; | ||||
case VIRTIO_IVAR_MODERN: | case VIRTIO_IVAR_MODERN: | ||||
/* | /* | ||||
* There are several modern (aka MMIO v2) spec compliance | * There are several modern (aka MMIO v2) spec compliance | ||||
* issues with this driver, but keep the status quo. | * issues with this driver, but keep the status quo. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 567 Lines • Show Last 20 Lines |