memoryOperation.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /*
  2. * asm-mips/nile4.h -- NEC Vrc-5074 Nile 4 definitions
  3. *
  4. * Copyright (C) 2000 Geert Uytterhoeven <geert@sonycom.com>
  5. * Sony Software Development Center Europe (SDCE), Brussels
  6. *
  7. * This file is based on the following documentation:
  8. *
  9. * NEC Vrc 5074 System Controller Data Sheet, June 1998
  10. */
  11. #ifndef _ASM_NILE4_H
  12. #define _ASM_NILE4_H
  13. #define NILE4_BASE 0xbfa00000
  14. #define NILE4_SIZE 0x00200000 /* 2 MB */
  15. /*
  16. * Physical Device Address Registers (PDARs)
  17. */
  18. #define NILE4_SDRAM0 0x0000 /* SDRAM Bank 0 [R/W] */
  19. #define NILE4_SDRAM1 0x0008 /* SDRAM Bank 1 [R/W] */
  20. #define NILE4_DCS2 0x0010 /* Device Chip-Select 2 [R/W] */
  21. #define NILE4_DCS3 0x0018 /* Device Chip-Select 3 [R/W] */
  22. #define NILE4_DCS4 0x0020 /* Device Chip-Select 4 [R/W] */
  23. #define NILE4_DCS5 0x0028 /* Device Chip-Select 5 [R/W] */
  24. #define NILE4_DCS6 0x0030 /* Device Chip-Select 6 [R/W] */
  25. #define NILE4_DCS7 0x0038 /* Device Chip-Select 7 [R/W] */
  26. #define NILE4_DCS8 0x0040 /* Device Chip-Select 8 [R/W] */
  27. #define NILE4_PCIW0 0x0060 /* PCI Address Window 0 [R/W] */
  28. #define NILE4_PCIW1 0x0068 /* PCI Address Window 1 [R/W] */
  29. #define NILE4_INTCS 0x0070 /* Controller Internal Registers and Devices */
  30. /* [R/W] */
  31. #define NILE4_BOOTCS 0x0078 /* Boot ROM Chip-Select [R/W] */
  32. /*
  33. * CPU Interface Registers
  34. */
  35. #define NILE4_CPUSTAT 0x0080 /* CPU Status [R/W] */
  36. #define NILE4_INTCTRL 0x0088 /* Interrupt Control [R/W] */
  37. #define NILE4_INTSTAT0 0x0090 /* Interrupt Status 0 [R] */
  38. #define NILE4_INTSTAT1 0x0098 /* Interrupt Status 1 and CPU Interrupt */
  39. /* Enable [R/W] */
  40. #define NILE4_INTCLR 0x00A0 /* Interrupt Clear [R/W] */
  41. #define NILE4_INTPPES 0x00A8 /* PCI Interrupt Control [R/W] */
  42. /*
  43. * Memory-Interface Registers
  44. */
  45. #define NILE4_MEMCTRL 0x00C0 /* Memory Control */
  46. #define NILE4_ACSTIME 0x00C8 /* Memory Access Timing [R/W] */
  47. #define NILE4_CHKERR 0x00D0 /* Memory Check Error Status [R] */
  48. /*
  49. * PCI-Bus Registers
  50. */
  51. #define NILE4_PCICTRL 0x00E0 /* PCI Control [R/W] */
  52. #define NILE4_PCIARB 0x00E8 /* PCI Arbiter [R/W] */
  53. #define NILE4_PCIINIT0 0x00F0 /* PCI Master (Initiator) 0 [R/W] */
  54. #define NILE4_PCIINIT1 0x00F8 /* PCI Master (Initiator) 1 [R/W] */
  55. #define NILE4_PCIERR 0x00B8 /* PCI Error [R/W] */
  56. /*
  57. * Local-Bus Registers
  58. */
  59. #define NILE4_LCNFG 0x0100 /* Local Bus Configuration [R/W] */
  60. #define NILE4_LCST2 0x0110 /* Local Bus Chip-Select Timing 2 [R/W] */
  61. #define NILE4_LCST3 0x0118 /* Local Bus Chip-Select Timing 3 [R/W] */
  62. #define NILE4_LCST4 0x0120 /* Local Bus Chip-Select Timing 4 [R/W] */
  63. #define NILE4_LCST5 0x0128 /* Local Bus Chip-Select Timing 5 [R/W] */
  64. #define NILE4_LCST6 0x0130 /* Local Bus Chip-Select Timing 6 [R/W] */
  65. #define NILE4_LCST7 0x0138 /* Local Bus Chip-Select Timing 7 [R/W] */
  66. #define NILE4_LCST8 0x0140 /* Local Bus Chip-Select Timing 8 [R/W] */
  67. #define NILE4_DCSFN 0x0150 /* Device Chip-Select Muxing and Output */
  68. /* Enables [R/W] */
  69. #define NILE4_DCSIO 0x0158 /* Device Chip-Selects As I/O Bits [R/W] */
  70. #define NILE4_BCST 0x0178 /* Local Boot Chip-Select Timing [R/W] */
  71. /*
  72. * DMA Registers
  73. */
  74. #define NILE4_DMACTRL0 0x0180 /* DMA Control 0 [R/W] */
  75. #define NILE4_DMASRCA0 0x0188 /* DMA Source Address 0 [R/W] */
  76. #define NILE4_DMADESA0 0x0190 /* DMA Destination Address 0 [R/W] */
  77. #define NILE4_DMACTRL1 0x0198 /* DMA Control 1 [R/W] */
  78. #define NILE4_DMASRCA1 0x01A0 /* DMA Source Address 1 [R/W] */
  79. #define NILE4_DMADESA1 0x01A8 /* DMA Destination Address 1 [R/W] */
  80. /*
  81. * Timer Registers
  82. */
  83. #define NILE4_T0CTRL 0x01C0 /* SDRAM Refresh Control [R/W] */
  84. #define NILE4_T0CNTR 0x01C8 /* SDRAM Refresh Counter [R/W] */
  85. #define NILE4_T1CTRL 0x01D0 /* CPU-Bus Read Time-Out Control [R/W] */
  86. #define NILE4_T1CNTR 0x01D8 /* CPU-Bus Read Time-Out Counter [R/W] */
  87. #define NILE4_T2CTRL 0x01E0 /* General-Purpose Timer Control [R/W] */
  88. #define NILE4_T2CNTR 0x01E8 /* General-Purpose Timer Counter [R/W] */
  89. #define NILE4_T3CTRL 0x01F0 /* Watchdog Timer Control [R/W] */
  90. #define NILE4_T3CNTR 0x01F8 /* Watchdog Timer Counter [R/W] */
  91. /*
  92. * PCI Configuration Space Registers
  93. */
  94. #define NILE4_PCI_BASE 0x0200
  95. #define NILE4_VID 0x0200 /* PCI Vendor ID [R] */