My Kernel v0.1.0
pci_device::pci_bar Struct Reference

PCI Base Address Registers.

#include <pci.h>

Public Types

enum  pci_bar_type { PCI_BAR_MEMORY , PCI_BAR_IO }
 The type of the Address Register. More...
 

Data Fields

void * data
 Addressable virtual address mapped to the register.
 
paddr_t phys
 The BAR's "true" physical or IO address.
 
size_t size
 The address register's size.
 

Member Enumeration Documentation

◆ pci_bar_type

Enumerator
PCI_BAR_MEMORY 

Physical memory (either 32 or 64b)

PCI_BAR_IO 

IO memory.


The documentation for this struct was generated from the following file: