Commit Graph

92 Commits

Author SHA1 Message Date
thorpej
39cd836ee1 Use device_unit(). 2006-03-28 17:38:24 +00:00
lukem
a1f606d3fd Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.
Add a space between numbers and Hz unit.
2006-03-08 23:46:22 +00:00
mjl
1c357819af This part got lost during merging with the sourceforge bktr
driver: "Also make those variables int instead of char so it
can actually hold 454...".
2005-12-30 00:16:32 +00:00
wiz
5610637f93 Sync with SourceForge 1.5:
revision 1.5
date: 2003/03/13 22:21:04;  author: emsi;  state: Exp;  lines: +17 -18
Fill in band switch crosspoints and use that instead of hardcoded
values in the band switching code. For now fill in the formerly
hard-coded values 160 and 454 until we can find out the real values
for each tuner. Also make those variables int instead of char
so it can actually hold 454...
2005-12-28 20:41:56 +00:00
christos
95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
wiz
483767fb43 Add support for two models of Terratec TValue cards.
From FreeBSD problem report 53383, submitted by Tanja Wittke,
updated by Simon Barner. Adapted for NetBSD by Alexander Becher,
via port-i386.
2005-12-06 23:43:57 +00:00
wiz
3a21a4243b Handle MSP3435G the same as MSP3430G. From Scott Presnell in PR 28682. 2005-12-06 23:29:05 +00:00
wiz
4b82c3d9f3 Fix replaco in comment. 2005-05-30 06:41:55 +00:00
christos
26f4234ec5 - avoid variable shadowing
- add const
2005-05-30 04:30:18 +00:00
yamt
18f717bb90 constify audio_hw_if, midi_hw_if, and radio_hw_if. 2004-10-29 12:57:15 +00:00
mrg
5b576a585b match LeadTek's original PCI vendor ID as well as the 3-alternates
when setting CARD_LEADTEK.  now with just

	options BKTR_SYSTEM_DEFAULT=BROOKTREE_PAL

i get a shiny happy working card on my macppc box:

bktr0 at pci1 dev 18 function 0
bktr0: interrupting at irq 52
bktr0: Leadtek WinFast TV2000/VC100, Philips FR1216 PAL FM tuner.
2004-07-24 12:52:45 +00:00
wiz
901973874a Fix typo in comment; from Robert Nagy via OpenBSD. 2004-05-12 20:43:17 +00:00
wiz
a8c55b7623 Add one more unofficial leadtek PCI vendor id; from Robert Nagy
via OpenBSD.
2004-05-12 20:42:10 +00:00
simonb
9bc855a931 s/the the/the/ (only in sources that aren't regularly imported from
elsewhere).
2004-04-23 02:58:27 +00:00
simonb
b6abb6ab1d Remove some assigned-to but otherwise unused variables. 2003-10-30 01:58:17 +00:00
fvdl
d5aece61d6 Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
2003-06-29 22:28:00 +00:00
darrenr
960df3c8d1 Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V
2003-06-28 14:20:43 +00:00
wiz
1ffa7b76c4 DMA, not dma nor Dma. 2003-05-03 18:10:37 +00:00
fvdl
a51397e9b2 Quell a strict-alias warning by applying the same cast to '&target' as
already done in all other cases.
2003-04-28 14:43:32 +00:00
wiz
5feeffaf69 Remove some. 2003-03-12 00:24:41 +00:00
wiz
b413b8eb87 Update script for bktr-sf imports. 2003-03-12 00:23:39 +00:00
wiz
fa96c20c88 Merge some more. 2003-03-12 00:19:20 +00:00
wiz
0cdd0c6614 Merge first bktr-sf import. 2003-03-12 00:14:40 +00:00
wiz
a0685571bd Import of current state of bktr(4) in sourceforge repository.
Changes since last import:
. lots of whitespace cleanups
. typo fixes (e.g. hz, compatibilty)
. fix brightness ioctl return value
. wait for int ready using DELAY() instead of tight loop
2003-03-12 00:02:19 +00:00
wiz
0bd71f2dbc Recognise tuner on WinTV-GO-FM. From PR 19844 by Wolfgang S. Rupprecht. 2003-01-14 11:09:40 +00:00
mjl
f8a4b3b1a8 Make this work on big endian platforms (mostly from OpenBSD):
Uploaded scripts work better if they are little endian, as the
card's engine expects, so convert to le first.

Also clean up attach routine a bit (use pa_id and PCI_REVISION
instead of fetching it ourselves).

This makes the driver work on my macppc G4, it can decode and
display video and tuner input. Sound does not seem to work, but
this may be my wonky formac bktr-for-macintosh card.
2003-01-10 01:38:52 +00:00
wiz
617b132aac Spell output with two ts. 2003-01-04 23:43:02 +00:00
toshii
c3e4f1d795 Fix broken programming of VSCALE_HI registers in yuv422_prog. 2002-12-25 06:40:27 +00:00
toshii
7eb93bf41f Consistently use BKTR_GEN_IRQ and BKTR_RESYNC instead of numbers.
Also, do some whitespace cleanup.
2002-12-25 06:20:11 +00:00
toshii
0c6bdb0df1 Merge FreeBSD rev.1.122:
Be consistent about "static" functions: if the function is marked
	static in its prototype, mark it static at the definition too.
2002-12-25 06:16:58 +00:00
christos
514f7047e4 si_ -> sel_ 2002-11-26 18:49:40 +00:00
jdolecek
e0cc03a09b merge kqueue branch into -current
kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe
2002-10-23 09:10:23 +00:00
christos
f64a8c827d remove duplicate cpp defs. 2002-10-23 02:32:36 +00:00
thorpej
b75a007d9f Add trailing ; to CFATTACH_DECL. 2002-10-02 16:51:16 +00:00
thorpej
f59e5352f2 Use CFATTACH_DECL(). 2002-10-01 04:21:32 +00:00
thorpej
f818766afe Declare all cfattach structures const. 2002-09-27 20:31:45 +00:00
gehenna
77a6b82b27 Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.
2002-09-06 13:18:43 +00:00
toshii
e2d964c3ec Remove a superfluous interrupt request bit in yuvpack_prog,
which confuses the state machine in common_bktr_intr.
This makes "mplayer -tv ..." work (but only with NTSC).
2002-08-28 06:06:10 +00:00
wiz
f7d76b1062 bcmp -> memcmp. 2002-05-22 16:03:14 +00:00
hamajima
e33fdf6c62 add WinFast VC100 2002-03-23 09:27:50 +00:00
jmcneill
fad06cc1a6 Re-enable radio at bktr, only if NRADIO > 0 and an FM tuner is present. 2002-01-07 18:05:33 +00:00
tron
559521efa3 Disable broken radio(4) support for bktr(4). The configuration code doesn't
even check if the TV card has a radio tuner.
2002-01-07 12:12:55 +00:00
tron
65aa7d5e7c Clean up preprocess handling of optional radio(4) support a little bit. 2002-01-07 10:43:43 +00:00
tron
6a997e3c73 Compile in radio(4) only it is activated in the kernel configuration. 2002-01-06 23:19:18 +00:00
jmcneill
58d1fe0d04 Add missing definition of STATUSBIT_STEREO. 2002-01-06 15:37:08 +00:00
jmcneill
1eb3eee47c Add basic support for the radio(4) interface. 2002-01-06 02:42:45 +00:00
wiz
e0492a661d Update note about ioctl tsleep error with error report. 2001-11-29 15:01:19 +00:00
lukem
ab5d9d2b0c add RCSIDs 2001-11-13 07:24:43 +00:00
wiz
7c90b959da Fix check in device open.
Patch by KUROSAWA Takahiro in kern/14289.
2001-10-18 16:08:05 +00:00
chs
984d30ac45 don't depend on other headers to include sys/proc.h for us. 2001-09-28 12:36:48 +00:00