source: trunk/minix/drivers/pci/pci.h@ 12

Last change on this file since 12 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 1.8 KB
Line 
1/*
2pci.h
3
4Created: 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
16struct pci_vendor
17{
18 u16_t vid;
19 char *name;
20};
21
22struct pci_device
23{
24 u16_t vid;
25 u16_t did;
26 char *name;
27};
28
29struct pci_baseclass
30{
31 u8_t baseclass;
32 char *name;
33};
34
35struct pci_subclass
36{
37 u8_t baseclass;
38 u8_t subclass;
39 u16_t infclass;
40 char *name;
41};
42
43struct pci_intel_ctrl
44{
45 u16_t vid;
46 u16_t did;
47};
48
49struct pci_isabridge
50{
51 u16_t vid;
52 u16_t did;
53 int checkclass;
54 int type;
55};
56
57struct 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
74extern struct pci_vendor pci_vendor_table[];
75extern struct pci_device pci_device_table[];
76extern struct pci_baseclass pci_baseclass_table[];
77extern struct pci_subclass pci_subclass_table[];
78#if 0
79extern struct pci_intel_ctrl pci_intel_ctrl[];
80#endif
81extern struct pci_isabridge pci_isabridge[];
82extern 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 */
Note: See TracBrowser for help on using the repository browser.