2019-10-21 15:12:11 +02:00
|
|
|
/*
|
|
|
|
* 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
|
2020-09-03 22:43:22 +02:00
|
|
|
#include "qom/object.h"
|
2019-10-21 15:12:11 +02:00
|
|
|
|
2019-10-28 08:00:27 +01:00
|
|
|
/*
|
|
|
|
* PNOR offset on the LPC FW address space
|
|
|
|
*/
|
|
|
|
#define PNOR_SPI_OFFSET 0x0c000000UL
|
|
|
|
|
2019-10-21 15:12:11 +02:00
|
|
|
#define TYPE_PNV_PNOR "pnv-pnor"
|
2020-09-16 20:25:19 +02:00
|
|
|
OBJECT_DECLARE_SIMPLE_TYPE(PnvPnor, PNV_PNOR)
|
2019-10-21 15:12:11 +02:00
|
|
|
|
2020-09-03 22:43:22 +02:00
|
|
|
struct PnvPnor {
|
2019-10-21 15:12:11 +02:00
|
|
|
SysBusDevice parent_obj;
|
|
|
|
|
|
|
|
BlockBackend *blk;
|
|
|
|
|
|
|
|
uint8_t *storage;
|
2020-01-07 18:18:09 +01:00
|
|
|
int64_t size;
|
2019-10-21 15:12:11 +02:00
|
|
|
MemoryRegion mmio;
|
2020-09-03 22:43:22 +02:00
|
|
|
};
|
2019-10-21 15:12:11 +02:00
|
|
|
|
|
|
|
#endif /* _PPC_PNV_PNOR_H */
|