16 #include <sys/ioctl.h>
20 #include "cbm_module.h"
22 #if defined(__linux__)
23 #include <linux/errno.h>
49 if(retval==(-EFAULT)) {printf(
"cbm4linux: cbm.c: cbm_parallel_burst_read_track: ioctl returned -EFAULT");
return 0;}
61 if(retval==(-EFAULT)) {printf(
"cbm4linux: cbm.c: cbm_parallel_burst_read_track_var: ioctl returned -EFAULT");
return 0;}
73 if(retval==(-EFAULT)) {printf(
"cbm4linux: cbm.c: cbm_parallel_burst_write_track: ioctl returned -EFAULT");
return 0;}
#define CBMCTRL_PARBURST_READ_TRACK
IOCTL for reading a complete track (for parallel burst)
void CBMAPIDECL opencbm_plugin_parallel_burst_write(CBM_FILE HandleDevice, unsigned char Value)
PARBURST: Write to the parallel port.
unsigned char CBMAPIDECL opencbm_plugin_parallel_burst_read(CBM_FILE HandleDevice)
PARBURST: Read from the parallel port.
#define CBMCTRL_PARBURST_WRITE
IOCTL for writing to the parallel port (for controlling parallel burst)
int CBMAPIDECL opencbm_plugin_parallel_burst_read_track(CBM_FILE HandleDevice, unsigned char *Buffer, unsigned int Length)
PARBURST: Read a complete track.
#define CBMCTRL_PARBURST_READ
IOCTL for reading from the parallel port (for controlling parallel burst)
int CBMAPIDECL opencbm_plugin_parallel_burst_read_track_var(CBM_FILE HandleDevice, unsigned char *Buffer, unsigned int Length)
PARBURST: Read a variable length track.
#define CBMCTRL_PARBURST_WRITE_TRACK
IOCTL for writing a complete track (for parallel burst)
#define CBMCTRL_PARBURST_READ_TRACK_VAR
IOCTL for reading a variable length track (for parallel burst)
DLL interface for accessing the driver.
int CBMAPIDECL opencbm_plugin_parallel_burst_write_track(CBM_FILE HandleDevice, unsigned char *Buffer, unsigned int Length)
PARBURST: Write a complete track.