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.

162 lines
2.6 KiB

  1. /*++
  2. Copyright (c) 1998 Gemplus Development
  3. Name:
  4. GNTSCR0A.H (Gemplus NT Smart Card Reader module 0A)
  5. Description :
  6. This module holds the prototypes of the functions from GNTSCR0A.C
  7. Revision History :
  8. dd/mm/yy
  9. 13/03/98: V1.00.001 (GPZ)
  10. - Start of development.
  11. --*/
  12. #ifndef _GNTSCR0A_
  13. #define _GNTSCR0A_
  14. //
  15. // Prototype section:
  16. //
  17. NTSTATUS
  18. DriverEntry(
  19. IN PDRIVER_OBJECT DriverObject,
  20. IN PUNICODE_STRING RegistryPath
  21. );
  22. NTSTATUS
  23. GCR410PAddDevice(
  24. IN PDRIVER_OBJECT DriverObject,
  25. IN PDEVICE_OBJECT PhysicalDeviceObject
  26. );
  27. NTSTATUS
  28. GCR410PCreateDevice(
  29. IN PDRIVER_OBJECT DriverObject,
  30. IN PDEVICE_OBJECT PhysicalDeviceObject,
  31. OUT PDEVICE_OBJECT *DeviceObject
  32. );
  33. NTSTATUS
  34. GCR410PStartDevice(
  35. IN PDEVICE_OBJECT DeviceObject
  36. );
  37. VOID
  38. GCR410PStopDevice(
  39. IN PDEVICE_OBJECT DeviceObject
  40. );
  41. VOID
  42. GCR410PCloseSerialPort(
  43. IN PDEVICE_OBJECT DeviceObject,
  44. IN PVOID Context
  45. );
  46. VOID
  47. GCR410PWaitForCardStateChange(
  48. IN PDEVICE_OBJECT DeviceObject,
  49. IN PVOID Context
  50. );
  51. NTSTATUS
  52. GCR410PSerialCallComplete(
  53. IN PDEVICE_OBJECT DeviceObject,
  54. IN PIRP Irp,
  55. IN PKEVENT Event
  56. );
  57. NTSTATUS
  58. GCR410PCallSerialDriver(
  59. IN PDEVICE_OBJECT DeviceObject,
  60. IN PIRP Irp
  61. );
  62. NTSTATUS
  63. GCR410PCreateClose(
  64. IN PDEVICE_OBJECT DeviceObject,
  65. IN PIRP Irp
  66. );
  67. NTSTATUS
  68. GCR410PCancel(
  69. IN PDEVICE_OBJECT DeviceObject,
  70. IN PIRP Irp
  71. );
  72. NTSTATUS
  73. GCR410PCleanup(
  74. IN PDEVICE_OBJECT DeviceObject,
  75. IN PIRP Irp
  76. );
  77. VOID
  78. GCR410PRemoveDevice(
  79. PDEVICE_OBJECT DeviceObject
  80. );
  81. VOID
  82. GCR410PDriverUnload(
  83. IN PDRIVER_OBJECT DriverObject
  84. );
  85. NTSTATUS
  86. GCR410PPnPDeviceControl(
  87. IN PDEVICE_OBJECT DeviceObject,
  88. IN PIRP Irp
  89. );
  90. VOID
  91. GCR410PSystemPowerCompletion(
  92. IN PDEVICE_OBJECT DeviceObject,
  93. IN UCHAR MinorFunction,
  94. IN POWER_STATE PowerState,
  95. IN PIRP Irp,
  96. IN PIO_STATUS_BLOCK IoStatus
  97. );
  98. NTSTATUS
  99. GCR410PDevicePowerCompletion (
  100. IN PDEVICE_OBJECT DeviceObject,
  101. IN PIRP Irp,
  102. IN PSMARTCARD_EXTENSION SmartcardExtension
  103. );
  104. NTSTATUS
  105. GCR410PPowerDeviceControl(
  106. IN PDEVICE_OBJECT DeviceObject,
  107. IN PIRP Irp
  108. );
  109. NTSTATUS
  110. GCR410PStartSerialEventTracking(
  111. PSMARTCARD_EXTENSION SmartcardExtension
  112. );
  113. NTSTATUS
  114. GCR410PStopSerialEventTracking(
  115. PSMARTCARD_EXTENSION SmartcardExtension
  116. );
  117. NTSTATUS
  118. GCR410PSerialEvent(
  119. IN PDEVICE_OBJECT DeviceObject,
  120. IN PIRP Irp,
  121. IN PSMARTCARD_EXTENSION SmartcardExtension
  122. );
  123. VOID
  124. GCR410PCompleteCardTracking(
  125. IN PSMARTCARD_EXTENSION SmartcardExtension
  126. );
  127. NTSTATUS
  128. GCR410PDeviceControl(
  129. PDEVICE_OBJECT pDeviceObject,
  130. PIRP pIrp
  131. );
  132. #endif