pci
18 items · generated by scribe fromstdlib/pci.fd· synced 2026-11-15
Contents
- pci_u16 (function)
- pci_u32 (function)
- pci_vendor (function)
- pci_device (function)
- pci_command (function)
- pci_status (function)
- pci_revision (function)
- pci_progif (function)
- pci_subclass (function)
- pci_class (function)
- pci_header_type (function)
- pci_multifunction (function)
- pci_present (function)
- PciBar (struct)
- pci_bar (function)
- pci_caps (function)
- pci_cap_offset (function)
- pci_cf8 (function)
pci_u16
pub fn pci_u16(c: Vec<i64>, o: i64) -> i64 {Parameters:
c:Vec<i64>o:i64
Returns: i64
Defined at line 8
pci_u32
pub fn pci_u32(c: Vec<i64>, o: i64) -> i64 {Parameters:
c:Vec<i64>o:i64
Returns: i64
Defined at line 11
pci_vendor
pub fn pci_vendor(c: Vec<i64>) -> i64 {Parameters:
c:Vec<i64>
Returns: i64
Defined at line 16
pci_device
pub fn pci_device(c: Vec<i64>) -> i64 {Parameters:
c:Vec<i64>
Returns: i64
Defined at line 19
pci_command
pub fn pci_command(c: Vec<i64>) -> i64 {Parameters:
c:Vec<i64>
Returns: i64
Defined at line 22
pci_status
pub fn pci_status(c: Vec<i64>) -> i64 {Parameters:
c:Vec<i64>
Returns: i64
Defined at line 25
pci_revision
pub fn pci_revision(c: Vec<i64>) -> i64 {Parameters:
c:Vec<i64>
Returns: i64
Defined at line 28
pci_progif
pub fn pci_progif(c: Vec<i64>) -> i64 {Parameters:
c:Vec<i64>
Returns: i64
Defined at line 31
pci_subclass
pub fn pci_subclass(c: Vec<i64>) -> i64 {Parameters:
c:Vec<i64>
Returns: i64
Defined at line 34
pci_class
pub fn pci_class(c: Vec<i64>) -> i64 {Parameters:
c:Vec<i64>
Returns: i64
Defined at line 37
pci_header_type
pub fn pci_header_type(c: Vec<i64>) -> i64 {Parameters:
c:Vec<i64>
Returns: i64
Defined at line 40
pci_multifunction
pub fn pci_multifunction(c: Vec<i64>) -> bool {Parameters:
c:Vec<i64>
Returns: bool
Defined at line 43
pci_present
True when the config space is a present device (not all-ones).
pub fn pci_present(c: Vec<i64>) -> bool {Parameters:
c:Vec<i64>
Returns: bool
Defined at line 48
PciBar
pub struct PciBar {Fields:
| Name | Type |
|---|---|
present | bool |
is_io | bool |
is64 | bool |
prefetch | bool |
addr | i64 |
hi | i64 |
Defined at line 56
pci_bar
Decode BAR k of a type-0 header. For 64-bit BARs the caller must skip the following BAR index — hi carries its dword.
pub fn pci_bar(c: Vec<i64>, k: i64) -> PciBar {Parameters:
c:Vec<i64>k:i64
Returns: PciBar
Defined at line 70
pci_caps
Capability IDs present in the device, as a Vec of {id, offset} pairs encoded id*256+offset.
pub fn pci_caps(c: Vec<i64>) -> Vec<i64> {Parameters:
c:Vec<i64>
Returns: Vec<i64>
Defined at line 119
pci_cap_offset
Offset of capability want in the config space, or -1 (MSI=0x05, MSIX=0x11, PCIe=0x10, PM=0x01).
pub fn pci_cap_offset(c: Vec<i64>, want: i64) -> i64 {Parameters:
c:Vec<i64>want:i64
Returns: i64
Defined at line 136
pci_cf8
CONFIG_ADDRESS dword for bus/slot/func/offset (offset < 256).
pub fn pci_cf8(bus: i64, slot: i64, func: i64, off: i64) -> i64 {Parameters:
bus:i64slot:i64func:i64off:i64
Returns: i64
Defined at line 152
Generated by scribe, the Fides documentation generator