Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IwaVq-0004dQ-0X for qemu-devel@nongnu.org; Mon, 26 Nov 2007 04:44:22 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IwaVn-0004aO-Gk for qemu-devel@nongnu.org; Mon, 26 Nov 2007 04:44:20 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IwaVn-0004aB-DF for qemu-devel@nongnu.org; Mon, 26 Nov 2007 04:44:19 -0500 Received: from tapir.sajinet.com.pe ([66.139.79.212]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IwaVn-00037C-52 for qemu-devel@nongnu.org; Mon, 26 Nov 2007 04:44:19 -0500 Date: Mon, 26 Nov 2007 03:50:14 -0600 From: Carlo Marcelo Arenas Belon Message-ID: <20071126095014.GB1476@tapir> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] ide: remove leftover support for 82371FB (Step A1) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org The following patch removes the remaining support for the 82371FB (Step A1) IDE chip which was added to ide.c in revision 1.53 and then removed (as it was never used in any profile and was considered dead code) in 1.57. This code was added to piix_pci.c in revision 1.9 and after the corresponding code was removed from ide.c was generating the following warning : qemu/hw/piix_pci.c:318: warning: 'piix_init' defined but not used Carlo --- Index: hw/piix_pci.c =================================================================== RCS file: /sources/qemu/qemu/hw/piix_pci.c,v retrieving revision 1.14 diff -u -p -r1.14 piix_pci.c --- hw/piix_pci.c 18 Nov 2007 01:44:37 -0000 1.14 +++ hw/piix_pci.c 26 Nov 2007 09:38:57 -0000 @@ -314,31 +314,6 @@ static int piix_load(QEMUFile* f, void * return pci_device_load(d, f); } -static int piix_init(PCIBus *bus, int devfn) -{ - PCIDevice *d; - uint8_t *pci_conf; - - d = pci_register_device(bus, "PIIX", sizeof(PCIDevice), - devfn, NULL, NULL); - register_savevm("PIIX", 0, 2, piix_save, piix_load, d); - - piix3_dev = d; - pci_conf = d->config; - - pci_conf[0x00] = 0x86; // Intel - pci_conf[0x01] = 0x80; - pci_conf[0x02] = 0x2E; // 82371FB PIIX PCI-to-ISA bridge - pci_conf[0x03] = 0x12; - pci_conf[0x08] = 0x02; // Step A1 - pci_conf[0x0a] = 0x01; // class_sub = PCI_ISA - pci_conf[0x0b] = 0x06; // class_base = PCI_bridge - pci_conf[0x0e] = 0x80; // header_type = PCI_multifunction, generic - - piix3_reset(d); - return d->devfn; -} - int piix3_init(PCIBus *bus, int devfn) { PCIDevice *d;