dev_osiop.cc File Reference

Back to the index.

Classes | Macros | Functions | Variables
dev_osiop.cc File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "console.h"
#include "cpu.h"
#include "device.h"
#include "diskimage.h"
#include "interrupt.h"
#include "machine.h"
#include "memory.h"
#include "misc.h"
#include "thirdparty/osiopreg.h"

Go to the source code of this file.

Classes

struct  osiop_data
 

Macros

#define DEV_OSIOP_LENGTH   OSIOP_NREGS
 
#define OSIOP_CHIP_REVISION   2
 
#define MAX_SCRIPTS_PER_CHUNK   256 /* 256 may be a reasonable value? */
 
#define OSIOP_TICK_SHIFT   17
 

Functions

uint32_t osiop_get_next_scripts_word (struct cpu *cpu, struct osiop_data *d)
 
int osiop_execute_scripts_instr (struct cpu *cpu, struct osiop_data *d)
 
void osiop_execute_scripts (struct cpu *cpu, struct osiop_data *d)
 
 DEVICE_TICK (osiop)
 
 DEVICE_ACCESS (osiop)
 
 DEVINIT (osiop)
 

Variables

const int osiop_debug = 0
 

Macro Definition Documentation

◆ DEV_OSIOP_LENGTH

#define DEV_OSIOP_LENGTH   OSIOP_NREGS

Definition at line 69 of file dev_osiop.cc.

◆ MAX_SCRIPTS_PER_CHUNK

#define MAX_SCRIPTS_PER_CHUNK   256 /* 256 may be a reasonable value? */

Definition at line 72 of file dev_osiop.cc.

◆ OSIOP_CHIP_REVISION

#define OSIOP_CHIP_REVISION   2

Definition at line 70 of file dev_osiop.cc.

◆ OSIOP_TICK_SHIFT

#define OSIOP_TICK_SHIFT   17

Definition at line 74 of file dev_osiop.cc.

Function Documentation

◆ DEVICE_ACCESS()

DEVICE_ACCESS ( osiop  )

◆ DEVICE_TICK()

DEVICE_TICK ( osiop  )

Definition at line 804 of file dev_osiop.cc.

References osiop_execute_scripts(), and osiop_data::scripts_running.

◆ DEVINIT()

DEVINIT ( osiop  )

◆ osiop_execute_scripts()

void osiop_execute_scripts ( struct cpu cpu,
struct osiop_data d 
)

◆ osiop_execute_scripts_instr()

int osiop_execute_scripts_instr ( struct cpu cpu,
struct osiop_data d 
)

◆ osiop_get_next_scripts_word()

uint32_t osiop_get_next_scripts_word ( struct cpu cpu,
struct osiop_data d 
)

Definition at line 255 of file dev_osiop.cc.

References fatal(), if(), instr, OSIOP_DSP, and osiop_data::reg.

Referenced by osiop_execute_scripts_instr().

Variable Documentation

◆ osiop_debug

const int osiop_debug = 0

Definition at line 62 of file dev_osiop.cc.

Referenced by osiop_execute_scripts(), and osiop_execute_scripts_instr().


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