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.

75 lines
1.7 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1993 - 1999
  3. Module Name:
  4. hwecp.h
  5. Abstract:
  6. This module contains utility code used by other 1284
  7. hwecp modules (currently becp and hwecp).
  8. Author:
  9. Robbie Harris (Hewlett-Packard) 27-May-1998
  10. Environment:
  11. Kernel mode
  12. Revision History :
  13. --*/
  14. #ifndef _HWECP_
  15. #define _HWECP_
  16. #include "ecp.h"
  17. #include "queue.h"
  18. // DVRH_USE_HW_MAXTIME 0 - off
  19. // 1 - on
  20. // - Note: The value will control if we limit the overall time
  21. // we can send/recieve data from the HWECP read/write methods
  22. #define DVRH_USE_HW_MAXTIME 0
  23. //--------------------------------------------------------------------------
  24. // Printer status constants. Seem to only be used by hwecp
  25. //--------------------------------------------------------------------------
  26. #define CHKPRNOK 0xDF // DSR value indicating printer ok.
  27. #define CHKPRNOFF1 0x87 // DSR value indicating printer off.
  28. #define CHKPRNOFF2 0x4F // DSR value indicating printer off.
  29. #define CHKNOCABLE 0x7F // DSR value indicating no cable.
  30. #define CHKPRNOFLIN 0xCF // DSR value indicating printer offline.
  31. #define CHKNOPAPER 0xEF // DSR value indicating out of paper.
  32. #define CHKPAPERJAM 0xC7 // DSR value indicating paper jam.
  33. VOID
  34. ParCleanupHwEcpPort(
  35. IN PDEVICE_EXTENSION Extension
  36. );
  37. NTSTATUS
  38. ParEcpHwEmptyFIFO(
  39. IN PDEVICE_EXTENSION Extension
  40. );
  41. NTSTATUS
  42. ParEcpHwHostRecoveryPhase(
  43. IN PDEVICE_EXTENSION Extension
  44. );
  45. NTSTATUS
  46. ParEcpHwRecoverPort(
  47. IN PDEVICE_EXTENSION Extension,
  48. UCHAR bRecoverCode
  49. );
  50. NTSTATUS
  51. ParEcpHwWaitForEmptyFIFO(
  52. IN PDEVICE_EXTENSION Extension
  53. );
  54. #endif