static int unin_main_pci_host_init(PCIDevice *d)

{

    pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_APPLE);

    pci_config_set_device_id(d->config, PCI_DEVICE_ID_APPLE_UNI_N_PCI);

    d->config[0x08] = 0x00; // revision

    pci_config_set_class(d->config, PCI_CLASS_BRIDGE_HOST);

    d->config[0x0C] = 0x08; // cache_line_size

    d->config[0x0D] = 0x10; // latency_timer

    d->config[0x34] = 0x00; // capabilities_pointer

    return 0;

}

static int unin_main_pci_host_init(PCIDevice *d)

{

    pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_APPLE);

    pci_config_set_device_id(d->config, PCI_DEVICE_ID_APPLE_UNI_N_PCI);

    d->config[0x08] = 0x00; 

    pci_config_set_class(d->config, PCI_CLASS_BRIDGE_HOST);

    d->config[0x0C] = 0x08; 

    d->config[0x0D] = 0x10; 

    d->config[0x34] = 0x00; 

    return 0;

}

static int FUNC_0(PCIDevice *VAR_0)

{

    pci_config_set_vendor_id(VAR_0->config, PCI_VENDOR_ID_APPLE);

    pci_config_set_device_id(VAR_0->config, PCI_DEVICE_ID_APPLE_UNI_N_PCI);

    VAR_0->config[0x08] = 0x00; 

    pci_config_set_class(VAR_0->config, PCI_CLASS_BRIDGE_HOST);

    VAR_0->config[0x0C] = 0x08; 

    VAR_0->config[0x0D] = 0x10; 

    VAR_0->config[0x34] = 0x00; 

    return 0;

}

static int FUNC_0(PCIDevice *VAR_0)
{ pci_config_set_vendor_id(VAR_0->config, PCI_VENDOR_ID_APPLE); pci_config_set_device_id(VAR_0->config, PCI_DEVICE_ID_APPLE_UNI_N_PCI); VAR_0->config[0x08] = 0x00; pci_config_set_class(VAR_0->config, PCI_CLASS_BRIDGE_HOST); VAR_0->config[0x0C] = 0x08; VAR_0->config[0x0D] = 0x10; VAR_0->config[0x34] = 0x00; return 0; }