| 1 | /* |
| 2 | * MAX78000 Instruction Cache |
| 3 | * |
| 4 | * Copyright (c) 2025 Jackson Donaldson <jcksn@duck.com> |
| 5 | * |
| 6 | * SPDX-License-Identifier: GPL-2.0-or-later |
| 7 | */ |
| 8 | |
| 9 | #ifndef HW_MAX78000_ICC_H |
| 10 | #define HW_MAX78000_ICC_H |
| 11 | |
| 12 | #include "hw/core/sysbus.h" |
| 13 | #include "qom/object.h" |
| 14 | |
| 15 | #define TYPE_MAX78000_ICC "max78000-icc" |
| 16 | OBJECT_DECLARE_SIMPLE_TYPE(Max78000IccState, MAX78000_ICC) |
| 17 | |
| 18 | #define ICC_INFO 0x0 |
| 19 | #define ICC_SZ 0x4 |
| 20 | #define ICC_CTRL 0x100 |
| 21 | #define ICC_INVALIDATE 0x700 |
| 22 | |
| 23 | struct Max78000IccState { |
| 24 | SysBusDevice parent_obj; |
| 25 | |
| 26 | MemoryRegion mmio; |
| 27 | |
| 28 | uint32_t info; |
| 29 | uint32_t sz; |
| 30 | uint32_t ctrl; |
| 31 | }; |
| 32 | |
| 33 | #endif |