NetBSD/sys/dev/pci/bktr
ross e10dbcfa2b Sigh.
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!
2001-03-16 19:32:35 +00:00
..
README
TODO
bktr2netbsd Delete more files before import. 2000-10-28 14:51:08 +00:00
bktr_audio.c
bktr_audio.h
bktr_card.c
bktr_card.h
bktr_core.c Correct wrong error return in mmap fn. 2001-03-03 00:08:05 +00:00
bktr_core.h
bktr_mem.c
bktr_mem.h
bktr_os.c LP64 a kprintf(9) 2001-03-15 21:59:09 +00:00
bktr_os.h Sigh. 2001-03-16 19:32:35 +00:00
bktr_reg.h
bktr_tuner.c constify 2001-01-18 20:28:15 +00:00
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