From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=45845 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBvtm-0005xE-Tk for qemu-devel@nongnu.org; Tue, 11 May 2010 16:17:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OBvtl-0006Nj-8n for qemu-devel@nongnu.org; Tue, 11 May 2010 16:17:50 -0400 Received: from mail.gmx.net ([213.165.64.20]:43065) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OBvtk-0006NN-Sx for qemu-devel@nongnu.org; Tue, 11 May 2010 16:17:49 -0400 Date: Tue, 11 May 2010 22:17:16 +0200 Message-Id: <1273609036$2303@local> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit From: Sebastian Herbszt Subject: [Qemu-devel] [PATCH] ahci: use interface type IF_SATA 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 interface type IF_SATA instead of IF_SCSI. Signed-off-by: Sebastian Herbszt diff --git a/hw/ahci.c b/hw/ahci.c index 2763075..6f7b807 100644 --- a/hw/ahci.c +++ b/hw/ahci.c @@ -1160,7 +1160,7 @@ static AHCIState *ahci_new(void) s->timer = qemu_new_timer(vm_clock, ahci_timer_function, s); s->prdt_buf = qemu_malloc(65535*32); - if ((dinfo = drive_get(IF_SCSI, 0, 0)) != NULL) + if ((dinfo = drive_get(IF_SATA, 0, 0)) != NULL) { ide_init2(bus, dinfo, NULL,0); s->ide=bus;