e10dbcfa2b
Revert the revert. Naturally, I considered OpenBSD and FreeBSD when I fixed the incorrect use of the spl*() interface. The change I made is _required_ for both NetBSD _and_ OpenBSD, or the code won't even COMPILE except on i386, and it is acceptable on FreeBSD. Your revert and mod rebroke it on OpenBSD and tangled things up on NetBSD. It made no difference on FreeBSD. In particular, there are 2,895 uses of splx() within the FreeBSD kernel, and only a mere 21, that's "twenty one" uses of intrmask_t, and those are almost exclusively in the guts of the interrupt implementation, _not_ in the _use_ of the exported spl*() functions. It's perfectly OK to `int s = spltty()' in a portable driver in FreeBSD. For that matter, FreeBSD (-current at least) does not even *use* spl*() any more and stubs them all out with inlines that do _nothing_ except return 0, making intrmask_t vs int _even less_ important there than it already was. I think it's great that you want to start hacking on the kernel, but do note that this is certainly the most simple of the kernel interfaces. It just gets worse from here. Be careful out there! |
||
---|---|---|
.. | ||
README | ||
TODO | ||
bktr2netbsd | ||
bktr_audio.c | ||
bktr_audio.h | ||
bktr_card.c | ||
bktr_card.h | ||
bktr_core.c | ||
bktr_core.h | ||
bktr_mem.c | ||
bktr_mem.h | ||
bktr_os.c | ||
bktr_os.h | ||
bktr_reg.h | ||
bktr_tuner.c | ||
bktr_tuner.h |
README
README FOR BT848/BT878 DRIVER Updated 20th March 2000 Roger Hardiman roger@cs.strath.ac.uk roger@freebsd.org http://www.telepresence.strath.ac.uk/bt848 http://www.freebsd.org/~roger Introduction ------------ The BKTR driver is a driver for Bt848 and Bt878 based Video Capture cards and TV Tuner Cards. The driver was written by Amancio Hasty for FreeBSD but is now maintained by Roger Hardiman. The driver has been ported from FreeBSD to NetBSD, OpenBSD and BSD/OS. There is also a Linux version on an old version. Please read the README file for your specific Operating System for more information. Thanks Roger -- Roger Hardiman