qemu-cr16/hw/cr16c/sc14480.h
fridtjof 82c6a0097e wip
2026-05-04 13:33:10 +02:00

30 lines
689 B
C

#ifndef HW_SC14480_H
#define HW_SC14480_H
#include "cpu.h"
#include "hw/sysbus.h"
#define TYPE_SC14480_MCU "SC14480"
typedef struct SC14480McuState SC14480McuState;
DECLARE_INSTANCE_CHECKER(SC14480McuState, SC14480_MCU, TYPE_SC14480_MCU)
struct SC14480McuState {
SysBusDevice parent_obj;
CR16CCPU cpu;
MemoryRegion non_shared_ram_or_icache;
MemoryRegion non_shared_ram_or_dcache;
MemoryRegion shared_int_ram;
MemoryRegion boot_rom;
};
typedef struct SC14480McuClass {
SysBusDeviceClass parent_class;
ResettablePhases parent_phases;
} SC14480McuClass;
DECLARE_CLASS_CHECKERS(SC14480McuClass, SC14480_MCU, TYPE_SC14480_MCU)
#endif /* HW_SC14480_H */