summaryrefslogtreecommitdiff
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Protect against deranged fabric nameservers that spit out 10000 identicalMatt Jacob2001-10-181-3/+16
| | | | | | | | | port numbers. MFC after: 1 day Notes: svn path=/head/; revision=85112
* Fix bug introduced by the last commit, the caused some ATAPISøren Schmidt2001-10-161-1/+1
| | | | | | | devices to fail to proberly initialize at boot.. Notes: svn path=/head/; revision=85025
* Fix it so that it doesn't complain for compiles on alpha- that is, matchMatt Jacob2001-10-141-4/+10
| | | | | | | format string args to actual args. Notes: svn path=/head/; revision=84928
* Turn on the hardware volume buttons that are present on most laptops withScott Long2001-10-141-4/+19
| | | | | | | | | | | | these chips. There is a new hint, hint.pcm.N.hwvol_config, that can be set to 1 or 0 to select which pins the buttons are connected to. I'm open to suggestions on where to document this. Also bump the number of playback channels up to 4. MFC after: 3 days Notes: svn path=/head/; revision=84926
* Hack for the "out-of-sync" error.Kazutaka YOKOTA2001-10-131-109/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Count the number of this error. - When the error is detected for the first time, the psm driver will throw few data bytes (up to entire packet size) and see if it can get back to sync. - If the error still persists, the psm driver disable/enable the mouse and see if it works. - If the error still persists and the count goes up to 20, the psm driver reset and reinitialize the mouse. The counter is reset to zero. - It also discards an incomplete data packet when the interval between two consequtive bytes are longer than pre-defined timeout (2 seconds). The last byte which arrived late will be regarded as the first byte of a new packet. This is louie's idea. You may see the following error logs during the above operations: "psmintr: delay too long; resetting byte count" "psmintr: out of sync (%04x != %04x)" "psmintr: discard a byte (%d)" "psmintr: re-enable the mouse" "psmintr: reset the mouse" MFC after: 1 month Notes: svn path=/head/; revision=84880
* attachobject: Return correct status after successfully attaching aGreg Lehey2001-10-131-0/+1
| | | | | | | | | plex. Indirectly found by: Hendrik Scholz <hscholz@perikles.toppoint.de> Notes: svn path=/head/; revision=84875
* Set ulptusein = 0 so that the machine doesn't hang solid after aPoul-Henning Kamp2001-10-121-1/+1
| | | | | | | | | | printjob. There is probably a better fix, but this at least makes USB printing working again. Notes: svn path=/head/; revision=84838
* Change the kernel's ucred API as follows:John Baldwin2001-10-111-2/+1
| | | | | | | | | | | - crhold() returns a reference to the ucred whose refcount it bumps. - crcopy() now simply copies the credentials from one credential to another and has no return value. - a new crshared() primitive is added which returns true if a ucred's refcount is > 1 and false (0) otherwise. Notes: svn path=/head/; revision=84827
* Fix declaration disagreement.Matt Jacob2001-10-111-2/+2
| | | | Notes: svn path=/head/; revision=84823
* Add missing includes of sys/lock.h.John Baldwin2001-10-114-0/+4
| | | | Notes: svn path=/head/; revision=84811
* use pcm_getbuffersize()Orion Hodson2001-10-105-20/+39
| | | | Notes: svn path=/head/; revision=84771
* Update to using the pcm_getbuffersize() method.Scott Long2001-10-091-9/+12
| | | | | | | | | | Fix an off-by-one error in the saving of the dsp memory. Up the play channels to 2. MFC after: 3 days Notes: svn path=/head/; revision=84731
* Use crhold() instead of crdup(). The md(4) driver doesn't modify the ucredJohn Baldwin2001-10-091-1/+2
| | | | | | | | that it uses, so it merely needs to bump its refcount to make it immutable rather than obtain its own copy. Notes: svn path=/head/; revision=84724
* Added Logitec LHA-301 pnp id.Yoshihiro Takahashi2001-10-091-0/+1
| | | | Notes: svn path=/head/; revision=84719
* The kernel doesn't have <stdio.h> or <string.h>. Remove these.Jonathan Lemon2001-10-091-2/+0
| | | | Notes: svn path=/head/; revision=84704
* use pcm_getbuffersize()Cameron Grant2001-10-081-82/+110
| | | | | | | only creat a mic recording channel if the codec supports it Notes: svn path=/head/; revision=84660
* use pcm_getbuffersize()Cameron Grant2001-10-081-14/+22
| | | | | | | use seperate dma tags for buffers and control info Notes: svn path=/head/; revision=84659
* use pcm_getbuffersize()Cameron Grant2001-10-086-26/+48
| | | | Notes: svn path=/head/; revision=84658
* * register the correct number of channelsCameron Grant2001-10-071-3/+3
| | | | | | | * include hw buffer size in sndstat info Notes: svn path=/head/; revision=84641
* use mixer channel numbers, not channel masks- this should fix sb/sbpro mixerCameron Grant2001-10-071-10/+10
| | | | | | | problems. Notes: svn path=/head/; revision=84640
* Add some somewhat vague documentation for this driver and a listMatt Jacob2001-10-072-0/+938
| | | | | | | of Hardware that might, in fact, work. Notes: svn path=/head/; revision=84631
* Make the interrupt routing a bit less chatty unless bootverbose is set.Doug Rabson2001-10-072-6/+10
| | | | Notes: svn path=/head/; revision=84630
* Some patches from Doug for ia64 support- the principle one being theMatt Jacob2001-10-072-2/+6
| | | | | | | | | | | appropriate cache flush that provides MEMORY_BARRIER in between handoffs between host && RISC processor for the shared memory request/response queues. Submitted by: dfr@nlsystems.com Notes: svn path=/head/; revision=84629
* Make this compile again after the changes to make bridge kld'ableLuigi Rizzo2001-10-071-3/+3
| | | | Notes: svn path=/head/; revision=84601
* Misunderstanding documentation caused me to try and set 1Gbps/2Gps/AutoMatt Jacob2001-10-062-14/+21
| | | | | | | | | connection speed for the 2300 in the wrong offset in the ICB. Oops. Respect some QLogic errat wrt PCI errors on certain shared host/RISC registers. Notes: svn path=/head/; revision=84598
* Whups- remember to zero the isr pointer arg.Matt Jacob2001-10-061-1/+3
| | | | Notes: svn path=/head/; revision=84597
* Respect QLogic's errata- read BIU_ISR even on the 2300Matt Jacob2001-10-061-0/+2
| | | | | | | | | | | | to see if there's an interrupt (avoids PCI parity errors which can occur on the 2312 if you access some registers from the host at the same time the RISC on the 2312 is C accessing them). MFC after: 1 day Notes: svn path=/head/; revision=84596
* Enable console. There are far too many 'ifdef __i386__' in this file.Doug Rabson2001-10-061-7/+7
| | | | Notes: svn path=/head/; revision=84589
* Update with latest ATA/ATAPI ver 6 rev 2 items.Søren Schmidt2001-10-067-253/+250
| | | | Notes: svn path=/head/; revision=84584
* Make this compile on ia64.Marcel Moolenaar2001-10-061-1/+4
| | | | Notes: svn path=/head/; revision=84580
* Fix some 64-bit uncleanliness.Peter Wemm2001-10-061-7/+20
| | | | Notes: svn path=/head/; revision=84575
* Fix some style bugs before fixing some real bugs.Peter Wemm2001-10-061-7/+17
| | | | Notes: svn path=/head/; revision=84574
* Fix a stack trashing bug when int != sizeof(pointer)Peter Wemm2001-10-062-2/+6
| | | | | | | This fixes the ia64 boot! We have scsi disks! Notes: svn path=/head/; revision=84573
* Re-route interrupts on ia64 so that we can get the I/O SAPIC interruptDoug Rabson2001-10-051-1/+12
| | | | | | | | numbers (the BIOS leaves legacy PIC interrupt numbers in the intline registers). Notes: svn path=/head/; revision=84542
* Regen.Warner Losh2001-10-051-2/+38
| | | | Notes: svn path=/head/; revision=84515
* MFNetBSD:Warner Losh2001-10-051-1/+23
| | | | | | | | | | | | | | 1.139: augustss; Add EigerLabs sound card. 1.138: ichiro; Typo 1.137: ichiro; GEMTEK CF-size WaveLAN card based on Prism2.5 eval 1.136: ichiro; Symbol Spctrum24 LA4100 Series CF WaveLAN card 1.135: pooka; Psion Gold Card 1.134: christos; zonet zen (Henrik Berglund) 1.133: christos; dlink-660+ (janberg@netbsd.org) 1.132: itojun; 3Com 3CRWE62092A Wireless LAN Notes: svn path=/head/; revision=84514
* Update usage of AcpiEnableEvent to reflect a new argument.Mike Smith2001-10-044-15/+16
| | | | | | | | | | | Fix acpi_DeviceIsPresent to check for valid _STA data and to check the "present" and "functioning" bits. Use acpi_DeviceIsPresent in acpi_pcib rather than rolling our own (also broken) version. Notes: svn path=/head/; revision=84500
* Update the promise raid structure with some of the info I've gatheredSøren Schmidt2001-10-042-19/+24
| | | | | | | before I'm accused of "lending" it from somebody else. Notes: svn path=/head/; revision=84485
* Add busspace hacks for ia64.Doug Rabson2001-10-041-0/+6
| | | | Notes: svn path=/head/; revision=84446
* Use return_PTR, not return_VALUE when returning pointers.Doug Rabson2001-10-041-2/+2
| | | | Notes: svn path=/head/; revision=84445
* Check the compatible ID as well as the hardware ID in acpi_MatchHid.Doug Rabson2001-10-041-0/+5
| | | | Notes: svn path=/head/; revision=84444
* Doh! committed from the wrong tree, this is the right "stuff"...Søren Schmidt2001-10-033-3/+3
| | | | Notes: svn path=/head/; revision=84419
* Proberly support the Promise TX2/4.Søren Schmidt2001-10-033-8/+51
| | | | | | | Programming info kindly provided by Daniela Engert <dani@ngrt.de> Notes: svn path=/head/; revision=84413
* cosmetics in the bootverbose probe-Søren Schmidt2001-10-031-2/+4
| | | | Notes: svn path=/head/; revision=84411
* Hopefully fix the identify failed on ATAPI slaves on some notebooks.Søren Schmidt2001-10-031-2/+7
| | | | Notes: svn path=/head/; revision=84410
* Add PnP ID 'IBM3781' for TP240 mouse.Takanori Watanabe2001-10-031-0/+1
| | | | Notes: svn path=/head/; revision=84407
* Note the 'common knowledge' assumption that each NIC's softc startsMatt Jacob2001-10-011-0/+9
| | | | | | | | | | | | with an ifnet structure (so device_get_softc will get one). If memory allocation fails in mii_phy_probe, don't just march ahead into a panic- return ENOMEM. MFC after: 1 week Notes: svn path=/head/; revision=84333
* Change the way DAO/TAO mode is init'ed.Søren Schmidt2001-10-011-20/+21
| | | | | | | Fix a bogon introduced in the previous commit, that broke CDIOREADSUBCHANNEL. Notes: svn path=/head/; revision=84302
* Begin to implement target mode that for Fibre Channel has a privateMatt Jacob2001-10-012-29/+68
| | | | | | | | | | | | | | | | | per-command component that we *don't* try and pass thru CAM. CAM just is too risky and too much of a pain- structures get copied, but not all info of interest can be considered safely transported thru all consumers (including user space) from the incoming ATIO to the outgoing CTIO- it's just much safer to have a buddy structure, identified by the command's tag which *does* make it thru safely. Pay attention to link speed and report 200MB/s xfer speed for a 23XX card in 2GPs mode. MFC after: 1 week Notes: svn path=/head/; revision=84242
* Implement a call to get the actual link data rate (if 23XX) so we canMatt Jacob2001-10-013-40/+70
| | | | | | | | | set whether it's a 2Gps or 1Gps link. MFC after: 1 week Notes: svn path=/head/; revision=84241