Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / include / hw / misc / djmemc.h
blob82d4e4a2fee248b8d18f3c8f97e4eba55f745424
1 /*
2 * djMEMC, macintosh memory and interrupt controller
3 * (Quadra 610/650/800 & Centris 610/650)
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
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
18 struct DJMEMCState {
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);
30 #endif