Date: Sun, 15 May 2016 13:15:21 GMT From: iateaca@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r303012 - soc2016/iateaca/bhyve-hda-head/usr.sbin/bhyve Message-ID: <201605151315.u4FDFLgL040515@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605151315.u4FDFLgL040515>