OpenCBM
Functions
reset.c File Reference

Send a RESET on the IEC bus. More...

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

Go to the source code of this file.

Functions

NTSTATUS cbmiec_wait_for_drives_ready (IN PDEVICE_EXTENSION Pdx)
 Wait for the drives to become ready after a RESET. More...
 
NTSTATUS cbmiec_reset (IN PDEVICE_EXTENSION Pdx)
 Send a RESET to the IEC bus. More...
 

Detailed Description

Send a RESET on the IEC bus.



Author
Spiro Trikaliotis
Authors
Based on code from Michael Klein <michael(dot)klein(at)puffin(dot)lb(dot)shuttle(dot)de>

Definition in file reset.c.

Function Documentation

NTSTATUS cbmiec_reset ( IN PDEVICE_EXTENSION  Pdx)

Send a RESET to the IEC bus.

This function sends a RESET on the IEC bus.

Parameters
PdxPointer to the device extension.
Returns
If the routine succeeds, it returns STATUS_SUCCESS. Otherwise, it returns one of the error status values.

Definition at line 103 of file reset.c.

References CBMIEC_RELEASE, cbmiec_schedule_timeout(), CBMIEC_SET, cbmiec_wait_for_drives_ready(), DBG_PREFIX, DBG_SUCCESS, FUNC_ENTER, libiec_global_timeouts, PP_ATN_OUT, PP_CLK_OUT, PP_DATA_OUT, PP_LP_BIDIR, PP_LP_IRQ, PP_RESET_OUT, and IEC_TIMEOUTS::T_holdreset.

Referenced by cbm_execute_createopen(), and cbm_execute_devicecontrol().

NTSTATUS cbmiec_wait_for_drives_ready ( IN PDEVICE_EXTENSION  Pdx)

Wait for the drives to become ready after a RESET.

This function waits for the drives to become ready after they have got a RESET.

Parameters
PdxPointer to the device extension.
Returns
If the routine succeeds, it returns STATUS_SUCCESS. Otherwise, it returns one of the error status values.

Definition at line 39 of file reset.c.

References cbmiec_check_device(), cbmiec_schedule_timeout(), DBG_PREFIX, DBG_PRINT, FUNC_ENTER, IEC_CHECKDEVICE_BUSBUSY, IEC_CHECKDEVICE_BUSFREE, and IEC_CHECKDEVICE_NODEVICE.

Referenced by cbmiec_reset().