~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to include/hw/ppc/spapr.h

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#define SPAPR_TIMEBASE_FREQ     512000000ULL
22
22
 
23
23
typedef struct sPAPRMachineClass sPAPRMachineClass;
24
 
typedef struct sPAPRMachineState sPAPRMachineState;
25
24
 
26
25
#define TYPE_SPAPR_MACHINE      "spapr-machine"
27
26
#define SPAPR_MACHINE(obj) \
58
57
    struct VIOsPAPRBus *vio_bus;
59
58
    QLIST_HEAD(, sPAPRPHBState) phbs;
60
59
    struct sPAPRNVRAM *nvram;
61
 
    XICSState *xics;
 
60
    ICSState *ics;
62
61
    DeviceState *rtc;
63
62
 
64
63
    void *htab;
65
64
    uint32_t htab_shift;
 
65
    uint64_t patb_entry; /* Process tbl registed in H_REGISTER_PROCESS_TABLE */
66
66
    hwaddr rma_size;
67
67
    int vrma_adjust;
68
68
    ssize_t rtas_size;
94
94
    /*< public >*/
95
95
    char *kvm_type;
96
96
    MemoryHotplugState hotplug_memory;
97
 
    Object **cores;
 
97
 
 
98
    uint32_t nr_servers;
 
99
    ICPState *icps;
98
100
};
99
101
 
100
102
#define H_SUCCESS         0
347
349
#define H_XIRR_X                0x2FC
348
350
#define H_RANDOM                0x300
349
351
#define H_SET_MODE              0x31C
350
 
#define MAX_HCALL_OPCODE        H_SET_MODE
 
352
#define H_SIGNAL_SYS_RESET      0x380
 
353
#define MAX_HCALL_OPCODE        H_SIGNAL_SYS_RESET
351
354
 
352
355
/* The hcalls above are standardized in PAPR and implemented by pHyp
353
356
 * as well.
589
592
void spapr_dt_events(sPAPRMachineState *sm, void *fdt);
590
593
int spapr_h_cas_compose_response(sPAPRMachineState *sm,
591
594
                                 target_ulong addr, target_ulong size,
592
 
                                 bool cpu_update,
593
595
                                 sPAPROptionVector *ov5_updates);
594
596
sPAPRTCETable *spapr_tce_new_table(DeviceState *owner, uint32_t liobn);
595
597
void spapr_tce_table_enable(sPAPRTCETable *tcet,
614
616
                                            uint32_t count, uint32_t index);
615
617
void spapr_hotplug_req_remove_by_count_indexed(sPAPRDRConnectorType drc_type,
616
618
                                               uint32_t count, uint32_t index);
617
 
void spapr_cpu_init(sPAPRMachineState *spapr, PowerPCCPU *cpu, Error **errp);
618
619
void *spapr_populate_hotplug_cpu_dt(CPUState *cs, int *fdt_offset,
619
620
                                    sPAPRMachineState *spapr);
620
621
 
662
663
#define SPAPR_LMB_FLAGS_DRC_INVALID 0x00000020
663
664
#define SPAPR_LMB_FLAGS_RESERVED 0x00000080
664
665
 
 
666
void spapr_do_system_reset_on_cpu(CPUState *cs, run_on_cpu_data arg);
 
667
 
665
668
#endif /* HW_SPAPR_H */