#include <sys/stat.h>
#include <sys/time.h>
#include <stdio.h>
-#include <usb.h>
#include <signal.h>
#include <errno.h>
#include <inttypes.h>
static unsigned long ppbase = 0;
static unsigned long ecpbase = 0;
static struct parport_config *pport = NULL;
-static struct xpcu_s *xpcu = NULL;
static FILE *modulesfp = NULL;
static FILE *baseaddrfp = NULL;
static int baseaddrnum = 0;
#ifndef NO_WINDRVR
ret = (*ioctl_func) (fd, request, wdioctl);
#else
- ret = xpcu_transfer(xpcu, ut);
+ ret = xpcu_transfer(ut);
#endif
#ifdef DEBUG
#ifndef NO_WINDRVR
ret = (*ioctl_func) (fd, request, wdioctl);
#else
- ret = xpcu_int_state(xpcu, it, ENABLE_INTERRUPT);
+ ret = xpcu_int_state(it, ENABLE_INTERRUPT);
#endif
DPRINTF("<- Handle: 0x%lx, Options: %lx, ncmds: %lu, enableok: %lu, count: %lu, lost: %lu, stopped: %lu\n",
#ifndef NO_WINDRVR
ret = (*ioctl_func) (fd, request, wdioctl);
#else
- ret = xpcu_int_state(xpcu, it, DISABLE_INTERRUPT);
+ ret = xpcu_int_state(it, DISABLE_INTERRUPT);
#endif
DPRINTF("<- Handle: 0x%lx, Options: %lx, ncmds: %lu, enableok: %lu, count: %lu, lost: %lu, stopped: %lu\n",
it->hInterrupt, it->dwOptions,
#ifndef NO_WINDRVR
ret = (*ioctl_func) (fd, request, wdioctl);
#else
- ret = xpcu_set_interface(xpcu, usi);
+ ret = xpcu_set_interface(usi);
#endif
DPRINTF("<- unique: 0x%lx, interfacenum: %lu, alternatesetting: %lu, options: %lx\n",
usi->dwUniqueID, usi->dwInterfaceNum,
ugdd->dwUniqueID, ugdd->dwBytes,
ugdd->dwOptions);
- ret = xpcu_deviceinfo(xpcu, ugdd);
+ ret = xpcu_deviceinfo(ugdd);
}
break;
#ifndef NO_WINDRVR
ret = (*ioctl_func) (fd, request, wdioctl);
#else
- xpcu = xpcu_find(e);
+ ret = xpcu_find(e);
#endif
#ifdef DEBUG
#ifndef NO_WINDRVR
ret = (*ioctl_func) (fd, request, wdioctl);
#else
- ret = xpcu_close(xpcu, e);
+ ret = xpcu_close(e);
#endif
}
break;
#ifndef NO_WINDRVR
ret = (*ioctl_func) (fd, request, wdioctl);
#else
- ret = xpcu_int_wait(xpcu, it);
+ ret = xpcu_int_wait(it);
#endif
DPRINTF("<- INT_WAIT_RETURN: Handle: 0x%lx, Options: %lx, ncmds: %lu, enableok: %lu, count: %lu, lost: %lu, stopped: %lu\n",
#ifndef NO_WINDRVR
ret = (*ioctl_func) (fd, request, wdioctl);
#else
- ret = xpcu_found(xpcu, e);
+ ret = xpcu_found(e);
#endif
#ifdef DEBUG
if (fd == windrvrfd && windrvrfd >= 0) {
DPRINTF("close windrvrfd\n");
-
- xpcu = NULL;
windrvrfd = -1;
}