Commit Graph

22 Commits

Author SHA1 Message Date
jmcneill
06726bf7a3 IPL_VM -> IPL_SCHED to avoid taking kernel lock 2014-08-09 13:34:10 +00:00
dholland
f9228f4225 Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
2014-07-25 08:10:31 +00:00
dholland
a68f9396b6 Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.
2014-03-16 05:20:22 +00:00
christos
1f73a688da remove unused variable 2013-10-17 21:23:05 +00:00
jmcneill
707c764851 add dtv_math.h 2011-08-09 10:53:09 +00:00
jmcneill
fb95eabd74 modify the dtv device api so hardware drivers can be loaded independently
of the dtv module
2011-08-09 01:42:24 +00:00
apb
217d9c2a09 Reinstate #include <dev/dtv/dtvif.h> which was incorrectly
removed in the previous commit.
2011-07-16 22:41:59 +00:00
apb
76108b75b1 Instead of returning an integer between 0 and 31 (scaled by 1<<24), use
(0.5 + x/2 - 1/x) as an approximation to log2(x) for x from 1 to 2, and
scale the input to fit this range.  Now the error is always less than
0.2%.

Also add an test program, hidden behind #ifdef TEST_DTV_MATH, to print
a table of expected and actual results, and the errors.
2011-07-16 22:30:26 +00:00
jmcneill
f3fc71ee2e add sys/types.h 2011-07-16 16:13:13 +00:00
jmcneill
e1214af8f3 Fix a locking problem with the demux, and while here do a bit of
housekeeping and documentation.
2011-07-16 12:20:01 +00:00
jmcneill
ee71f9a61a add dtv_intlog10 implementation, from apb@ 2011-07-15 20:27:41 +00:00
jmcneill
0546d04822 sections can't be > 4KB 2011-07-14 01:37:09 +00:00
jmcneill
3d6d4778fc fe_sec_voltage_t: add SEC_VOLTAGE_OFF 2011-07-13 23:16:55 +00:00
jmcneill
ea2206438c add missing mutex_destroy on detach 2011-07-13 22:51:10 +00:00
jmcneill
677961ab6e dtv_demux_write: make sure to unlock muted in all error paths 2011-07-13 22:50:24 +00:00
jmcneill
d3ea21c055 add section filter support 2011-07-13 22:43:04 +00:00
jmcneill
15c24b250f - use separate locks for ingress and egress queues
- increase ts block and buffer sizes
2011-07-12 00:57:19 +00:00
jmcneill
04ce1b4880 add DMX_PES_foo -> DMX_PES_foo0 aliases for dmx_pes_type_t types 2011-07-10 15:50:48 +00:00
jmcneill
5d80814a14 use %zu to print size_t 2011-07-09 21:08:40 +00:00
jmcneill
0d860fd316 allow this to be compiled into the kernel 2011-07-09 19:24:10 +00:00
jmcneill
1bfce4c367 don't kmem_alloc with IPL_VM mutex locked, spotted by rmind 2011-07-09 17:55:20 +00:00
jmcneill
ef3e32e573 add digital TV framework which implements a subset of Linux DVB APIs 2011-07-09 14:46:56 +00:00