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

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.
NTSTATUS ParPortUnsetMode (PDEVICE_EXTENSION Pdx)
 Unset the operational mode of the parallel port.


Detailed Description

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

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

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


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:
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 ParPortUnsetMode()

This function must be run at IRQL == PASSIVE_LEVEL.

Definition at line 38 of file PortAccessWdm.c.

References cbmiec_udelay(), FUNC_ENTER, ParPortSetModeNt4(), 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:
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 59 of file PortAccessWdm.c.

References FUNC_ENTER, and ParPortUnsetModeWdm().

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


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