hawk_defs.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * include/asm-ppc/hawk_defs.h
  3. *
  4. * Definitions for Motorola MCG Falcon/Raven & HAWK North Bridge & Memory ctlr.
  5. *
  6. * Author: Mark A. Greer
  7. * mgreer@mvista.com
  8. *
  9. * Modified by Randy Vinson (rvinson@mvista.com)
  10. *
  11. * 2001-2004 (c) MontaVista, Software, Inc. This file is licensed under
  12. * the terms of the GNU General Public License version 2. This program
  13. * is licensed "as is" without any warranty of any kind, whether express
  14. * or implied.
  15. */
  16. #ifndef __ASMPPC_HAWK_DEFS_H
  17. #define __ASMPPC_HAWK_DEFS_H
  18. #include <asm/pci-bridge.h>
  19. /*
  20. * The Falcon/Raven and HAWK have 4 sets of registers:
  21. * 1) PPC Registers which define the mappings from PPC bus to PCI bus,
  22. * etc.
  23. * 2) PCI Registers which define the mappings from PCI bus to PPC bus and the
  24. * MPIC base address.
  25. * 3) MPIC registers
  26. * 4) System Memory Controller (SMC) registers.
  27. */
  28. #define HAWK_PCI_CONFIG_ADDR_OFF 0x00000cf8
  29. #define HAWK_PCI_CONFIG_DATA_OFF 0x00000cfc
  30. #define HAWK_MPIC_SIZE 0x00040000U
  31. #define HAWK_SMC_SIZE 0x00001000U
  32. /*
  33. * Define PPC register offsets.
  34. */
  35. #define HAWK_PPC_XSADD0_OFF 0x40
  36. #define HAWK_PPC_XSOFF0_OFF 0x44
  37. #define HAWK_PPC_XSADD1_OFF 0x48
  38. #define HAWK_PPC_XSOFF1_OFF 0x4c
  39. #define HAWK_PPC_XSADD2_OFF 0x50
  40. #define HAWK_PPC_XSOFF2_OFF 0x54
  41. #define HAWK_PPC_XSADD3_OFF 0x58
  42. #define HAWK_PPC_XSOFF3_OFF 0x5c
  43. /*
  44. * Define PCI register offsets.
  45. */
  46. #define HAWK_PCI_PSADD0_OFF 0x80
  47. #define HAWK_PCI_PSOFF0_OFF 0x84
  48. #define HAWK_PCI_PSADD1_OFF 0x88
  49. #define HAWK_PCI_PSOFF1_OFF 0x8c
  50. #define HAWK_PCI_PSADD2_OFF 0x90
  51. #define HAWK_PCI_PSOFF2_OFF 0x94
  52. #define HAWK_PCI_PSADD3_OFF 0x98
  53. #define HAWK_PCI_PSOFF3_OFF 0x9c
  54. /*
  55. * Define the System Memory Controller (SMC) register offsets.
  56. */
  57. #define HAWK_SMC_RAM_A_SIZE_REG_OFF 0x10
  58. #define HAWK_SMC_RAM_B_SIZE_REG_OFF 0x11
  59. #define HAWK_SMC_RAM_C_SIZE_REG_OFF 0x12
  60. #define HAWK_SMC_RAM_D_SIZE_REG_OFF 0x13
  61. #define HAWK_SMC_RAM_E_SIZE_REG_OFF 0xc0 /* HAWK Only */
  62. #define HAWK_SMC_RAM_F_SIZE_REG_OFF 0xc1 /* HAWK Only */
  63. #define HAWK_SMC_RAM_G_SIZE_REG_OFF 0xc2 /* HAWK Only */
  64. #define HAWK_SMC_RAM_H_SIZE_REG_OFF 0xc3 /* HAWK Only */
  65. #define FALCON_SMC_REG_COUNT 4
  66. #define HAWK_SMC_REG_COUNT 8
  67. #endif /* __ASMPPC_HAWK_DEFS_H */