dev_dreamcast_maple.cc File Reference

Back to the index.

Classes | Macros | Functions | Variables
dev_dreamcast_maple.cc File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include "console.h"
#include "cpu.h"
#include "device.h"
#include "machine.h"
#include "memory.h"
#include "misc.h"
#include "thirdparty/dreamcast_maple.h"
#include "thirdparty/dreamcast_sysasicvar.h"

Go to the source code of this file.

Classes

struct  maple_device
 
struct  dreamcast_maple_data
 

Macros

#define N_MAPLE_PORTS   4
 
#define MAX_CHARS   8192
 
#define MAX_CONTROLLER_DATA   4096
 
#define MAPLE_TICK_SHIFT   17
 

Functions

 DEVICE_TICK (maple)
 
void maple_do_dma_xfer (struct cpu *cpu, struct dreamcast_maple_data *d)
 
 DEVICE_ACCESS (dreamcast_maple)
 
 DEVINIT (dreamcast_maple)
 

Variables

struct maple_device maple_device_controller
 
struct maple_device maple_device_keyboard
 
struct maple_device maple_device_mouse
 

Macro Definition Documentation

◆ MAPLE_TICK_SHIFT

#define MAPLE_TICK_SHIFT   17

Definition at line 69 of file dev_dreamcast_maple.cc.

◆ MAX_CHARS

#define MAX_CHARS   8192

Definition at line 66 of file dev_dreamcast_maple.cc.

◆ MAX_CONTROLLER_DATA

#define MAX_CONTROLLER_DATA   4096

Definition at line 67 of file dev_dreamcast_maple.cc.

◆ N_MAPLE_PORTS

#define N_MAPLE_PORTS   4

Definition at line 64 of file dev_dreamcast_maple.cc.

Function Documentation

◆ DEVICE_ACCESS()

DEVICE_ACCESS ( dreamcast_maple  )

◆ DEVICE_TICK()

DEVICE_TICK ( maple  )

◆ DEVINIT()

DEVINIT ( dreamcast_maple  )

◆ maple_do_dma_xfer()

void maple_do_dma_xfer ( struct cpu cpu,
struct dreamcast_maple_data d 
)

Variable Documentation

◆ maple_device_controller

struct maple_device maple_device_controller
Initial value:
= {
{
{ LE32_TO_HOST(0xfe060f00),0,0 },
0xff,
0,
"Dreamcast Controller",
"di_product_license",
LE16_TO_HOST(0x01ae),
LE16_TO_HOST(0x01f4)
}
}

Definition at line 1 of file dev_dreamcast_maple.cc.

Referenced by DEVINIT().

◆ maple_device_keyboard

struct maple_device maple_device_keyboard
Initial value:
= {
{
{ LE32_TO_HOST(2),0,0 },
0xff,
0,
"Keyboard",
"di_product_license",
LE16_TO_HOST(100),
}
}

Definition at line 1 of file dev_dreamcast_maple.cc.

Referenced by DEVINIT().

◆ maple_device_mouse

struct maple_device maple_device_mouse
Initial value:
= {
{
{ LE32_TO_HOST(0xfe060f00),0,0 },
0xff,
0,
"Dreamcast Mouse",
"di_product_license",
LE16_TO_HOST(0x0069),
LE16_TO_HOST(0x0120)
}
}

Definition at line 1 of file dev_dreamcast_maple.cc.

LE32_TO_HOST
#define LE32_TO_HOST(x)
Definition: misc.h:180
BE32_TO_HOST
#define BE32_TO_HOST(x)
Definition: misc.h:181
MAPLE_FN_CONTROLLER
#define MAPLE_FN_CONTROLLER
Definition: dreamcast_maple.h:102
MAPLE_FN_MOUSE
#define MAPLE_FN_MOUSE
Definition: dreamcast_maple.h:111
LE16_TO_HOST
#define LE16_TO_HOST(x)
Definition: misc.h:172
MAPLE_FN_KEYBOARD
#define MAPLE_FN_KEYBOARD
Definition: dreamcast_maple.h:108
MAPLE_FUNC
#define MAPLE_FUNC(fn)
Definition: dreamcast_maple.h:113

Generated on Tue Aug 25 2020 19:25:06 for GXemul by doxygen 1.8.18