Leaked source code of windows server 2003
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.

91 lines
1.8 KiB

  1. /*++
  2. Copyright (c) 1994 Microsoft Corporation
  3. Module Name:
  4. par1284.h
  5. Abstract:
  6. This file defines the interface for the 1284 export driver.
  7. The 1284 export driver will export a 1284 communications interface
  8. to parallel class drivers.
  9. Author:
  10. Norbert P. Kusters 9-May-1994
  11. Revision History:
  12. --*/
  13. #ifndef _PAR1284_
  14. #define _PAR1284_
  15. //
  16. // Define the current known 1284 protocols for the parallel port.
  17. //
  18. #define P1284_PROTOCOL_ISA 0 // Centronics with Nibble for reverse.
  19. #define P1284_PROTOCOL_BYTE 1 // Centronics with Byte for reverse.
  20. #define P1284_PROTOCOL_EPP 2 // EPP protocol.
  21. #define P1284_PROTOCOL_ECP 3 // ECP protocol.
  22. #define P1284_NUM_PROTOCOLS 4
  23. //
  24. // Define the interface to the export driver.
  25. //
  26. NTSTATUS
  27. P1284Initialize(
  28. IN PUCHAR Controller,
  29. IN PHYSICAL_ADDRESS OriginalController,
  30. IN BOOLEAN UsePICode,
  31. IN PPARALLEL_ECP_INFORMATION EcpInfo,
  32. OUT PVOID* P1284Extension
  33. );
  34. VOID
  35. P1284Cleanup(
  36. IN PVOID P1284Extension
  37. );
  38. NTSTATUS
  39. P1284Write(
  40. IN PVOID P1284Extension,
  41. IN PVOID Buffer,
  42. IN ULONG BufferSize,
  43. OUT PULONG BytesTransfered
  44. );
  45. NTSTATUS
  46. P1284Read(
  47. IN PVOID P1284Extension,
  48. IN PVOID Buffer,
  49. IN ULONG BufferSize,
  50. OUT PULONG BytesTransfered
  51. );
  52. NTSTATUS
  53. P1284NegotiateProtocol(
  54. IN PVOID P1284Extension,
  55. OUT PULONG NegotiatedProtocol
  56. );
  57. NTSTATUS
  58. P1284SetProtocol(
  59. IN PVOID P1284Extension,
  60. IN ULONG ProtocolNumber,
  61. IN BOOLEAN Negotiate
  62. );
  63. NTSTATUS
  64. P1284QueryDeviceId(
  65. IN PVOID P1284Extension,
  66. OUT PUCHAR DeviceIdBuffer,
  67. IN ULONG BufferSize,
  68. OUT PULONG DeviceIdSize
  69. );
  70. #endif // _PAR1284_