xref: /qemu/include/hw/ppc/pnv_pnor.h (revision abff1abf)
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 /*
13  * PNOR offset on the LPC FW address space
14  */
15 #define PNOR_SPI_OFFSET         0x0c000000UL
16 
17 #define TYPE_PNV_PNOR  "pnv-pnor"
18 #define PNV_PNOR(obj)  OBJECT_CHECK(PnvPnor, (obj), TYPE_PNV_PNOR)
19 
20 typedef struct PnvPnor {
21     SysBusDevice   parent_obj;
22 
23     BlockBackend   *blk;
24 
25     uint8_t        *storage;
26     int64_t        size;
27     MemoryRegion   mmio;
28 } PnvPnor;
29 
30 #endif /* _PPC_PNV_PNOR_H */
31