#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) | |
| #define COND_DATA_AVAIL 0x08 |
Definition at line 83 of file dev_dreamcast_gdrom.cc.
| #define GDROM_BUSY 0x18 |
Definition at line 73 of file dev_dreamcast_gdrom.cc.
| #define GDROM_CNTHI 0x94 |
Definition at line 79 of file dev_dreamcast_gdrom.cc.
| #define GDROM_CNTLO 0x90 |
Definition at line 78 of file dev_dreamcast_gdrom.cc.
| #define GDROM_COND 0x9c |
Definition at line 80 of file dev_dreamcast_gdrom.cc.
| #define GDROM_DATA 0x80 |
Definition at line 74 of file dev_dreamcast_gdrom.cc.
| #define GDROM_REGX 0x84 |
Definition at line 75 of file dev_dreamcast_gdrom.cc.
| #define GDROM_STAT 0x8c |
Definition at line 77 of file dev_dreamcast_gdrom.cc.
| #define GDROM_UNKNOWN_0x88 0x88 |
Definition at line 76 of file dev_dreamcast_gdrom.cc.
| #define NREGS_GDROM_DMA (0x100/sizeof(uint32_t)) |
Definition at line 51 of file dev_dreamcast_gdrom.cc.
| DEVICE_ACCESS | ( | dreamcast_gdrom | ) |
Definition at line 277 of file dev_dreamcast_gdrom.cc.
References dreamcast_gdrom_data::busy, dreamcast_gdrom_data::cmd, dreamcast_gdrom_data::cmd_count, dreamcast_gdrom_data::cnt, dreamcast_gdrom_data::cond, COND_DATA_AVAIL, dreamcast_gdrom_data::cur_cnt, dreamcast_gdrom_data::cur_data_offset, dreamcast_gdrom_data::data, data, dreamcast_gdrom_data::data_len, fatal(), GDROM_BUSY, GDROM_DATA, MEM_READ, MEM_WRITE, memory_readmax64(), SYSASIC_EVENT_GDROM, and SYSASIC_TRIGGER_EVENT.
| DEVICE_ACCESS | ( | dreamcast_gdrom_dma | ) |
Definition at line 449 of file dev_dreamcast_gdrom.cc.
References dreamcast_gdrom_data::data, data, dreamcast_gdrom_data::data_len, dreamcast_gdrom_data::dma_reg, fatal(), cpu::mem, MEM_READ, MEM_WRITE, memory_readmax64(), cpu::memory_rw, memory_writemax64(), PHYSICAL, SYSASIC_EVENT_GDROM_DMA, and SYSASIC_TRIGGER_EVENT.
| DEVINIT | ( | dreamcast_gdrom | ) |
Definition at line 524 of file dev_dreamcast_gdrom.cc.
References CHECK_ALLOCATION, DM_DEFAULT, devinit::machine, machine::memory, memory_device_register(), and devinit::name.
| void dreamcast_gdrom_update_stat | ( | struct cpu * | cpu, |
| struct dreamcast_gdrom_data * | d | ||
| ) |
Definition at line 266 of file dev_dreamcast_gdrom.cc.
References diskimage_exist(), DISKIMAGE_IDE, cpu::machine, and dreamcast_gdrom_data::stat.
1.8.17