From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MvXwm-0002rN-VX for qemu-devel@nongnu.org; Wed, 07 Oct 2009 10:56:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MvXwh-0002ke-Vi for qemu-devel@nongnu.org; Wed, 07 Oct 2009 10:56:56 -0400 Received: from [199.232.76.173] (port=55154 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvXwh-0002kC-Fr for qemu-devel@nongnu.org; Wed, 07 Oct 2009 10:56:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50546) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MvXwg-0003dz-9p for qemu-devel@nongnu.org; Wed, 07 Oct 2009 10:56:51 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n97EunPJ012749 for ; Wed, 7 Oct 2009 10:56:49 -0400 From: Juan Quintela Date: Wed, 7 Oct 2009 16:56:17 +0200 Message-Id: Subject: [Qemu-devel] [PATCH 00/12] PCI IDE cleanup List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This patch cleans ide/pci.c: - useless casts - split piix and cmd646 from pci.c, this allows remove some code - clean cmd646 to allow th eremoval of pci_dev from BMDMAState. Later, Juan. Juan Quintela (12): ide: change cast to DO_UPCAST ide: Remove cast in pci_register_bar ide: Remove duplicated definitions ide: remove uselsess casts from void * ide: create ide/pci.h for common ide pci definitions ide: export needed ide-pci functions for split ide: split cmd646 and piix from pci.c ide: PCIIDEState type field is not needed anymore ide: 'secondary' field is only used by cmd646 ide: cmd646 we can get the pci device with container_of ide: cmd646 ->unit has just the value that we want ide: BMDMAState don't need a pci_dev field anymore Makefile.target | 7 +- hw/ide/cmd646.c | 272 ++++++++++++++++++++++++++++++++++++ hw/ide/internal.h | 7 - hw/ide/microdrive.c | 18 ++-- hw/ide/mmio.c | 8 +- hw/ide/pci.c | 378 ++------------------------------------------------- hw/ide/pci.h | 23 +++ hw/ide/piix.c | 195 ++++++++++++++++++++++++++ 8 files changed, 518 insertions(+), 390 deletions(-) create mode 100644 hw/ide/cmd646.c create mode 100644 hw/ide/pci.h create mode 100644 hw/ide/piix.c