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.

63 lines
1.0 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1993 - 1998
  3. Module Name:
  4. parloop.c
  5. Abstract:
  6. This module contains the processor independant version of the
  7. write loop for the parallel driver.
  8. Author:
  9. Anthony V. Ercolano 1-Aug-1992
  10. Norbert P. Kusters 22-Oct-1993
  11. Environment:
  12. Kernel mode
  13. Revision History :
  14. --*/
  15. #include "pch.h"
  16. ULONG
  17. SppWriteLoop(
  18. IN PUCHAR Controller,
  19. IN PUCHAR WriteBuffer,
  20. IN ULONG NumBytesToWrite
  21. )
  22. /*++
  23. Routine Description:
  24. This routine outputs the given write buffer to the parallel port
  25. using the standard centronics protocol.
  26. Arguments:
  27. Controller - Supplies the base address of the parallel port.
  28. WriteBuffer - Supplies the buffer to write to the port.
  29. NumBytesToWrite - Supplies the number of bytes to write out to the port.
  30. Return Value:
  31. The number of bytes successfully written out to the parallel port.
  32. Notes:
  33. This routine runs at DISPATCH_LEVEL.
  34. --*/
  35. {
  36. return(SppWriteLoopPI(Controller, WriteBuffer, NumBytesToWrite, 1));
  37. }