1 | /*
|
---|
2 | pci.h
|
---|
3 |
|
---|
4 | Created: Jan 2000 by Philip Homburg <philip@cs.vu.nl>
|
---|
5 | */
|
---|
6 |
|
---|
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) );
|
---|
11 |
|
---|
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) );
|
---|
15 |
|
---|
16 | struct pci_vendor
|
---|
17 | {
|
---|
18 | u16_t vid;
|
---|
19 | char *name;
|
---|
20 | };
|
---|
21 |
|
---|
22 | struct pci_device
|
---|
23 | {
|
---|
24 | u16_t vid;
|
---|
25 | u16_t did;
|
---|
26 | char *name;
|
---|
27 | };
|
---|
28 |
|
---|
29 | struct pci_baseclass
|
---|
30 | {
|
---|
31 | u8_t baseclass;
|
---|
32 | char *name;
|
---|
33 | };
|
---|
34 |
|
---|
35 | struct pci_subclass
|
---|
36 | {
|
---|
37 | u8_t baseclass;
|
---|
38 | u8_t subclass;
|
---|
39 | u16_t infclass;
|
---|
40 | char *name;
|
---|
41 | };
|
---|
42 |
|
---|
43 | struct pci_intel_ctrl
|
---|
44 | {
|
---|
45 | u16_t vid;
|
---|
46 | u16_t did;
|
---|
47 | };
|
---|
48 |
|
---|
49 | struct pci_isabridge
|
---|
50 | {
|
---|
51 | u16_t vid;
|
---|
52 | u16_t did;
|
---|
53 | int checkclass;
|
---|
54 | int type;
|
---|
55 | };
|
---|
56 |
|
---|
57 | struct pci_pcibridge
|
---|
58 | {
|
---|
59 | u16_t vid;
|
---|
60 | u16_t did;
|
---|
61 | int type;
|
---|
62 | };
|
---|
63 |
|
---|
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 */
|
---|
68 |
|
---|
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 */
|
---|
73 |
|
---|
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[];
|
---|
83 |
|
---|
84 | /* Utility functions */
|
---|
85 | _PROTOTYPE( void pci_reserve3, (int devind, int proc, char name[M3_STRING]));
|
---|
86 | _PROTOTYPE( void pci_release, (char name[M3_STRING]) );
|
---|
87 |
|
---|
88 | /*
|
---|
89 | * $PchId: pci.h,v 1.4 2001/12/06 20:21:22 philip Exp $
|
---|
90 | */
|
---|