From owner-svn-soc-all@freebsd.org Sat May 14 18:26:26 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 7C0EEB3B32C for ; Sat, 14 May 2016 18:26:26 +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 622D11487 for ; Sat, 14 May 2016 18:26:26 +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 u4EIQQlk064230 for ; Sat, 14 May 2016 18:26:26 GMT (envelope-from iateaca@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.15.2/8.15.2/Submit) id u4EIQPq1064198 for svn-soc-all@FreeBSD.org; Sat, 14 May 2016 18:26:25 GMT (envelope-from iateaca@FreeBSD.org) Date: Sat, 14 May 2016 18:26:25 GMT Message-Id: <201605141826.u4EIQPq1064198@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: r302905 - 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: Sat, 14 May 2016 18:26:26 -0000 Author: iateaca Date: Sat May 14 18:26:25 2016 New Revision: 302905 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=302905 Log: add inline to the set/get register functions 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 Sat May 14 14:50:11 2016 (r302904) +++ soc2016/iateaca/bhyve-hda-head/usr.sbin/bhyve/pci_hda.c Sat May 14 18:26:25 2016 (r302905) @@ -114,11 +114,11 @@ /* * HDA module function declarations */ -static void +static inline void hda_set_reg_by_offset(struct hda_softc *sc, uint32_t offset, uint32_t value); -static uint32_t +static inline uint32_t hda_get_reg_by_offset(struct hda_softc *sc, uint32_t offset); -static void +static inline void hda_set_field_by_offset(struct hda_softc *sc, uint32_t offset, uint32_t mask, uint32_t value); static struct hda_softc *hda_init(const char *opts); @@ -160,7 +160,7 @@ * HDA module function definitions */ -static void +static inline void hda_set_reg_by_offset(struct hda_softc *sc, uint32_t offset, uint32_t value) { assert(offset < HDA_LAST_OFFSET); @@ -169,14 +169,14 @@ return; } -static uint32_t +static inline uint32_t hda_get_reg_by_offset(struct hda_softc *sc, uint32_t offset) { assert(offset < HDA_LAST_OFFSET); return sc->regs[offset]; } -static void +static inline void hda_set_field_by_offset(struct hda_softc *sc, uint32_t offset, uint32_t mask, uint32_t value) { uint32_t reg_value = 0;