socsvn commit: r302905 - soc2016/iateaca/bhyve-hda-head/usr.sbin/bhyve

iateaca at FreeBSD.org iateaca at FreeBSD.org
Sat May 14 18:26:26 UTC 2016


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;


More information about the svn-soc-all mailing list