bonito.c (48008198270e3ebcc9394401d676c54ed5ac139c) bonito.c (8e5c952b370b57beb642826882c80e1b66a9cf12)
1/*
2 * bonito north bridge support
3 *
4 * Copyright (c) 2008 yajin (yajin@vm-kernel.org)
5 * Copyright (c) 2010 Huacai Chen (zltjiangshi@gmail.com)
6 *
7 * This code is licensed under the GNU GPL v2.
8 *

--- 592 unchanged lines hidden (view full) ---

601};
602
603static void bonito_pcihost_realize(DeviceState *dev, Error **errp)
604{
605 PCIHostState *phb = PCI_HOST_BRIDGE(dev);
606 BonitoState *bs = BONITO_PCI_HOST_BRIDGE(dev);
607
608 memory_region_init(&bs->pci_mem, OBJECT(dev), "pci.mem", BONITO_PCILO_SIZE);
1/*
2 * bonito north bridge support
3 *
4 * Copyright (c) 2008 yajin (yajin@vm-kernel.org)
5 * Copyright (c) 2010 Huacai Chen (zltjiangshi@gmail.com)
6 *
7 * This code is licensed under the GNU GPL v2.
8 *

--- 592 unchanged lines hidden (view full) ---

601};
602
603static void bonito_pcihost_realize(DeviceState *dev, Error **errp)
604{
605 PCIHostState *phb = PCI_HOST_BRIDGE(dev);
606 BonitoState *bs = BONITO_PCI_HOST_BRIDGE(dev);
607
608 memory_region_init(&bs->pci_mem, OBJECT(dev), "pci.mem", BONITO_PCILO_SIZE);
609 phb->bus = pci_register_root_bus(DEVICE(dev), "pci",
609 phb->bus = pci_register_root_bus(dev, "pci",
610 pci_bonito_set_irq, pci_bonito_map_irq,
611 dev, &bs->pci_mem, get_system_io(),
612 0x28, 32, TYPE_PCI_BUS);
613 memory_region_add_subregion(get_system_memory(), BONITO_PCILO_BASE,
614 &bs->pci_mem);
615}
616
617static void bonito_realize(PCIDevice *dev, Error **errp)

--- 139 unchanged lines hidden ---
610 pci_bonito_set_irq, pci_bonito_map_irq,
611 dev, &bs->pci_mem, get_system_io(),
612 0x28, 32, TYPE_PCI_BUS);
613 memory_region_add_subregion(get_system_memory(), BONITO_PCILO_BASE,
614 &bs->pci_mem);
615}
616
617static void bonito_realize(PCIDevice *dev, Error **errp)

--- 139 unchanged lines hidden ---