#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "cpu.h"
#include "device.h"
#include "interrupt.h"
#include "machine.h"
#include "memory.h"
#include "misc.h"
#include "thirdparty/dec_kn02.h"
Go to the source code of this file.
Classes | |
struct | kn02_data |
Macros | |
#define | DEV_KN02_LENGTH 0x1000 |
Functions | |
void | kn02_interrupt_assert (struct interrupt *interrupt) |
void | kn02_interrupt_deassert (struct interrupt *interrupt) |
DEVICE_ACCESS (kn02) | |
DEVINIT (kn02) | |
#define DEV_KN02_LENGTH 0x1000 |
Definition at line 47 of file dev_kn02.cc.
Referenced by DEVINIT().
DEVICE_ACCESS | ( | kn02 | ) |
Definition at line 86 of file dev_kn02.cc.
References kn02_data::csr, data, debug, kn02_data::int_asserted, INTERRUPT_ASSERT, INTERRUPT_DEASSERT, kn02_data::irq, MEM_READ, MEM_WRITE, memory_readmax64(), and memory_writemax64().
DEVINIT | ( | kn02 | ) |
Definition at line 147 of file dev_kn02.cc.
References devinit::addr, CHECK_ALLOCATION, kn02_data::csr, DEV_KN02_LENGTH, DM_DYNTRANS_OK, interrupt::extra, interrupt::interrupt_assert, INTERRUPT_CONNECT, interrupt::interrupt_deassert, interrupt_handler_register(), devinit::interrupt_path, kn02_data::irq, KN02_CSR_NRMMOD, kn02_interrupt_assert(), kn02_interrupt_deassert(), interrupt::line, devinit::machine, machine::memory, memory_device_register(), devinit::name, and interrupt::name.
void kn02_interrupt_assert | ( | struct interrupt * | interrupt | ) |
Definition at line 66 of file dev_kn02.cc.
References kn02_data::csr, interrupt::extra, if(), kn02_data::int_asserted, INTERRUPT_ASSERT, kn02_data::irq, and interrupt::line.
Referenced by DEVINIT().
void kn02_interrupt_deassert | ( | struct interrupt * | interrupt | ) |
Definition at line 75 of file dev_kn02.cc.
References kn02_data::csr, interrupt::extra, if(), kn02_data::int_asserted, INTERRUPT_DEASSERT, kn02_data::irq, and interrupt::line.
Referenced by DEVINIT().