dev_dreamcast_g2.cc File Reference

Back to the index.

Classes | Macros | Functions
dev_dreamcast_g2.cc File Reference
#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)
 

Macro Definition Documentation

◆ EXTDMA_CTRL_CHAN_ENABLE

#define EXTDMA_CTRL_CHAN_ENABLE   0x14 /* Channel enable */

Definition at line 72 of file dev_dreamcast_g2.cc.

◆ EXTDMA_CTRL_DIR

#define EXTDMA_CTRL_DIR   0x0c

Definition at line 70 of file dev_dreamcast_g2.cc.

◆ EXTDMA_CTRL_EXT_ADDR

#define EXTDMA_CTRL_EXT_ADDR   0x00 /* EXTDMA_CTRL_* are repeated */

Definition at line 67 of file dev_dreamcast_g2.cc.

◆ EXTDMA_CTRL_MODE

#define EXTDMA_CTRL_MODE   0x10

Definition at line 71 of file dev_dreamcast_g2.cc.

◆ EXTDMA_CTRL_SH4_ADDR

#define EXTDMA_CTRL_SH4_ADDR   0x04 /* 4 times (once for each channel) */

Definition at line 68 of file dev_dreamcast_g2.cc.

◆ EXTDMA_CTRL_SIZE

#define EXTDMA_CTRL_SIZE   0x08

Definition at line 69 of file dev_dreamcast_g2.cc.

◆ EXTDMA_CTRL_STATUS

#define EXTDMA_CTRL_STATUS   0x1c /* Transfer status */

Definition at line 74 of file dev_dreamcast_g2.cc.

◆ EXTDMA_CTRL_XFER_ENABLE

#define EXTDMA_CTRL_XFER_ENABLE   0x18 /* Transfer enable */

Definition at line 73 of file dev_dreamcast_g2.cc.

◆ EXTDMA_MAGIC

#define EXTDMA_MAGIC   0xbc

Definition at line 77 of file dev_dreamcast_g2.cc.

◆ EXTDMA_MAGIC_VALUE

#define EXTDMA_MAGIC_VALUE   0x4659404f

Definition at line 78 of file dev_dreamcast_g2.cc.

◆ EXTDMA_MAGIC_VALUE_ROM

#define EXTDMA_MAGIC_VALUE_ROM   0x46597f00

Definition at line 79 of file dev_dreamcast_g2.cc.

◆ EXTDMA_STAT_EXT_ADDR

#define EXTDMA_STAT_EXT_ADDR   0xc0 /* EXTDMA_STAT_* are repeated 4 */

Definition at line 81 of file dev_dreamcast_g2.cc.

◆ EXTDMA_STAT_SH4_ADDR

#define EXTDMA_STAT_SH4_ADDR   0xc4 /* times too */

Definition at line 82 of file dev_dreamcast_g2.cc.

◆ EXTDMA_STAT_SIZE

#define EXTDMA_STAT_SIZE   0xc8

Definition at line 83 of file dev_dreamcast_g2.cc.

◆ EXTDMA_STAT_STATUS

#define EXTDMA_STAT_STATUS   0xcc

Definition at line 84 of file dev_dreamcast_g2.cc.

◆ EXTDMA_WAITSTATE

#define EXTDMA_WAITSTATE   0x90

Definition at line 76 of file dev_dreamcast_g2.cc.

◆ NREGS_EXT_DMA

#define NREGS_EXT_DMA   (0x80/sizeof(uint32_t))

Definition at line 51 of file dev_dreamcast_g2.cc.

◆ NREGS_MISC

#define NREGS_MISC   (0x80/sizeof(uint32_t))

Definition at line 52 of file dev_dreamcast_g2.cc.

Function Documentation

◆ DEVICE_ACCESS() [1/2]

DEVICE_ACCESS ( dreamcast_g2_extdma  )

◆ DEVICE_ACCESS() [2/2]

DEVICE_ACCESS ( dreamcast_g2_misc  )

◆ DEVINIT()

DEVINIT ( dreamcast_g2  )

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