summaryrefslogtreecommitdiffstats
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Add the actual source too :)jfv2007-07-1112-0/+9206
| | | | Approved by: re
* Remove the internal use of __packed and put it on the structuresmjacob2007-07-111-29/+29
| | | | | | | themselves. Reviewed by: nate, peter, warner, robert Approved by: re (ken)
* Now that wicontrol has been removed from the base system the correspondingthompsa2007-07-112-1/+15
| | | | | | | | ioctls can be removed. These have been #ifdef'd out and left as a reference in case any of the RIDs need to be turned into sysctls at a later date. Reviewed by: sam, avatar Approved by: re (kensmith)
* Fix kbdmux(4) issue with backslash/underscore key not working onemax2007-07-111-0/+3
| | | | | | | | | Japanese 106/109 keyboard. PR: kern/112214, kern/99090 Submitted by: TOMITA Yoshinori, TAKAHASHI Yoshihiro Approved by: re (hrs) MFC after: 3 days
* Protect against divide by zero while calculating bus speed due toariff2007-07-111-1/+5
| | | | | | | | possible broken kernel timecounter. Reported/Tested by: silby Approved by: re (hrs) MFC after: 1 day
* Add Micro Research PCMCIA LAN Adapter MR10TPC support. Patch slightlyimp2007-07-112-0/+3
| | | | | | | | reworked by me. Submitted by: Osamu Hasegawa-san PR: 93393 Approved by: re (hrs)
* Add additional product id and quirks entry for MetaGeek Wi-Spyimp2007-07-102-0/+5
| | | | | | Submitted by: Robert Noland PR: 114481 Approved by: re@ (blanket)
* Get rid of a couple of Coverity found sign comparison errors.mjacob2007-07-101-3/+3
| | | | | Approved by: re (Ken) MFC after: 3 days
* Be more conservative- turn off fast posting and RIO for 22XX cards.mjacob2007-07-101-7/+2
| | | | | Approved by: re (ken) MFC after: 3 days
* MFp4 122896kmacy2007-07-103-42/+78
| | | | | | | | | | - reduce cpu usage by as much as 25% (40% -> 30) by doing txq reclaim more efficiently - use mtx_trylock when trying to grab the lock to avoid spinning during long encap loop - add per-txq reclaim task - if mbufs were successfully re-claimed try another pass - track txq overruns with sysctl Approved by: re (blanket)
* Missed in last commit: add usb task for rue to use for its ticks.imp2007-07-091-0/+1
| | | | Approved by: re (bmah)
* - Add codec id for Realtek ALC268.ariff2007-07-092-18/+57
| | | | | | | | | | | | | | | | - Add controller id for Intel 82801I (ICH9). PR: kern/114399 Submitted by: Michael Fuckner <michael@fuckner.net> - MSI support. Disable by default due to various issues with too many broken hardwares. MSI can be enabled through device.hints(5) or kenv(8) by setting "hint.pcm.%d.msi=1". Partially submitted by: kevlo YAMAMOTO Taku <taku@tackymt.homeip.net> Tested by: joel, kevlo, YAMAMOTO Taku Approved by: re (hrs) MFC after: 3 days
* Fix stream suspend/resume activity due to its states beingariff2007-07-091-12/+27
| | | | | | clobbered by pcm channel start/stop trigger operation. Approved by: re (hrs)
* When all the other drivers were converted to scheduling a taskqueue toimp2007-07-091-0/+18
| | | | | | | | | | do the heavy lifting of the 'mii_tick' function, rue was left behind. Implement this in a naive way. Reports from the field show this makes the driver functional with some locking issues, as opposed to an instant panic. Those will be addressed in a later version of the driver. Approved by: re@ (bmah)
* Fix duplicates that crept in at the last minute :-(.imp2007-07-091-2/+1
| | | | | Noticed by: Ian Freislich Approved by: re@ (blanket)
* Further diff reduction against the proposed merged usbdevs: Add a fewimp2007-07-091-21/+37
| | | | | | | | more vendors, use slightly more standardized names. No md5 chagnes for !USBVERBOSE kernels Approved by: re@ (blanket)
* More vendors from the merged list.imp2007-07-091-10/+71
| | | | | | | | | | Sort NETGEAR list per convention. Swap QUALCOMM and QUALCOMM2. Add a few vendor products. no md5 changes with this file (except when USBVERBOSE is enabled) Approved by: re@ (blanket)
* Fix a bug of retrieving configuration ROM.simokawa2007-07-081-2/+2
| | | | | | | | | | - Handle directories and leaves other than unit directories and text leaves correctly. - Now we can retrieve CROM of iSight correctly. Approved by: re (hrs) Tested by: flz MFC after: 3 days
* Trivial differences with the proposed merged BSD usbdevs file mergedimp2007-07-061-95/+94
| | | | | | | | | in. These are exclusively in the name of the company for this round. No new devices have been added, but the MITEL entry has been eliminated because nothing uses it. You won't see any difference unless you have USBVERBOSE defined for the kernel. Approved by: re@ (blanket)
* uhub already does the printing and naming of a device, so don't do itimp2007-07-061-5/+1
| | | | | | again here for compat drivers. Approved by: re@ (blanket)
* Fix warnings.peter2007-07-062-3/+3
| | | | | | | | | nxge: cast page size fragments down to (int). If the vm's demand paging PAGE_SIZE is ever too big for that, we've got far bigger problems. ofw: move va_start() a little earlier. gcc-4.2 doesn't like us modifying the last arg before the va_start(). Approved by: re (rwatson)
* re(4) devices requires an external EEPROM. Depending on models ityongari2007-07-061-2/+2
| | | | | | | | | | | | | | | | | | | would be 93C46(1Kbit) or 93C56(2Kbit). One of differences between them is number of address lines required to access the EEPROM. For example, 93C56 EEPROM needs 8 address lines to read/write data. If 93C56 recevied premature end of required number of serial clock(CLK) to set OP code/address of EEPROM, the result would be unexpected behavior. Previously it tried to detect 93C46, which requires 6 address lines, and then assumed it would be 93C56 if read data was not expected value. However, this approach didn't work in some models/situations as 93C56 requries 8 address lines to access its data. In order to fix it, change EEPROM probing order such that 93C56 is detected reliably. While I'm here change hard-coded address line numbers with defined constant to enhance readability. PR: 112710 Approved by: re (mux)
* Prefer device_printf to printf + device_get_nameunit. This savesimp2007-07-051-17/+14
| | | | | | about 100 bytes. Approved by: re (blanket)
* MFp4: Fixing IPW_DEBUG enabled builds by converting the last piece ofavatar2007-07-051-1/+2
| | | | | | | ic->ic_des_essid to ic->ic_des_ssid[0]. Reviewed by: sam Approved by: re (kensmith)
* Adopt snp to the destroy_dev_sched() KPI after reverting of destroy_dev()kib2007-07-051-8/+9
| | | | | | | to not call destroy_dev_sched(). Tested by: Peter Holm Approved by: re (kensmith)
* Properly unlock mutex before returning. There was a slight mishapariff2007-07-051-1/+3
| | | | | | | during last major locking cleanup. Reported by: Thierry Herbelot <thierry@herbelot.com> Approved by: re (mux)
* Quiet framelen uninitialized warning. I think it was a false alarm.peter2007-07-051-1/+3
| | | | | | | If check_fhdr() returns false, the frame_ok variable should protect any meaningful evaluations of framelen. Approved by: re (rwatson)
* Initialize DWBuf[3].peter2007-07-051-0/+1
| | | | Approved by: re (rwatson, blanket)
* Prefer device_printf to printf("%s: ...", device_get_nameunit()). Onimp2007-07-051-30/+23
| | | | | | amd64, we save about 240 bytes (this is about 20 per instance). Approved by: re (blanket)
* Prefer device_printf to printf("%s:...", device_get_nameunit(),...);imp2007-07-052-61/+51
| | | | | | This saves ~300 bytes for uvscom.c and ~100 for uvisor.c Approved by: re (blanket)
* Add quirks, derived from the linux quirks table for:imp2007-07-052-5/+375
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Adonics Cable 205 o Aiptek PocketCAM 3Mega o Belkin USB2SCSI o Casio QV DigiCam o CCYU EasyDisk ED1064 o Desknote UCR-61S2B o Epson Stylus Photo 875DC Card Reader o Epson Stylus Photo 895 Card Reader o Feiya 5-in-1 Card Reader o Hitachi Dvd-CAM DZ-MV100A Camcorder o HP CD-WRiter+ CD-4e o Insystem Storage Adapter v2 o Kyocera Finecam S3x o Kyocera Finecam S4 o Kyocera Finecam S5 o Kyocera Finecam L3 o Lexar USB CF Reader o MindAtWork Digital Wallet o Minolta Dimage F300 o Minolta Dimage E223 o Minsumi USB Fdd o Netac USB-CF-Card o NetChip USB Clik! 40 o Onspec MDCFE-B USB CF Reader o Onspec SIIG/Datafab Memory Stick + CF Reader/Writer o Onspec Datafab-based Reader o Onspec PNY/Datafab CF+SM Reader o Onspec SimpleTech/Datafab CF+SM Reader o Onspec MDSM-b Reader o Onspec USB To CF + SM Combo (LC1) o Onspec ImageMate SDDR55 o Panasonic LS-120 Camera o Samsung Techwin Digimax 410 o Shuttle eUSB SmartMedia / CompactFlash Adapter o Skanhex MD 7425 Camera o Skanhex SX 520z Camera o Sony Memorystick NW-MS7 o Sony Portable USB Hardrive V2 o Sony Memorystick PEG N760c o Sony Memorystick MSC-U03 o TREK/IBM USB memory key o Trumpion T33520 USB Flash Card Controller o Trumpion MP3 Player o Vivtar Vivicam 35Xx o WinMaxGroup USB Flash Disk 64M-C o Zoran Digital Camera EX-20 DSC and maybe a few others... Submitted by: Vaidas Damosevicius and flz PR: 79893 Reviewed by: njl, flz Approved by: re (blanket)
* Add support for Western Digital MyBook external enclosures. They needimp2007-07-052-0/+10
| | | | | | | | this quirk to work. Submitted by: Dierk Sacher PR: usb/99419 Approved by: re (blanket)
* Be much more forgiving towards applications that requesting ioctlsariff2007-07-041-4/+2
| | | | | | | | that should be a no-op (for example, requesting SYNC on record path). The standards does not indicate that such requests are illegal, so just return it as success instead of EINVAL. Approved by: re (mux)
* Use make_dev_credf(MAKEDEV_REF) instead of make_dev() from snp clone handler.kib2007-07-031-3/+4
| | | | | | | Drain clone events and cdev destruction from the module unload handler. Debugging help and testing by: Peter Holm Approved by: re (kensmith)
* Recover from some major omissions/problems with the 24XX port.mjacob2007-07-024-21/+57
| | | | | | | | | | | | | | | | | | | | | | | | First, we were never correctly checking for a 24XX Status Type 0 response- that cased us to fall through to evaluate status for commands as if this were a 2100/2200/2300 Status Type 0 response. This is *close*, but not quite the same. This has been reported to be apparent with some wierd lun configuration problems with some arrays. It became glaringly apparent on sparc64 where none of the correct byte swap things were done. Fixing this omission then caused a whole universe shifting debug cycle of endian issues for the 2400. The manual for 24XX f/w turns out to be wrong about the endianness of a couple of entities. The lun and cdb fields for the type 7 request are *not* unconditionally big endian- they happen to be opposite of whatever the endian of the current machine type is. Same with the sense data for the 24XX type 0 response. While we're at it investigate and resolve some NVRAM endian issues. Approved by: re (ken) MFC after: 3 days
* WD Firewire/USB Combo hangs under load on USB interface. Fix withimp2007-07-022-0/+5
| | | | | | | | these quirks. Submitted by: John Pettitt PR: 79140 Approved by: re@ (blanket)
* - Fix input/microphone support for ASUS A8N-VMCSM series.ariff2007-07-012-39/+109
| | | | | | | | | | | | | | Submitted by: Simon Schubert <corecode@fs.ei.tum.de> - Defer flushing unsolicited response into taskqueue thread rather than handle it directly in interrupt handler, since few of its operations (like measuring/calibrating jack impedance) are quite expensive. - Misc. debugging cleanups. Tested by: joel Approved by: re (hrs) MFC after: 3 days
* Fix no-sound issues with ASUS A9T notebook.ariff2007-07-011-1/+7
| | | | | | | | | | Note: The offending quirk should have been made model/codec specific, but since there were no records / log which model requires it, the quirk logic had to be inverted (blacklist instead of whitelist). Tested by: Arkadiy Dudevitch <dudevitch@englerllc.com> Approved by: re (hrs) MFC after: 3 days
* Fix scanning issues since the new net80211 code went inthompsa2007-06-301-10/+27
| | | | | | | | | | | | - provide dummy routines for ic_scan_curchan and ic_scan_mindwell, we do not support those operations. - add ieee80211_scan_done() to tell the scanning module that all channels have been scanned. - pass IEEE80211_S_SCAN state off to net80211 so it can initiate scanning - fix overflow in the rates array - scale the rate value passed back from the firmware scan to the units that net80211 uses. Submitted by: Token Reviewed by: sam, avatar Approved by: re (kensmith)
* Change the channel number in the scan results struct to be a pointer to thethompsa2007-06-301-1/+7
| | | | | | | | | | | | operating channel and use this in the scan cache rather than directly using ic_curchan. Some firmware cards can only do a full scan and so ic_curchan does not have the correct value. Also add IEEE80211_CHAN2IEEE to directly dereference ic_ieee from the channel to be used in the fast path. Reviewed by: sam, sephe Approved by: re (kensmith)
* Fix the channel reporting when the card is associated. The channel array usedthompsa2007-06-301-1/+5
| | | | | | | | | to be index by IEEE channel number but that is no longer the case and it needs to be searched for. Submitted by: avatar Reviewed by: sam Approved by: re (kensmith)
* Fix two more PRs:imp2007-06-305-7/+28
| | | | | | | | | | (1) Add size parameter to usbd_get_string() (2) Properly limit speed when a full speed hub is plugged into a high speed hub. Submitted by: Hans Petter Selasky PR: 80773, 79725 Approved by: re@ (kensmith)
* Additional devices from NetBSD and OpenBSD. This includes devices notimp2007-06-302-24/+33
| | | | | | | | | | yet supported by this driver. Support will be committed soon, or a filter on all the 'newer' devices will be installed before the release. Approved by: re@ (blanket) Obtained from: NetBSD, OpenBSD Small Furry Animals by: Pink Floyd
* My previous commit introduced a spurious warning for the case where anjl2007-06-301-0/+4
| | | | | | | | switch (i.e. lid) is set to have an action of NONE. This is not an invalid state, so silently return. This fixes the warning: "acpi: request to enter state S6 failed (err 22)" Approved by: re
* umass quirk: Samsung YP-U2 USB MP3/Ogg Playerimp2007-06-302-0/+5
| | | | | | Submitted by: Ulrich Spoerlein PR: 114154 Approved by: re@ (blanket)
* quirk for CENTURY EX35QUAT disk enclosureimp2007-06-302-23/+31
| | | | | | Submitted by: Daniel Hartmeier PR: 94132 Approved by: re (blanket)
* Fix cheapy Myson USB-IDE adapterimp2007-06-302-0/+7
| | | | | | Submitted by: Arno J. Klaassen PR: 88939 Approved by: re@ (blanket)
* Expand the transform API to allow transports to return 'success' forimp2007-06-301-5/+20
| | | | | | | | | the command. Make UFI devices return 'success' when asked to do a SYNC_CACHE. There's no support for write caching in the UFI spec, so this is the most appropriate action to undertake. Reviewed by: scottl Approved by: re@ (blanket)
* Reduce diffs to OtherBSD by using usb_lookup. No functional changes.imp2007-06-301-15/+4
| | | | Approved by: re@ (Blanket)
* Remove duplicate USBDEVUNIT #defineimp2007-06-301-1/+0
| | | | Approved by: re@ (blanket)
OpenPOWER on IntegriCloud