#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "cpu.h"
#include "device.h"
#include "devices.h"
#include "memory.h"
#include "machine.h"
#include "misc.h"
Go to the source code of this file.
Classes | |
struct | sgi_mardigras_data |
Macros | |
#define | debug fatal |
#define | DEV_SGI_MARDIGRAS_LENGTH 0x800000 |
#define | MARDIGRAS_FAKE_OFFSET 0x500000000ULL /* hopefully available */ |
#define | MARDIGRAS_DEFAULT_XSIZE 1280 |
#define | MARDIGRAS_DEFAULT_YSIZE 1024 |
#define | MICROCODE_START 0x50000 |
#define | MICROCODE_END 0x55000 |
Functions | |
void | mardigras_20400 (struct cpu *cpu, struct sgi_mardigras_data *d, uint64_t idata) |
DEVICE_ACCESS (sgi_mardigras) | |
DEVINIT (sgi_mardigras) | |
#define debug fatal |
Definition at line 47 of file dev_sgi_mardigras.cc.
Referenced by DEVICE_ACCESS().
#define DEV_SGI_MARDIGRAS_LENGTH 0x800000 |
Definition at line 50 of file dev_sgi_mardigras.cc.
#define MARDIGRAS_DEFAULT_XSIZE 1280 |
Definition at line 53 of file dev_sgi_mardigras.cc.
#define MARDIGRAS_DEFAULT_YSIZE 1024 |
Definition at line 54 of file dev_sgi_mardigras.cc.
#define MARDIGRAS_FAKE_OFFSET 0x500000000ULL /* hopefully available */ |
Definition at line 52 of file dev_sgi_mardigras.cc.
Referenced by DEVINIT().
#define MICROCODE_END 0x55000 |
Definition at line 57 of file dev_sgi_mardigras.cc.
Referenced by DEVICE_ACCESS().
#define MICROCODE_START 0x50000 |
Definition at line 56 of file dev_sgi_mardigras.cc.
Referenced by DEVICE_ACCESS().
DEVICE_ACCESS | ( | sgi_mardigras | ) |
Definition at line 210 of file dev_sgi_mardigras.cc.
References data, debug, sgi_mardigras_data::fb, mardigras_20400(), MEM_READ, MEM_WRITE, memory_readmax64(), memory_writemax64(), MICROCODE_END, sgi_mardigras_data::microcode_ram, MICROCODE_START, sgi_mardigras_data::palette_reg_select, and vfb_data::rgb_palette.
DEVINIT | ( | sgi_mardigras | ) |
Definition at line 300 of file dev_sgi_mardigras.cc.
References CHECK_ALLOCATION, dev_fb_init(), sgi_mardigras_data::fb, devinit::machine, MARDIGRAS_FAKE_OFFSET, machine::memory, and VFB_GENERIC.
void mardigras_20400 | ( | struct cpu * | cpu, |
struct sgi_mardigras_data * | d, | ||
uint64_t | idata | ||
) |
Definition at line 80 of file dev_sgi_mardigras.cc.
References addr, sgi_mardigras_data::color, sgi_mardigras_data::fb, vfb_data::rgb_palette, sgi_mardigras_data::startx, and sgi_mardigras_data::starty.
Referenced by DEVICE_ACCESS().