Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/virtio/pci/virtio_pci.c
| Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | |||||
| * This module contains two drivers: | * This module contains two drivers: | ||||
| * - virtio_pci_legacy for pre-V1 support | * - virtio_pci_legacy for pre-V1 support | ||||
| * - virtio_pci_modern for V1 support | * - virtio_pci_modern for V1 support | ||||
| */ | */ | ||||
| MODULE_VERSION(virtio_pci, 1); | MODULE_VERSION(virtio_pci, 1); | ||||
| MODULE_DEPEND(virtio_pci, pci, 1, 1, 1); | MODULE_DEPEND(virtio_pci, pci, 1, 1, 1); | ||||
| MODULE_DEPEND(virtio_pci, virtio, 1, 1, 1); | MODULE_DEPEND(virtio_pci, virtio, 1, 1, 1); | ||||
| SYSCTL_DECL(_hw_virtio); | |||||
| SYSCTL_NODE(_hw_virtio, OID_AUTO, pci, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, | |||||
| "VirtIO PCI driver parameters"); | |||||
| int vtpci_disable_msix = 0; | int vtpci_disable_msix = 0; | ||||
| TUNABLE_INT("hw.virtio.pci.disable_msix", &vtpci_disable_msix); | SYSCTL_INT(_hw_virtio_pci, OID_AUTO, disable_msix, CTLFLAG_RDTUN, | ||||
| &vtpci_disable_msix, 0, "If set to 1, disables MSI-X."); | |||||
| static uint8_t | static uint8_t | ||||
| vtpci_read_isr(struct vtpci_common *cn) | vtpci_read_isr(struct vtpci_common *cn) | ||||
| { | { | ||||
| return (VIRTIO_PCI_READ_ISR(cn->vtpci_dev)); | return (VIRTIO_PCI_READ_ISR(cn->vtpci_dev)); | ||||
| } | } | ||||
| static uint16_t | static uint16_t | ||||
| ▲ Show 20 Lines • Show All 885 Lines • Show Last 20 Lines | |||||