Main Page | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

PortAccessNt4.c File Reference

Functions for communicating with the parallel port driver, NT4 version. More...

#include <initguid.h>
#include <wdm.h>
#include "cbm_driver.h"

Go to the source code of this file.

Defines

#define AdvancedEPPTests   1

Enumerations

enum  lptMode {
  lptN_A = 0, lptSPP = 1, lptPS2 = 2, lptEPP = 3,
  lptECP = 4, lptEPPc = 5
}
enum  ecpMode {
  ecpNOECR = 0, ecpSTNDRD = 1, ecpBYTE = 2, ecpSTDFIFO = 3,
  ecpECPFIFO = 4, ecpEPP = 5, ecpRESVRD = 6, ecpFIFOTST = 7,
  ecpCONFIG = 8
}

Functions

enum lptMode AdvEPP (PUCHAR port)
NTSTATUS ParPortSetModeNt4 (PDEVICE_EXTENSION Pdx)
 Set the operational mode of the parallel port, NT4 version.
NTSTATUS ParPortUnsetModeNt4 (PDEVICE_EXTENSION Pdx)
 Unset the operational mode of the parallel port, NT4 version.
VOID cbmiec_udelay (IN ULONG howlong)
 Set the operational mode of the parallel port.
NTSTATUS ParPortSetMode (PDEVICE_EXTENSION Pdx)
NTSTATUS ParPortUnsetMode (PDEVICE_EXTENSION Pdx)
 Unset the operational mode of the parallel port.


Detailed Description

Functions for communicating with the parallel port driver, NT4 version.

**************************************************************

Author:
Spiro Trikaliotis
Version:
Id
PortAccessNt4.c,v 1.4 2006/02/24 12:01:26 trikalio Exp


Definition in file PortAccessNt4.c.


Function Documentation

VOID cbmiec_udelay IN ULONG  Howlong  ) 
 

Set the operational mode of the parallel port.

This function waits for a timeout. Waiting means that we want to have an exact timing, so don't give away the processor.

Parameters:
Howlong How long to wait (in us)

Definition at line 67 of file libiec/util.c.

References FUNC_ENTER, and FUNC_LEAVE.

NTSTATUS ParPortSetModeNt4 PDEVICE_EXTENSION  Pdx  ) 
 

Set the operational mode of the parallel port, NT4 version.

This function sets the operational mode of the parallel port.

Parameters:
Pdx Pointer to a device extension which contains the DEVICE_OBJECT of the parallel port driver.
This function has to be balanced with a corresponding ParPortUnsetModeNt4()

This function must be run at IRQL == PASSIVE_LEVEL.

Definition at line 433 of file PortAccessNt4.c.

References DBG_PRINT, FUNC_ENTER, and _DEVICE_EXTENSION::ParPortPortAddress.

Referenced by ParPortSetMode().

NTSTATUS ParPortUnsetMode PDEVICE_EXTENSION  Pdx  ) 
 

Unset the operational mode of the parallel port.

This function unsets the operational mode of the parallel port.

Parameters:
Pdx Pointer to a device extension which contains the DEVICE_OBJECT of the parallel port driver.
This function mustn't be called without a prior call to ParPortSetMode()

This function must be run at IRQL == PASSIVE_LEVEL.

Definition at line 556 of file PortAccessNt4.c.

References FUNC_ENTER, ParPortUnsetModeNt4(), and ParPortUnsetModeWdm().

NTSTATUS ParPortUnsetModeNt4 PDEVICE_EXTENSION  Pdx  ) 
 

Unset the operational mode of the parallel port, NT4 version.

This function unsets the operational mode of the parallel port.

Parameters:
Pdx Pointer to a device extension which contains the DEVICE_OBJECT of the parallel port driver.
This function mustn't be called without a prior call to ParPortSetModeNt4()

This function must be run at IRQL == PASSIVE_LEVEL.

Definition at line 484 of file PortAccessNt4.c.

References DBG_PRINT, FUNC_ENTER, and _DEVICE_EXTENSION::ParPortPortAddress.

Referenced by ParPortUnsetMode().


Generated on Sun Apr 30 18:46:14 2006 for opencbm by  doxygen 1.4.2