f93c8f148c
The subsequent patches add definitions which tend to get the compilation to cyclic dependency. So, prepare with forward declarations, move the definitions and clean up. Signed-off-by: Shivaprasad G Bhat <sbhat@linux.ibm.com> Message-Id: <162133925415.610.11584121797866216417.stgit@4f1e6f2bd33e> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
26 lines
791 B
C
26 lines
791 B
C
/*
|
|
* QEMU PowerPC PAPR SCM backend definitions
|
|
*
|
|
* Copyright (c) 2020, IBM Corporation.
|
|
*
|
|
* This code is licensed under the GPL version 2 or later. See the
|
|
* COPYING file in the top-level directory.
|
|
*/
|
|
|
|
#ifndef HW_SPAPR_NVDIMM_H
|
|
#define HW_SPAPR_NVDIMM_H
|
|
|
|
#include "hw/mem/nvdimm.h"
|
|
|
|
typedef struct SpaprDrc SpaprDrc;
|
|
typedef struct SpaprMachineState SpaprMachineState;
|
|
|
|
int spapr_pmem_dt_populate(SpaprDrc *drc, SpaprMachineState *spapr,
|
|
void *fdt, int *fdt_start_offset, Error **errp);
|
|
void spapr_dt_persistent_memory(SpaprMachineState *spapr, void *fdt);
|
|
bool spapr_nvdimm_validate(HotplugHandler *hotplug_dev, NVDIMMDevice *nvdimm,
|
|
uint64_t size, Error **errp);
|
|
void spapr_add_nvdimm(DeviceState *dev, uint64_t slot);
|
|
|
|
#endif
|