OpenCBM
|
Initialize the IEC bus. More...
Go to the source code of this file.
Macros | |
#define | READ_TIMEOUT_VALUE(_what_, _default_) |
Functions | |
NTSTATUS | cbmiec_cleanup (IN PDEVICE_EXTENSION Pdx) |
Cleanup the IEC bus. More... | |
VOID | cbmiec_set_cabletype (IN PDEVICE_EXTENSION Pdx, IN IEC_CABLETYPE CableType) |
Set the type of the IEC cable. More... | |
NTSTATUS | cbmiec_init (IN PDEVICE_EXTENSION Pdx) |
Initialize the IEC bus. More... | |
NTSTATUS | cbmiec_global_init (IN PHANDLE HKey) |
Initialization for libiec which are global in nature. More... | |
Variables | |
IEC_TIMEOUTS | libiec_global_timeouts |
#define READ_TIMEOUT_VALUE | ( | _what_, | |
_default_ | |||
) |
Read timeout values from the registry
Definition at line 31 of file libiec/init.c.
NTSTATUS cbmiec_cleanup | ( | IN PDEVICE_EXTENSION | Pdx | ) |
Cleanup the IEC bus.
This function cleans the IEC bus immediately before it is released.
Pdx | Pointer to the device extension. |
Definition at line 116 of file libiec/init.c.
References cbmiec_release_bus(), and FUNC_ENTER.
NTSTATUS cbmiec_global_init | ( | IN PHANDLE | HKey | ) |
Initialization for libiec which are global in nature.
This function initializes libiec.
HKey | Pointer to a handle with holds a registry key. If this is NULL, no access to the registry is performed. |
Definition at line 251 of file libiec/init.c.
References FUNC_ENTER.
Referenced by cbm_init_registry().
NTSTATUS cbmiec_init | ( | IN PDEVICE_EXTENSION | Pdx | ) |
Initialize the IEC bus.
This function initializes the IEC bus itself, and sets some variables in the device extension. It has to be called before any other IEC function is called.
Pdx | Pointer to the device extension. |
Definition at line 199 of file libiec/init.c.
References cbmiec_checkcable(), CBMIEC_RELEASE, FUNC_ENTER, PP_ATN_OUT, PP_CLK_OUT, PP_DATA_OUT, PP_LP_BIDIR, PP_LP_IRQ, and PP_RESET_OUT.
Referenced by cbm_lock_parport().
VOID cbmiec_set_cabletype | ( | IN PDEVICE_EXTENSION | Pdx, |
IN IEC_CABLETYPE | CableType | ||
) |
Set the type of the IEC cable.
This function sets the type of the IEC cable.
Pdx | Pointer to the device extension. |
CableType | The type of the cable. |
Definition at line 139 of file libiec/init.c.
References CABLESTATE_UNKNOWN, cbmiec_setcablestate(), FUNC_ENTER, and FUNC_LEAVE.
Referenced by cbm_init_registry().
IEC_TIMEOUTS libiec_global_timeouts |
timeout values
Definition at line 28 of file libiec/init.c.
Referenced by cbmiec_i_raw_read(), cbmiec_i_raw_write(), cbmiec_iec_wait(), cbmiec_reset(), cbmiec_send_byte(), and cbmiec_wait_for_listener().