52a3801208
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96
22 lines
339 B
C
Executable File
22 lines
339 B
C
Executable File
#ifndef _PCI_P_H
|
|
#define _PCI_P_H
|
|
|
|
#define CONFIG_ADDRESS 0xcf8
|
|
#define CONFIG_DATA 0xcfc
|
|
|
|
struct pci_config_address {
|
|
unsigned reg : 8,
|
|
function : 3,
|
|
unit : 5,
|
|
bus : 8,
|
|
reserved : 7,
|
|
enable : 1;
|
|
};
|
|
|
|
void dump_pci_config(struct pci_cfg *cfg);
|
|
int pci_probe(uint8 bus, uint8 unit, uint8 function, struct pci_cfg *cfg);
|
|
|
|
#endif
|
|
|
|
|