Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Macros | Functions | Variables
exdos_wd.c File Reference
#include "xemu/emutools.h"
#include "xemu/emutools_files.h"
#include "enterprise128.h"
#include "exdos_wd.h"
#include "configdb.h"
#include <unistd.h>
#include <sys/types.h>
#include <errno.h>
#include <fcntl.h>
Include dependency graph for exdos_wd.c:

Go to the source code of this file.

Macros

#define DEBUGEXDOS   DEBUG
 
#define WDINT_ON   0x3E
 
#define WDINT_OFF   0x3C
 
#define WDDRQ   2
 
#define SEEK_ERROR   (32 | 16 | 8)
 
#define SEEK_OK   32
 

Functions

void wd_detach_disk_image (void)
 
int wd_attach_disk_image (const char *fn)
 
void wd_exdos_reset (void)
 
Uint8 wd_read_status (void)
 
Uint8 wd_read_data (void)
 
Uint8 wd_read_exdos_status (void)
 
void wd_send_command (Uint8 value)
 
void wd_write_data (Uint8 value)
 
void wd_set_exdos_control (Uint8 value)
 

Variables

int wd_max_tracks
 
int wd_max_sectors
 
int wd_image_size
 
Uint8 wd_sector
 
Uint8 wd_track
 

Macro Definition Documentation

◆ DEBUGEXDOS

#define DEBUGEXDOS   DEBUG

Definition at line 37 of file exdos_wd.c.

◆ SEEK_ERROR

#define SEEK_ERROR   (32 | 16 | 8)

Definition at line 54 of file exdos_wd.c.

◆ SEEK_OK

#define SEEK_OK   32

Definition at line 56 of file exdos_wd.c.

◆ WDDRQ

#define WDDRQ   2

Definition at line 52 of file exdos_wd.c.

◆ WDINT_OFF

#define WDINT_OFF   0x3C

Definition at line 51 of file exdos_wd.c.

◆ WDINT_ON

#define WDINT_ON   0x3E

Definition at line 50 of file exdos_wd.c.

Function Documentation

◆ wd_attach_disk_image()

int wd_attach_disk_image ( const char *  fn)

Definition at line 126 of file exdos_wd.c.

Here is the call graph for this function:

◆ wd_detach_disk_image()

void wd_detach_disk_image ( void  )

Definition at line 114 of file exdos_wd.c.

Here is the caller graph for this function:

◆ wd_exdos_reset()

void wd_exdos_reset ( void  )

Definition at line 163 of file exdos_wd.c.

Here is the caller graph for this function:

◆ wd_read_data()

Uint8 wd_read_data ( void  )

Definition at line 233 of file exdos_wd.c.

Here is the caller graph for this function:

◆ wd_read_exdos_status()

Uint8 wd_read_exdos_status ( void  )

Definition at line 245 of file exdos_wd.c.

Here is the caller graph for this function:

◆ wd_read_status()

Uint8 wd_read_status ( void  )

Definition at line 225 of file exdos_wd.c.

Here is the caller graph for this function:

◆ wd_send_command()

void wd_send_command ( Uint8  value)

Definition at line 252 of file exdos_wd.c.

Here is the caller graph for this function:

◆ wd_set_exdos_control()

void wd_set_exdos_control ( Uint8  value)

Definition at line 325 of file exdos_wd.c.

Here is the caller graph for this function:

◆ wd_write_data()

void wd_write_data ( Uint8  value)

Definition at line 318 of file exdos_wd.c.

Here is the caller graph for this function:

Variable Documentation

◆ wd_image_size

int wd_image_size

Definition at line 41 of file exdos_wd.c.

◆ wd_max_sectors

int wd_max_sectors

Definition at line 41 of file exdos_wd.c.

◆ wd_max_tracks

int wd_max_tracks

Definition at line 41 of file exdos_wd.c.

◆ wd_sector

Uint8 wd_sector

Definition at line 44 of file exdos_wd.c.

◆ wd_track

Uint8 wd_track

Definition at line 44 of file exdos_wd.c.