PageRenderTime 20ms CodeModel.GetById 12ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/arch/mips/include/asm/txx9/pci.h

http://github.com/mirrors/linux
C Header | 39 lines | 27 code | 7 blank | 5 comment | 0 complexity | a2f409fc6ecfc47d796b16001fb76c3b MD5 | raw file
 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
11extern struct pci_controller txx9_primary_pcic;
12struct pci_controller *
13txx9_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
17int txx9_pci66_check(struct pci_controller *hose, int top_bus,
18			int current_bus);
19extern int txx9_pci_mem_high __initdata;
20
21extern 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
29enum txx9_pci_err_action {
30	TXX9_PCI_ERR_REPORT,
31	TXX9_PCI_ERR_IGNORE,
32	TXX9_PCI_ERR_PANIC,
33};
34extern enum txx9_pci_err_action txx9_pci_err_action;
35
36extern char * (*txx9_board_pcibios_setup)(char *str);
37char *txx9_pcibios_setup(char *str);
38
39#endif /* __ASM_TXX9_PCI_H */