1 /* 2 * QEMU PowerNV PNOR simple model 3 * 4 * Copyright (c) 2019, IBM Corporation. 5 * 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 11 12 #define TYPE_PNV_PNOR "pnv-pnor" 13 #define PNV_PNOR(obj) OBJECT_CHECK(PnvPnor, (obj), TYPE_PNV_PNOR) 14 15 typedef struct PnvPnor { 16 SysBusDevice parent_obj; 17 18 BlockBackend *blk; 19 20 uint8_t *storage; 21 uint32_t size; 22 MemoryRegion mmio; 23 } PnvPnor; 24 25 #endif /* _PPC_PNV_PNOR_H */ 26