Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | /* $Id: pci_impl.h,v 1.9 2001/06/13 06:34:30 davem Exp $ |
2 | * pci_impl.h: Helper definitions for PCI controller support. | |
3 | * | |
4 | * Copyright (C) 1999 David S. Miller (davem@redhat.com) | |
5 | */ | |
6 | ||
7 | #ifndef PCI_IMPL_H | |
8 | #define PCI_IMPL_H | |
9 | ||
10 | #include <linux/types.h> | |
11 | #include <linux/spinlock.h> | |
12 | #include <asm/io.h> | |
de8d28b1 | 13 | #include <asm/prom.h> |
1da177e4 LT |
14 | |
15 | extern struct pci_controller_info *pci_controller_root; | |
16 | ||
17 | extern int pci_num_controllers; | |
18 | ||
19 | /* PCI bus scanning and fixup support. */ | |
a2fb23af | 20 | extern struct pci_bus *pci_scan_one_pbm(struct pci_pbm_info *pbm); |
1da177e4 LT |
21 | extern void pci_register_legacy_regions(struct resource *io_res, |
22 | struct resource *mem_res); | |
23 | ||
24 | /* Error reporting support. */ | |
25 | extern void pci_scan_for_target_abort(struct pci_controller_info *, struct pci_pbm_info *, struct pci_bus *); | |
26 | extern void pci_scan_for_master_abort(struct pci_controller_info *, struct pci_pbm_info *, struct pci_bus *); | |
27 | extern void pci_scan_for_parity_error(struct pci_controller_info *, struct pci_pbm_info *, struct pci_bus *); | |
28 | ||
29 | /* Configuration space access. */ | |
30 | extern void pci_config_read8(u8 *addr, u8 *ret); | |
31 | extern void pci_config_read16(u16 *addr, u16 *ret); | |
32 | extern void pci_config_read32(u32 *addr, u32 *ret); | |
33 | extern void pci_config_write8(u8 *addr, u8 val); | |
34 | extern void pci_config_write16(u16 *addr, u16 val); | |
35 | extern void pci_config_write32(u32 *addr, u32 val); | |
36 | ||
37 | #endif /* !(PCI_IMPL_H) */ |