9c0928045c
Leading underscores are ill-advised because such identifiers are reserved. Trailing underscores are merely ugly. Strip both. Our header guards commonly end in _H. Normalize the exceptions. Macros should be ALL_CAPS. Normalize the exception. Done with scripts/clean-header-guards.pl. include/hw/xen/interface/ and tools/virtiofsd/ left alone, because these were imported from Xen and libfuse respectively. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20220506134911.2856099-3-armbru@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
34 lines
634 B
C
34 lines
634 B
C
/*
|
|
* 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 */
|