dev_clmpcc.cc Source File
Back to the index.
Go to the documentation of this file.
59 #define CLMPCC_LEN 0x200
60 #define DEV_CLMPCC_TICK_SHIFT 16
75 static void reassert_interrupts(
struct clmpcc_data *d)
98 reassert_interrupts(d);
105 uint64_t idata = 0, odata = 0;
109 d->
reg[relative_addr] = idata;
113 odata = d->
reg[relative_addr];
115 switch (relative_addr) {
156 fatal(
"[ clmpcc: TODO: transmit "
157 "to channel, CAR!=0 ]\n");
162 fatal(
"clmpcc: unimplemented STCR byte "
163 "0x%02x\n", (
int) idata);
188 reassert_interrupts(d);
239 fatal(
"[ clmpcc: TODO: transmit "
240 "to channel, CAR!=0 ]\n");
247 fatal(
"[ clmpcc: unimplemented READ from offset 0x%x ]"
248 "\n", (
int)relative_addr);
250 fatal(
"[ clmpcc: unimplemented WRITE to offset 0x%x: "
251 "0x%x ]\n", (
int)relative_addr, (
int)idata);
283 snprintf(tmpstr,
sizeof(tmpstr),
"%s.%i",
286 snprintf(tmpstr,
sizeof(tmpstr),
"%s.%i",
289 snprintf(tmpstr,
sizeof(tmpstr),
"%s.%i",
292 snprintf(tmpstr,
sizeof(tmpstr),
"%s.%i",
#define CLMPCC_REG_MSVR_RTS
void console_putchar(int handle, int ch)
#define INTERRUPT_CONNECT(name, istruct)
#define INTERRUPT_ASSERT(istruct)
struct interrupt irq_scc_rx
void memory_device_register(struct memory *mem, const char *, uint64_t baseaddr, uint64_t len, int(*f)(struct cpu *, struct memory *, uint64_t, unsigned char *, size_t, int, void *), void *extra, int flags, unsigned char *dyntrans_data)
int console_charavail(int handle)
void machine_add_tickfunction(struct machine *machine, void(*func)(struct cpu *, void *), void *extra, int clockshift)
void fatal(const char *fmt,...)
unsigned char reg[CLMPCC_LEN]
uint64_t memory_readmax64(struct cpu *cpu, unsigned char *buf, int len)
int console_readchar(int handle)
struct interrupt irq_scc_tx
int console_start_slave(struct machine *machine, const char *consolename, int use_for_input)
struct interrupt irq_scc_m
struct interrupt irq_scc_rxe
#define CLMPCC_REG_MSVR_DTR
#define DEV_CLMPCC_TICK_SHIFT
#define INTERRUPT_DEASSERT(istruct)
void memory_writemax64(struct cpu *cpu, unsigned char *buf, int len, uint64_t data)
#define CHECK_ALLOCATION(ptr)
Generated on Tue Aug 25 2020 19:25:06 for GXemul by
1.8.18