generic.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. #include <linux/init.h>
  11. #include <linux/ioport.h> /* for struct resource */
  12. extern struct resource txx9_ce_res[];
  13. extern char txx9_pcode_str[8];
  14. void txx9_reg_res_init(unsigned int pcode, unsigned long base,
  15. unsigned long size);
  16. extern unsigned int txx9_master_clock;
  17. extern unsigned int txx9_cpu_clock;
  18. extern unsigned int txx9_gbus_clock;
  19. struct pci_dev;
  20. struct txx9_board_vec {
  21. const char *system;
  22. void (*prom_init)(void);
  23. void (*mem_setup)(void);
  24. void (*irq_setup)(void);
  25. void (*time_init)(void);
  26. void (*arch_init)(void);
  27. void (*device_init)(void);
  28. #ifdef CONFIG_PCI
  29. int (*pci_map_irq)(const struct pci_dev *dev, u8 slot, u8 pin);
  30. #endif
  31. };
  32. extern struct txx9_board_vec *txx9_board_vec;
  33. extern int (*txx9_irq_dispatch)(int pending);
  34. void prom_init_cmdline(void);
  35. char *prom_getcmdline(void);
  36. #endif /* __ASM_TXX9_GENERIC_H */