#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 |
**************************************************************
Definition in file vdd.c.
|
|
Mark: We are building a DLL |
|
|
This file is "like" debug.c, that is, define some variables |
|
|
The name of the executable |
|
|
Mark: We are in user-space (for debug.h) |
|
|
we are exporting the functions |
|
|
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(). |
|
||||||||||||||||
|
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.
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(). |
|
|
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. |
|
|
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(). |
1.4.2