aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Fix for a reported panic in certain circumstances. WhenJack F Vogel2007-11-261-2/+17
| | | | | | | | calling em_stop() now make sure the TX lock is held as well as CORE. Notes: svn path=/head/; revision=173952
* Use device_set_desc_copy in the generic ident as its used on a temp buffer.Søren Schmidt2007-11-261-1/+1
| | | | Notes: svn path=/head/; revision=173950
* Add the 845M GMCH controller.Remko Lodder2007-11-261-0/+2
| | | | | | | | | | PR: 114802 Approved by: imp (mentor), anholt (private mail) Submitted by: Alex Goncharov <algo1 at comcast dot net> MFC After: 3 days Notes: svn path=/head/; revision=173946
* Add Dell's Photo AIO Printer 926.John Birrell2007-11-261-0/+1
| | | | Notes: svn path=/head/; revision=173927
* Respell 'Conatainer' as 'Container'.Robert Watson2007-11-241-11/+11
| | | | | | | | MFC after: 3 days Reported by: Toomas Aas <toomas dot aas at raad dot tartu dot ee> Notes: svn path=/head/; revision=173883
* Add preliminary SATA ATAPI support for sii 3132/3124 chips.Søren Schmidt2007-11-232-38/+81
| | | | Notes: svn path=/head/; revision=173868
* - add the Planex GW-US54GXS adapterSam Leffler2007-11-232-0/+2
| | | | | | | | | Submitted by: Weongyo Jeong <weongyo.jeong@gmail.com> Obtained from: openbsd MFC after: 3 days Notes: svn path=/head/; revision=173857
* Move ASMC_FAN_FUNCS in the Macmini structure declaration one line upRui Paulo2007-11-221-1/+1
| | | | | | | | | | so that this macro expands in the right place. Submitted by: Ed Schouten <ed at fxq.nl> Approved by: njl (mentor) Notes: svn path=/head/; revision=173851
* Fix function prototype for device_shutdown method.Pyun YongHyeon2007-11-2216-37/+61
| | | | Notes: svn path=/head/; revision=173839
* Take out em_poll() prototype from under EM_FAST_IRQ control.Ruslan Ermilov2007-11-211-3/+4
| | | | | | | Reported by: tindebox compiling a LINT kernel Notes: svn path=/head/; revision=173820
* * Fix support for followings:Ariff Abdullah2007-11-211-12/+40
| | | | | | | | | | | | | | | | | | | | | | o Acer Aspire 4520 laptop - jack sensing / automute o Toshiba Satellite A135-S4527 laptop - jack sensing / automute Tested by: lioux o Apple Macbook 3 (is it?) - require gpio0 (for speakers) and ovref50 (for headphone) to make it works - jack sensing / automute Tested by: Ed Schouten * Add Nvidia MCP67 controller ids. * Be sensible about simmilar controller with multiple pci ids. * Connect unused DAC/ADC to stream#0 rather than forcing each of them managing their own stream. MFC after: 3 days Notes: svn path=/head/; revision=173817
* Fix NULL dereference in rum_txeof()Kevin Lo2007-11-211-3/+2
| | | | | | | PR: kern/117820 Notes: svn path=/head/; revision=173806
* Add MSI support for 88E8058(Yukon EC Ultra). Unlike other Yukon IIPyun YongHyeon2007-11-211-8/+27
| | | | | | | | | | family 88E8058 supports only one MSI message. Teach msk(4) to handle that case. Tested by: Ed Schouten < ed AT fxq DOT nl > Notes: svn path=/head/; revision=173792
* One nit, FAST handling is now in #ifdef's for compatibilityJack F Vogel2007-11-202-4/+6
| | | | | | | | | between RELEASES, but we want it on by default in 7 and later, add that define, and take out a fragment left from a workaround being removed. Notes: svn path=/head/; revision=173789
* Driver version 6.7.3Jack F Vogel2007-11-2030-2657/+3220
| | | | | | | | | | | | - Bring HEAD up to the latest shared code - Fix TSO problem using limited MSS and forwarding - Dual lock implementation - New device support - For my ease, this code can compile in either 6.x or later - brings this driver in sync with the 6.3 Notes: svn path=/head/; revision=173788
* Check battery presence first before trying to get battery information.Jung-uk Kim2007-11-201-3/+4
| | | | | | | | PR: kern/117591 Tested by: Jessica Mahoney (root at varusonline dot com) Notes: svn path=/head/; revision=173782
* Add device id for 88E8058(Yukon EC Ultra) which is found on 3rdPyun YongHyeon2007-11-202-0/+3
| | | | | | | | | | | generation MacBooks. Unfortunately 88E8058 supports one MSI message so msk(4) needs more generic way to handle the MSI capability. PR: 118110 Notes: svn path=/head/; revision=173775
* Make phy respond only at address 0. This makes phy driver attachedPyun YongHyeon2007-11-202-22/+16
| | | | | | | | | | | | | | | | | | | only at address 0 which is supposed to be the only valid phy address on Marvell PHY. The more correct solution would be masking PHY address ranges allowable in PHY probe routine. Unfortunately, FreeBSD has no way to retrict the PHY address ranges or to pass special flags to PHY driver. This change assumes that PHY hardwares attached to msk(4) would be Marvell made 88E11xx PHY. With this changes the phantom phys attached on 88E8036(Yukon FE) should disappear. Reported by: Oleg Lomaka < oleg AT lomaka DOT org DOT ua > Tested by: Oleg Lomaka < oleg AT lomaka DOT org DOT ua > Notes: svn path=/head/; revision=173774
* o Don't hardcode that Yukon FE has 16KB SRAM. In fact, Yukon FE hasPyun YongHyeon2007-11-201-38/+12
| | | | | | | | | | | | | | only 4KB SRAM. o Rework setting Tx/Rx RAM buffer size. Give receiver 2/3 of memory and round it down to the multiple of 1024. The RAM buffer size of Yukon II should be multiple of 1024. This fixes bogus RAM buffer configuration used in Yukon FE. Reported by: Oleg Lomaka < oleg AT lomaka DOT org DOT ua > Tested by: Oleg Lomaka < oleg AT lomaka DOT org DOT ua > Notes: svn path=/head/; revision=173772
* Drop maintaing hardware feature(bug) lists for Yukon II. We don't havePyun YongHyeon2007-11-202-88/+8
| | | | | | | | | | | | | publicly available datasheet for Yukon II and don't know what bug/workaround exist for the specific hardware revision. Also I don't think the vendor will release hardware errata in near future. The hardware feature lists were not used at all except setting water mark registers. Since msk(4) should know exact chip model/revision number to decide which hardware capability could be used the extra feature lists were redundant. Notes: svn path=/head/; revision=173770
* Various fixes for EC Ultra.Pyun YongHyeon2007-11-202-19/+37
| | | | | | | | | | | | | | | | o Enable jumbo frame support for EC Ultra and disable jumbo frame for FE. o Enable store and forward mode for standard MTU sized frame. o Enable TSO for EC Ultra. However TSO/checksum offload is disabled for jumbo frame case. Because EC Ultra can't use store and forward mode for jumbo frame TSO/checksum offload is not available. o Adjust Tx GMAC almost empty threshold value and add a jumbo frame water mark. The maic value was obtained from Marvell's sk98lin driver. o Fix EC Ultra chip revision number. Notes: svn path=/head/; revision=173769
* Fix KASSERT messages.Kevin Lo2007-11-202-5/+5
| | | | Notes: svn path=/head/; revision=173768
* Dont fumble the ivars on reinit, avoids panic on suspend/resume om some ↵Søren Schmidt2007-11-193-9/+0
| | | | | | | | | systems that looses thier devices. Patch by: jhb@ Notes: svn path=/head/; revision=173756
* Try to workaound silicon bugs in Promise gen2 (ie TX4) chipsSøren Schmidt2007-11-192-1/+46
| | | | | | | | | Initial patch by Alexander Sabourenkov who found it in Promise's own driver. Further fixes and sanity checks by yours truely. Notes: svn path=/head/; revision=173754
* Fix the problem with certain ATAPI commands on AHCI devices.Søren Schmidt2007-11-192-19/+58
| | | | | | | | | | Revert the probe in atapi-cd.c to the old usage now its fixed on AHCI. THis change also fixes using virtual CD's om fx parallels. Still leaves the GEOM problem of telling media vs device access apart in the access function. Notes: svn path=/head/; revision=173753
* Add generic support for chipsets that say they support AHCI. This should ↵Søren Schmidt2007-11-184-129/+156
| | | | | | | | | | catch new chipsets that we dont know but that we should support. Add a few new PCI id's. Misc cleanups. Notes: svn path=/head/; revision=173734
* Make VPD register access more robust:Jung-uk Kim2007-11-161-69/+121
| | | | | | | | | | | | | | | | - Implement timing out of VPD register access.[1] - Fix an off-by-one error of freeing malloc'd space when checksum is invalid. - Fix style(9) bugs, i.e., sizeof cannot be followed by space. - Retire now obsolete 'hw.pci.enable_vpd' tunable. Submitted by: cokane (initial revision)[1] Reviewed by: marius (intermediate revision) Silence from: jhb, jmg, rwatson Tested by: cokane, jkim MFC after: 3 days Notes: svn path=/head/; revision=173678
* Do not report MAC, TX, and RX stats via sysctl(8) with BCM5705+.Jung-uk Kim2007-11-161-7/+6
| | | | | | | | | | | | The register layout is little different from memory-mapped stats in the previous generation chips. In fact, it is bad because registers in this range are cleared after reading them. Reviewed by: scottl MFC after: 3 days Notes: svn path=/head/; revision=173675
* use the private task q thread instead of the shared system threadSam Leffler2007-11-161-6/+5
| | | | | | | | Reviewed by: yongari MFC after: 1 week Notes: svn path=/head/; revision=173674
* MFP4(128855, 129015):Tai-hwa Liang2007-11-162-11/+18
| | | | | | | | | | | | | | | | | | | | - Trying to eliminate another racing by replacing the timeout(9) with callout APIs. In addition to that, the callout_drain() in an_detach() help us to avoid a possible panic-on-free due to the callout API tries to lock a destroyed mutex. - In an_stats_update(), check the return value of an_read_record(). This should reduce the chance of device removal(PCCARD) panic [2]. - Adding a comment to state the fact that an_stats_update() is now called via callout(9) with a lock held [2]. Submitted by: jhb [1], ambrisko [2] Reviewed by: jhb, ambrisko Reported by: dhw Tested by: dhw MFC after: 3 days Notes: svn path=/head/; revision=173668
* Reset autonegotation timer if media option is not IFM_AUTO.Pyun YongHyeon2007-11-161-1/+5
| | | | | | | | Make mii_ticks advance, autonegiation is retried every mii_anegticks seconds. Notes: svn path=/head/; revision=173667
* Read MII_ANAR register and get common denominator ability.Pyun YongHyeon2007-11-161-1/+6
| | | | | | | PR: 92599 Notes: svn path=/head/; revision=173666
* IEEE 802.3 Annex 28B.3 explicitly specifies the following relativePyun YongHyeon2007-11-167-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | priorities of the technologies supported by 802.3 Selector Field value. 1000BASE-T full duplex 1000BASE-T 100BASE-T2 full duplex 100BASE-TX full duplex 100BASE-T2 100BASE-T4 100BASE-TX 10BASE-T full duplex 10BAST-T However PHY drivers didn't honor the order such that 100BASE-T4 had higher priority than 100BASE-TX full duplex. Fix that long standing bugs such that have PHY drivers choose the highest common denominator ability. Fix a bug in dcphy which inadvertently aceepts 100BASE-T4. PR: 92599 Notes: svn path=/head/; revision=173665
* Add PCI device support for Intel S7000FC4UR in usb and ichwd, systemsJack F Vogel2007-11-154-0/+26
| | | | | | | | | | will not install without the usb changes in the install kernel, so I would like to MFC this in time for 7.0 RC MFC: 3 days Notes: svn path=/head/; revision=173661
* Remove the IEEE80211_C_WEP capability flag - setting it makes net80211 expectRink Springer2007-11-131-2/+1
| | | | | | | | | | | | | | | that the driver will handle WEP encryption. However, this does not seem to be implemented by this driver (or maybe the chipset doesn't support it?) Removing the flag makes my wpi card work using wpa_supplicant(8) on a network with 802.1x security (without this change it authenticated fine, but tcpdump only saw garbage packets) Reviewed by: benjsc, imp (mentor) Approved by: imp (mentor), sam Notes: svn path=/head/; revision=173585
* Move the agp(4) driver from sys/pci to sys/dev/agp. __FreeBSD_version wasJohn Baldwin2007-11-1215-25/+33
| | | | | | | | | | | | bumped to 800004 to note the change though userland apps should not be affected since they use <sys/agpio.h> rather than the headers in sys/dev/agp. Discussed with: anholt Repocopy by: simon Notes: svn path=/head/; revision=173573
* Add support for D-Link DGE-528(T) Rev.B1Remko Lodder2007-11-121-0/+2
| | | | | | | | | | PR: 112774 Submitted by: Denis Fortin <fortin at acm dot org> Approved by: imp (mentor), yongari MFC After: 3 days Notes: svn path=/head/; revision=173565
* Update quirks for the MetaGeek Wi-Spy 1A, 1B and 2.4x.Henrik Brix Andersen2007-11-112-4/+7
| | | | | | | | PR: usb/116057 Approved by: imp, erwin (mentor) Notes: svn path=/head/; revision=173561
* The ESP driver isn't really MPSAFE, so don't mark it that it is.Scott Long2007-11-111-1/+1
| | | | Notes: svn path=/head/; revision=173546
* Add private tx/rx buffer management to support large frame sizesSam Leffler2007-11-102-109/+223
| | | | | | | | | | | | | | | | | | | | and update the rx code to handle multiple frames in a single usb transfer. AX772 parts (at least) exhibit many input errors when operated with a 2K rx buffer and no errors w/ a 4K rx buffer (it's unclear what the cause of the errors is for 2K so this may just be covering up the real issue). Larger rx buffer sizes show no significant performance improvement for AX772. Bypassing the common buffer management routines also eliminates an extra context switch on every packet which noticeably improves performance (TCP netperf rx goes from 45 Mb/s to 85 MB/s). Submitted by: "J.R. Oldroyd" <fbsd@opal.com> Reviewed by: imp Obtained from: openbsd (partly) MFC after: 3 weeks Notes: svn path=/head/; revision=173522
* Limit total playback channels to just 1, for ALi M5451.Ariff Abdullah2007-11-101-3/+23
| | | | | | | | | | | | | | | The reliability of it's multi DAC / playback channels is not that good. Enabling vchans make the bug more visible since playback allocation will look for possible free hardware channels first (i.e: the next DAC, the very first has been consumed by vchan mixer) which in this case has been proven faulty. Reported / Tested by: Sascha Klauder MFC after: 3 days Notes: svn path=/head/; revision=173511
* Turn off debug output, its been confusing users.Benjamin Close2007-11-081-1/+1
| | | | | | | Approved by: mlaier (comentor) Notes: svn path=/head/; revision=173489
* Whitespace only.Nate Lawson2007-11-081-2/+0
| | | | Notes: svn path=/head/; revision=173480
* - Remove magic number and fit max rx buffer size accurately.Ariff Abdullah2007-11-082-12/+88
| | | | | | | | | | | | | | | | | | | - Patch registers CR47 and CR157 on devices that require it. - Fix power calibration setting on ZD1211B. Obtained from: OpenBSD - Fix multicast transfer by properly reprogram multicast global hash table, which in turns fix promiscuous mode and IPv6 autoconfiguration / local networking. Reviewed by: sam, Weongyo Jeong Tested using: Aztech WL230 , Belkin F5D7050, Unicorn WL-54G, 3COM 3CRUSB10075 MFC after: 1 week Notes: svn path=/head/; revision=173436
* Put back devstat support that was lost during GEOM transition. Initially,Maxim Sobolev2007-11-071-0/+12
| | | | | | | | | | | | | | I've tried to move md(4) to use geom_disk class, like real disks do, but this requires major rework of some of the existing features such as configuration dumping for example. Therefore just putting devstat support directly into md(4) seems to be optimal solution. Now you can see md(4) stats in `systat -vm' again. MFC after: 2 weeks Notes: svn path=/head/; revision=173430
* Driver for the Apple System Management Console (SMC). This hardware isRui Paulo2007-11-072-0/+1141
| | | | | | | | | | | | | | | | | | | present on the MacBook, MacBook Pro, and Intel MacMini. This driver exports information via sysctl in its private sysctl tree dev.asmc.*. You can get information about temperatures, fan speeds, the keyboard light sensor and the Sudden Motion Sensor (SMS). The SMS is very useful to park the disk heads when the laptop is moved. Basically, the SMS is setup so that, under movement, we get an interrupt on irq 6 and a devd notification is sent. Sponsored by: Google Summer of Code 2007 Approved by: njl (mentor) Reviewed by: attilio (previous version, but very similar), jhb (interrupt specific review) Notes: svn path=/head/; revision=173426
* Check wep flag in *_tx_mgt since we need to encrypt some management frameKevin Lo2007-11-065-0/+55
| | | | | | | | | in case of shared authentification. Obtained from: NetBSD Notes: svn path=/head/; revision=173386
* Apparently some NVIDIA NICs store ethernet address in reverse orderPyun YongHyeon2007-11-061-2/+2
| | | | | | | | | | | | | while other variants have inorder ethernet address for the same chipset. Override ethernet address ordering if we already know how it was stored. This fixes the use of inversed ethernet address on MCP67. Submitted by: ariff MFC after: 3 days Notes: svn path=/head/; revision=173377
* Do not pass an address to local stack variable to usbd_set_report_async.Alexander Kabaev2007-11-051-3/+4
| | | | | | | | | | | Allocate space in keyboard state structure instead to prevent random byte from possibly overwritten stack location frombeing shoved into USB device when transfer actually takes place. This fixes at least one instance of LEDs not working with USB keyboards. Notes: svn path=/head/; revision=173372
* Fix NOP message sending in ciss_periodic() which causes panic withMitsuru IWASAKI2007-11-051-3/+16
| | | | | | | | | | | option INVARIANTS. Reviewed by: simokawa Tested by: noriyosi_kawano MFC after: 1 week Notes: svn path=/head/; revision=173366