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.
4 * Copyright (C) 1999 David S. Miller (davem@redhat.com)
10 #include <linux/types.h>
11 #include <linux/spinlock.h>
14 extern struct pci_controller_info
*pci_controller_root
;
16 extern int pci_num_controllers
;
18 /* PCI bus scanning and fixup support. */
19 extern void pci_fixup_host_bridge_self(struct pci_bus
*pbus
);
20 extern void pci_fill_in_pbm_cookies(struct pci_bus
*pbus
,
21 struct pci_pbm_info
*pbm
,
23 extern void pci_record_assignments(struct pci_pbm_info
*pbm
,
24 struct pci_bus
*pbus
);
25 extern void pci_assign_unassigned(struct pci_pbm_info
*pbm
,
26 struct pci_bus
*pbus
);
27 extern void pci_fixup_irq(struct pci_pbm_info
*pbm
,
28 struct pci_bus
*pbus
);
29 extern void pci_determine_66mhz_disposition(struct pci_pbm_info
*pbm
,
30 struct pci_bus
*pbus
);
31 extern void pci_setup_busmastering(struct pci_pbm_info
*pbm
,
32 struct pci_bus
*pbus
);
33 extern void pci_register_legacy_regions(struct resource
*io_res
,
34 struct resource
*mem_res
);
36 /* Error reporting support. */
37 extern void pci_scan_for_target_abort(struct pci_controller_info
*, struct pci_pbm_info
*, struct pci_bus
*);
38 extern void pci_scan_for_master_abort(struct pci_controller_info
*, struct pci_pbm_info
*, struct pci_bus
*);
39 extern void pci_scan_for_parity_error(struct pci_controller_info
*, struct pci_pbm_info
*, struct pci_bus
*);
41 /* Configuration space access. */
42 extern void pci_config_read8(u8
*addr
, u8
*ret
);
43 extern void pci_config_read16(u16
*addr
, u16
*ret
);
44 extern void pci_config_read32(u32
*addr
, u32
*ret
);
45 extern void pci_config_write8(u8
*addr
, u8 val
);
46 extern void pci_config_write16(u16
*addr
, u16 val
);
47 extern void pci_config_write32(u32
*addr
, u32 val
);
49 #endif /* !(PCI_IMPL_H) */