From owner-svn-soc-all@FreeBSD.ORG Sun Jul 28 09:11:28 2013 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E78EEDF4 for ; Sun, 28 Jul 2013 09:11:28 +0000 (UTC) (envelope-from zcore@FreeBSD.org) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D471A2635 for ; Sun, 28 Jul 2013 09:11:28 +0000 (UTC) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.14.7/8.14.7) with ESMTP id r6S9BSLR083054 for ; Sun, 28 Jul 2013 09:11:28 GMT (envelope-from zcore@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.14.7/8.14.6/Submit) id r6S9BSLJ083050 for svn-soc-all@FreeBSD.org; Sun, 28 Jul 2013 09:11:28 GMT (envelope-from zcore@FreeBSD.org) Date: Sun, 28 Jul 2013 09:11:28 GMT Message-Id: <201307280911.r6S9BSLJ083050@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to zcore@FreeBSD.org using -f From: zcore@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r255261 - soc2013/zcore/head/usr.sbin/bhyve MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jul 2013 09:11:29 -0000 Author: zcore Date: Sun Jul 28 09:11:28 2013 New Revision: 255261 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=255261 Log: set AHCI_P_SIG to 0x00000101 a.k.a SIG_ATA This is just hard coding now. we will set the SIG depending on the device kind, ATA or ATAPI. Modified: soc2013/zcore/head/usr.sbin/bhyve/pci_ahci.c Modified: soc2013/zcore/head/usr.sbin/bhyve/pci_ahci.c ============================================================================== --- soc2013/zcore/head/usr.sbin/bhyve/pci_ahci.c Sun Jul 28 09:10:23 2013 (r255260) +++ soc2013/zcore/head/usr.sbin/bhyve/pci_ahci.c Sun Jul 28 09:11:28 2013 (r255261) @@ -204,7 +204,8 @@ ahci_port_reset(struct ahci_port *pr) { memset(&pr->clb, 0, 17 * sizeof(uint32_t)); - pr->sig = 0xFFFFFFFF; + /* TODO set signature by the device kind */ + pr->sig = 0x00000101; pr->tfd = 0; if (pr->bctx) pr->ssts = ATA_SS_DET_PHY_ONLINE | ATA_SS_SPD_GEN2 |