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

vdd.c File Reference

VDD for accessing the driver from DOS. More...

#include <windows.h>
#include <vddsvc.h>
#include <opencbm.h>
#include "debug.h"
#include "vdd.h"
#include <stdlib.h>

Go to the source code of this file.

Defines

#define DBG_USERMODE
#define DBG_DLL
#define DBG_PROGNAME   "OPENCBMVDD.DLL"
#define DBG_IS_DEBUG_C
#define EXTERN   __declspec(dllexport)

Functions

EXTERN BOOL VDDInitialize (IN HANDLE Module, IN DWORD Reason, IN LPVOID Reserved)
 VDD initialization und unloading.
EXTERN VOID VDDRegisterInit (VOID)
 RegisterModule processing.
EXTERN VOID VDDDispatch (VOID)
 RegisterModule processing.

Variables

HANDLE vdd_handle


Detailed Description

VDD for accessing the driver from DOS.

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

Author:
Spiro Trikaliotis
Version:
Id
vdd.c,v 1.11 2005/07/21 17:34:16 trikalio Exp


Definition in file vdd.c.


Define Documentation

#define DBG_DLL
 

Mark: We are building a DLL

Definition at line 30 of file vdd.c.

#define DBG_IS_DEBUG_C
 

This file is "like" debug.c, that is, define some variables

Definition at line 36 of file vdd.c.

#define DBG_PROGNAME   "OPENCBMVDD.DLL"
 

The name of the executable

Definition at line 33 of file vdd.c.

#define DBG_USERMODE
 

Mark: We are in user-space (for debug.h)

Definition at line 27 of file vdd.c.

#define EXTERN   __declspec(dllexport)
 

we are exporting the functions

Definition at line 47 of file vdd.c.


Function Documentation

VOID VDDDispatch VOID   ) 
 

RegisterModule processing.

This function is called when the DOS portion calls the DISPATCHCALL function.

Definition at line 149 of file vdd.c.

References CBM_FILE, DBG_ERROR, DBG_PREFIX, FUNC_ENTER, FUNC_LEAVE, vdd_clear_eoi(), vdd_close(), vdd_device_status(), vdd_driver_close(), vdd_driver_open(), vdd_exec_command(), vdd_get_driver_name(), vdd_get_eoi(), vdd_identify(), vdd_identify_xp1541(), vdd_iec_get(), vdd_iec_poll(), vdd_iec_release(), vdd_iec_set(), vdd_iec_setrelease(), vdd_iec_wait(), vdd_install_iohook(), vdd_listen(), vdd_open(), vdd_pp_read(), vdd_pp_write(), vdd_raw_read(), vdd_raw_write(), vdd_reset(), vdd_talk(), vdd_uninstall_iohook(), vdd_unlisten(), vdd_untalk(), vdd_upload(), and vdd_usleep().

BOOL VDDInitialize IN HANDLE  Module,
IN DWORD  Reason,
IN LPVOID  Reserved
 

VDD initialization und unloading.

This function is called whenever the VDD is loaded or unloaded. It ensures that the driver is loaded to be able to call its functions.

Parameters:
Module Handle of the module; this is not used.
Reason DLL_PROCESS_ATTACH if the DLL is loaded, DLL_PROCESS_DETACH if it is unloaded.
Reserved Not used.
Returns:
Returns TRUE on success, else FALSE.

Definition at line 95 of file vdd.c.

References DBG_ASSERT, DBG_PREFIX, DBG_PRINT, FUNC_ENTER, FUNC_LEAVE_BOOL, vdd_handle, and vdd_uninstall_iohook_internal().

VOID VDDRegisterInit VOID   ) 
 

RegisterModule processing.

This function is called when the DOS portion calls the REGISTERMODULE function.

Definition at line 133 of file vdd.c.

References FUNC_ENTER, and FUNC_LEAVE.


Variable Documentation

HANDLE vdd_handle
 

The handle of the vdd (for being accessed by the I/O hook install functions

Definition at line 55 of file vdd.c.

Referenced by vdd_install_iohook(), vdd_uninstall_iohook_internal(), and VDDInitialize().


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