RTEMS 6.3
Loading...
Searching...
No Matches
pci.h File Reference
#include <rtems/pci.h>
#include <bsp.h>
#include <stdio.h>

Go to the source code of this file.

Data Structures

struct  _pin_routes
struct  _int_map
struct  pcibridge

Macros

#define PCI_FIXUP_OPT_OVERRIDE_NAME   (1<<0)
#define out_32(_addr, _val)
#define out_le32(_addr, _val)
#define out_32(_addr, _val)
#define in_8(_addr)
#define in_le16(_addr)
#define in_le32(_addr)
#define in_16(_addr)
#define in_32(_addr)
#define out_8(_addr, _val)
#define out_le16(_addr, _val)
#define out_16(_addr, _val)

Functions

void FixupPCI (const struct _int_map *, int(*swizzler)(int, int))
unsigned char pci_bus_count (void)
int indirect_pci_read_config_byte (unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, uint8_t *val)
int indirect_pci_read_config_word (unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, uint16_t *val)
int indirect_pci_read_config_dword (unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, uint32_t *val)
int indirect_pci_write_config_byte (unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, uint8_t val)
int indirect_pci_write_config_word (unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, uint16_t val)
int indirect_pci_write_config_dword (unsigned char bus, unsigned char slot, unsigned char function, unsigned char offset, uint32_t val)
int FindPCIbridge (int mybus, struct pcibridge *pb)
void pci_out_le32 (uint32_t base, uint32_t addr, uint32_t val)
void pci_out_32 (uint32_t base, uint32_t addr, uint32_t val)
uint8_t pci_in_8 (uint32_t base, uint32_t addr)
int16_t pci_in_le16 (uint32_t base, uint32_t addr)
uint32_t pci_in_le32 (uint32_t base, uint32_t addr)
int16_t pci_in_16 (uint32_t base, uint32_t addr)
uint32_t pci_in_32 (uint32_t base, uint32_t addr)
void pci_out_8 (uint32_t base, uint32_t addr, uint8_t val)
void pci_out_le16 (uint32_t base, uint32_t addr, uint16_t val)
void pci_out_16 (uint32_t base, uint32_t addr, uint16_t val)

Variables

const pci_config_access_functions pci_indirect_functions

Macro Definition Documentation

◆ in_16

#define in_16 ( _addr)
Value:
pci_in_16( BSP_PCI_BASE_ADDRESS, _addr )

◆ in_32

#define in_32 ( _addr)
Value:
pci_in_32( BSP_PCI_BASE_ADDRESS, _addr )

◆ in_8

#define in_8 ( _addr)
Value:
pci_in_8( BSP_PCI_BASE_ADDRESS, _addr )

◆ in_le16

#define in_le16 ( _addr)
Value:
pci_in_le16( BSP_PCI_BASE_ADDRESS, _addr )

◆ in_le32

#define in_le32 ( _addr)
Value:
pci_in_le32( BSP_PCI_BASE_ADDRESS, _addr )

◆ out_16

#define out_16 ( _addr,
_val )
Value:
pci_out_16( BSP_PCI_BASE_ADDRESS, _addr, _val )

◆ out_32 [1/2]

#define out_32 ( _addr,
_val )
Value:
pci_out_32(BSP_PCI_BASE_ADDRESS, _addr, _val)

◆ out_32 [2/2]

#define out_32 ( _addr,
_val )
Value:
pci_out_32(BSP_PCI_BASE_ADDRESS, _addr, _val)

◆ out_8

#define out_8 ( _addr,
_val )
Value:
pci_out_8( BSP_PCI_BASE_ADDRESS, _addr, _val )

◆ out_le16

#define out_le16 ( _addr,
_val )
Value:
pci_out_le16( BSP_PCI_BASE_ADDRESS, _addr, _val )

◆ out_le32

#define out_le32 ( _addr,
_val )
Value:
pci_out_le32(BSP_PCI_BASE_ADDRESS, _addr, _val)