Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

353 lines
3.4 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. regdesc.cxx
  5. Abstract:
  6. This module contains the definitions of the member functions
  7. of the following classes: PARTIAL_DESCRIPTOR, PORT_DESCRIPTOR,
  8. INTERRUPT_DESCRIPTOR, MEMORY_DESCRIPTOR, DMA_DESCRIPTOR, and
  9. DEVICE_SPECIFIC_DESCRIPTOR.
  10. Author:
  11. Jaime Sasson (jaimes) 02-Dec-1993
  12. Environment:
  13. ULIB, User Mode
  14. --*/
  15. #include "regdesc.hxx"
  16. DEFINE_CONSTRUCTOR ( PARTIAL_DESCRIPTOR, OBJECT );
  17. PARTIAL_DESCRIPTOR::~PARTIAL_DESCRIPTOR (
  18. )
  19. /*++
  20. Routine Description:
  21. Destroy a PARTIAL_DESCRIPTOR.
  22. Arguments:
  23. None.
  24. Return Value:
  25. None.
  26. --*/
  27. {
  28. }
  29. VOID
  30. PARTIAL_DESCRIPTOR::Construct (
  31. )
  32. /*++
  33. Routine Description:
  34. Construct a PARTIAL_DESCRIPTOR object.
  35. Arguments:
  36. None.
  37. Return Value:
  38. None.
  39. --*/
  40. {
  41. _Type = 0;
  42. _ShareDisposition = 0;
  43. _Flags = 0;
  44. }
  45. DEFINE_CONSTRUCTOR ( PORT_DESCRIPTOR, PARTIAL_DESCRIPTOR );
  46. PORT_DESCRIPTOR::~PORT_DESCRIPTOR (
  47. )
  48. /*++
  49. Routine Description:
  50. Destroy a PORT_DESCRIPTOR.
  51. Arguments:
  52. None.
  53. Return Value:
  54. None.
  55. --*/
  56. {
  57. }
  58. VOID
  59. PORT_DESCRIPTOR::Construct (
  60. )
  61. /*++
  62. Routine Description:
  63. Construct a PORT_DESCRIPTOR object.
  64. Arguments:
  65. None.
  66. Return Value:
  67. None.
  68. --*/
  69. {
  70. _PhysicalAddress.LowPart = 0;
  71. _PhysicalAddress.HighPart = 0;
  72. _Length = 0;
  73. }
  74. DEFINE_CONSTRUCTOR ( INTERRUPT_DESCRIPTOR, PARTIAL_DESCRIPTOR );
  75. INTERRUPT_DESCRIPTOR::~INTERRUPT_DESCRIPTOR (
  76. )
  77. /*++
  78. Routine Description:
  79. Destroy a INTERRUPT_DESCRIPTOR.
  80. Arguments:
  81. None.
  82. Return Value:
  83. None.
  84. --*/
  85. {
  86. }
  87. VOID
  88. INTERRUPT_DESCRIPTOR::Construct (
  89. )
  90. /*++
  91. Routine Description:
  92. Construct an INTERRUPT_DESCRIPTOR object.
  93. Arguments:
  94. None.
  95. Return Value:
  96. None.
  97. --*/
  98. {
  99. _Affinity = 0;
  100. _Level = 0;
  101. _Vector = 0;
  102. }
  103. // #include "ulib.hxx"
  104. // #include "regdesc.hxx"
  105. DEFINE_CONSTRUCTOR ( MEMORY_DESCRIPTOR, PARTIAL_DESCRIPTOR );
  106. MEMORY_DESCRIPTOR::~MEMORY_DESCRIPTOR (
  107. )
  108. /*++
  109. Routine Description:
  110. Destroy a MEMORY_DESCRIPTOR.
  111. Arguments:
  112. None.
  113. Return Value:
  114. None.
  115. --*/
  116. {
  117. }
  118. VOID
  119. MEMORY_DESCRIPTOR::Construct (
  120. )
  121. /*++
  122. Routine Description:
  123. Construct an MEMORY_DESCRIPTOR object.
  124. Arguments:
  125. None.
  126. Return Value:
  127. None.
  128. --*/
  129. {
  130. _StartAddress.LowPart = 0;
  131. _StartAddress.HighPart = 0;
  132. _Length = 0;
  133. }
  134. DEFINE_CONSTRUCTOR ( DMA_DESCRIPTOR, PARTIAL_DESCRIPTOR );
  135. DMA_DESCRIPTOR::~DMA_DESCRIPTOR (
  136. )
  137. /*++
  138. Routine Description:
  139. Destroy a DMA_DESCRIPTOR.
  140. Arguments:
  141. None.
  142. Return Value:
  143. None.
  144. --*/
  145. {
  146. }
  147. VOID
  148. DMA_DESCRIPTOR::Construct (
  149. )
  150. /*++
  151. Routine Description:
  152. Construct an MEMORY_DESCRIPTOR object.
  153. Arguments:
  154. None.
  155. Return Value:
  156. None.
  157. --*/
  158. {
  159. _Channel = 0;
  160. _Port = 0;
  161. _Reserved1 = 0;
  162. }
  163. DEFINE_CONSTRUCTOR ( DEVICE_SPECIFIC_DESCRIPTOR, PARTIAL_DESCRIPTOR );
  164. DEVICE_SPECIFIC_DESCRIPTOR::~DEVICE_SPECIFIC_DESCRIPTOR (
  165. )
  166. /*++
  167. Routine Description:
  168. Destroy a DEVICE_SPECIFIC_DESCRIPTOR.
  169. Arguments:
  170. None.
  171. Return Value:
  172. None.
  173. --*/
  174. {
  175. _DataSize = 0;
  176. if( _Data != NULL ) {
  177. FREE( _Data );
  178. }
  179. }
  180. VOID
  181. DEVICE_SPECIFIC_DESCRIPTOR::Construct (
  182. )
  183. /*++
  184. Routine Description:
  185. Construct an DEVICE_SPECIFIC_DESCRIPTOR object.
  186. Arguments:
  187. None.
  188. Return Value:
  189. None.
  190. --*/
  191. {
  192. _Reserved1 = 0;
  193. _Reserved2 = 0;
  194. _Data = NULL;
  195. _DataSize = 0;
  196. }