add/re-enable at_wini debug output
[minix3.git] / drivers / pci / pci.h
blobb20942659b95918bbcd5e62f58b5f700d3e4f23c
1 /*
2 pci.h
4 Created: Jan 2000 by Philip Homburg <philip@cs.vu.nl>
5 */
7 /* tempory functions: to be replaced later (see pci_intel.h) */
8 _PROTOTYPE( unsigned pci_inb, (U16_t port) );
9 _PROTOTYPE( unsigned pci_inw, (U16_t port) );
10 _PROTOTYPE( unsigned pci_inl, (U16_t port) );
12 _PROTOTYPE( void pci_outb, (U16_t port, U8_t value) );
13 _PROTOTYPE( void pci_outw, (U16_t port, U16_t value) );
14 _PROTOTYPE( void pci_outl, (U16_t port, U32_t value) );
16 struct pci_vendor
18 u16_t vid;
19 char *name;
22 struct pci_device
24 u16_t vid;
25 u16_t did;
26 char *name;
29 struct pci_baseclass
31 u8_t baseclass;
32 char *name;
35 struct pci_subclass
37 u8_t baseclass;
38 u8_t subclass;
39 u16_t infclass;
40 char *name;
43 struct pci_intel_ctrl
45 u16_t vid;
46 u16_t did;
49 struct pci_isabridge
51 u16_t vid;
52 u16_t did;
53 int checkclass;
54 int type;
57 struct pci_pcibridge
59 u16_t vid;
60 u16_t did;
61 int type;
64 #define PCI_IB_PIIX 1 /* Intel PIIX compatible ISA bridge */
65 #define PCI_IB_VIA 2 /* VIA compatible ISA bridge */
66 #define PCI_IB_AMD 3 /* AMD compatible ISA bridge */
67 #define PCI_IB_SIS 4 /* SIS compatible ISA bridge */
69 #define PCI_PPB_STD 1 /* Standard PCI-to-PCI bridge */
70 #define PCI_PPB_CB 2 /* Cardbus bridge */
71 /* Still needed? */
72 #define PCI_AGPB_VIA 3 /* VIA compatible AGP bridge */
74 extern struct pci_vendor pci_vendor_table[];
75 extern struct pci_device pci_device_table[];
76 extern struct pci_baseclass pci_baseclass_table[];
77 extern struct pci_subclass pci_subclass_table[];
78 #if 0
79 extern struct pci_intel_ctrl pci_intel_ctrl[];
80 #endif
81 extern struct pci_isabridge pci_isabridge[];
82 extern struct pci_pcibridge pci_pcibridge[];
84 /* Utility functions */
85 _PROTOTYPE( int pci_reserve3, (int devind, int proc, char name[M3_STRING]));
86 _PROTOTYPE( void pci_release, (char name[M3_STRING]) );
87 _PROTOTYPE( int pci_first_dev_a, (struct rs_pci *aclp, int *devindp,
88 u16_t *vidp, u16_t *didp) );
89 _PROTOTYPE( int pci_next_dev_a, (struct rs_pci *aclp, int *devindp,
90 u16_t *vidp, u16_t *didp) );
93 * $PchId: pci.h,v 1.4 2001/12/06 20:21:22 philip Exp $