blob: 089eeba4f3bc4f92b5a28c32e071289723cb8bc3 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * Low-Level PCI Access for FRV machines.
3 *
4 * (c) 1999 Martin Mares <mj@ucw.cz>
5 */
6
7#include <asm/sections.h>
8
9#undef DEBUG
10
11#ifdef DEBUG
12#define DBG(x...) printk(x)
13#else
14#define DBG(x...)
15#endif
16
17#define PCI_PROBE_BIOS 0x0001
18#define PCI_PROBE_CONF1 0x0002
19#define PCI_PROBE_CONF2 0x0004
Linus Torvalds1da177e2005-04-16 15:20:36 -070020#define PCI_NO_CHECKS 0x0400
21#define PCI_ASSIGN_ROMS 0x1000
22#define PCI_BIOS_IRQ_SCAN 0x2000
23#define PCI_ASSIGN_ALL_BUSSES 0x4000
24
25extern unsigned int __nongpreldata pci_probe;
26
27/* pci-frv.c */
28
Linus Torvalds1da177e2005-04-16 15:20:36 -070029void pcibios_resource_survey(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070030
31/* pci-vdk.c */
32
33extern int __nongpreldata pcibios_last_bus;
34extern struct pci_bus *__nongpreldata pci_root_bus;
35extern struct pci_ops *__nongpreldata pci_root_ops;
36
37/* pci-irq.c */
38extern unsigned int pcibios_irq_mask;
39
40void pcibios_irq_init(void);
41void pcibios_fixup_irqs(void);
42void pcibios_enable_irq(struct pci_dev *dev);