From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=51950 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTeNL-0001QD-4e for qemu-devel@nongnu.org; Fri, 17 Dec 2010 12:46:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PTeM2-00034n-0M for qemu-devel@nongnu.org; Fri, 17 Dec 2010 12:45:49 -0500 Received: from mx1.redhat.com ([209.132.183.28]:16585) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PTeM1-00034f-Of for qemu-devel@nongnu.org; Fri, 17 Dec 2010 12:44:29 -0500 From: Kevin Wolf Date: Fri, 17 Dec 2010 18:44:31 +0100 Message-Id: <1292607893-13461-17-git-send-email-kwolf@redhat.com> In-Reply-To: <1292607893-13461-1-git-send-email-kwolf@redhat.com> References: <1292607893-13461-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 16/38] ahci: set SATA Mode Select List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: kwolf@redhat.com, qemu-devel@nongnu.org From: Sebastian Herbszt Set SATA Mode Select to AHCI in the Address Map Register. Signed-off-by: Sebastian Herbszt Signed-off-by: Kevin Wolf --- hw/ide/ahci.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index f937a92..8ae236a 100644 --- a/hw/ide/ahci.c +++ b/hw/ide/ahci.c @@ -1473,6 +1473,9 @@ static int pci_ahci_init(PCIDevice *dev) d->card.config[PCI_LATENCY_TIMER] = 0x00; /* Latency timer */ pci_config_set_interrupt_pin(d->card.config, 1); + /* XXX Software should program this register */ + d->card.config[0x90] = 1 << 6; /* Address Map Register - AHCI mode */ + qemu_register_reset(ahci_reset, d); /* XXX BAR size should be 1k, but that breaks, so bump it to 4k for now */ -- 1.7.2.3