ApertureOS
Data Structures | Macros | Functions | Variables
pci.h File Reference
#include "types.h"
Include dependency graph for pci.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  PCI_DeviceFuncs
 

Macros

#define MAX_DEVICE_COUNT   128
 
#define MAX_POSSIBLE_BARS   6
 
#define PCI_MASS_STORAGE_DEVICE_CLASS   0x1
 
#define PCI_BUS_MASTER_CMD   (1<<2)
 

Functions

void pci_writeDWord (uint32_t bus, uint32_t device, uint32_t function, uint32_t offset, uint32_t val)
 
uint32_t pci_readDWord (uint32_t bus, uint32_t device, uint32_t function, uint32_t offset)
 
void pci_GetPCIClass (long classcode, char **base, char **sub, char **prog)
 
void pci_GetPCIDevice (uint16_t venID, uint16_t devID, char **chip_name, char **chip_desc)
 
void pci_GetPCIVendor (uint16_t venID, char **short_name, char **long_name)
 
void pci_Initialize (void)
 
void pci_setCommand (uint32_t device_index, uint16_t value)
 

Variables

PCI_DeviceFuncs devices [MAX_DEVICE_COUNT]
 
uint32_t pci_deviceCount
 

Macro Definition Documentation

#define MAX_DEVICE_COUNT   128
#define MAX_POSSIBLE_BARS   6
#define PCI_BUS_MASTER_CMD   (1<<2)
#define PCI_MASS_STORAGE_DEVICE_CLASS   0x1

Function Documentation

void pci_GetPCIClass ( long  classcode,
char **  base,
char **  sub,
char **  prog 
)
void pci_GetPCIDevice ( uint16_t  venID,
uint16_t  devID,
char **  chip_name,
char **  chip_desc 
)
void pci_GetPCIVendor ( uint16_t  venID,
char **  short_name,
char **  long_name 
)
void pci_Initialize ( void  )
uint32_t pci_readDWord ( uint32_t  bus,
uint32_t  device,
uint32_t  function,
uint32_t  offset 
)
void pci_setCommand ( uint32_t  device_index,
uint16_t  value 
)
void pci_writeDWord ( uint32_t  bus,
uint32_t  device,
uint32_t  function,
uint32_t  offset,
uint32_t  val 
)

Variable Documentation

uint32_t pci_deviceCount