spapr.h (5bb0d22cb41a366efff662d45bec26ab343b5532) | spapr.h (b8fdd530be3450940130b63d930bb0aee1538e7e) |
---|---|
1#ifndef HW_SPAPR_H 2#define HW_SPAPR_H 3 4#include "sysemu/dma.h" 5#include "hw/boards.h" 6#include "hw/ppc/xics.h" 7#include "hw/ppc/spapr_drc.h" 8#include "hw/mem/pc-dimm.h" 9#include "hw/ppc/spapr_ovec.h" 10 11struct VIOsPAPRBus; 12struct sPAPRPHBState; 13struct sPAPRNVRAM; | 1#ifndef HW_SPAPR_H 2#define HW_SPAPR_H 3 4#include "sysemu/dma.h" 5#include "hw/boards.h" 6#include "hw/ppc/xics.h" 7#include "hw/ppc/spapr_drc.h" 8#include "hw/mem/pc-dimm.h" 9#include "hw/ppc/spapr_ovec.h" 10 11struct VIOsPAPRBus; 12struct sPAPRPHBState; 13struct sPAPRNVRAM; |
14typedef struct sPAPRConfigureConnectorState sPAPRConfigureConnectorState; | |
15typedef struct sPAPREventLogEntry sPAPREventLogEntry; 16typedef struct sPAPREventSource sPAPREventSource; 17 18#define HPTE64_V_HPTE_DIRTY 0x0000000000000040ULL 19#define SPAPR_ENTRY_POINT 0x100 20 21#define SPAPR_TIMEBASE_FREQ 512000000ULL 22 --- 74 unchanged lines hidden (view full) --- 97 bool use_hotplug_event_source; 98 sPAPREventSource *event_sources; 99 100 /* Migration state */ 101 int htab_save_index; 102 bool htab_first_pass; 103 int htab_fd; 104 | 14typedef struct sPAPREventLogEntry sPAPREventLogEntry; 15typedef struct sPAPREventSource sPAPREventSource; 16 17#define HPTE64_V_HPTE_DIRTY 0x0000000000000040ULL 18#define SPAPR_ENTRY_POINT 0x100 19 20#define SPAPR_TIMEBASE_FREQ 512000000ULL 21 --- 74 unchanged lines hidden (view full) --- 96 bool use_hotplug_event_source; 97 sPAPREventSource *event_sources; 98 99 /* Migration state */ 100 int htab_save_index; 101 bool htab_first_pass; 102 int htab_fd; 103 |
105 /* RTAS state */ 106 QTAILQ_HEAD(, sPAPRConfigureConnectorState) ccs_list; 107 | |
108 /* Pending DIMM unplug cache. It is populated when a LMB 109 * unplug starts. It can be regenerated if a migration 110 * occurs during the unplug process. */ 111 QTAILQ_HEAD(, sPAPRDIMMState) pending_dimm_unplugs; 112 113 /*< public >*/ 114 char *kvm_type; 115 MemoryHotplugState hotplug_memory; --- 525 unchanged lines hidden (view full) --- 641 uint32_t count, uint32_t index); 642void *spapr_populate_hotplug_cpu_dt(CPUState *cs, int *fdt_offset, 643 sPAPRMachineState *spapr); 644 645/* CPU and LMB DRC release callbacks. */ 646void spapr_core_release(DeviceState *dev); 647void spapr_lmb_release(DeviceState *dev); 648 | 104 /* Pending DIMM unplug cache. It is populated when a LMB 105 * unplug starts. It can be regenerated if a migration 106 * occurs during the unplug process. */ 107 QTAILQ_HEAD(, sPAPRDIMMState) pending_dimm_unplugs; 108 109 /*< public >*/ 110 char *kvm_type; 111 MemoryHotplugState hotplug_memory; --- 525 unchanged lines hidden (view full) --- 637 uint32_t count, uint32_t index); 638void *spapr_populate_hotplug_cpu_dt(CPUState *cs, int *fdt_offset, 639 sPAPRMachineState *spapr); 640 641/* CPU and LMB DRC release callbacks. */ 642void spapr_core_release(DeviceState *dev); 643void spapr_lmb_release(DeviceState *dev); 644 |
649/* rtas-configure-connector state */ 650struct sPAPRConfigureConnectorState { 651 uint32_t drc_index; 652 int fdt_offset; 653 int fdt_depth; 654 QTAILQ_ENTRY(sPAPRConfigureConnectorState) next; 655}; 656 657void spapr_ccs_reset_hook(void *opaque); 658 | |
659void spapr_rtc_read(sPAPRRTCState *rtc, struct tm *tm, uint32_t *ns); 660int spapr_rtc_import_offset(sPAPRRTCState *rtc, int64_t legacy_offset); 661 662#define TYPE_SPAPR_RNG "spapr-rng" 663 664int spapr_rng_populate_dt(void *fdt); 665 666#define SPAPR_MEMORY_BLOCK_SIZE (1 << 28) /* 256MB */ --- 28 unchanged lines hidden --- | 645void spapr_rtc_read(sPAPRRTCState *rtc, struct tm *tm, uint32_t *ns); 646int spapr_rtc_import_offset(sPAPRRTCState *rtc, int64_t legacy_offset); 647 648#define TYPE_SPAPR_RNG "spapr-rng" 649 650int spapr_rng_populate_dt(void *fdt); 651 652#define SPAPR_MEMORY_BLOCK_SIZE (1 << 28) /* 256MB */ --- 28 unchanged lines hidden --- |