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