diff options
Diffstat (limited to 'include/hw/ppc/pnv_pnor.h')
-rw-r--r-- | include/hw/ppc/pnv_pnor.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/hw/ppc/pnv_pnor.h b/include/hw/ppc/pnv_pnor.h new file mode 100644 index 000000000..99f9a3adf --- /dev/null +++ b/include/hw/ppc/pnv_pnor.h @@ -0,0 +1,31 @@ +/* + * QEMU PowerNV PNOR simple model + * + * Copyright (c) 2019, IBM Corporation. + * + * This code is licensed under the GPL version 2 or later. See the + * COPYING file in the top-level directory. + */ +#ifndef _PPC_PNV_PNOR_H +#define _PPC_PNV_PNOR_H +#include "qom/object.h" + +/* + * PNOR offset on the LPC FW address space + */ +#define PNOR_SPI_OFFSET 0x0c000000UL + +#define TYPE_PNV_PNOR "pnv-pnor" +OBJECT_DECLARE_SIMPLE_TYPE(PnvPnor, PNV_PNOR) + +struct PnvPnor { + SysBusDevice parent_obj; + + BlockBackend *blk; + + uint8_t *storage; + int64_t size; + MemoryRegion mmio; +}; + +#endif /* _PPC_PNV_PNOR_H */ |