ReactOS 0.4.16-dev-295-g4aee028
|
Go to the source code of this file.
Classes | |
struct | virtio_pci_cap |
struct | virtio_pci_notify_cap |
struct | virtio_pci_common_cfg |
struct | virtio_queue_info |
struct | virtio_system_ops |
struct | virtio_device_ops |
struct | virtio_device |
Typedefs | |
typedef struct virtio_queue_info | VirtIOQueueInfo |
typedef struct virtio_system_ops | VirtIOSystemOps |
typedef struct virtio_device | VirtIODevice |
#define MAX_QUEUES_PER_DEVICE_DEFAULT 8 |
Definition at line 156 of file virtio_pci.h.
Definition at line 313 of file virtio_pci.h.
Definition at line 312 of file virtio_pci.h.
#define virtio_is_feature_enabled | ( | FeaturesList, | |
Feature | |||
) | (!!((FeaturesList) & (1ULL << (Feature)))) |
Definition at line 311 of file virtio_pci.h.
#define VIRTIO_MSI_CONFIG_VECTOR 20 |
Definition at line 75 of file virtio_pci.h.
#define VIRTIO_MSI_NO_VECTOR 0xffff |
Definition at line 98 of file virtio_pci.h.
#define VIRTIO_MSI_QUEUE_VECTOR 22 |
Definition at line 77 of file virtio_pci.h.
#define VIRTIO_PCI_CAP_COMMON_CFG 1 |
Definition at line 103 of file virtio_pci.h.
#define VIRTIO_PCI_CAP_DEVICE_CFG 4 |
Definition at line 109 of file virtio_pci.h.
#define VIRTIO_PCI_CAP_ISR_CFG 3 |
Definition at line 107 of file virtio_pci.h.
#define VIRTIO_PCI_CAP_NOTIFY_CFG 2 |
Definition at line 105 of file virtio_pci.h.
#define VIRTIO_PCI_CAP_PCI_CFG 5 |
Definition at line 111 of file virtio_pci.h.
#define VIRTIO_PCI_CONFIG | ( | msix_enabled | ) | VIRTIO_PCI_CONFIG_OFF(msix_enabled) |
Definition at line 83 of file virtio_pci.h.
#define VIRTIO_PCI_CONFIG_OFF | ( | msix_enabled | ) | ((msix_enabled) ? 24 : 20) |
Definition at line 81 of file virtio_pci.h.
#define VIRTIO_PCI_GUEST_FEATURES 4 |
Definition at line 51 of file virtio_pci.h.
#define VIRTIO_PCI_HOST_FEATURES 0 |
Definition at line 48 of file virtio_pci.h.
#define VIRTIO_PCI_ISR 19 |
Definition at line 71 of file virtio_pci.h.
#define VIRTIO_PCI_ISR_CONFIG 0x2 |
Definition at line 96 of file virtio_pci.h.
#define VIRTIO_PCI_QUEUE_ADDR_SHIFT 12 |
Definition at line 87 of file virtio_pci.h.
#define VIRTIO_PCI_QUEUE_NOTIFY 16 |
Definition at line 63 of file virtio_pci.h.
#define VIRTIO_PCI_QUEUE_NUM 12 |
Definition at line 57 of file virtio_pci.h.
#define VIRTIO_PCI_QUEUE_PFN 8 |
Definition at line 54 of file virtio_pci.h.
#define VIRTIO_PCI_QUEUE_SEL 14 |
Definition at line 60 of file virtio_pci.h.
#define VIRTIO_PCI_STATUS 18 |
Definition at line 66 of file virtio_pci.h.
#define VIRTIO_PCI_VRING_ALIGN 4096 |
Definition at line 91 of file virtio_pci.h.
typedef struct virtio_device VirtIODevice |
Definition at line 199 of file virtio_pci.h.
typedef struct virtio_queue_info VirtIOQueueInfo |
typedef struct virtio_system_ops VirtIOSystemOps |
void virtio_add_status | ( | VirtIODevice * | vdev, |
u8 | status | ||
) |
Definition at line 96 of file VirtIOPCICommon.c.
Referenced by ParaNdis_FinishInitialization(), ParaNdis_InitializeContext(), ParaNdis_PowerOn(), virtio_device_initialize(), and virtio_set_features().
Definition at line 311 of file VirtIOPCICommon.c.
void virtio_delete_queues | ( | VirtIODevice * | vdev | ) |
Definition at line 320 of file VirtIOPCICommon.c.
Referenced by DeleteNetQueues(), and virtio_find_queues().
NTSTATUS virtio_device_initialize | ( | VirtIODevice * | vdev, |
const VirtIOSystemOps * | pSystemOps, | ||
void * | DeviceContext, | ||
bool | msix_used | ||
) |
Referenced by ParaNdis_InitializeContext().
void virtio_device_ready | ( | VirtIODevice * | vdev | ) |
Definition at line 106 of file VirtIOPCICommon.c.
Referenced by ParaNdis_FinishInitialization(), and ParaNdis_PowerOn().
void virtio_device_reset | ( | VirtIODevice * | vdev | ) |
Definition at line 101 of file VirtIOPCICommon.c.
Referenced by ParaNdis_ResetVirtIONetDevice(), and virtio_device_initialize().
void virtio_device_shutdown | ( | VirtIODevice * | vdev | ) |
Definition at line 77 of file VirtIOPCICommon.c.
Referenced by VirtIONetRelease().
NTSTATUS virtio_find_queue | ( | VirtIODevice * | vdev, |
unsigned | index, | ||
struct virtqueue ** | vq | ||
) |
Definition at line 256 of file VirtIOPCICommon.c.
NTSTATUS virtio_find_queues | ( | VirtIODevice * | vdev, |
unsigned | nvqs, | ||
struct virtqueue * | vqs[] | ||
) |
Definition at line 267 of file VirtIOPCICommon.c.
Referenced by FindNetQueues().
int virtio_get_bar_index | ( | PPCI_COMMON_HEADER | pPCIHeader, |
PHYSICAL_ADDRESS | BasePA | ||
) |
Definition at line 357 of file VirtIOPCICommon.c.
Referenced by GetAdapterResources().
void virtio_get_config | ( | VirtIODevice * | vdev, |
unsigned | offset, | ||
void * | buf, | ||
unsigned | len | ||
) |
Definition at line 167 of file VirtIOPCICommon.c.
Referenced by ParaNdis_InitializeContext(), and ParaNdis_ReportLinkStatus().
u64 virtio_get_features | ( | VirtIODevice * | dev | ) |
Definition at line 114 of file VirtIOPCICommon.c.
Referenced by ParaNdis_InitializeContext(), and ParaNdis_PowerOn().
Definition at line 550 of file VirtIORing.c.
|
static |
Definition at line 366 of file virtio_pci.h.
Referenced by virtio_reserve_queue_memory().
u8 virtio_get_status | ( | VirtIODevice * | vdev | ) |
Definition at line 86 of file VirtIOPCICommon.c.
Referenced by ParaNdis_ResetVirtIONetDevice(), and VirtIODeviceRemoveStatus().
NTSTATUS virtio_query_queue_allocation | ( | VirtIODevice * | vdev, |
unsigned | index, | ||
unsigned short * | pNumEntries, | ||
unsigned long * | pRingSize, | ||
unsigned long * | pHeapSize | ||
) |
Definition at line 215 of file VirtIOPCICommon.c.
u8 virtio_read_isr_status | ( | VirtIODevice * | vdev | ) |
Definition at line 352 of file VirtIOPCICommon.c.
Referenced by CheckRunningDpc(), JustForCheckClearInterrupt(), and ParaNdis_OnLegacyInterrupt().
NTSTATUS virtio_reserve_queue_memory | ( | VirtIODevice * | vdev, |
unsigned | nvqs | ||
) |
Definition at line 224 of file VirtIOPCICommon.c.
Referenced by virtio_find_queues().
void virtio_set_config | ( | VirtIODevice * | vdev, |
unsigned | offset, | ||
void * | buf, | ||
unsigned | len | ||
) |
Definition at line 197 of file VirtIOPCICommon.c.
u16 virtio_set_config_vector | ( | VirtIODevice * | vdev, |
u16 | vector | ||
) |
Definition at line 342 of file VirtIOPCICommon.c.
NTSTATUS virtio_set_features | ( | VirtIODevice * | vdev, |
u64 | features | ||
) |
Definition at line 119 of file VirtIOPCICommon.c.
Referenced by FinalizeFeatures().
Definition at line 347 of file VirtIOPCICommon.c.
void virtio_set_status | ( | VirtIODevice * | vdev, |
u8 | status | ||
) |
Definition at line 91 of file VirtIOPCICommon.c.
Referenced by VirtIODeviceRemoveStatus().