aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* MFS: bring in msmith's 11th hour controller cam fixJordan K. Hubbard2001-04-211-1/+5
| | | | Notes: svn path=/releng/4.3/; revision=75763
* This commit was manufactured by cvs2svn to create branch 'RELENG_4_3'.cvs2svn2001-04-2126-7465/+0
| | | | Notes: svn path=/releng/4.3/; revision=75750
* MFC:Søren Schmidt2001-04-182-20/+14
| | | | | | | | | Add support the the Intel ICH2 mobile. Approved by: jkh Notes: svn path=/stable/4/; revision=75647
* MFC:Søren Schmidt2001-04-181-1/+1
| | | | | | | | | The VIA 586 chip does UDMA from rev 0x3 onwards. Approved by: jkh Notes: svn path=/stable/4/; revision=75646
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2001-04-171-0/+239
| | | | Notes: svn path=/stable/4/; revision=75603
* open_drive: Recognize drives located on Mylex RAID controllers.Greg Lehey2001-04-161-0/+3
| | | | | | | | Reported by: Matt Groener <root@groenquist.com> Approved by: jkh Notes: svn path=/stable/4/; revision=75536
* Add another ID to the badcards (non-ac97) tableGeorge C A Reid2001-04-101-0/+1
| | | | | | | Approved by: jkh Notes: svn path=/stable/4/; revision=75383
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2001-04-093-0/+1688
| | | | Notes: svn path=/stable/4/; revision=75354
* MFC: Correctly initialize free_ccbq so that if we fail to attach (as isMatt Jacob2001-04-091-9/+8
| | | | | | | | | | possible for some systems where the device is there, but the BIOS hasn't allocated memory resources for it), we don't panic. Approved by: jkh Notes: svn path=/stable/4/; revision=75330
* MFC sample rate fixes and 4 speaker audio for release.Orion Hodson2001-04-081-1/+8
| | | | | | | Approved by: jkh Notes: svn path=/stable/4/; revision=75311
* struct drive:Greg Lehey2001-04-081-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Workaround size mismatch in struct drive on alpha platform only. This struct is shared between kernel and userland and contains a dev_t, which now refers to a completely different structure in userland and kernel: int the kernel, userland dev_t is called udev_t, and dev_t is struct specinfo *. In practical terms, kernel dev_t is a pointer and userland dev_t is an int, which on the alpha are different sizes. As stated, this is a workaround. The correct fix would be in two parts: 1. Don't define structures in the kernel with the same name and a different content as a userland structure. This is a kernel-wide issue: kernel dev_t needs another name. 2. Don't export unnecessary kernel structures to userland. This can be done within Vinum. It is currently on the tuit queue. Sleuth work by: Normand Leclerc <nospam@ele.etsmtl.ca> Tested by: Normand Leclerc <nospam@ele.etsmtl.ca> Blanket approved by: jkh Notes: svn path=/stable/4/; revision=75303
* MFC sample rate fixes for release.Orion Hodson2001-04-071-234/+304
| | | | | | | Approved by: jkh Notes: svn path=/stable/4/; revision=75291
* MFC:Søren Schmidt2001-04-061-4/+47
| | | | | | | Add ATA66 & ATA100 support for Acer chipsets. Notes: svn path=/stable/4/; revision=75272
* MFC:Søren Schmidt2001-04-053-20/+48
| | | | | | | | | | Add tunables to control DMA/WC/TAGS/ATAPI_DMA and associated sysctl's to read settings. Approved by: jkh Notes: svn path=/stable/4/; revision=75240
* vinumlock: Catch a potential race condition where one process isGreg Lehey2001-04-041-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | waiting for a lock, and between the time it is woken and it retries the lock, another process gets it and places it in the first entry in the table. This problem has not been observed, but it's possible, and it's easy enough to fix. Submitted by: tegge vinumunlock: Catch a real bug capable of hanging a system. When releasing a lock, vinumunlock() called wakeup_one. This caused wakeups to sometimes get lost. After due consideration, we think that this is due to the fact that you can't guarantee that some other process is also waiting on the same address. This makes wakeup_one a very dangerous function to use. These changes have not yet been committed to -CURRENT. In view of the seriousness of the second one and the imminent 4.3-RELEASE, it seems excusable to commit to -STABLE first. 36 hour test by: grog Suggested by: alfred Suffered by: Andrew Gordon <arg@arg1.demon.co.uk> Approved by: jkh Notes: svn path=/stable/4/; revision=75151
* MFC: Allocate lock table for striped plexes as well as parity plexes.Greg Lehey2001-03-301-1/+1
| | | | | | | | | | | This was forgotten in the last slew of MFCs, and caused an immediate panic when starting a striped plex. Suffered by: "John J. Rushford Jr" <jjr@sapphire.alisa.org> Approved by: jkh Notes: svn path=/stable/4/; revision=75013
* Clean up properly when a `vn' module is kldunloaded to avoid panicsIan Dowse2001-03-261-1/+20
| | | | | | | | | | | | | | | | | later. We now call cdesw_remove() to unregister the device, NULL out any pointers to the vn_softc that exist in dev_t `si_drv1' fields, and perform a destroy_dev() corresponding to the initial make_dev(). This is not an MFC; vn(4) is no longer in -current. PR: kern/18270, i386/26049 Submitted by: peter.edwards@ireland.com, chervarium@nove.bg Reviewed by: phk Approved by: jkh Notes: svn path=/stable/4/; revision=74820
* MFC rev 1.115. Don't allow our DMA engine to be re-enabled late in theJustin T. Gibbs2001-03-211-7/+6
| | | | | | | | | | shutdown phase of a data transfer by the idle loop fetching an S/G segment. Approved by: jkh Notes: svn path=/stable/4/; revision=74550
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2001-03-203-0/+389
| | | | Notes: svn path=/stable/4/; revision=74502
* MFC: rev 1.14: whitespace fix.John Baldwin2001-03-191-5/+5
| | | | Notes: svn path=/stable/4/; revision=74488
* MFC: Fix phase table lookup and PCI 2.1 retry bug workaround.Justin T. Gibbs2001-03-193-5/+7
| | | | | | | Approved by: jkh Notes: svn path=/stable/4/; revision=74464
* MFC:Cameron Grant2001-03-183-1/+22
| | | | | | | | | | | | | | fake.c rev 1.7 feeder.c rev 1.14 sound.c rev 1.40 don't leak memory allocated for feeders at module unload kill the fake channel when unregistering Approved by: jkh Notes: svn path=/stable/4/; revision=74423
* MFC: rev 1.30Cameron Grant2001-03-181-7/+10
| | | | | | | | | | | destroy child devices on detach to prevent ever-increasing numbers of pcm/midi devices trying to attach if the module is repeatedly loaded and unloaded. Approved by: jkh Notes: svn path=/stable/4/; revision=74422
* MFC: rev 1.65Cameron Grant2001-03-181-1/+3
| | | | | | | | | | fix a typo preventing the second dma channel being released use isa_dma_release when releasing dma channels Approved by: jkh Notes: svn path=/stable/4/; revision=74421
* MFC rev 1.12. Fix a race condition in the interrupt handler that can causeScott Long2001-03-181-2/+2
| | | | | | | | | | | commands to become standed until another I/O happens. Allows an aac container to be mounted as root. Approved by: jkh Obtained from: gibbs Notes: svn path=/stable/4/; revision=74419
* MFC: fix a panic triggerable by anyone with read/write access to the audioCameron Grant2001-03-143-1/+11
| | | | | | | | | | | | | | | devices. opening /dev/{dsp,dspW,audio}0 and then opening a different device from that list and closing it resulted in a panic when any operation is performed on the first fd. we prevent this happening by denying the second open unless it uses the same minor device as the first. PR: kern/25519 Approved by: jkh Notes: svn path=/stable/4/; revision=74254
* MFC: Update to latest.Poul-Henning Kamp2001-03-131-52/+94
| | | | | | | Approved by: jkh Notes: svn path=/stable/4/; revision=74221
* Catch up with -CURRENT. I've left it very late to MFC a number ofGreg Lehey2001-03-1314-298/+278
| | | | | | | | | | | problems which are fixed in -CURRENT. Now's still not a good time to do it, so I'd be grateful if people would hammer on this stuff. Approved by: jkh Pointy hat to: grog Notes: svn path=/stable/4/; revision=74193
* Correct the check of the seeprom signature that tells us that theJustin T. Gibbs2001-03-122-1/+3
| | | | | | | | | termination level setting can be found in the seeprom. The old code could get some false positives causing the termination to be set incorrectly. This was already in -current, but was missed in the last merge. Notes: svn path=/stable/4/; revision=74175
* MFC: Update to top of tree.Justin T. Gibbs2001-03-1212-380/+502
| | | | | | | Approved by: jkh Notes: svn path=/stable/4/; revision=74171
* MFC: change default to bss (infrastructure) from adhocAssar Westerlund2001-03-121-1/+1
| | | | | | | Approved by: jkh Notes: svn path=/stable/4/; revision=74163
* MFC: Fix a botch where we wrote the year register with > 2 digits.Matt Jacob2001-03-101-9/+6
| | | | | | | Approved by: jkh@freebsd.org Notes: svn path=/stable/4/; revision=74082
* MFC: Reduce si_iosize_max to 64K.Scott Long2001-03-071-11/+4
| | | | | | | Approved by: jkh Notes: svn path=/stable/4/; revision=73969
* -stable specific work-around to unbreak support for this device.Jordan K. Hubbard2001-03-061-0/+12
| | | | | | | Submitted by: cp Notes: svn path=/stable/4/; revision=73859
* MFC: Workaround broken colors on the alpha.John Baldwin2001-03-061-0/+12
| | | | | | | Requested by: gallatin Notes: svn path=/stable/4/; revision=73808
* MFC: queueing changes, concurrency improvements, stability fixes.Mike Smith2001-03-054-354/+527
| | | | Notes: svn path=/stable/4/; revision=73783
* MFC: conditionalize powerstate meddling on __FreeBSD_versionCameron Grant2001-03-051-2/+1
| | | | Notes: svn path=/stable/4/; revision=73771
* MFC: enable per-device sysctls and add (currently unused) no-op snd_mtx*Cameron Grant2001-03-052-5/+85
| | | | | | | functions for compatibility with future newpcm drivers Notes: svn path=/stable/4/; revision=73763
* MFC: set speaker volumeCameron Grant2001-03-051-2/+6
| | | | Notes: svn path=/stable/4/; revision=73762
* MFC: add alaw<->ulaw feederCameron Grant2001-03-051-0/+93
| | | | Notes: svn path=/stable/4/; revision=73759
* MFC: fix for attempting to set impossible rate/format combinationsCameron Grant2001-03-051-3/+30
| | | | Notes: svn path=/stable/4/; revision=73758
* MFC:David E. O'Brien2001-03-056-20/+8
| | | | | | | | | | | | Convert all users of fldoff() to offsetof(). fldoff() is bad because it only takes a struct tag which makes it impossible to use unions, typedefs etc. Define __offsetof() in <machine/ansi.h> Define offsetof() in terms of __offsetof() in <stddef.h> and <sys/types.h> Notes: svn path=/stable/4/; revision=73745
* MFC: Split ex driver into isa and pccard. We now support and oldWarner Losh2001-03-052-283/+172
| | | | | | | | | | olicomm card by doing this. The pccard.conf changes have already been MFC'd. Submitted by: iwasaki-san Notes: svn path=/stable/4/; revision=73590
* MFC: rev 1.38; Add USB_PRODUCT_MELCO_LUATX5 device ID.Peter Wemm2001-03-051-0/+1
| | | | Notes: svn path=/stable/4/; revision=73567
* MFC: Role core minor. Handles are 16, not 32 bits. Add the ISPCTL_RUN_MBOXCMDMatt Jacob2001-03-041-3/+11
| | | | | | | | isp_control functio. Add the ISPASYNC_UNHANDLED_RESPONSE response async event code. Notes: svn path=/stable/4/; revision=73549
* MFC: The flag ICBOPT_BOTH_WWNS is more descriptive than ICBOPT_USE_PORTNAME.Matt Jacob2001-03-041-1/+1
| | | | Notes: svn path=/stable/4/; revision=73547
* MFC: Update copyright. Accomodate changes to Qlogic parallel SCSI targetMatt Jacob2001-03-041-9/+13
| | | | | | | | | | | mode spec (half of what had been a 32 bit 'driver reserved' value is now a 16 bit handle that is used to correllate CTIOs with a specific ATIO- we have to make sure we pass it on thru. Propagate back proper at2_entry format (instead of one derived from an at_entry). Handles are 16, not 32 bits. Notes: svn path=/stable/4/; revision=73546
* MFC: rev copyright. propage Asmodai's spelling correction. HandlesMatt Jacob2001-03-041-3/+4
| | | | | | | are 16 not 32 bits now. Notes: svn path=/stable/4/; revision=73545
* MFC: handles are 16 not 32 bits now.Matt Jacob2001-03-041-14/+14
| | | | Notes: svn path=/stable/4/; revision=73544
* Roll platform minor.Matt Jacob2001-03-041-9/+9
| | | | | | | | MFC: Remove name/unit from softc- replace with device_t from probe. Store default WWWs for both port && node. Notes: svn path=/stable/4/; revision=73543