dev_wdc.cc File Reference

Back to the index.

Classes | Macros | Functions | Variables
dev_wdc.cc File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "cpu.h"
#include "device.h"
#include "diskimage.h"
#include "machine.h"
#include "memory.h"
#include "misc.h"
#include "thirdparty/wdcreg.h"

Go to the source code of this file.

Classes

struct  wdc_data
 

Macros

#define DEV_WDC_LENGTH   8
 
#define WDC_TICK_SHIFT   14
 
#define WDC_MAX_SECTORS   512
 
#define WDC_INBUF_SIZE   (512*(WDC_MAX_SECTORS+1))
 
#define COMMAND_RESET   0x100
 
#define MAX_SECTORS_PER_CHUNK   64
 

Functions

 DEVICE_TICK (wdc)
 
int wdc_set_io_enabled (struct wdc_data *d, int io_enabled)
 
void wdc__read (struct cpu *cpu, struct wdc_data *d)
 
void wdc__write (struct cpu *cpu, struct wdc_data *d)
 
 DEVICE_ACCESS (wdc_altstatus)
 
void wdc_command (struct cpu *cpu, struct wdc_data *d, int idata)
 
 DEVICE_ACCESS (wdc)
 
 DEVINIT (wdc)
 

Variables

int quiet_mode
 

Macro Definition Documentation

◆ COMMAND_RESET

#define COMMAND_RESET   0x100

Definition at line 98 of file dev_wdc.cc.

◆ DEV_WDC_LENGTH

#define DEV_WDC_LENGTH   8

Definition at line 45 of file dev_wdc.cc.

Referenced by DEVINIT().

◆ MAX_SECTORS_PER_CHUNK

#define MAX_SECTORS_PER_CHUNK   64

Referenced by wdc__read().

◆ WDC_INBUF_SIZE

#define WDC_INBUF_SIZE   (512*(WDC_MAX_SECTORS+1))

Definition at line 48 of file dev_wdc.cc.

Referenced by DEVINIT(), and wdc__read().

◆ WDC_MAX_SECTORS

#define WDC_MAX_SECTORS   512

Definition at line 47 of file dev_wdc.cc.

◆ WDC_TICK_SHIFT

#define WDC_TICK_SHIFT   14

Definition at line 46 of file dev_wdc.cc.

Referenced by DEVINIT().

Function Documentation

◆ DEVICE_ACCESS() [1/2]

DEVICE_ACCESS ( wdc_altstatus  )

Definition at line 364 of file dev_wdc.cc.

References data.

◆ DEVICE_ACCESS() [2/2]

DEVICE_ACCESS ( wdc  )

◆ DEVICE_TICK()

DEVICE_TICK ( wdc  )

Definition at line 101 of file dev_wdc.cc.

References wdc_data::int_assert, INTERRUPT_ASSERT, and wdc_data::irq.

◆ DEVINIT()

DEVINIT ( wdc  )

◆ wdc__read()

void wdc__read ( struct cpu cpu,
struct wdc_data d 
)

◆ wdc__write()

void wdc__write ( struct cpu cpu,
struct wdc_data d 
)

◆ wdc_command()

void wdc_command ( struct cpu cpu,
struct wdc_data d,
int  idata 
)

◆ wdc_set_io_enabled()

int wdc_set_io_enabled ( struct wdc_data d,
int  io_enabled 
)

Variable Documentation

◆ quiet_mode

int quiet_mode

Definition at line 78 of file main.cc.

Referenced by wdc_command().


Generated on Fri Dec 7 2018 19:52:23 for GXemul by doxygen 1.8.13