slarmUnprocessedDataOperation.h 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /*
  2. * arch/arm/mach-netx/include/mach/netx-regs.h
  3. *
  4. * Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2
  8. * as published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  18. */
  19. #ifndef __ASM_ARCH_NETX_REGS_H
  20. #define __ASM_ARCH_NETX_REGS_H
  21. /* offsets relative to the beginning of the io space */
  22. #define NETX_OFS_SYSTEM 0x00000
  23. #define NETX_OFS_MEMCR 0x00100
  24. #define NETX_OFS_DPMAS 0x03000
  25. #define NETX_OFS_GPIO 0x00800
  26. #define NETX_OFS_PIO 0x00900
  27. #define NETX_OFS_UART0 0x00a00
  28. #define NETX_OFS_UART1 0x00a40
  29. #define NETX_OFS_UART2 0x00a80
  30. #define NETX_OF_MIIMU 0x00b00
  31. #define NETX_OFS_SPI 0x00c00
  32. #define NETX_OFS_I2C 0x00d00
  33. #define NETX_OFS_SYSTIME 0x01100
  34. #define NETX_OFS_RTC 0x01200
  35. #define NETX_OFS_EXTBUS 0x03600
  36. #define NETX_OFS_LCD 0x04000
  37. #define NETX_OFS_USB 0x20000
  38. #define NETX_OFS_XMAC0 0x60000
  39. #define NETX_OFS_XMAC1 0x61000
  40. #define NETX_OFS_XMAC2 0x62000
  41. #define NETX_OFS_XMAC3 0x63000
  42. #define NETX_OFS_XMAC(no) (0x60000 + (no) * 0x1000)
  43. #define NETX_OFS_PFIFO 0x64000
  44. #define NETX_OFS_XPEC0 0x70000
  45. #define NETX_OFS_XPEC1 0x74000
  46. #define NETX_OFS_XPEC2 0x78000
  47. #define NETX_OFS_XPEC3 0x7c000
  48. #define NETX_OFS_XPEC(no) (0x70000 + (no) * 0x4000)
  49. #define NETX_OFS_VIC 0xff000
  50. /* physical addresses */
  51. #define NETX_PA_SYSTEM (NETX_IO_PHYS + NETX_OFS_SYSTEM)
  52. #define NETX_PA_MEMCR (NETX_IO_PHYS + NETX_OFS_MEMCR)
  53. #define NETX_PA_DPMAS (NETX_IO_PHYS + NETX_OFS_DPMAS)
  54. #define NETX_PA_GPIO (NETX_IO_PHYS + NETX_OFS_GPIO)
  55. #define NETX_PA_PIO (NETX_IO_PHYS + NETX_OFS_PIO)
  56. #define NETX_PA_UART0 (NETX_IO_PHYS + NETX_OFS_UART0)
  57. #define NETX_PA_UART1 (NETX_IO_PHYS + NETX_OFS_UART1)
  58. #define NETX_PA_UART2 (NETX_IO_PHYS + NETX_OFS_UART2)
  59. #define NETX_PA_MIIMU (NETX_IO_PHYS + NETX_OF_MIIMU)
  60. #define NETX_PA_SPI (NETX_IO_PHYS + NETX_OFS_SPI)
  61. #define NETX_PA_I2C (NETX_IO_PHYS + NETX_OFS_I2C)
  62. #define NETX_PA_SYSTIME (NETX_IO_PHYS + NETX_OFS_SYSTIME)
  63. #define NETX_PA_RTC (NETX_IO_PHYS + NETX_OFS_RTC)
  64. #define NETX_PA_EXTBUS (NETX_IO_PHYS + NETX_OFS_EXTBUS)
  65. #define NETX_PA_LCD (NETX_IO_PHYS + NETX_OFS_LCD)
  66. #define NETX_PA_USB (NETX_IO_PHYS + NETX_OFS_USB)
  67. #define NETX_PA_XMAC0 (NETX_IO_PHYS + NETX_OFS_XMAC0)
  68. #define NETX_PA_XMAC1 (NETX_IO_PHYS + NETX_OFS_XMAC1)
  69. #define NETX_PA_XMAC2 (NETX_IO_PHYS + NETX_OFS_XMAC2)
  70. #define NETX_PA_XMAC3 (NETX_IO_PHYS + NETX_OFS_XMAC3)
  71. #define NETX_PA_XMAC(no) (NETX_IO_PHYS + NETX_OFS_XMAC(no))
  72. #define NETX_PA_PFIFO (NETX_IO_PHYS + NETX_OFS_PFIFO)
  73. #define NETX_PA_XPEC0 (NETX_IO_PHYS + NETX_OFS_XPEC0)
  74. #define NETX_PA_XPEC1 (NETX_IO_PHYS + NETX_OFS_XPEC1)
  75. #define NETX_PA_XPEC2 (NETX_IO_PHYS + NETX_OFS_XPEC2)
  76. #define NETX_PA_XPEC3 (NETX_IO_PHYS + NETX_OFS_XPEC3)
  77. #define NETX_PA_XPEC(no) (NETX_IO_PHYS + NETX_OFS_XPEC(no))
  78. #define NETX_PA_VIC (NETX_IO_PHYS + NETX_OFS_VIC)
  79. /* virtual addresses */
  80. #define NETX_VA_SYSTEM (NETX_IO_VIRT + NETX_OFS_SYSTEM)
  81. #define NETX_VA_MEMCR (NETX_IO_VIRT + NETX_OFS_MEMCR)
  82. #define NETX_VA_DPMAS (NETX_IO_VIRT + NETX_OFS_DPMAS)
  83. #define NETX_VA_GPIO (NETX_IO_VIRT + NETX_OFS_GPIO)
  84. #define NETX_VA_PIO (NETX_IO_VIRT + NETX_OFS_PIO)
  85. #define NETX_VA_UART0 (NETX_IO_VIRT + NETX_OFS_UART0)
  86. #define NETX_VA_UART1 (NETX_IO_VIRT + NETX_OFS_UART1)
  87. #define NETX_VA_UART2 (NETX_IO_VIRT + NETX_OFS_UART2)