Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / include / hw / ppc / spapr_nvdimm.h
blobe9436cb6ef61587e17d11d7fb6f0758f517b561b
1 /*
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.
8 */
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);
26 #endif