forked from mirror/qemu
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
831 B
C
27 lines
831 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);
|
|
void spapr_nvdimm_finish_flushes(void);
|
|
|
|
#endif
|