|
Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
|
#include <type.h>Go to the source code of this file.
Data Structures | |
| struct | __attribute__ |
| struct | virtio_queue_t |
| struct | virtio_device_t |
| struct | virtio_pci_cap |
Macros | |
| #define | VIRTIO_PCI_CAP 0x09 |
| #define | VIRTIO_PCI_CAP_COMMON_CFG 1 |
| #define | VIRTIO_PCI_CAP_NOTIFY_CFG 2 |
| #define | VIRTIO_PCI_CAP_ISR_CFG 3 |
| #define | VIRTIO_PCI_CAP_DEVICE_CFG 4 |
| #define | VIRTIO_PCI_CAP_PCI_CFG 5 |
| #define | VIRTIO_STATUS_ACKNOWLEDGE (1 << 0) |
| #define | VIRTIO_STATUS_DRIVER (1 << 1) |
| #define | VIRTIO_STATUS_DRIVER_OK (1 << 2) |
| #define | VIRTIO_STATUS_FEATURES_OK (1 << 3) |
| #define | VIRTIO_STATUS_DEVICE_NEEDS_RESET (1 << 6) |
| #define | VIRTIO_STATUS_FAILED (1 << 7) |
Functions | |
| struct virtio_pci_cap | __attribute__ ((packed)) |
| struct ioforge_virtio_device * | find_virtio_device_by_id (uint16_t vendor_id, uint16_t device_id) |
Variables | |
| uint8_t | cap_vndr |
| uint8_t | cap_next |
| uint8_t | cap_len |
| uint8_t | cfg_type |
| uint8_t | bar |
| uint8_t | padding [3] |
| uint32_t | offset |
| uint32_t | length |
| #define VIRTIO_PCI_CAP 0x09 |
Definition at line 6 of file virtio.h.
Referenced by for_each_virtio_device().
| #define VIRTIO_PCI_CAP_COMMON_CFG 1 |
Definition at line 8 of file virtio.h.
Referenced by virtio_scan_capabilities().
| #define VIRTIO_PCI_CAP_ISR_CFG 3 |
Definition at line 10 of file virtio.h.
Referenced by virtio_scan_capabilities().
| #define VIRTIO_PCI_CAP_NOTIFY_CFG 2 |
Definition at line 9 of file virtio.h.
Referenced by virtio_scan_capabilities().
| struct virtio_pci_cap __attribute__ | ( | (packed) | ) |
| struct ioforge_virtio_device * find_virtio_device_by_id | ( | uint16_t | vendor_id, |
| uint16_t | device_id ) |
Referenced by VirtioGpu::load().
| uint8_t bar |
Definition at line 4 of file virtio.h.
Referenced by EHCIModule::load(), XHCIModule::load(), virtio_scan_capabilities(), and vxPCIGatheringBusInfo().
| uint8_t cap_len |
Definition at line 2 of file virtio.h.
Referenced by virtio_scan_capabilities().
| volatile uint16_t length |
Definition at line 7 of file virtio.h.
Referenced by checksum16_adc(), checksum16_raw(), and phys_base_alloc_aligned().
| uint32_t offset |
Definition at line 6 of file virtio.h.
Referenced by __attribute__(), __attribute__(), acpi_map_phys_page(), char_read(), char_write(), ecam_read32(), ecam_write32(), elf_dyn_map_all(), INIT(), EHCIModule::init_controller(), initrd_read(), ipv4_send(), iso9660_lookup(), iso9660_read(), legacy_read32(), legacy_write32(), pci_readl(), pci_write8(), pci_writel(), read_ioapic_register(), virtio_scan_capabilities(), vxPCIGatheringBusInfo(), and write_ioapic_register().