MAINTAINERS: Make section QOM cover hw/core/*bus.c as well
[qemu/armbru.git] / include / hw / ppc / pnv_pnor.h
blob4f96abdfb402c480c48586e98ab3f3494fe1e07b
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 */
9 #ifndef _PPC_PNV_PNOR_H
10 #define _PPC_PNV_PNOR_H
13 * PNOR offset on the LPC FW address space
15 #define PNOR_SPI_OFFSET 0x0c000000UL
17 #define TYPE_PNV_PNOR "pnv-pnor"
18 #define PNV_PNOR(obj) OBJECT_CHECK(PnvPnor, (obj), TYPE_PNV_PNOR)
20 typedef struct PnvPnor {
21 SysBusDevice parent_obj;
23 BlockBackend *blk;
25 uint8_t *storage;
26 int64_t size;
27 MemoryRegion mmio;
28 } PnvPnor;
30 #endif /* _PPC_PNV_PNOR_H */