64 lines
1 KiB
C
64 lines
1 KiB
C
/*++
|
|
|
|
Copyright (C) Microsoft Corporation, 1993 - 1998
|
|
|
|
Module Name:
|
|
|
|
parloop.c
|
|
|
|
Abstract:
|
|
|
|
This module contains the processor independant version of the
|
|
write loop for the parallel driver.
|
|
|
|
Author:
|
|
|
|
Anthony V. Ercolano 1-Aug-1992
|
|
Norbert P. Kusters 22-Oct-1993
|
|
|
|
Environment:
|
|
|
|
Kernel mode
|
|
|
|
Revision History :
|
|
|
|
--*/
|
|
|
|
#include "pch.h"
|
|
|
|
ULONG
|
|
SppWriteLoop(
|
|
IN PUCHAR Controller,
|
|
IN PUCHAR WriteBuffer,
|
|
IN ULONG NumBytesToWrite
|
|
)
|
|
|
|
/*++
|
|
|
|
Routine Description:
|
|
|
|
This routine outputs the given write buffer to the parallel port
|
|
using the standard centronics protocol.
|
|
|
|
Arguments:
|
|
|
|
Controller - Supplies the base address of the parallel port.
|
|
|
|
WriteBuffer - Supplies the buffer to write to the port.
|
|
|
|
NumBytesToWrite - Supplies the number of bytes to write out to the port.
|
|
|
|
Return Value:
|
|
|
|
The number of bytes successfully written out to the parallel port.
|
|
|
|
Notes:
|
|
|
|
This routine runs at DISPATCH_LEVEL.
|
|
|
|
--*/
|
|
|
|
{
|
|
return(SppWriteLoopPI(Controller, WriteBuffer, NumBytesToWrite, 1));
|
|
}
|