Import 2.3.18pre1
[davej-history.git] / include / asm-mips / pci.h
blobfc7b1cecbf4602ee0fa4c4261115baf90940b89e
1 /* $Id: pci.h,v 1.4 1998/05/08 01:44:30 ralf Exp $
3 * This file is subject to the terms and conditions of the GNU General Public
4 * License. See the file "COPYING" in the main directory of this archive
5 * for more details.
7 * Declarations for the MIPS specific implementation of the PCI BIOS32 services.
8 */
9 #ifndef __ASM_MIPS_PCI_H
10 #define __ASM_MIPS_PCI_H
12 struct pci_ops {
13 void (*pcibios_fixup) (void);
14 int (*pcibios_read_config_byte) (unsigned char bus,
15 unsigned char dev_fn,
16 unsigned char where,
17 unsigned char *val);
18 int (*pcibios_read_config_word) (unsigned char bus,
19 unsigned char dev_fn,
20 unsigned char where,
21 unsigned short *val);
22 int (*pcibios_read_config_dword) (unsigned char bus,
23 unsigned char dev_fn,
24 unsigned char where,
25 unsigned int *val);
26 int (*pcibios_write_config_byte) (unsigned char bus,
27 unsigned char dev_fn,
28 unsigned char where,
29 unsigned char val);
30 int (*pcibios_write_config_word) (unsigned char bus,
31 unsigned char dev_fn,
32 unsigned char where,
33 unsigned short val);
34 int (*pcibios_write_config_dword) (unsigned char bus,
35 unsigned char dev_fn,
36 unsigned char where,
37 unsigned int val);
40 extern struct pci_ops *pci_ops;
42 #endif /* __ASM_MIPS_PCI_H */