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

libiec/init.c File Reference

Initialize the IEC bus. More...

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

Go to the source code of this file.

Defines

#define READ_TIMEOUT_VALUE(_what_, _default_)

Functions

NTSTATUS cbmiec_cleanup (IN PDEVICE_EXTENSION Pdx)
 Cleanup the IEC bus.
NTSTATUS cbmiec_set_cabletype (IN PDEVICE_EXTENSION Pdx, IN IEC_CABLETYPE CableType)
 Set the type of the IEC cable.
NTSTATUS cbmiec_init (IN PDEVICE_EXTENSION Pdx)
 Initialize the IEC bus.
NTSTATUS cbmiec_global_init (IN PHANDLE HKey)
 Initialization for libiec which are global in nature.

Variables

IEC_TIMEOUTS libiec_global_timeouts


Detailed Description

Initialize the IEC bus.

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

Author:
Spiro Trikaliotis
Version:
Id
init.c,v 1.26 2006/04/28 10:42:11 trikalio Exp

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

Definition in file libiec/init.c.


Define Documentation

#define READ_TIMEOUT_VALUE _what_,
_default_   ) 
 

Value:

do { \
        libiec_global_timeouts._what_ = _default_; \
        if (HKey) cbm_registry_read_ulong(*HKey, L#_what_, &libiec_global_timeouts._what_); \
    } while (0)
Read timeout values from the registry

Definition at line 32 of file libiec/init.c.


Function Documentation

NTSTATUS cbmiec_cleanup IN PDEVICE_EXTENSION  Pdx  ) 
 

Cleanup the IEC bus.

This function cleans the IEC bus immediately before it is released.

Parameters:
Pdx Pointer 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 193 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.

Parameters:
HKey Pointer to a handle with holds a registry key. If this is NULL, no access to the registry is performed.
Returns:
If the routine succeeds, it returns STATUS_SUCCESS. Otherwise, it returns one of the error status values.

Definition at line 291 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.

Parameters:
Pdx Pointer 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 239 of file libiec/init.c.

References CBMIEC_RELEASE, CBMIEC_SET, 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().

NTSTATUS 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.

Parameters:
Pdx Pointer to the device extension.
CableType The type of the cable.

Definition at line 216 of file libiec/init.c.

References FUNC_ENTER.

Referenced by cbm_init_registry().


Variable Documentation

IEC_TIMEOUTS libiec_global_timeouts
 

timeout values

Definition at line 29 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().


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