Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / include / hw / ppc / pnv_pnor.h
blob2e37ac88bf15cc6ebcb3c55cf03cbcdadbbb520f
1 /*
2 * QEMU PowerNV PNOR simple model
4 * Copyright (c) 2019, IBM Corporation.
6 * This code is licensed under the GPL version 2 or later. See the
7 * COPYING file in the top-level directory.
8 */
10 #ifndef PPC_PNV_PNOR_H
11 #define PPC_PNV_PNOR_H
13 #include "hw/sysbus.h"
16 * PNOR offset on the LPC FW address space
18 #define PNOR_SPI_OFFSET 0x0c000000UL
20 #define TYPE_PNV_PNOR "pnv-pnor"
21 OBJECT_DECLARE_SIMPLE_TYPE(PnvPnor, PNV_PNOR)
23 struct PnvPnor {
24 SysBusDevice parent_obj;
26 BlockBackend *blk;
28 uint8_t *storage;
29 int64_t size;
30 MemoryRegion mmio;
33 #endif /* PPC_PNV_PNOR_H */