#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "cpu.h"
#include "device.h"
#include "machine.h"
#include "memory.h"
#include "misc.h"
Go to the source code of this file.
Classes | |
struct | dreamcast_g2_data |
Macros | |
#define | NREGS_EXT_DMA (0x80/sizeof(uint32_t)) |
#define | NREGS_MISC (0x80/sizeof(uint32_t)) |
#define | EXTDMA_CTRL_EXT_ADDR 0x00 /* EXTDMA_CTRL_* are repeated */ |
#define | EXTDMA_CTRL_SH4_ADDR 0x04 /* 4 times (once for each channel) */ |
#define | EXTDMA_CTRL_SIZE 0x08 |
#define | EXTDMA_CTRL_DIR 0x0c |
#define | EXTDMA_CTRL_MODE 0x10 |
#define | EXTDMA_CTRL_CHAN_ENABLE 0x14 /* Channel enable */ |
#define | EXTDMA_CTRL_XFER_ENABLE 0x18 /* Transfer enable */ |
#define | EXTDMA_CTRL_STATUS 0x1c /* Transfer status */ |
#define | EXTDMA_WAITSTATE 0x90 |
#define | EXTDMA_MAGIC 0xbc |
#define | EXTDMA_MAGIC_VALUE 0x4659404f |
#define | EXTDMA_MAGIC_VALUE_ROM 0x46597f00 |
#define | EXTDMA_STAT_EXT_ADDR 0xc0 /* EXTDMA_STAT_* are repeated 4 */ |
#define | EXTDMA_STAT_SH4_ADDR 0xc4 /* times too */ |
#define | EXTDMA_STAT_SIZE 0xc8 |
#define | EXTDMA_STAT_STATUS 0xcc |
Functions | |
DEVICE_ACCESS (dreamcast_g2_extdma) | |
DEVICE_ACCESS (dreamcast_g2_misc) | |
DEVINIT (dreamcast_g2) | |
#define EXTDMA_CTRL_CHAN_ENABLE 0x14 /* Channel enable */ |
Definition at line 72 of file dev_dreamcast_g2.cc.
Referenced by DEVICE_ACCESS().
#define EXTDMA_CTRL_DIR 0x0c |
Definition at line 70 of file dev_dreamcast_g2.cc.
Referenced by DEVICE_ACCESS().
#define EXTDMA_CTRL_EXT_ADDR 0x00 /* EXTDMA_CTRL_* are repeated */ |
Definition at line 67 of file dev_dreamcast_g2.cc.
Referenced by DEVICE_ACCESS().
#define EXTDMA_CTRL_MODE 0x10 |
Definition at line 71 of file dev_dreamcast_g2.cc.
Referenced by DEVICE_ACCESS().
#define EXTDMA_CTRL_SH4_ADDR 0x04 /* 4 times (once for each channel) */ |
Definition at line 68 of file dev_dreamcast_g2.cc.
Referenced by DEVICE_ACCESS().
#define EXTDMA_CTRL_SIZE 0x08 |
Definition at line 69 of file dev_dreamcast_g2.cc.
Referenced by DEVICE_ACCESS().
#define EXTDMA_CTRL_STATUS 0x1c /* Transfer status */ |
Definition at line 74 of file dev_dreamcast_g2.cc.
Referenced by DEVICE_ACCESS().
#define EXTDMA_CTRL_XFER_ENABLE 0x18 /* Transfer enable */ |
Definition at line 73 of file dev_dreamcast_g2.cc.
Referenced by DEVICE_ACCESS().
#define EXTDMA_MAGIC 0xbc |
Definition at line 77 of file dev_dreamcast_g2.cc.
Referenced by DEVICE_ACCESS().
#define EXTDMA_MAGIC_VALUE 0x4659404f |
Definition at line 78 of file dev_dreamcast_g2.cc.
Referenced by DEVICE_ACCESS().
#define EXTDMA_MAGIC_VALUE_ROM 0x46597f00 |
Definition at line 79 of file dev_dreamcast_g2.cc.
Referenced by DEVICE_ACCESS().
#define EXTDMA_STAT_EXT_ADDR 0xc0 /* EXTDMA_STAT_* are repeated 4 */ |
Definition at line 81 of file dev_dreamcast_g2.cc.
#define EXTDMA_STAT_SH4_ADDR 0xc4 /* times too */ |
Definition at line 82 of file dev_dreamcast_g2.cc.
#define EXTDMA_STAT_SIZE 0xc8 |
Definition at line 83 of file dev_dreamcast_g2.cc.
#define EXTDMA_STAT_STATUS 0xcc |
Definition at line 84 of file dev_dreamcast_g2.cc.
#define EXTDMA_WAITSTATE 0x90 |
Definition at line 76 of file dev_dreamcast_g2.cc.
Referenced by DEVICE_ACCESS().
#define NREGS_EXT_DMA (0x80/sizeof(uint32_t)) |
Definition at line 51 of file dev_dreamcast_g2.cc.
#define NREGS_MISC (0x80/sizeof(uint32_t)) |
Definition at line 52 of file dev_dreamcast_g2.cc.
DEVICE_ACCESS | ( | dreamcast_g2_extdma | ) |
Definition at line 87 of file dev_dreamcast_g2.cc.
References data, debug, EXTDMA_CTRL_CHAN_ENABLE, EXTDMA_CTRL_DIR, EXTDMA_CTRL_EXT_ADDR, EXTDMA_CTRL_MODE, EXTDMA_CTRL_SH4_ADDR, EXTDMA_CTRL_SIZE, EXTDMA_CTRL_STATUS, EXTDMA_CTRL_XFER_ENABLE, EXTDMA_MAGIC, EXTDMA_MAGIC_VALUE, EXTDMA_MAGIC_VALUE_ROM, dreamcast_g2_data::extdma_reg, EXTDMA_WAITSTATE, fatal(), MEM_READ, MEM_WRITE, memory_readmax64(), memory_writemax64(), and reg.
DEVICE_ACCESS | ( | dreamcast_g2_misc | ) |
Definition at line 241 of file dev_dreamcast_g2.cc.
References data, debug, fatal(), MEM_READ, MEM_WRITE, memory_readmax64(), memory_writemax64(), and dreamcast_g2_data::misc_reg.
DEVINIT | ( | dreamcast_g2 | ) |
Definition at line 285 of file dev_dreamcast_g2.cc.
References CHECK_ALLOCATION, DM_DEFAULT, devinit::machine, machine::memory, and memory_device_register().