From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=51653 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUn9M-0004Ko-60 for qemu-devel@nongnu.org; Mon, 20 Dec 2010 16:20:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PUn9G-0005zs-4V for qemu-devel@nongnu.org; Mon, 20 Dec 2010 16:20:03 -0500 Received: from mailout-de.gmx.net ([213.165.64.23]:50074 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PUn9F-0005ym-OU for qemu-devel@nongnu.org; Mon, 20 Dec 2010 16:20:02 -0500 Date: Mon, 20 Dec 2010 22:18:30 +0100 Message-Id: <1292879910$755@local> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit From: Sebastian Herbszt Subject: [Qemu-devel] [PATCH] cmd646: use pci_config_set_prog_interface() List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Sebastian Herbszt Use pci_config_set_prog_interface(). Signed-off-by: Sebastian Herbszt diff --git a/hw/ide/cmd646.c b/hw/ide/cmd646.c index 5d5464a..e125dfc 100644 --- a/hw/ide/cmd646.c +++ b/hw/ide/cmd646.c @@ -230,7 +230,7 @@ static int pci_cmd646_ide_initfn(PCIDevice *dev) pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_CMD_646); pci_conf[PCI_REVISION_ID] = 0x07; // IDE controller revision - pci_conf[PCI_CLASS_PROG] = 0x8f; + pci_config_set_prog_interface(pci_conf, 0x8f); pci_config_set_class(pci_conf, PCI_CLASS_STORAGE_IDE);