posmodc.h
上传用户:qiulin1960
上传日期:2013-10-16
资源大小:2844k
文件大小:3k
源码类别:

Windows CE

开发平台:

Windows_Unix

  1. /*********************************************************************
  2.   File:     posmodc.h
  3.   Description: this file provides headers for C access to Poseidon
  4. registers.
  5.   
  6.  *********************************************************************
  7.               Copyright (c) 1996 Philips Electronics, Inc.
  8.               Copyright (c) 1996-2000 Microsoft Corporation.  All rights reserved.
  9.  *********************************************************************/
  10. #ifndef __POSMODC__
  11. #define __POSMODC__
  12. #include <poseidon.h>
  13. typedef volatile struct UartRegs__
  14. {
  15. ULONG control1;
  16. ULONG control2;
  17. ULONG dmaControl1;
  18. ULONG dmaControl2;
  19. ULONG dmacnt;
  20. ULONG hold;
  21. } UartRegs;
  22. typedef volatile struct PoseidonModuleModule__
  23. {
  24. ULONG memoryConfiguration0;
  25. ULONG memoryConfiguration1;
  26. ULONG memoryConfiguration2;
  27. ULONG memoryConfiguration3;
  28. ULONG memoryConfiguration4;
  29. ULONG memoryConfiguration5;
  30. ULONG memoryConfiguration6;
  31. ULONG memoryConfiguration7;
  32. ULONG memoryConfiguration8;
  33. ULONG unused0;
  34. ULONG videoControl;
  35. ULONG videoRateAndScreen;
  36. ULONG videoHighBuffer;
  37. ULONG videoLowBufferAndDf;
  38. ULONG videoRedPalette;
  39. ULONG videoGreenPalette;
  40. ULONG videoBluePalette;
  41. ULONG videoDither2Of3;
  42. ULONG videoDitherNOf4;
  43. ULONG videoDither4Of5;
  44. ULONG videoDither3Of5;
  45. ULONG videoDither6Of7;
  46. ULONG videoDither5Of7;
  47. ULONG videoDither4Of7;
  48. ULONG sibSize;
  49. ULONG sibSoundRxStart;
  50. ULONG sibSoundTxStart;
  51. ULONG sibTelRxStart;
  52. ULONG sibTelTxStart;
  53. ULONG sibControl;
  54. ULONG sibSoundHold;
  55. ULONG sibTelHold;
  56. ULONG sibSf0Aux;
  57. ULONG sibSf1Aux;
  58. ULONG sibSf0Status;
  59. ULONG sibSf1Status;
  60. ULONG sibDMA;
  61. ULONG unused1[3];
  62. ULONG irControl1;
  63. ULONG irControl2;
  64. ULONG irHold;
  65. ULONG unused2;
  66. UartRegs uartA;
  67. UartRegs uartB;
  68. ULONG mbusControl1;
  69. ULONG mbusControl2;
  70. ULONG mbusDMAStartAddr;
  71. ULONG mbusDMALength;
  72. ULONG mbusDMACount;
  73. ULONG mbusCommand;
  74. ULONG mbusData;
  75. ULONG unused3;
  76. ULONG interrupt1;
  77. ULONG interrupt2;
  78. ULONG interrupt3;
  79. ULONG interrupt4;
  80. ULONG interrupt5;
  81. ULONG interrupt6;
  82. /*
  83.  * These are defined in poseidon.h:
  84.  *
  85.  * #define interrupt1Clear interrupt1
  86.  * #define interrupt2Clear interrupt2
  87.  * #define interrupt3Clear interrupt3
  88.  * #define interrupt4Clear interrupt4
  89.  * #define interrupt5Clear interrupt5
  90.  */
  91. ULONG interrupt1Enable;
  92. ULONG interrupt2Enable;
  93. ULONG interrupt3Enable;
  94. ULONG interrupt4Enable;
  95. ULONG interrupt5Enable;
  96. ULONG interrupt6Enable;
  97. ULONG unused4[4];
  98. ULONG rtcHigh;
  99. ULONG rtcLow;
  100. ULONG alarmHigh;
  101. ULONG alarmLow;
  102. ULONG timerControl;
  103. ULONG perTimer;
  104. ULONG unused5[2];
  105. ULONG spiControl;
  106. ULONG spi;
  107. ULONG unused6[6];
  108. ULONG ioControl;
  109. ULONG mfioDataOutput;
  110. ULONG mfioDirection;
  111. ULONG mfioDataInput;
  112. ULONG mfioSelect;
  113. ULONG ioPowerDown;
  114. ULONG mfioPowerDown;
  115. ULONG unused7[9];
  116. ULONG masterClock;
  117. ULONG powerControl;
  118. ULONG siuTest;
  119. ULONG unused8[3];
  120. ULONG chiControl;
  121. ULONG chiPointerEnable;
  122. ULONG chiRxPointerA;
  123. ULONG chiRxPointerB;
  124. ULONG chiTxPointerA;
  125. ULONG chiTxPointerB;
  126. ULONG chiSize;
  127. ULONG chiRxStart;
  128. ULONG chiTxStart;
  129. ULONG chiHold;
  130. } PoseidonModule;
  131. #define POSEIDONMODULE ((PoseidonModule *) kPoseidonModuleAddress)
  132. #endif /* __POSMODC__ */