summaryrefslogtreecommitdiffstats
path: root/sys/dev/bktr
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fix a bug which caused signals on YUV images to fail.roger2002-12-071-7/+6
| | | | | PR: i386/45678 (this also allowed kern/21305 and kern/33715 to be closed) Submitted by: Tommy Johnson <tjohnson@bobdbob.com>
* More int != pointer stuff.jhb2002-11-061-2/+3
|
* Be consistent about "static" functions: if the function is markedphk2002-09-282-10/+11
| | | | | | static in its prototype, mark it static at the definition too. Inspired by: FlexeLint warning #512
* Remove abuse of NBKTR - this was always a NOP on freebsd. We neverpeter2002-07-213-11/+1
| | | | compiled this stuff if NBKTR was zero.
* Remove __FreeBSD__ version abuse, also de-orbit support for FreeBSD 2imp2002-07-212-447/+0
| | | | and FreeBSD 3.
* Fix new gcc-3.1 warnings. I think this gets GENERIC compiling cleanlypeter2002-05-241-12/+12
| | | | again.
* Separate "seperate" from kernel source.eric2002-05-161-1/+1
|
* sysctl -w -> sysctldd2002-05-111-1/+1
|
* Fix bktr and pcf compilation with LINTnsouch2002-03-253-16/+8
|
* Major rework of the iicbus/smbus framework:nsouch2002-03-234-215/+158
| | | | | | | | - VIA chipset SMBus controllers added - alpm driver updated - Support for dynamic modules added - bktr FreeBSD smbus updated but not tested - cleanup
* Remove __P.alfred2002-03-201-3/+3
|
* Fixes to make select/poll mpsafe.alfred2002-03-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: selwakeup required calling pfind which would cause lock order reversals with the allproc_lock and the per-process filedesc lock. Solution: Instead of recording the pid of the select()'ing process into the selinfo structure, actually record a pointer to the thread. To avoid dereferencing a bad address all the selinfo structures that are in use by a thread are kept in a list hung off the thread (protected by sellock). When a selwakeup occurs the selinfo is removed from that threads list, it is also removed on the way out of select or poll where the thread will traverse its list removing all the selinfos from its own list. Problem: Previously the PROC_LOCK was used to provide the mutual exclusion needed to ensure proper locking, this couldn't work because there was a single condvar used for select and poll and condvars can only be used with a single mutex. Solution: Introduce a global mutex 'sellock' which is used to provide mutual exclusion when recording events to wait on as well as performing notification when an event occurs. Interesting note: schedlock is required to manipulate the per-thread TDF_SELECT flag, however if given its own field it would not need schedlock, also because TDF_SELECT is only manipulated under sellock one doesn't actually use schedlock for syncronization, only to protect against corruption. Proc locks are no longer used in select/poll. Portions contributed by: davidc
* Modify the critical section API as follows:jhb2001-12-181-3/+3
| | | | | | | | | | | | | | | | | | | - The MD functions critical_enter/exit are renamed to start with a cpu_ prefix. - MI wrapper functions critical_enter/exit maintain a per-thread nesting count and a per-thread critical section saved state set when entering a critical section while at nesting level 0 and restored when exiting to nesting level 0. This moves the saved state out of spin mutexes so that interlocking spin mutexes works properly. - Most low-level MD code that used critical_enter/exit now use cpu_critical_enter/exit. MI code such as device drivers and spin mutexes use the MI wrappers. Note that since the MI wrappers store the state in the current thread, they do not have any return values or arguments. - mtx_intr_enable() is replaced with a constant CRITICAL_FORK which is assigned to curthread->td_savecrit during fork_exit(). Tested on: i386, alpha
* o Add #include <sys/systm.h> to fix a warning about printf() beingrwatson2001-11-261-0/+1
| | | | used without a prototype.
* Don't call cdevsw_add().phk2001-11-041-16/+0
|
OpenPOWER on IntegriCloud