OpenCBM
|
Functions for communicating with the parallel port driver Only use WDM functions. More...
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... | |
Functions for communicating with the parallel port driver Only use WDM functions.
Definition in file PortAccessWdm.c.
NTSTATUS ParPortSetMode | ( | PDEVICE_EXTENSION | Pdx | ) |
Set the operational mode of the parallel port.
This function sets the operational mode of the parallel port.
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 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.
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 58 of file PortAccessWdm.c.
References FUNC_ENTER, and ParPortUnsetModeWdm().
Referenced by cbm_lock_parport(), cbm_unlock_parport(), and ParPortSetModeWdm().