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

« back to all changes in this revision

Viewing changes to hw/acpi/pcihp.c

  • 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:
49
49
 
50
50
#define ACPI_PCIHP_ADDR 0xae00
51
51
#define ACPI_PCIHP_SIZE 0x0014
52
 
#define ACPI_PCIHP_LEGACY_SIZE 0x000f
53
52
#define PCI_UP_BASE 0x0000
54
53
#define PCI_DOWN_BASE 0x0004
55
54
#define PCI_EJ_BASE 0x0008
302
301
    s->root= root_bus;
303
302
    s->legacy_piix = !bridges_enabled;
304
303
 
305
 
    if (s->legacy_piix) {
306
 
        unsigned *bus_bsel = g_malloc(sizeof *bus_bsel);
307
 
 
308
 
        s->io_len = ACPI_PCIHP_LEGACY_SIZE;
309
 
 
310
 
        *bus_bsel = ACPI_PCIHP_BSEL_DEFAULT;
311
 
        object_property_add_uint32_ptr(OBJECT(root_bus), ACPI_PCIHP_PROP_BSEL,
312
 
                                       bus_bsel, NULL);
313
 
    }
314
 
 
315
304
    memory_region_init_io(&s->io, owner, &acpi_pcihp_io_ops, s,
316
305
                          "acpi-pci-hotplug", s->io_len);
317
306
    memory_region_add_subregion(address_space_io, s->io_base, &s->io);