ReactOS
0.4.15-dev-2103-g9dff498
|
Go to the source code of this file.
Classes | |
struct | _pci_cfg |
struct | _pci_desc |
Macros | |
#define | rev16(x) ((((x)>>8)&0xff)|(((x)&0xff)<<8)) |
#define | rev32(x) ((((x)>>24)&0xff)|(((x)>>8)&0xff00)|(((x)&0xff00)<<8)|(((x)&0xff)<<24)) |
#define | pci_addr(bus, dev, fn, reg) |
#define | pci_cfg_addr(bus, dev, fn, reg) pci_addr(bus,dev,fn,reg) |
#define | PCI_VENDORID 0 |
#define | PCI_DEVICEID 2 |
#define | PCI_HEADER_TYPE 0xe |
#define | PCI_BASECLASS 0xb |
Typedefs | |
typedef struct _pci_cfg | pci_cfg |
typedef struct _pci_desc | pci_desc |
Functions | |
unsigned long | pci_read (pci_desc *desc, int bus, int dev, int fn, int reg, int len) |
void | pci_read_bar (pci_desc *desc, int bus, int dev, int fn, int bar, struct _pci_bar *bar_data) |
void | pci_write (pci_desc *desc, int bus, int dev, int fn, int reg, int len, int val) |
void | pci_write_bar (pci_desc *desc, int bus, int dev, int fn, int bar, struct _pci_bar *bar_data) |
void | print_bar (struct _pci_bar *bar) |
void | pci_setup (PCONFIGURATION_COMPONENT_DATA pcibus, pci_desc *desc) |
Variables | |
pci_desc | pci1_desc = { (void *)0x80000cf8 } |
Definition at line 16 of file prep_pci.c.
#define PCI_BASECLASS 0xb |
Definition at line 94 of file prep_pci.c.
Definition at line 30 of file prep_pci.c.
#define PCI_DEVICEID 2 |
Definition at line 92 of file prep_pci.c.
#define PCI_HEADER_TYPE 0xe |
Definition at line 93 of file prep_pci.c.
#define PCI_VENDORID 0 |
Definition at line 91 of file prep_pci.c.
Definition at line 14 of file prep_pci.c.
Definition at line 15 of file prep_pci.c.
Definition at line 32 of file prep_pci.c.
Referenced by pci_read_bar(), pci_setup(), and pci_write().
void pci_read_bar | ( | pci_desc * | desc, |
int | bus, | ||
int | dev, | ||
int | fn, | ||
int | bar, | ||
struct _pci_bar * | bar_data | ||
) |
Definition at line 57 of file prep_pci.c.
Referenced by vga_setup().
void pci_setup | ( | PCONFIGURATION_COMPONENT_DATA | pcibus, |
pci_desc * | desc | ||
) |
Definition at line 96 of file prep_pci.c.
Definition at line 68 of file prep_pci.c.
Referenced by pci_write_bar().
void pci_write_bar | ( | pci_desc * | desc, |
int | bus, | ||
int | dev, | ||
int | fn, | ||
int | bar, | ||
struct _pci_bar * | bar_data | ||
) |
Definition at line 83 of file prep_pci.c.
Definition at line 13 of file prep_pci.c.
Referenced by pci_setup().