summaryrefslogtreecommitdiffstats
path: root/sys/dev/bktr
Commit message (Collapse)AuthorAgeFilesLines
* Use BUS_PROBE_DEFAULT for pci probe return valueimp2005-03-051-4/+4
|
* Remove lots of tab/space errors introduced by massive cut-n-paste action.julian2005-02-101-234/+234
| | | | | Noticed from: diffs of the last commit. MFC after: 1 week
* Take into account that Pinnacle screwed up their PCI ID in the beginning..julian2005-02-101-4/+5
| | | | | | | | | Older cards have it reversed. Also, use some already defined values instead of magic numbers. PR: 73324 Submitted by: arne_woerner@yahoo.com MFC after: 1 week
* Fix a few printf problems on ia64 (and other 64-bit platforms).imp2005-01-271-4/+4
|
* Add code to do better auto detection of tuner types etc.julian2005-01-233-53/+51
| | | | | | PR: kern/75831 Submitted by: Branko Lankester <branko@euro.net> MFC after: 1 week
* Use uint32_t instead of u_long when appropriate.cognet2005-01-091-64/+64
| | | | | | That's enough to make my bt848 work on amd64. MFC after: 1 week
* Remove support for FreeBSD < 4.recent from this driver.imp2005-01-087-35/+1
|
* Remove vnode.h and adjust includes to compensate for pollution.imp2005-01-085-6/+13
|
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-069-9/+9
|
* Add support for the Pixelview PlayTVjulian2005-01-022-1/+14
| | | | | | PR: 68362 Submitted by: Carl Makin <carl@stagecraft.cx> MFC after: 1 week
* Roger is away, note that his maintainership isjulian2004-12-311-1/+4
| | | | | | on vacation until he gets back. (hopefully next year) Submitted by: linimon
* Add a missing prototype.julian2004-12-171-2/+1
| | | | MFC after: 1 week
* Allow /sys/dev/bktr to support Pinnacle PCTV Rave cardsjulian2004-12-164-17/+440
| | | | | | PR: 73669 Submitted by: arne_woerner at yahoo dot com MFC after: 1 week
* Add some locking for -currnet/5.xjulian2004-12-161-0/+6
| | | | | | PR: 74305 Submitted by: Anish Mistry <amistry at am-productions dot biz> MFC after: 1 week
* Fix build if both of BKTR_USE_FREEBSD_SMBUS and BKTR_NEW_MSP34XX_DRIVER aredwhite2004-09-111-0/+4
| | | | | | | defined. Thanks to Damian Gerow <dgerow@afflictions.org> for pointing out this problem. RELENG_5 candidate.
* Add support AOpen VA1000 video capture cardsanpei2004-08-082-2/+15
| | | | | | PR: kern/62146 Submitted by: HASHI Hiroaki <hasi@cskk-sv.co.jp> MFC after: 1 week
* Do a pass over all modules in the kernel and make them return EOPNOTSUPPphk2004-07-151-0/+1
| | | | | | | | for unknown events. A number of modules return EINVAL in this instance, and I have left those alone for now and instead taught MOD_QUIESCE to accept this as "didn't do anything".
* Fix a tuner problem.schweikh2004-06-271-1/+3
| | | | | | PR: kern/66006 Submitted by: Josh Elsasser <jre@vineyard.net> MFC after: 1 week
* Do the dreaded s/dev_t/struct cdev */phk2004-06-164-15/+15
| | | | Bump __FreeBSD_version accordingly.
* Style cleanup.schweikh2004-06-111-64/+81
|
* * Fix typo in comment.schweikh2004-06-111-6/+4
| | | | | | * remove extraneous semicolon between function definitions. * vm_offset_t is not a pointer, so return 0, not NULL. This fixes two warnings.
* Add missing <sys/module.h> includesphk2004-05-302-0/+2
|
* Unbreak build ifjosef2004-05-261-1/+1
| | | | | | | | | options BKTR_USE_FREEBSD_SMBUS is defined in kernel configuration. Submitted by: Tom Convery <tpc@tomfoo.com> PR: kern/60458 Approved by: imp
* Convert callers to the new bus_alloc_resource_any(9) API.njl2004-03-171-5/+4
| | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde
* Device megapatch 4/6:phk2004-02-211-0/+2
| | | | | | | | Introduce d_version field in struct cdevsw, this must always be initialized to D_VERSION. Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing four D_NOGIANT flags and adding 145 D_NEEDGIANT flags.
* Device megapatch 1/6:phk2004-02-211-2/+0
| | | | | | | Free approx 86 major numbers with a mostly automatically generated patch. A number of strategic drivers have been left behind by caution, and a few because they still (ab)use their major number.
* Use contigmalloc() instead of vm_page_alloc_contig().alc2004-01-141-2/+5
|
* Make the multiple include guard correct for this file location.obrien2003-12-202-6/+6
| | | | This fixes a bug where the guard conflicted with machine/ioctl_*.
* Spell btkr as bktr.rwatson2003-12-121-2/+2
| | | | | Pointy hat to: obrien Reported by: Martin <nakal@web.de>
* Move the bktr(4) <arch>/include/ioctl_{bt848,meteor}.h files to dev/bktrobrien2003-12-087-19/+18
| | | | | | as these ioctl's aren't MD. This also means they are installed in /usr/include/dev/bktr now. Also provide compatability wrappers for where these headers lived in 4.x.
* Ooops. These are still used by the bktr driver. David O'Brien hasimp2003-12-071-0/+187
| | | | | | plans for dealing, but I'll let him deal. Pointy hat to: imp@
* Remote meteor driver. It hasn't compiled in over 3 years. If someoneimp2003-12-071-187/+0
| | | | | makes it compile again, and can test it, we can restore the driver to the tree.
* Use a mutex to synchronize the driver top and bottom halves instead oftruckman2003-12-014-9/+62
| | | | | | | | | using critcal_enter() and critical_exit() to attempt to replace spl*() calls. The critical section was calling selrecord(), which locks an MTX_DEF mutex, which is not legal in a critical section. Tested by: Stefan Ehmann <shoesoft@gmx.net> and "make universe" Approved by: re (scottl)
* - Implement selwakeuppri() which allows raising the priority of atanimura2003-11-091-1/+1
| | | | | | | | | | | | | thread being waken up. The thread waken up can run at a priority as high as after tsleep(). - Replace selwakeup()s with selwakeuppri()s and pass appropriate priorities. - Add cv_broadcastpri() which raises the priority of the broadcast threads. Used by selwakeuppri() if collision occurs. Not objected in: -arch, -current
* Use PCIR_BAR(x) instead of PCIR_MAPS.jhb2003-09-021-1/+1
| | | | | Glanced over by: imp, gibbs Tested by: i386 LINT
* Revision 1.126 broke the interface of the bktr driver'snectar2003-08-261-9/+13
| | | | | | | | | | | | METEORSSIGNAL ioctl. Applications use this ioctl with the value METEOR_SIG_MODE_MASK (0xFFFF0000, -65536) to reset signal delivery, but revision 1.126 caused the driver to return EINVAL in this case. Interestingly, the same METEORSSIGNAL ioctl in the meteor driver uses 0 to reset signal delivery. This commit allows METEOR_SIG_MODE_MASK as a synonym for 0 in the bktr driver, and restructures the code a bit so that it is otherwise identical between the bktr and meteor drivers.
* Use __FBSDID().obrien2003-08-247-101/+96
| | | | Also some minor style cleanups.
* Prefer new location of pci include files (which have only been in theimp2003-08-226-12/+21
| | | | | tree for two or more years now), except in a few places where there's code to be compatible with older versions of FreeBSD.
* Add a overhaul of the soundchip initialization for the MSP34xx chipsetsalex2003-08-126-1/+1339
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | found only many tv-cards. We currently use more ore less evil hacks (slow_msp_audio sysctl) to configure the various variants of these chips in order to have stereo autodetection work. Nevertheless, this doesn't always work even though it _should_, according to the specs. This is, for example, the case for some popular Hauppauge models sold sold in Germany. However, the Linux driver always worked for me and others. Looking at the sourcecode you will find that the linux-driver uses a very much enhanced approach to program the various msp34xx chipset variants, which is also found in the specs for these chips. This is a port of the Linux MSP34xx code, written by Gerd Knorr <kraxel@bytesex.org>, who agreed to re-release his code under a BSD license for this port. A new config option "BKTR_NEW_MSP34XX_DRIVER" is added, which is required to enable the new driver. Otherwise the old code is used. The msp34xx.c file is diff-reduced to the linux-driver to make later modifications easier, thus it doesn't follow style(9) in most cases. Approved by: roger (committing this, no time to test/review), keichii (code review)
* Add or correct range checking of signal numbers in system calls andnectar2003-08-101-1/+1
| | | | | | | | | ioctls. In the particular case of ptrace(), this commit more-or-less reverts revision 1.53 of sys_process.c, which appears to have been erroneous. Reviewed by: iedowse, jhb
* Merge NetBSD bktr_core.c rev. 1.26:fjoe2003-06-091-2/+2
| | | | | | | | Fix broken programming of VSCALE_HI registers in yuv422_prog(). PR: 46521 Obtained from: NetBSD MFC after: 3 days
* Add two more Vendor ID's for Leadtek Winfast TV 2000fjoe2003-06-091-1/+5
| | | | | PR: 47453 Obtained from: NetBSD (partially)
* Eliminate mostly unused local variable.phk2003-05-311-5/+2
| | | | Found by: FlexeLint
* - Add vm_paddr_t, a physical address type. This is required for systemsjake2003-03-251-1/+1
| | | | | | | | | | | | | | | where physical addresses larger than virtual addresses, such as i386s with PAE. - Use this to represent physical addresses in the MI vm system and in the i386 pmap code. This also changes the paddr parameter to d_mmap_t. - Fix printf formats to handle physical addresses >4G in the i386 memory detection code, and due to kvtop returning vm_paddr_t instead of u_long. Note that this is a name change only; vm_paddr_t is still the same as vm_offset_t on all currently supported platforms. Sponsored by: DARPA, Network Associates Laboratories Discussed with: re, phk (cdevsw change)
* Gigacommit to improve device-driver source compatibility betweenphk2003-03-031-13/+9
| | | | | | | | | | | | | branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl)
* Cleanup of the d_mmap_t interface.mux2003-02-251-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | - Get rid of the useless atop() / pmap_phys_address() detour. The device mmap handlers must now give back the physical address without atop()'ing it. - Don't borrow the physical address of the mapping in the returned int. Now we properly pass a vm_offset_t * and expect it to be filled by the mmap handler when the mapping was successful. The mmap handler must now return 0 when successful, any other value is considered as an error. Previously, returning -1 was the only way to fail. This change thus accidentally fixes some devices which were bogusly returning errno constants which would have been considered as addresses by the device pager. - Garbage collect the poorly named pmap_phys_address() now that it's no longer used. - Convert all the d_mmap_t consumers to the new API. I'm still not sure wheter we need a __FreeBSD_version bump for this, since and we didn't guarantee API/ABI stability until 5.1-RELEASE. Discussed with: alc, phk, jake Reviewed by: peter Compile-tested on: LINT (i386), GENERIC (alpha and sparc64) Runtime-tested on: i386
* Remove unintended growth of bt848_card_signature.orion2003-02-031-1/+1
|
* Add BCTV3/PCI entry.orion2003-02-023-67/+95
| | | | | | | | | | | | | | Rename functions bctv_* to bctv2_* and macros BCTV_* to BCTV2_* for coexistance of BCTV2 and BCTV3. Rename CARD_IO_GV to CARD_TO_BCTV2. Add auto recognition of BCTV3/PCI. PR: i386/43879 Submitted by: MOROHOSHI Akihiko <moro@remus.dti.ne.jp> Approved by: roger MFC after: 6 days
* Add tuner code for WinTV Go FM (Hauppauge Model 44811 C133). Patchorion2003-01-311-0/+1
| | | | supplied by Ross Finlayson <finlayson@live.com>.
* Fix a panic unloading the bktr driver when devfs is in use.roger2002-12-091-10/+2
| | | | PR: kern/36413
OpenPOWER on IntegriCloud