ibm4xx.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. /*
  2. *
  3. * Copyright (c) 1999 Grant Erickson <grant@lcse.umn.edu>
  4. *
  5. * Module name: ibm4xx.h
  6. *
  7. * Description:
  8. * A generic include file which pulls in appropriate include files
  9. * for specific board types based on configuration settings.
  10. *
  11. */
  12. #ifdef __KERNEL__
  13. #ifndef __ASM_IBM4XX_H__
  14. #define __ASM_IBM4XX_H__
  15. #include <linux/config.h>
  16. #include <asm/types.h>
  17. #ifdef CONFIG_40x
  18. #if defined(CONFIG_BUBINGA)
  19. #include <platforms/4xx/bubinga.h>
  20. #endif
  21. #if defined(CONFIG_CPCI405)
  22. #include <platforms/4xx/cpci405.h>
  23. #endif
  24. #if defined(CONFIG_EP405)
  25. #include <platforms/4xx/ep405.h>
  26. #endif
  27. #if defined(CONFIG_REDWOOD_5)
  28. #include <platforms/4xx/redwood5.h>
  29. #endif
  30. #if defined(CONFIG_REDWOOD_6)
  31. #include <platforms/4xx/redwood6.h>
  32. #endif
  33. #if defined(CONFIG_SYCAMORE)
  34. #include <platforms/4xx/sycamore.h>
  35. #endif
  36. #if defined(CONFIG_WALNUT)
  37. #include <platforms/4xx/walnut.h>
  38. #endif
  39. #if defined(CONFIG_XILINX_ML300)
  40. #include <platforms/4xx/xilinx_ml300.h>
  41. #endif
  42. #ifndef __ASSEMBLY__
  43. #ifdef CONFIG_40x
  44. /*
  45. * The "residual" board information structure the boot loader passes
  46. * into the kernel.
  47. */
  48. extern bd_t __res;
  49. #endif
  50. void ppc4xx_setup_arch(void);
  51. void ppc4xx_map_io(void);
  52. void ppc4xx_init_IRQ(void);
  53. void ppc4xx_init(unsigned long r3, unsigned long r4, unsigned long r5,
  54. unsigned long r6, unsigned long r7);
  55. #endif
  56. #ifndef PPC4xx_MACHINE_NAME
  57. #define PPC4xx_MACHINE_NAME "Unidentified 4xx class"
  58. #endif
  59. /* IO_BASE is for PCI I/O.
  60. * ISA not supported, just here to resolve copilation.
  61. */
  62. #ifndef _IO_BASE
  63. #define _IO_BASE 0xe8000000 /* The PCI address window */
  64. #define _ISA_MEM_BASE 0
  65. #define PCI_DRAM_OFFSET 0
  66. #endif
  67. #elif CONFIG_44x
  68. #if defined(CONFIG_BAMBOO)
  69. #include <platforms/4xx/bamboo.h>
  70. #endif
  71. #if defined(CONFIG_EBONY)
  72. #include <platforms/4xx/ebony.h>
  73. #endif
  74. #if defined(CONFIG_LUAN)
  75. #include <platforms/4xx/luan.h>
  76. #endif
  77. #if defined(CONFIG_YUCCA)
  78. #include <platforms/4xx/yucca.h>
  79. #endif
  80. #if defined(CONFIG_OCOTEA)
  81. #include <platforms/4xx/ocotea.h>
  82. #endif
  83. #ifndef __ASSEMBLY__
  84. #ifdef CONFIG_40x
  85. /*
  86. * The "residual" board information structure the boot loader passes
  87. * into the kernel.
  88. */
  89. extern bd_t __res;
  90. #endif
  91. #endif
  92. #endif /* CONFIG_40x */
  93. #endif /* __ASM_IBM4XX_H__ */
  94. #endif /* __KERNEL__ */