[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 12/12] ide: BMDMAState don't need a pci_dev field an
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 12/12] ide: BMDMAState don't need a pci_dev field anymore |
Date: |
Wed, 7 Oct 2009 16:56:29 +0200 |
Signed-off-by: Juan Quintela <address@hidden>
---
hw/ide/cmd646.c | 1 -
hw/ide/internal.h | 1 -
hw/ide/piix.c | 1 -
3 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/hw/ide/cmd646.c b/hw/ide/cmd646.c
index 4af1954..e62949e 100644
--- a/hw/ide/cmd646.c
+++ b/hw/ide/cmd646.c
@@ -144,7 +144,6 @@ static void bmdma_map(PCIDevice *pci_dev, int region_num,
for(i = 0;i < 2; i++) {
BMDMAState *bm = &d->bmdma[i];
d->bus[i].bmdma = bm;
- bm->pci_dev = DO_UPCAST(PCIIDEState, dev, pci_dev);
bm->bus = d->bus+i;
qemu_add_vm_change_state_handler(ide_dma_restart_cb, bm);
diff --git a/hw/ide/internal.h b/hw/ide/internal.h
index 21319fe..2e40431 100644
--- a/hw/ide/internal.h
+++ b/hw/ide/internal.h
@@ -473,7 +473,6 @@ struct BMDMAState {
uint8_t status;
uint32_t addr;
- struct PCIIDEState *pci_dev;
IDEBus *bus;
/* current transfer state */
uint32_t cur_addr;
diff --git a/hw/ide/piix.c b/hw/ide/piix.c
index 4583c42..ddce684 100644
--- a/hw/ide/piix.c
+++ b/hw/ide/piix.c
@@ -77,7 +77,6 @@ static void bmdma_map(PCIDevice *pci_dev, int region_num,
for(i = 0;i < 2; i++) {
BMDMAState *bm = &d->bmdma[i];
d->bus[i].bmdma = bm;
- bm->pci_dev = DO_UPCAST(PCIIDEState, dev, pci_dev);
bm->bus = d->bus+i;
qemu_add_vm_change_state_handler(ide_dma_restart_cb, bm);
--
1.6.2.5
- [Qemu-devel] [PATCH 01/12] ide: change cast to DO_UPCAST, (continued)
- [Qemu-devel] [PATCH 01/12] ide: change cast to DO_UPCAST, Juan Quintela, 2009/10/07
- [Qemu-devel] [PATCH 02/12] ide: Remove cast in pci_register_bar, Juan Quintela, 2009/10/07
- [Qemu-devel] [PATCH 03/12] ide: Remove duplicated definitions, Juan Quintela, 2009/10/07
- [Qemu-devel] [PATCH 04/12] ide: remove uselsess casts from void *, Juan Quintela, 2009/10/07
- [Qemu-devel] [PATCH 06/12] ide: export needed ide-pci functions for split, Juan Quintela, 2009/10/07
- [Qemu-devel] [PATCH 05/12] ide: create ide/pci.h for common ide pci definitions, Juan Quintela, 2009/10/07
- [Qemu-devel] [PATCH 07/12] ide: split cmd646 and piix from pci.c, Juan Quintela, 2009/10/07
- [Qemu-devel] [PATCH 08/12] ide: PCIIDEState type field is not needed anymore, Juan Quintela, 2009/10/07
- [Qemu-devel] [PATCH 09/12] ide: 'secondary' field is only used by cmd646, Juan Quintela, 2009/10/07
- [Qemu-devel] [PATCH 10/12] ide: cmd646 we can get the pci device with container_of, Juan Quintela, 2009/10/07
- [Qemu-devel] [PATCH 12/12] ide: BMDMAState don't need a pci_dev field anymore,
Juan Quintela <=
- [Qemu-devel] [PATCH 11/12] ide: cmd646 ->unit has just the value that we want, Juan Quintela, 2009/10/07