dev_dreamcast_gdrom.cc File Reference

Back to the index.

Classes | Macros | Functions
dev_dreamcast_gdrom.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/dreamcast_sysasicvar.h"

Go to the source code of this file.

Classes

struct  dreamcast_gdrom_data
 

Macros

#define NREGS_GDROM_DMA   (0x100/sizeof(uint32_t))
 
#define GDROM_BUSY   0x18
 
#define GDROM_DATA   0x80
 
#define GDROM_REGX   0x84
 
#define GDROM_UNKNOWN_0x88   0x88
 
#define GDROM_STAT   0x8c
 
#define GDROM_CNTLO   0x90
 
#define GDROM_CNTHI   0x94
 
#define GDROM_COND   0x9c
 
#define COND_DATA_AVAIL   0x08
 

Functions

void dreamcast_gdrom_update_stat (struct cpu *cpu, struct dreamcast_gdrom_data *d)
 
 DEVICE_ACCESS (dreamcast_gdrom)
 
 DEVICE_ACCESS (dreamcast_gdrom_dma)
 
 DEVINIT (dreamcast_gdrom)
 

Macro Definition Documentation

◆ COND_DATA_AVAIL

#define COND_DATA_AVAIL   0x08

Definition at line 83 of file dev_dreamcast_gdrom.cc.

◆ GDROM_BUSY

#define GDROM_BUSY   0x18

Definition at line 73 of file dev_dreamcast_gdrom.cc.

◆ GDROM_CNTHI

#define GDROM_CNTHI   0x94

Definition at line 79 of file dev_dreamcast_gdrom.cc.

◆ GDROM_CNTLO

#define GDROM_CNTLO   0x90

Definition at line 78 of file dev_dreamcast_gdrom.cc.

◆ GDROM_COND

#define GDROM_COND   0x9c

Definition at line 80 of file dev_dreamcast_gdrom.cc.

◆ GDROM_DATA

#define GDROM_DATA   0x80

Definition at line 74 of file dev_dreamcast_gdrom.cc.

◆ GDROM_REGX

#define GDROM_REGX   0x84

Definition at line 75 of file dev_dreamcast_gdrom.cc.

◆ GDROM_STAT

#define GDROM_STAT   0x8c

Definition at line 77 of file dev_dreamcast_gdrom.cc.

◆ GDROM_UNKNOWN_0x88

#define GDROM_UNKNOWN_0x88   0x88

Definition at line 76 of file dev_dreamcast_gdrom.cc.

◆ NREGS_GDROM_DMA

#define NREGS_GDROM_DMA   (0x100/sizeof(uint32_t))

Definition at line 51 of file dev_dreamcast_gdrom.cc.

Function Documentation

◆ DEVICE_ACCESS() [1/2]

DEVICE_ACCESS ( dreamcast_gdrom  )

◆ DEVICE_ACCESS() [2/2]

DEVICE_ACCESS ( dreamcast_gdrom_dma  )

◆ DEVINIT()

DEVINIT ( dreamcast_gdrom  )

◆ dreamcast_gdrom_update_stat()

void dreamcast_gdrom_update_stat ( struct cpu cpu,
struct dreamcast_gdrom_data d 
)

Generated on Tue Mar 24 2020 14:04:48 for GXemul by doxygen 1.8.17