pci.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * This file is subject to the terms and conditions of the GNU General Public
  3. * License. See the file "COPYING" in the main directory of this archive
  4. * for more details.
  5. */
  6. #ifndef __ASM_TXX9_PCI_H
  7. #define __ASM_TXX9_PCI_H
  8. #include <linux/pci.h>
  9. extern struct pci_controller txx9_primary_pcic;
  10. struct pci_controller *
  11. txx9_alloc_pci_controller(struct pci_controller *pcic,
  12. unsigned long mem_base, unsigned long mem_size,
  13. unsigned long io_base, unsigned long io_size);
  14. int txx9_pci66_check(struct pci_controller *hose, int top_bus,
  15. int current_bus);
  16. extern int txx9_pci_mem_high __initdata;
  17. extern int txx9_pci_option;
  18. #define TXX9_PCI_OPT_PICMG 0x0002
  19. #define TXX9_PCI_OPT_CLK_33 0x0008
  20. #define TXX9_PCI_OPT_CLK_66 0x0010
  21. #define TXX9_PCI_OPT_CLK_MASK \
  22. (TXX9_PCI_OPT_CLK_33 | TXX9_PCI_OPT_CLK_66)
  23. #define TXX9_PCI_OPT_CLK_AUTO TXX9_PCI_OPT_CLK_MASK
  24. enum txx9_pci_err_action {
  25. TXX9_PCI_ERR_REPORT,
  26. TXX9_PCI_ERR_IGNORE,
  27. TXX9_PCI_ERR_PANIC,
  28. };
  29. extern enum txx9_pci_err_action txx9_pci_err_action;
  30. extern char * (*txx9_board_pcibios_setup)(char *str);
  31. char *txx9_pcibios_setup(char *str);
  32. #endif /* __ASM_TXX9_PCI_H */