mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
nvdimm: Rename AcpiNVDIMMState into NVDIMMState
As we intend to migrate the acpi_nvdimm_state into the base machine with a new dimms_state name, let's also rename the datatype. Signed-off-by: Eric Auger <eric.auger@redhat.com> Suggested-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20190308182053.5487-2-eric.auger@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
314aec4a6e
commit
c1404bde9c
4 changed files with 16 additions and 16 deletions
|
@ -382,7 +382,7 @@ nvdimm_build_structure_caps(GArray *structures, uint32_t capabilities)
|
|||
nfit_caps->capabilities = cpu_to_le32(capabilities);
|
||||
}
|
||||
|
||||
static GArray *nvdimm_build_device_structure(AcpiNVDIMMState *state)
|
||||
static GArray *nvdimm_build_device_structure(NVDIMMState *state)
|
||||
{
|
||||
GSList *device_list = nvdimm_get_device_list();
|
||||
GArray *structures = g_array_new(false, true /* clear */, 1);
|
||||
|
@ -416,7 +416,7 @@ static void nvdimm_init_fit_buffer(NvdimmFitBuffer *fit_buf)
|
|||
fit_buf->fit = g_array_new(false, true /* clear */, 1);
|
||||
}
|
||||
|
||||
static void nvdimm_build_fit_buffer(AcpiNVDIMMState *state)
|
||||
static void nvdimm_build_fit_buffer(NVDIMMState *state)
|
||||
{
|
||||
NvdimmFitBuffer *fit_buf = &state->fit_buf;
|
||||
|
||||
|
@ -425,12 +425,12 @@ static void nvdimm_build_fit_buffer(AcpiNVDIMMState *state)
|
|||
fit_buf->dirty = true;
|
||||
}
|
||||
|
||||
void nvdimm_plug(AcpiNVDIMMState *state)
|
||||
void nvdimm_plug(NVDIMMState *state)
|
||||
{
|
||||
nvdimm_build_fit_buffer(state);
|
||||
}
|
||||
|
||||
static void nvdimm_build_nfit(AcpiNVDIMMState *state, GArray *table_offsets,
|
||||
static void nvdimm_build_nfit(NVDIMMState *state, GArray *table_offsets,
|
||||
GArray *table_data, BIOSLinker *linker)
|
||||
{
|
||||
NvdimmFitBuffer *fit_buf = &state->fit_buf;
|
||||
|
@ -570,7 +570,7 @@ nvdimm_dsm_no_payload(uint32_t func_ret_status, hwaddr dsm_mem_addr)
|
|||
#define NVDIMM_QEMU_RSVD_HANDLE_ROOT 0x10000
|
||||
|
||||
/* Read FIT data, defined in docs/specs/acpi_nvdimm.txt. */
|
||||
static void nvdimm_dsm_func_read_fit(AcpiNVDIMMState *state, NvdimmDsmIn *in,
|
||||
static void nvdimm_dsm_func_read_fit(NVDIMMState *state, NvdimmDsmIn *in,
|
||||
hwaddr dsm_mem_addr)
|
||||
{
|
||||
NvdimmFitBuffer *fit_buf = &state->fit_buf;
|
||||
|
@ -619,7 +619,7 @@ exit:
|
|||
}
|
||||
|
||||
static void
|
||||
nvdimm_dsm_handle_reserved_root_method(AcpiNVDIMMState *state,
|
||||
nvdimm_dsm_handle_reserved_root_method(NVDIMMState *state,
|
||||
NvdimmDsmIn *in, hwaddr dsm_mem_addr)
|
||||
{
|
||||
switch (in->function) {
|
||||
|
@ -863,7 +863,7 @@ nvdimm_dsm_read(void *opaque, hwaddr addr, unsigned size)
|
|||
static void
|
||||
nvdimm_dsm_write(void *opaque, hwaddr addr, uint64_t val, unsigned size)
|
||||
{
|
||||
AcpiNVDIMMState *state = opaque;
|
||||
NVDIMMState *state = opaque;
|
||||
NvdimmDsmIn *in;
|
||||
hwaddr dsm_mem_addr = val;
|
||||
|
||||
|
@ -925,7 +925,7 @@ void nvdimm_acpi_plug_cb(HotplugHandler *hotplug_dev, DeviceState *dev)
|
|||
}
|
||||
}
|
||||
|
||||
void nvdimm_init_acpi_state(AcpiNVDIMMState *state, MemoryRegion *io,
|
||||
void nvdimm_init_acpi_state(NVDIMMState *state, MemoryRegion *io,
|
||||
FWCfgState *fw_cfg, Object *owner)
|
||||
{
|
||||
memory_region_init_io(&state->io_mr, owner, &nvdimm_dsm_ops, state,
|
||||
|
@ -1319,7 +1319,7 @@ static void nvdimm_build_ssdt(GArray *table_offsets, GArray *table_data,
|
|||
}
|
||||
|
||||
void nvdimm_build_acpi(GArray *table_offsets, GArray *table_data,
|
||||
BIOSLinker *linker, AcpiNVDIMMState *state,
|
||||
BIOSLinker *linker, NVDIMMState *state,
|
||||
uint32_t ram_slots)
|
||||
{
|
||||
GSList *device_list;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue