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

archmnib_vice.c File Reference

Shared library / DLL for accessing the mnib driver functions, windows specific code for VICE emulation. More...

#include <windows.h>
#include <windowsx.h>
#include <mmsystem.h>
#include "debug.h"
#include <winioctl.h>
#include "cbmioctl.h"
#include <stdlib.h>
#include "i_opencbm.h"
#include "archlib.h"

Go to the source code of this file.

Defines

#define DBG_USERMODE
#define DBG_PROGNAME   "OPENCBM.DLL"
#define DLL
 mark: We are building the DLL */

Functions

__u_char cbmarch_parallel_burst_read (CBM_FILE HandleDevice)
 PARBURST: Read from the parallel port.
void cbmarch_parallel_burst_write (CBM_FILE HandleDevice, __u_char Value)
 PARBURST: Write to the parallel port.
int cbmarch_parallel_burst_read_track (CBM_FILE HandleDevice, __u_char *Buffer, unsigned int Length)
 PARBURST: Read a complete track.
int cbmarch_parallel_burst_write_track (CBM_FILE HandleDevice, __u_char *Buffer, unsigned int Length)
 PARBURST: Write a complete track.


Detailed Description

Shared library / DLL for accessing the mnib driver functions, windows specific code for VICE emulation.

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

Author:
Tim Schürmann, Spiro Trikaliotis
Version:
Id
archmnib_vice.c,v 1.4 2006/03/20 11:26:01 trikalio Exp


Definition in file archmnib_vice.c.


Define Documentation

#define DBG_PROGNAME   "OPENCBM.DLL"
 

The name of the executable

Definition at line 30 of file archmnib_vice.c.

#define DBG_USERMODE
 

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

Definition at line 27 of file archmnib_vice.c.


Function Documentation

__u_char cbmarch_parallel_burst_read CBM_FILE  HandleDevice  ) 
 

PARBURST: Read from the parallel port.

This function is a helper function for parallel burst: It reads from the parallel port.

Parameters:
HandleDevice A CBM_FILE which contains the file handle of the driver.
Returns:
The value read from the parallel port
If cbm_driver_open() did not succeed, it is illegal to call this function.

Definition at line 61 of file archmnib_vice.c.

References FUNC_ENTER, and FUNC_LEAVE_UCHAR.

int cbmarch_parallel_burst_read_track CBM_FILE  HandleDevice,
__u_char *  Buffer,
unsigned int  Length
 

PARBURST: Read a complete track.

This function is a helper function for parallel burst: It reads a complete track from the disk

Parameters:
HandleDevice A CBM_FILE which contains the file handle of the driver.
Buffer Pointer to a buffer which will hold the bytes read.
Length The length of the Buffer.
Returns:
0 on success.
If cbm_driver_open() did not succeed, it is illegal to call this function.

Definition at line 113 of file archmnib_vice.c.

References FUNC_ENTER, and FUNC_LEAVE_INT.

void cbmarch_parallel_burst_write CBM_FILE  HandleDevice,
__u_char  Value
 

PARBURST: Write to the parallel port.

This function is a helper function for parallel burst: It writes to the parallel port.

Parameters:
HandleDevice A CBM_FILE which contains the file handle of the driver.
Value The value to be written to the parallel port
If cbm_driver_open() did not succeed, it is illegal to call this function.

Definition at line 84 of file archmnib_vice.c.

References FUNC_ENTER, and FUNC_LEAVE.

int cbmarch_parallel_burst_write_track CBM_FILE  HandleDevice,
__u_char *  Buffer,
unsigned int  Length
 

PARBURST: Write a complete track.

This function is a helper function for parallel burst: It writes a complete track to the disk

Parameters:
HandleDevice A CBM_FILE which contains the file handle of the driver.
Buffer Pointer to a buffer which hold the bytes to be written.
Length The length of the Buffer.
Returns:
0 on success.
If cbm_driver_open() did not succeed, it is illegal to call this function.

Definition at line 142 of file archmnib_vice.c.

References FUNC_ENTER, and FUNC_LEAVE_INT.


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