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

iateaca at FreeBSD.org iateaca at FreeBSD.org
Sun May 15 13:15:22 UTC 2016


Author: iateaca
Date: Sun May 15 13:15:20 2016
New Revision: 303012
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=303012

Log:
  add callbacks for GCTL, CORBCTL, RIRBCTL

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 15 12:25:20 2016	(r303011)
+++ soc2016/iateaca/bhyve-hda-head/usr.sbin/bhyve/pci_hda.c	Sun May 15 13:15:20 2016	(r303012)
@@ -132,6 +132,12 @@
 hda_get_stream_by_offsets(uint32_t offset, uint8_t reg_offset);
 
 static void
+hda_set_gctl(struct hda_softc *sc, uint32_t offset, uint32_t old);
+static void
+hda_set_corbctl(struct hda_softc *sc, uint32_t offset, uint32_t old);
+static void
+hda_set_rirbctl(struct hda_softc *sc, uint32_t offset, uint32_t old);
+static void
 hda_set_sdctl(struct hda_softc *sc, uint32_t offset, uint32_t old);
 
 /*
@@ -150,6 +156,10 @@
  */
 
 static const hda_set_reg_handler hda_set_reg_table[] = {
+	[HDAC_GCTL] = hda_set_gctl,
+	[HDAC_CORBCTL] = hda_set_corbctl,
+	[HDAC_RIRBCTL] = hda_set_rirbctl,
+
 #define HDAC_ISTREAM(n, iss, oss)				\
 	[_HDAC_ISDCTL(n, iss, oss)] = hda_set_sdctl,		\
 
@@ -270,6 +280,24 @@
 }
 
 static void
+hda_set_gctl(struct hda_softc *sc, uint32_t offset, uint32_t old)
+{
+	return;
+}
+
+static void
+hda_set_corbctl(struct hda_softc *sc, uint32_t offset, uint32_t old)
+{
+	return;
+}
+
+static void
+hda_set_rirbctl(struct hda_softc *sc, uint32_t offset, uint32_t old)
+{
+	return;
+}
+
+static void
 hda_set_sdctl(struct hda_softc *sc, uint32_t offset, uint32_t old)
 {
 	uint8_t stream_ind = hda_get_stream_by_offsets(offset, 0x00);


More information about the svn-soc-all mailing list