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.

95 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1998 SCM Microsystems, Inc.
  3. Module Name:
  4. UsbCom.h
  5. Abstract:
  6. Constants & access function prototypes for USB smartcard reader
  7. Revision History:
  8. PP 12/18/1998 Initial Version
  9. --*/
  10. #if !defined( __USB_COM_H__ )
  11. #define __USB_COM_H__
  12. //
  13. // Prototypes for access functions -------------------------------------------
  14. //
  15. NTSTATUS
  16. UsbResetDevice(
  17. IN PDEVICE_OBJECT DeviceObject
  18. );
  19. NTSTATUS
  20. UsbCallUSBD(
  21. IN PDEVICE_OBJECT DeviceObject,
  22. IN PURB pUrb);
  23. NTSTATUS
  24. UsbConfigureDevice(
  25. IN PDEVICE_OBJECT DeviceObject);
  26. NTSTATUS
  27. UsbWriteSTCData(
  28. PREADER_EXTENSION ReaderExtension,
  29. PUCHAR pucData,
  30. ULONG ulSize);
  31. NTSTATUS
  32. UsbReadSTCData(
  33. PREADER_EXTENSION ReaderExtension,
  34. PUCHAR pucData,
  35. ULONG ulDataLen);
  36. NTSTATUS
  37. UsbWriteSTCRegister(
  38. PREADER_EXTENSION ReaderExtension,
  39. UCHAR ucAddress,
  40. ULONG ulSize,
  41. PUCHAR pucValue);
  42. NTSTATUS
  43. UsbReadSTCRegister(
  44. PREADER_EXTENSION ReaderExtension,
  45. UCHAR ucAddress,
  46. ULONG ulSize,
  47. PUCHAR pucValue);
  48. NTSTATUS
  49. UsbGetFirmwareRevision(
  50. PREADER_EXTENSION ReaderExtension);
  51. NTSTATUS
  52. UsbRead(
  53. PREADER_EXTENSION ReaderExtension,
  54. PUCHAR pData,
  55. ULONG DataLen);
  56. NTSTATUS
  57. UsbWrite(
  58. PREADER_EXTENSION ReaderExtension,
  59. PUCHAR pData,
  60. ULONG DataLen);
  61. NTSTATUS
  62. UsbSend(
  63. PREADER_EXTENSION ReaderExtension,
  64. PUCHAR pDataIn,
  65. ULONG DataLenIn,
  66. PUCHAR pDataOut,
  67. ULONG DataLenOut);
  68. #endif // __USB_COM_H__
  69. // ------------------------------- END OF FILE -------------------------------