summaryrefslogtreecommitdiffstats
path: root/sys/dev/bktr
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* The kernel doesn't have <stdio.h> or <string.h>. Remove these.jlemon2001-10-091-2/+0
|
* KSE Milestone 2julian2001-09-123-21/+21
| | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
* Undo part of the tangle of having sys/lock.h and sys/mutex.h included inmarkm2001-05-011-0/+2
| | | | | | | | | | | other "system" header files. Also help the deprecation of lockmgr.h by making it a sub-include of sys/lock.h and removing sys/lockmgr.h form kernel .c files. Sort sys/*.h includes where possible in affected files. OK'ed by: bde (with reservations)
* Switch from save/disable/restore_intr() to critical_enter/exit().jhb2001-03-281-0/+6
|
* Send the remains (such as I have located) of "block major numbers" tophk2001-03-261-1/+0
| | | | the bit-bucket.
* - Lock the process while sending it a signal.jhb2001-03-071-2/+13
| | | | | - Attempt to define empty PROC_LOCK/UNLOCK when needed to help keep this driver portable.
* Finish deprecating <sys/select.h> in favor of <sys/selinfo.h> in kernel code.wollman2001-01-201-0/+5
|
* select() DKI is now in <sys/selinfo.h>.wollman2001-01-091-0/+4
|
* Fix typo in commentsroger2000-10-311-2/+2
|
* Upgrade to driver 2.18roger2000-10-315-15/+140
| | | | | | | Support for new Hauppauge Model 44xxx WinTV Cards (the ones with no audio mux) Submitted by: Christian Gusenbauer <Christian.Gusenbauer@netway.at>
* Add new ioctls for userland access to the MSP deviceroger2000-10-261-0/+10
|
* Fix typoroger2000-10-261-1/+1
|
* Add missing 'unit' coderoger2000-10-201-0/+4
| | | | Submitted by: Brad L. Chisholm <blc@bsdwins.com>
* Add Daniel's name and fix release dataroger2000-10-191-2/+2
|
* Update to driver 2.17roger2000-10-198-76/+201
| | | | | | | | | Fixes bugs in devfs when unloading and reloading Syncs with NetBSD changes Submitted by: Alexander Langer <alex@big.endian.de> Submitted by: Thomas Klausner <wiz@netbsd.org> Submitted by: Daniel O'Connor" <doconnor@gsoft.com.au>
* Remove unneeded #include <machine/clock.h>phk2000-10-156-6/+0
|
* Make MOD_UNLOAD return EBUSY to prevent it being unloaded automatically when weroger2000-09-111-4/+5
| | | | | | unload the bktr driver. Change the sub-section from SI_SUB_PSEDUO to SI_SUB_DRIVERS to make sure the module initialises before the bktr module
* Change to SI_ORDER_FIRST to make sure this module runs beforeroger2000-09-111-1/+2
| | | | | the bktr module if both are loaded at the same time (eg in the boot loader)
* Add MODULE_VERSION and MODULE_DEPENDS to make the bktr module load theroger2000-09-112-1/+3
| | | | bktr_mem module
* Update to driver 2.15.roger2000-09-107-26/+307
| | | | | | | | | | | | | Main change is the addition of the bktr_mem module. This holds onto the bktr driver's contiguously allocated memory when the bktr driver is unloaded and reloaded. This has to be done because it is virtually impossible to get contiguous memory once a system is running. Also tidied up the use of SMBUS, added a new Hauppauge tuner type (0x2c) and a new Flyvideo vendor ID.
* Replace previous change by a move of a #include since something elsepeter2000-09-031-5/+3
| | | | | | #includes "smbus.h". There is still some bogus (but harmless) stuff here surrounding the #include <sys/bus.h> includes here and elsewhere in the bktr code.
* If we are going to test NSMBUS, we had better #include the file thatpeter2000-09-031-0/+1
| | | | | defines it. This creates more warnings rather than less though. These had gone undetected until now. :-(
OpenPOWER on IntegriCloud