Go to the source code of this file.
◆ PCI_INTERRUPT_LINE
#define PCI_INTERRUPT_LINE 0x3C |
Definition at line 22 of file pci.h.
◆ FindVirtionetDev()
Search for VirtNet Device.
- Returns
- NULL
Definition at line 59 of file scconfig.c.
◆ PciConfigRead()
u32 PciConfigRead |
( |
u8 | bus, |
|
|
u8 | slot, |
|
|
u8 | func, |
|
|
u8 | offset ) |
Reads a 32-bit value from PCI configuration space.
This function constructs a configuration address based on the given PCI bus, slot (device), function, and offset, and reads the corresponding 32-bit value from the PCI configuration space using I/O ports.
The offset must be aligned to a 4-byte boundary (i.e., bits 1 and 0 are masked out).
- Parameters
-
bus | PCI bus number (0–255). |
slot | PCI device number (0–31). |
func | PCI function number (0–7). |
offset | Offset into the configuration space (must be 4-byte aligned). |
- Returns
- 32-bit value read from the PCI configuration register.
Definition at line 48 of file scconfig.c.
◆ bar0
◆ virtio_bus
◆ virtio_func
◆ virtio_irq
◆ virtio_slot