xref: /openbmc/qemu/include/hw/misc/djmemc.h (revision c36dd41b)
1 /*
2  * djMEMC, macintosh memory and interrupt controller
3  * (Quadra 610/650/800 & Centris 610/650)
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  */
7 
8 #ifndef HW_MISC_DJMEMC_H
9 #define HW_MISC_DJMEMC_H
10 
11 #include "hw/sysbus.h"
12 
13 #define DJMEMC_SIZE        0x2000
14 #define DJMEMC_NUM_REGS    (0x38 / sizeof(uint32_t))
15 
16 #define DJMEMC_MAXBANKS    10
17 
18 struct DJMEMCState {
19     SysBusDevice parent_obj;
20 
21     MemoryRegion mem_regs;
22 
23     /* Memory controller */
24     uint32_t regs[DJMEMC_NUM_REGS];
25 };
26 
27 #define TYPE_DJMEMC "djMEMC"
28 OBJECT_DECLARE_SIMPLE_TYPE(DJMEMCState, DJMEMC);
29 
30 #endif
31