#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 |
| #define MAPLE_TICK_SHIFT 17 |
Definition at line 68 of file dev_dreamcast_maple.cc.
| #define MAX_CHARS 8192 |
Definition at line 65 of file dev_dreamcast_maple.cc.
| #define MAX_CONTROLLER_DATA 4096 |
Definition at line 66 of file dev_dreamcast_maple.cc.
| #define N_MAPLE_PORTS 4 |
Definition at line 63 of file dev_dreamcast_maple.cc.
| DEVICE_ACCESS | ( | dreamcast_maple | ) |
Definition at line 546 of file dev_dreamcast_maple.cc.
References data, debug, dreamcast_maple_data::dmaaddr, dreamcast_maple_data::enable, fatal(), maple_do_dma_xfer(), MEM_READ, MEM_WRITE, memory_readmax64(), memory_writemax64(), and dreamcast_maple_data::timeout.
| DEVICE_TICK | ( | maple | ) |
Definition at line 135 of file dev_dreamcast_maple.cc.
References dreamcast_maple_data::char_queue, dreamcast_maple_data::char_queue_head, dreamcast_maple_data::char_queue_tail, dreamcast_maple_data::console_handle, console_readchar(), dreamcast_maple_data::controller_queue, dreamcast_maple_data::controller_queue_head, dreamcast_maple_data::controller_queue_tail, fatal(), MAX_CHARS, and MAX_CONTROLLER_DATA.
| DEVINIT | ( | dreamcast_maple | ) |
Definition at line 643 of file dev_dreamcast_maple.cc.
References CHECK_ALLOCATION, dreamcast_maple_data::console_handle, console_start_slave_inputonly(), dreamcast_maple_data::device, DM_DEFAULT, devinit::machine, machine_add_tickfunction(), machine::main_console_handle, maple_device_controller, maple_device_keyboard, MAPLE_TICK_SHIFT, machine::memory, memory_device_register(), and devinit::name.
| void maple_do_dma_xfer | ( | struct cpu * | cpu, |
| struct dreamcast_maple_data * | d | ||
| ) |
Definition at line 380 of file dev_dreamcast_maple.cc.
References addr, cond, debug, dreamcast_maple_data::device, maple_device::devinfo, dreamcast_maple_data::dmaaddr, dreamcast_maple_data::enable, fatal(), LE32_TO_HOST, MAPLE_COMMAND_DEVINFO, MAPLE_COMMAND_GETCOND, MAPLE_FN_CONTROLLER, MAPLE_FUNC, MAPLE_RESPONSE_DEVINFO, cpu::mem, MEM_READ, MEM_WRITE, cpu::memory_rw, NO_EXCEPTIONS, and PHYSICAL.
Referenced by DEVICE_ACCESS().
| struct maple_device maple_device_controller |
Definition at line 97 of file dev_dreamcast_maple.cc.
Referenced by DEVINIT().
| struct maple_device maple_device_keyboard |
Definition at line 109 of file dev_dreamcast_maple.cc.
Referenced by DEVINIT().
| struct maple_device maple_device_mouse |
Definition at line 121 of file dev_dreamcast_maple.cc.
1.8.17