RTEMS 6.1-rc4
Loading...
Searching...
No Matches
Macros | Enumerations | Functions | Variables
pci.h File Reference

PCI Library. More...

#include <pci/pcireg.h>
#include <pci/ids.h>
#include <pci/access.h>

Go to the source code of this file.

Macros

#define PCI_INVALID_VENDORDEVICEID   0xffffffff
 
#define PCID_CLASS(class, dev)   ((class << 8) | dev)
 
#define PCID_PCI2PCI_BRIDGE   PCID_CLASS(PCIC_BRIDGE, PCIS_BRIDGE_PCI)
 

Enumerations

enum  { PCISTS_ERR = -1 , PCISTS_OK = 0 , PCISTS_EINVAL = 1 , PCISTS_MSTABRT = 2 }
 
enum  pci_system_type { PCI_SYSTEM_NONE = 0 , PCI_SYSTEM_HOST = 1 , PCI_SYSTEM_PERIPHERAL = 2 }
 
enum  { PCI_LITTLE_ENDIAN = 0 , PCI_BIG_ENDIAN = 1 }
 

Functions

int pci_bus_count (void)
 
void pci_print (void)
 
void pci_print_dev (pci_dev_t dev)
 
void pci_print_device (int bus, int slot, int function)
 
int pci_for_each (int(*func)(pci_dev_t, void *), void *arg)
 
int pci_find (uint16_t ven, uint16_t dev, int index, pci_dev_t *pdev)
 

Variables

enum pci_system_type pci_system_type
 
int pci_endian
 

Detailed Description

PCI Library.

Defines in this file was taken from FreeBSD and auto-generated pci_ids.h reused from RTEMS.