OpenCBM
Functions
sys/libiec/debug.c File Reference

Debug helper functions for libiec. More...

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

Go to the source code of this file.

Functions

VOID cbmiec_show_port (IN UCHAR *Str)
 Show the contents of the parallel port's registers. More...
 
VOID DbgWp (IN PUCHAR Port, IN UCHAR Value)
 Write to a port address with debugging output. More...
 
UCHAR DbgRp (IN PUCHAR Port)
 Read from a port address with debugging output. More...
 
VOID cbmiec_show_state (IN PDEVICE_EXTENSION Pdx, IN UCHAR *Str)
 Dump the input lines. More...
 

Detailed Description

Debug helper functions for libiec.



Author
Spiro Trikaliotis

Definition in file sys/libiec/debug.c.

Function Documentation

VOID cbmiec_show_port ( IN UCHAR *  Str)

Show the contents of the parallel port's registers.

Parameters
StrCaller-supplied pointer to a string to output before the values.

Definition at line 39 of file sys/libiec/debug.c.

References DBG_ASSERT, DBG_PREFIX, FUNC_DEF, and READ_PORT_UCHAR.

Referenced by DbgRp(), and DbgWp().

VOID cbmiec_show_state ( IN PDEVICE_EXTENSION  Pdx,
IN UCHAR *  Str 
)

Dump the input lines.

Parameters
PdxPointer to the device extension of the driver.
StrCaller-supplied pointer to a string to output before the values.

Definition at line 111 of file sys/libiec/debug.c.

References CBMIEC_GET, DBG_ASSERT, DBG_PREFIX, DBG_SUCCESS, FUNC_DEF, PP_ATN_IN, PP_CLK_IN, and PP_DATA_IN.

UCHAR DbgRp ( IN PUCHAR  Port)

Read from a port address with debugging output.

Parameters
PortThe port address to be written.
Returns
The read value.

Definition at line 85 of file sys/libiec/debug.c.

References cbmiec_show_port(), DBG_PREFIX, FUNC_DEF, and READ_PORT_UCHAR.

VOID DbgWp ( IN PUCHAR  Port,
IN UCHAR  Value 
)

Write to a port address with debugging output.

Parameters
PortThe port address to be written.
ValueThe value to be written.

Definition at line 63 of file sys/libiec/debug.c.

References cbmiec_show_port(), DBG_PREFIX, FUNC_DEF, and WRITE_PORT_UCHAR.