xref: /linux/arch/mips/include/asm/txx9/pci.h (revision cc04a46f11ea046ed53e2c832ae29e4790f7e35f)
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 
9 #include <linux/pci.h>
10 
11 extern struct pci_controller txx9_primary_pcic;
12 struct pci_controller *
13 txx9_alloc_pci_controller(struct pci_controller *pcic,
14 			  unsigned long mem_base, unsigned long mem_size,
15 			  unsigned long io_base, unsigned long io_size);
16 
17 int txx9_pci66_check(struct pci_controller *hose, int top_bus,
18 			int current_bus);
19 extern int txx9_pci_mem_high __initdata;
20 
21 extern int txx9_pci_option;
22 #define TXX9_PCI_OPT_PICMG	0x0002
23 #define TXX9_PCI_OPT_CLK_33	0x0008
24 #define TXX9_PCI_OPT_CLK_66	0x0010
25 #define TXX9_PCI_OPT_CLK_MASK	\
26 	(TXX9_PCI_OPT_CLK_33 | TXX9_PCI_OPT_CLK_66)
27 #define TXX9_PCI_OPT_CLK_AUTO	TXX9_PCI_OPT_CLK_MASK
28 
29 enum txx9_pci_err_action {
30 	TXX9_PCI_ERR_REPORT,
31 	TXX9_PCI_ERR_IGNORE,
32 	TXX9_PCI_ERR_PANIC,
33 };
34 extern enum txx9_pci_err_action txx9_pci_err_action;
35 
36 extern char * (*txx9_board_pcibios_setup)(char *str);
37 char *txx9_pcibios_setup(char *str);
38 
39 #endif /* __ASM_TXX9_PCI_H */
40