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

« back to all changes in this revision

Viewing changes to include/hw/i386/pc.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:
63
63
    AcpiNVDIMMState acpi_nvdimm_state;
64
64
 
65
65
    bool acpi_build_enabled;
 
66
    bool smbus;
 
67
    bool sata;
 
68
    bool pit;
66
69
 
67
70
    /* RAM information (sizes, addresses, configuration): */
68
71
    ram_addr_t below_4g_mem_size, above_4g_mem_size;
70
73
    /* CPU and apic information: */
71
74
    bool apic_xrupt_override;
72
75
    unsigned apic_id_limit;
73
 
    CPUArchIdList *possible_cpus;
74
76
    uint16_t boot_cpus;
75
77
 
76
78
    /* NUMA information: */
88
90
#define PC_MACHINE_VMPORT           "vmport"
89
91
#define PC_MACHINE_SMM              "smm"
90
92
#define PC_MACHINE_NVDIMM           "nvdimm"
 
93
#define PC_MACHINE_SMBUS            "smbus"
 
94
#define PC_MACHINE_SATA             "sata"
 
95
#define PC_MACHINE_PIT              "pit"
91
96
 
92
97
/**
93
98
 * PCMachineClass:
175
180
 
176
181
bool parallel_mm_init(MemoryRegion *address_space,
177
182
                      hwaddr base, int it_shift, qemu_irq irq,
178
 
                      CharDriverState *chr);
 
183
                      Chardev *chr);
179
184
 
180
185
/* i8259.c */
181
186
 
260
265
                          ISADevice **rtc_state,
261
266
                          bool create_fdctrl,
262
267
                          bool no_vmport,
 
268
                          bool has_pit,
263
269
                          uint32_t hpet_irqs);
264
270
void pc_init_ne2k_isa(ISABus *bus, NICInfo *nd);
265
271
void pc_cmos_init(PCMachineState *pcms,
354
360
 
355
361
/* acpi-build.c */
356
362
void pc_madt_cpu_entry(AcpiDeviceIf *adev, int uid,
357
 
                       CPUArchIdList *apic_ids, GArray *entry);
 
363
                       const CPUArchIdList *apic_ids, GArray *entry);
358
364
 
359
365
/* e820 types */
360
366
#define E820_RAM        1
368
374
bool e820_get_entry(int, uint32_t, uint64_t *, uint64_t *);
369
375
 
370
376
#define PC_COMPAT_2_8 \
 
377
    HW_COMPAT_2_8 \
 
378
    {\
 
379
        .driver   = "kvmclock",\
 
380
        .property = "x-mach-use-reliable-get-clock",\
 
381
        .value    = "off",\
 
382
    },\
 
383
    {\
 
384
        .driver   = "ICH9-LPC",\
 
385
        .property = "x-smi-broadcast",\
 
386
        .value    = "off",\
 
387
    },\
 
388
    {\
 
389
        .driver   = TYPE_X86_CPU,\
 
390
        .property = "vmware-cpuid-freq",\
 
391
        .value    = "off",\
 
392
    },\
 
393
    {\
 
394
        .driver   = "Haswell-" TYPE_X86_CPU,\
 
395
        .property = "stepping",\
 
396
        .value    = "1",\
 
397
    },
371
398
 
372
399
#define PC_COMPAT_2_7 \
373
400
    HW_COMPAT_2_7 \
601
628
        .driver   = "Broadwell-noTSX" "-" TYPE_X86_CPU,\
602
629
        .property = "xlevel",\
603
630
        .value    = stringify(0x8000000a),\
 
631
    },{\
 
632
        .driver = TYPE_X86_CPU,\
 
633
        .property = "kvm-no-smi-migration",\
 
634
        .value    = "on",\
604
635
    },
605
636
 
606
637
#define PC_COMPAT_2_2 \