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