4 Created: Jan 2000 by Philip Homburg <philip@cs.vu.nl>
7 #include <minix/drivers.h>
8 #include <minix/driver.h>
11 /* tempory functions: to be replaced later (see pci_intel.h) */
12 _PROTOTYPE( unsigned pci_inb
, (u16_t port
) );
13 _PROTOTYPE( unsigned pci_inw
, (u16_t port
) );
14 _PROTOTYPE( unsigned pci_inl
, (u16_t port
) );
16 _PROTOTYPE( void pci_outb
, (u16_t port
, u8_t value
) );
17 _PROTOTYPE( void pci_outw
, (u16_t port
, u16_t value
) );
18 _PROTOTYPE( void pci_outl
, (u16_t port
, u32_t value
) );
74 #define NR_DRIVERS NR_SYS_PROCS
76 #define PCI_IB_PIIX 1 /* Intel PIIX compatible ISA bridge */
77 #define PCI_IB_VIA 2 /* VIA compatible ISA bridge */
78 #define PCI_IB_AMD 3 /* AMD compatible ISA bridge */
79 #define PCI_IB_SIS 4 /* SIS compatible ISA bridge */
81 #define PCI_PPB_STD 1 /* Standard PCI-to-PCI bridge */
82 #define PCI_PPB_CB 2 /* Cardbus bridge */
84 #define PCI_AGPB_VIA 3 /* VIA compatible AGP bridge */
86 extern struct pci_vendor pci_vendor_table
[];
87 extern struct pci_device pci_device_table
[];
88 extern struct pci_baseclass pci_baseclass_table
[];
89 extern struct pci_subclass pci_subclass_table
[];
91 extern struct pci_intel_ctrl pci_intel_ctrl
[];
93 extern struct pci_isabridge pci_isabridge
[];
94 extern struct pci_pcibridge pci_pcibridge
[];
96 /* Function prototypes. */
97 _PROTOTYPE( int sef_cb_init_fresh
, (int type
, sef_init_info_t
*info
) );
98 _PROTOTYPE( int map_service
, (struct rprocpub
*rpub
) );
99 _PROTOTYPE( int pci_reserve2
, (int devind
, endpoint_t proc
) );
100 _PROTOTYPE( void pci_release
, (endpoint_t proc
) );
101 _PROTOTYPE( int pci_first_dev_a
, (struct rs_pci
*aclp
, int *devindp
,
102 u16_t
*vidp
, u16_t
*didp
) );
103 _PROTOTYPE( int pci_next_dev_a
, (struct rs_pci
*aclp
, int *devindp
,
104 u16_t
*vidp
, u16_t
*didp
) );
106 _PROTOTYPE( int pci_attr_r8_s
, (int devind
, int port
, u8_t
*vp
) );
107 _PROTOTYPE( int pci_attr_r32_s
, (int devind
, int port
, u32_t
*vp
) );
108 _PROTOTYPE( int pci_slot_name_s
, (int devind
, char **cpp
) );
109 _PROTOTYPE( int pci_ids_s
, (int devind
, u16_t
*vidp
, u16_t
*didp
) );
112 * $PchId: pci.h,v 1.4 2001/12/06 20:21:22 philip Exp $