2 * djMEMC, macintosh memory and interrupt controller
3 * (Quadra 610/650/800 & Centris 610/650)
5 * SPDX-License-Identifier: GPL-2.0-or-later
8 #ifndef HW_MISC_DJMEMC_H
9 #define HW_MISC_DJMEMC_H
11 #include "hw/sysbus.h"
13 #define DJMEMC_SIZE 0x2000
14 #define DJMEMC_NUM_REGS (0x38 / sizeof(uint32_t))
16 #define DJMEMC_MAXBANKS 10
19 SysBusDevice parent_obj
;
21 MemoryRegion mem_regs
;
23 /* Memory controller */
24 uint32_t regs
[DJMEMC_NUM_REGS
];
27 #define TYPE_DJMEMC "djMEMC"
28 OBJECT_DECLARE_SIMPLE_TYPE(DJMEMCState
, DJMEMC
);