spapr.h (7a36ae7a9f4f136d40fe1da4aab66b364d4aa56d) spapr.h (4d9392be6c1aada69ce86c0f6584128976985394)
1#if !defined(__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"

--- 320 unchanged lines hidden (view full) ---

329#define H_DEL_CONN 0x288
330#define H_JOIN 0x298
331#define H_VASI_STATE 0x2A4
332#define H_ENABLE_CRQ 0x2B0
333#define H_GET_EM_PARMS 0x2B8
334#define H_SET_MPP 0x2D0
335#define H_GET_MPP 0x2D4
336#define H_XIRR_X 0x2FC
1#if !defined(__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"

--- 320 unchanged lines hidden (view full) ---

329#define H_DEL_CONN 0x288
330#define H_JOIN 0x298
331#define H_VASI_STATE 0x2A4
332#define H_ENABLE_CRQ 0x2B0
333#define H_GET_EM_PARMS 0x2B8
334#define H_SET_MPP 0x2D0
335#define H_GET_MPP 0x2D4
336#define H_XIRR_X 0x2FC
337#define H_RANDOM 0x300
337#define H_SET_MODE 0x31C
338#define MAX_HCALL_OPCODE H_SET_MODE
339
340/* The hcalls above are standardized in PAPR and implemented by pHyp
341 * as well.
342 *
343 * We also need some hcalls which are specific to qemu / KVM-on-POWER.
344 * So far we just need one for H_RTAS, but in future we'll need more

--- 262 unchanged lines hidden (view full) ---

607 int fdt_offset;
608 int fdt_depth;
609 QTAILQ_ENTRY(sPAPRConfigureConnectorState) next;
610};
611
612void spapr_ccs_reset_hook(void *opaque);
613
614#define TYPE_SPAPR_RTC "spapr-rtc"
338#define H_SET_MODE 0x31C
339#define MAX_HCALL_OPCODE H_SET_MODE
340
341/* The hcalls above are standardized in PAPR and implemented by pHyp
342 * as well.
343 *
344 * We also need some hcalls which are specific to qemu / KVM-on-POWER.
345 * So far we just need one for H_RTAS, but in future we'll need more

--- 262 unchanged lines hidden (view full) ---

608 int fdt_offset;
609 int fdt_depth;
610 QTAILQ_ENTRY(sPAPRConfigureConnectorState) next;
611};
612
613void spapr_ccs_reset_hook(void *opaque);
614
615#define TYPE_SPAPR_RTC "spapr-rtc"
616#define TYPE_SPAPR_RNG "spapr-rng"
615
616void spapr_rtc_read(DeviceState *dev, struct tm *tm, uint32_t *ns);
617int spapr_rtc_import_offset(DeviceState *dev, int64_t legacy_offset);
618
617
618void spapr_rtc_read(DeviceState *dev, struct tm *tm, uint32_t *ns);
619int spapr_rtc_import_offset(DeviceState *dev, int64_t legacy_offset);
620
621int spapr_rng_populate_dt(void *fdt);
622
619#define SPAPR_MEMORY_BLOCK_SIZE (1 << 28) /* 256MB */
620
621/*
622 * This defines the maximum number of DIMM slots we can have for sPAPR
623 * guest. This is not defined by sPAPR but we are defining it to 32 slots
624 * based on default number of slots provided by PowerPC kernel.
625 */
626#define SPAPR_MAX_RAM_SLOTS 32

--- 17 unchanged lines hidden ---
623#define SPAPR_MEMORY_BLOCK_SIZE (1 << 28) /* 256MB */
624
625/*
626 * This defines the maximum number of DIMM slots we can have for sPAPR
627 * guest. This is not defined by sPAPR but we are defining it to 32 slots
628 * based on default number of slots provided by PowerPC kernel.
629 */
630#define SPAPR_MAX_RAM_SLOTS 32

--- 17 unchanged lines hidden ---