Atsushi Nemoto | 89d63fe | 2008-07-11 00:33:08 +0900 | [diff] [blame] | 1 | /* |
| 2 | * linux/include/asm-mips/txx9/generic.h |
| 3 | * |
| 4 | * This file is subject to the terms and conditions of the GNU General Public |
| 5 | * License. See the file "COPYING" in the main directory of this archive |
| 6 | * for more details. |
| 7 | */ |
| 8 | #ifndef __ASM_TXX9_GENERIC_H |
| 9 | #define __ASM_TXX9_GENERIC_H |
| 10 | |
| 11 | #include <linux/init.h> |
| 12 | #include <linux/ioport.h> /* for struct resource */ |
| 13 | |
| 14 | extern struct resource txx9_ce_res[]; |
| 15 | extern char txx9_pcode_str[8]; |
| 16 | void txx9_reg_res_init(unsigned int pcode, unsigned long base, |
| 17 | unsigned long size); |
| 18 | |
| 19 | extern unsigned int txx9_master_clock; |
| 20 | extern unsigned int txx9_cpu_clock; |
| 21 | extern unsigned int txx9_gbus_clock; |
| 22 | |
Atsushi Nemoto | edcaf1a | 2008-07-11 23:27:54 +0900 | [diff] [blame^] | 23 | struct pci_dev; |
| 24 | struct txx9_board_vec { |
| 25 | unsigned long type; |
| 26 | const char *system; |
| 27 | void (*prom_init)(void); |
| 28 | void (*mem_setup)(void); |
| 29 | void (*irq_setup)(void); |
| 30 | void (*time_init)(void); |
| 31 | void (*arch_init)(void); |
| 32 | void (*device_init)(void); |
| 33 | #ifdef CONFIG_PCI |
| 34 | int (*pci_map_irq)(const struct pci_dev *dev, u8 slot, u8 pin); |
| 35 | #endif |
| 36 | }; |
| 37 | extern struct txx9_board_vec *txx9_board_vec; |
| 38 | extern int (*txx9_irq_dispatch)(int pending); |
| 39 | void prom_init_cmdline(void); |
| 40 | |
Atsushi Nemoto | 89d63fe | 2008-07-11 00:33:08 +0900 | [diff] [blame] | 41 | #endif /* __ASM_TXX9_GENERIC_H */ |