From owner-svn-soc-all@freebsd.org Sun May 29 18:51:58 2016 Return-Path: Delivered-To: svn-soc-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7B8E5B54EC7 for ; Sun, 29 May 2016 18:51:58 +0000 (UTC) (envelope-from iateaca@FreeBSD.org) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6F3101BC0 for ; Sun, 29 May 2016 18:51:58 +0000 (UTC) (envelope-from iateaca@FreeBSD.org) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.15.2/8.15.2) with ESMTP id u4TIpwrC037990 for ; Sun, 29 May 2016 18:51:58 GMT (envelope-from iateaca@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.15.2/8.15.2/Submit) id u4TIpvsw037929 for svn-soc-all@FreeBSD.org; Sun, 29 May 2016 18:51:57 GMT (envelope-from iateaca@FreeBSD.org) Date: Sun, 29 May 2016 18:51:57 GMT Message-Id: <201605291851.u4TIpvsw037929@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to iateaca@FreeBSD.org using -f From: iateaca@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r304169 - soc2016/iateaca/bhyve-hda-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.22 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, 29 May 2016 18:51:58 -0000 Author: iateaca Date: Sun May 29 18:51:57 2016 New Revision: 304169 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=304169 Log: use get_reg_by_offset instead of sc->regs M bhyve/pci_hda.c Modified: soc2016/iateaca/bhyve-hda-head/usr.sbin/bhyve/pci_hda.c Modified: soc2016/iateaca/bhyve-hda-head/usr.sbin/bhyve/pci_hda.c ============================================================================== --- soc2016/iateaca/bhyve-hda-head/usr.sbin/bhyve/pci_hda.c Sun May 29 18:40:19 2016 (r304168) +++ soc2016/iateaca/bhyve-hda-head/usr.sbin/bhyve/pci_hda.c Sun May 29 18:51:57 2016 (r304169) @@ -527,7 +527,7 @@ static void hda_set_gctl(struct hda_softc *sc, uint32_t offset, uint32_t old) { - uint32_t value = sc->regs[offset]; + uint32_t value = hda_get_reg_by_offset(sc, offset); if (!(value & HDAC_GCTL_CRST)) { hda_reset(sc); @@ -547,7 +547,7 @@ static void hda_set_corbctl(struct hda_softc *sc, uint32_t offset, uint32_t old) { - uint32_t value = sc->regs[offset]; + uint32_t value = hda_get_reg_by_offset(sc, offset); int err; struct hda_codec_cmd_ctl *corb = NULL; @@ -565,7 +565,7 @@ static void hda_set_rirbctl(struct hda_softc *sc, uint32_t offset, uint32_t old) { - uint32_t value = sc->regs[offset]; + uint32_t value = hda_get_reg_by_offset(sc, offset); int err; struct hda_codec_cmd_ctl *rirb = NULL;