2 * QEMU PowerPC PAPR SCM backend definitions
4 * Copyright (c) 2020, IBM Corporation.
6 * This code is licensed under the GPL version 2 or later. See the
7 * COPYING file in the top-level directory.
10 #ifndef HW_SPAPR_NVDIMM_H
11 #define HW_SPAPR_NVDIMM_H
13 #include "hw/mem/nvdimm.h"
15 typedef struct SpaprDrc SpaprDrc
;
16 typedef struct SpaprMachineState SpaprMachineState
;
18 int spapr_pmem_dt_populate(SpaprDrc
*drc
, SpaprMachineState
*spapr
,
19 void *fdt
, int *fdt_start_offset
, Error
**errp
);
20 void spapr_dt_persistent_memory(SpaprMachineState
*spapr
, void *fdt
);
21 bool spapr_nvdimm_validate(HotplugHandler
*hotplug_dev
, NVDIMMDevice
*nvdimm
,
22 uint64_t size
, Error
**errp
);
23 void spapr_add_nvdimm(DeviceState
*dev
, uint64_t slot
);
24 void spapr_nvdimm_finish_flushes(void);