diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2012-05-11 11:42:40 -0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2012-06-07 17:19:00 +0300 |
commit | 95d658002401e2e47a5404298ebe9508846e8a39 (patch) | |
tree | 36826830f860f95a07f0f83b21c4cd7d8ee072c7 /hw/ide | |
parent | 7c9958b04333a79a1fdb11583aca48a6df2edeb9 (diff) | |
download | qemu-95d658002401e2e47a5404298ebe9508846e8a39.zip qemu-95d658002401e2e47a5404298ebe9508846e8a39.tar.gz qemu-95d658002401e2e47a5404298ebe9508846e8a39.tar.bz2 |
msi: Invoke msi/msix_write_config from PCI core
Also this functions is better invoked by the core than by each and every
device. This allows to drop the config_write callbacks from ich and
intel-hda.
CC: Alexander Graf <agraf@suse.de>
CC: Gerd Hoffmann <kraxel@redhat.com>
CC: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/ide')
-rw-r--r-- | hw/ide/ich.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/hw/ide/ich.c b/hw/ide/ich.c index d3bc822..e3eaaea 100644 --- a/hw/ide/ich.c +++ b/hw/ide/ich.c @@ -143,13 +143,6 @@ static int pci_ich9_uninit(PCIDevice *dev) return 0; } -static void pci_ich9_write_config(PCIDevice *pci, uint32_t addr, - uint32_t val, int len) -{ - pci_default_write_config(pci, addr, val, len); - msi_write_config(pci, addr, val, len); -} - static void ich_ahci_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); @@ -157,7 +150,6 @@ static void ich_ahci_class_init(ObjectClass *klass, void *data) k->init = pci_ich9_ahci_init; k->exit = pci_ich9_uninit; - k->config_write = pci_ich9_write_config; k->vendor_id = PCI_VENDOR_ID_INTEL; k->device_id = PCI_DEVICE_ID_INTEL_82801IR; k->revision = 0x02; |