ibm4xx.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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 <asm/types.h>
  16. #ifdef CONFIG_40x
  17. #if defined(CONFIG_BUBINGA)
  18. #include <platforms/4xx/bubinga.h>
  19. #endif
  20. #if defined(CONFIG_CPCI405)
  21. #include <platforms/4xx/cpci405.h>
  22. #endif
  23. #if defined(CONFIG_EP405)
  24. #include <platforms/4xx/ep405.h>
  25. #endif
  26. #if defined(CONFIG_REDWOOD_5)
  27. #include <platforms/4xx/redwood5.h>
  28. #endif
  29. #if defined(CONFIG_REDWOOD_6)
  30. #include <platforms/4xx/redwood6.h>
  31. #endif
  32. #if defined(CONFIG_SYCAMORE)
  33. #include <platforms/4xx/sycamore.h>
  34. #endif
  35. #if defined(CONFIG_WALNUT)
  36. #include <platforms/4xx/walnut.h>
  37. #endif
  38. #if defined(CONFIG_XILINX_ML300)
  39. #include <platforms/4xx/xilinx_ml300.h>
  40. #endif
  41. #if defined(CONFIG_XILINX_ML403)
  42. #include <platforms/4xx/xilinx_ml403.h>
  43. #endif
  44. #ifndef __ASSEMBLY__
  45. #ifdef CONFIG_40x
  46. /*
  47. * The "residual" board information structure the boot loader passes
  48. * into the kernel.
  49. */
  50. extern bd_t __res;
  51. #endif
  52. void ppc4xx_setup_arch(void);
  53. void ppc4xx_map_io(void);
  54. void ppc4xx_init_IRQ(void);
  55. void ppc4xx_init(unsigned long r3, unsigned long r4, unsigned long r5,
  56. unsigned long r6, unsigned long r7);
  57. #endif
  58. #ifndef PPC4xx_MACHINE_NAME
  59. #define PPC4xx_MACHINE_NAME "Unidentified 4xx class"
  60. #endif
  61. /* IO_BASE is for PCI I/O.
  62. * ISA not supported, just here to resolve copilation.
  63. */
  64. #ifndef _IO_BASE
  65. #define _IO_BASE 0xe8000000 /* The PCI address window */
  66. #define _ISA_MEM_BASE 0
  67. #define PCI_DRAM_OFFSET 0
  68. #endif
  69. #elif defined(CONFIG_44x)
  70. #if defined(CONFIG_BAMBOO)
  71. #include <platforms/4xx/bamboo.h>
  72. #endif
  73. #if defined(CONFIG_EBONY)
  74. #include <platforms/4xx/ebony.h>
  75. #endif
  76. #if defined(CONFIG_LUAN)
  77. #include <platforms/4xx/luan.h>
  78. #endif
  79. #if defined(CONFIG_YUCCA)
  80. #include <platforms/4xx/yucca.h>
  81. #endif
  82. #if defined(CONFIG_OCOTEA)
  83. #include <platforms/4xx/ocotea.h>
  84. #endif
  85. #ifndef __ASSEMBLY__
  86. #ifdef CONFIG_40x
  87. /*
  88. * The "residual" board information structure the boot loader passes
  89. * into the kernel.
  90. */
  91. extern bd_t __res;
  92. #endif
  93. #endif
  94. #endif /* CONFIG_40x */
  95. #endif /* __ASM_IBM4XX_H__ */
  96. #endif /* __KERNEL__ */