static int u3_agp_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_U3_AGP);

    /* revision */

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

    pci_config_set_class(d->config, PCI_CLASS_BRIDGE_HOST);

    /* cache line size */

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

    /* latency timer */

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

    return 0;

}

static int u3_agp_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_U3_AGP);

    

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

    pci_config_set_class(d->config, PCI_CLASS_BRIDGE_HOST);

    

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

    

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

    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_U3_AGP);

    

    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;

    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_U3_AGP); 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; return 0; }