OpenCBM
Functions
PortAccessWdm.c File Reference

Functions for communicating with the parallel port driver Only use WDM functions. More...

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

Go to the source code of this file.

Functions

NTSTATUS ParPortSetMode (PDEVICE_EXTENSION Pdx)
 Set the operational mode of the parallel port. More...
 
NTSTATUS ParPortUnsetMode (PDEVICE_EXTENSION Pdx)
 Unset the operational mode of the parallel port. More...
 

Detailed Description

Functions for communicating with the parallel port driver Only use WDM functions.



Author
Spiro Trikaliotis

Definition in file PortAccessWdm.c.

Function Documentation

NTSTATUS ParPortSetMode ( PDEVICE_EXTENSION  Pdx)

Set the operational mode of the parallel port.

This function sets the operational mode of the parallel port.

Parameters
PdxPointer to a device extension which contains the DEVICE_OBJECT of the parallel port driver.

This function has to be balanced with a corresponding ParPortUnsetMode()

This function must be run at IRQL == PASSIVE_LEVEL.

Definition at line 37 of file PortAccessWdm.c.

References FUNC_ENTER, and ParPortSetModeWdm().

Referenced by cbm_lock_parport().

NTSTATUS ParPortUnsetMode ( PDEVICE_EXTENSION  Pdx)

Unset the operational mode of the parallel port.

This function unsets the operational mode of the parallel port.

Parameters
PdxPointer 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 58 of file PortAccessWdm.c.

References FUNC_ENTER, and ParPortUnsetModeWdm().

Referenced by cbm_lock_parport(), cbm_unlock_parport(), and ParPortSetModeWdm().