#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "device.h"
#include "interrupt.h"
#include "machine.h"
#include "memory.h"
#include "misc.h"
#include "thirdparty/dec_5100.h"
Go to the source code of this file.
Classes | |
struct | kn230_data |
Macros | |
#define | DEV_KN230_LENGTH 0x1c00000 |
Functions | |
void | kn230_interrupt_assert (struct interrupt *interrupt) |
void | kn230_interrupt_deassert (struct interrupt *interrupt) |
DEVICE_ACCESS (kn230) | |
DEVINIT (kn230) | |
#define DEV_KN230_LENGTH 0x1c00000 |
Definition at line 45 of file dev_kn230.cc.
DEVICE_ACCESS | ( | kn230 | ) |
Definition at line 96 of file dev_kn230.cc.
References kn230_data::csr, data, debug, MEM_READ, MEM_WRITE, memory_readmax64(), and memory_writemax64().
DEVINIT | ( | kn230 | ) |
Definition at line 132 of file dev_kn230.cc.
References devinit::addr, CHECK_ALLOCATION, DEV_KN230_LENGTH, DM_DEFAULT, interrupt::extra, interrupt::interrupt_assert, INTERRUPT_CONNECT, interrupt::interrupt_deassert, interrupt_handler_register(), devinit::interrupt_path, kn230_interrupt_assert(), kn230_interrupt_deassert(), interrupt::line, devinit::machine, machine::memory, memory_device_register(), kn230_data::mips_irq_2, kn230_data::mips_irq_3, devinit::name, interrupt::name, and devinit::return_ptr.
void kn230_interrupt_assert | ( | struct interrupt * | interrupt | ) |
Definition at line 60 of file dev_kn230.cc.
References kn230_data::csr, interrupt::extra, if(), INTERRUPT_ASSERT, KN230_CSR_INTR_DZ0, KN230_CSR_INTR_LANCE, KN230_CSR_INTR_OPT0, KN230_CSR_INTR_OPT1, KN230_CSR_INTR_SII, interrupt::line, and kn230_data::mips_irq_2.
Referenced by DEVINIT().
void kn230_interrupt_deassert | ( | struct interrupt * | interrupt | ) |
Definition at line 77 of file dev_kn230.cc.
References kn230_data::csr, interrupt::extra, if(), INTERRUPT_DEASSERT, KN230_CSR_INTR_DZ0, KN230_CSR_INTR_LANCE, KN230_CSR_INTR_OPT0, KN230_CSR_INTR_OPT1, KN230_CSR_INTR_SII, interrupt::line, and kn230_data::mips_irq_2.
Referenced by DEVINIT().