Date: Sat, 14 May 2016 18:26:25 GMT From: iateaca@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r302905 - soc2016/iateaca/bhyve-hda-head/usr.sbin/bhyve Message-ID: <201605141826.u4EIQPq1064198@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605141826.u4EIQPq1064198>
