32 #define DBG_PROGNAME "OPENCBMVDD.DLL"
35 #define DBG_IS_DEBUG_C
46 #define EXTERN __declspec(dllexport)
102 case DLL_PROCESS_ATTACH:
104 VDDInstallUserHook(
vdd_handle, NULL, NULL, VDDBlockHandler, NULL);
107 case DLL_PROCESS_DETACH:
110 VDDDeInstallUserHook(Module);
156 functioncode = getDL();
161 switch (functioncode)
173 if (cbmfile == INVALID_HANDLE_VALUE)
183 switch (functioncode)
226 setCF(error ? 1 : 0);
BOOLEAN vdd_listen(CBM_FILE HandleDevice)
Send a LISTEN on the IEC serial bus.
BOOLEAN vdd_device_status(CBM_FILE HandleDevice)
Read the drive status from a floppy.
BOOLEAN vdd_get_driver_name(VOID)
Get the name of the driver for a specific parallel port.
Define makros for debugging purposes.
BOOLEAN vdd_identify(CBM_FILE HandleDevice)
Identify the connected floppy drive.
VOID vdd_cbmfile_closeall(VOID)
@@@
BOOLEAN vdd_pp_write(CBM_FILE HandleDevice)
Write a byte to a XP1541/XP1571 cable.
BOOLEAN vdd_iec_wait(CBM_FILE HandleDevice)
Wait for a line to have a specific state.
EXTERN VOID VDDDispatch(VOID)
RegisterModule processing.
BOOLEAN vdd_iec_get(CBM_FILE HandleDevice)
Get the (logical) state of a line on the IEC serial bus.
BOOLEAN vdd_iec_poll(CBM_FILE HandleDevice)
Read status of all bus lines.
BOOLEAN vdd_iec_set(CBM_FILE HandleDevice)
Activate a line on the IEC serial bus.
Function prototypes for the VDD.
BOOLEAN vdd_clear_eoi(CBM_FILE HandleDevice)
Reset the EOI flag.
BOOLEAN vdd_iec_release(CBM_FILE HandleDevice)
Deactivate a line on the IEC serial bus.
BOOLEAN vdd_open(CBM_FILE HandleDevice)
Open a file on the IEC serial bus.
EXTERN BOOL VDDInitialize(IN HANDLE Module, IN DWORD Reason, IN LPVOID Reserved)
VDD initialization und unloading.
#define FUNC_LEAVE_BOOL(_xxx)
BOOLEAN vdd_close(CBM_FILE HandleDevice)
Close a file on the IEC serial bus.
BOOLEAN vdd_exec_command(CBM_FILE HandleDevice)
Executes a command in the floppy drive.
BOOLEAN vdd_raw_write(CBM_FILE HandleDevice)
Write data to the IEC serial bus.
BOOLEAN vdd_usleep(VOID)
Sleep some microseconds.
BOOLEAN vdd_upload(CBM_FILE HandleDevice)
Upload a program into a floppy's drive memory.
BOOLEAN vdd_talk(CBM_FILE HandleDevice)
Send a TALK on the IEC serial bus.
BOOLEAN vdd_get_eoi(CBM_FILE HandleDevice)
Get EOI flag after bus read.
BOOLEAN vdd_iec_setrelease(CBM_FILE HandleDevice)
Activate and deactive a line on the IEC serial bus.
BOOLEAN vdd_raw_read(CBM_FILE HandleDevice)
Read data from the IEC serial bus.
EXTERN VOID VDDRegisterInit(VOID)
RegisterModule processing.
BOOLEAN vdd_uninstall_iohook(CBM_FILE HandleDevice)
Uninstall the I/O hook.
USHORT vdd_uninstall_iohook_internal(VOID)
Uninstall the I/O hook.
DLL interface for accessing the driver.
BOOLEAN vdd_driver_close(CBM_FILE HandleDevice)
Closes the driver.
BOOLEAN vdd_identify_xp1541(CBM_FILE HandleDevice)
Identify the cable connected to a specific floppy drive.
BOOLEAN vdd_pp_read(CBM_FILE HandleDevice)
Read a byte from a XP1541/XP1571 cable.
BOOLEAN vdd_install_iohook(CBM_FILE HandleDevice)
Install the I/O hook.
BOOLEAN vdd_unlisten(CBM_FILE HandleDevice)
Send an UNLISTEN on the IEC serial bus.
BOOLEAN vdd_untalk(CBM_FILE HandleDevice)
Send an UNTALK on the IEC serial bus.
CBM_FILE vdd_cbmfile_get(WORD a)
@@@
BOOLEAN vdd_reset(CBM_FILE HandleDevice)
RESET all devices.
BOOLEAN vdd_driver_open(VOID)
Opens the driver.