cpc710.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*
  2. * Definitions for the IBM CPC710 PCI Host Bridge
  3. *
  4. * Author: Matt Porter <mporter@mvista.com>
  5. *
  6. * 2001 (c) MontaVista, Software, Inc. This file is licensed under
  7. * the terms of the GNU General Public License version 2. This program
  8. * is licensed "as is" without any warranty of any kind, whether express
  9. * or implied.
  10. */
  11. #ifndef __PPC_PLATFORMS_CPC710_H
  12. #define __PPC_PLATFORMS_CPC710_H
  13. /* General bridge and memory controller registers */
  14. #define PIDR 0xff000008
  15. #define CNFR 0xff00000c
  16. #define RSTR 0xff000010
  17. #define UCTL 0xff001000
  18. #define MPSR 0xff001010
  19. #define SIOC 0xff001020
  20. #define ABCNTL 0xff001030
  21. #define SRST 0xff001040
  22. #define ERRC 0xff001050
  23. #define SESR 0xff001060
  24. #define SEAR 0xff001070
  25. #define SIOC1 0xff001090
  26. #define PGCHP 0xff001100
  27. #define GPDIR 0xff001130
  28. #define GPOUT 0xff001150
  29. #define ATAS 0xff001160
  30. #define AVDG 0xff001170
  31. #define MCCR 0xff001200
  32. #define MESR 0xff001220
  33. #define MEAR 0xff001230
  34. #define MCER0 0xff001300
  35. #define MCER1 0xff001310
  36. #define MCER2 0xff001320
  37. #define MCER3 0xff001330
  38. #define MCER4 0xff001340
  39. #define MCER5 0xff001350
  40. #define MCER6 0xff001360
  41. #define MCER7 0xff001370
  42. /*
  43. * PCI32/64 configuration registers
  44. * Given as offsets from their
  45. * respective physical segment BAR
  46. */
  47. #define PIBAR 0x000f7800
  48. #define PMBAR 0x000f7810
  49. #define MSIZE 0x000f7f40
  50. #define IOSIZE 0x000f7f60
  51. #define SMBAR 0x000f7f80
  52. #define SIBAR 0x000f7fc0
  53. #define PSSIZE 0x000f8100
  54. #define PPSIZE 0x000f8110
  55. #define BARPS 0x000f8120
  56. #define BARPP 0x000f8130
  57. #define PSBAR 0x000f8140
  58. #define PPBAR 0x000f8150
  59. #define BPMDLK 0x000f8200 /* Bottom of Peripheral Memory Space */
  60. #define TPMDLK 0x000f8210 /* Top of Peripheral Memory Space */
  61. #define BIODLK 0x000f8220 /* Bottom of Peripheral I/O Space */
  62. #define TIODLK 0x000f8230 /* Top of Perioheral I/O Space */
  63. #define DLKCTRL 0x000f8240 /* Deadlock control */
  64. #define DLKDEV 0x000f8250 /* Deadlock device */
  65. /* System standard configuration registers space */
  66. #define DCR 0xff200000
  67. #define DID 0xff200004
  68. #define BAR 0xff200018
  69. /* Device specific configuration space */
  70. #define PCIENB 0xff201000
  71. /* Configuration space registers */
  72. #define CPC710_BUS_NUMBER 0x40
  73. #define CPC710_SUB_BUS_NUMBER 0x41
  74. #endif /* __PPC_PLATFORMS_CPC710_H */