pci-frv.h 1013 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Low-Level PCI Access for FRV machines.
  3. *
  4. * (c) 1999 Martin Mares <mj@ucw.cz>
  5. */
  6. #include <asm/sections.h>
  7. #undef DEBUG
  8. #ifdef DEBUG
  9. #define DBG(x...) printk(x)
  10. #else
  11. #define DBG(x...)
  12. #endif
  13. #define PCI_PROBE_BIOS 0x0001
  14. #define PCI_PROBE_CONF1 0x0002
  15. #define PCI_PROBE_CONF2 0x0004
  16. #define PCI_NO_SORT 0x0100
  17. #define PCI_BIOS_SORT 0x0200
  18. #define PCI_NO_CHECKS 0x0400
  19. #define PCI_ASSIGN_ROMS 0x1000
  20. #define PCI_BIOS_IRQ_SCAN 0x2000
  21. #define PCI_ASSIGN_ALL_BUSSES 0x4000
  22. extern unsigned int __nongpreldata pci_probe;
  23. /* pci-frv.c */
  24. extern unsigned int pcibios_max_latency;
  25. void pcibios_resource_survey(void);
  26. int pcibios_enable_resources(struct pci_dev *, int);
  27. /* pci-vdk.c */
  28. extern int __nongpreldata pcibios_last_bus;
  29. extern struct pci_bus *__nongpreldata pci_root_bus;
  30. extern struct pci_ops *__nongpreldata pci_root_ops;
  31. /* pci-irq.c */
  32. extern unsigned int pcibios_irq_mask;
  33. void pcibios_irq_init(void);
  34. void pcibios_fixup_irqs(void);
  35. void pcibios_enable_irq(struct pci_dev *dev);