|
From: | Gerd Hoffmann |
Subject: | Re: [Qemu-devel] [PATCH 1/8] qdev/pci: add pci_create_noinit() |
Date: | Fri, 11 Sep 2009 16:28:53 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Lightning/1.0pre Thunderbird/3.0b3 |
-PCIDevice *pci_create_simple(PCIBus *bus, int devfn, const char *name) +PCIDevice *pci_create_noinit(PCIBus *bus, int devfn, const char *name) { DeviceState *dev; dev = qdev_create(&bus->qbus, name); qdev_prop_set_uint32(dev, "addr", devfn); - qdev_init(dev); + return DO_UPCAST(PCIDevice, qdev, dev); +}Okay, this is qdev_create() specialized for PCI. What about calling it just pci_create()?
pci_create() should go away once it has no more users. It doesn't accept a pcibus parameter as it should.
cheers, Gerd
[Prev in Thread] | Current Thread | [Next in Thread] |