aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Make sure arc4random(9) is properly seeded when /etc/rc.d/initrandom returns.Colin Percival2008-11-242-3/+24
| | | | | | | | | Approved by: so (cperciva) Approved by: re (kensmith) Security: FreeBSD-SA-08:11.arc4random Notes: svn path=/releng/6.3/; revision=185254
* MFC: Update to firmware version 1.4.29 from 1.4.25Andrew Gallatin2008-01-152-25570/+26369
| | | | | | | Approved by: re (kensmith) Notes: svn path=/releng/6.3/; revision=175354
* MFC: Use devclass_get_count() instead of devclass_get_maxunit().John Baldwin2008-01-071-1/+1
| | | | | | | Approved by: re (hrs) Notes: svn path=/releng/6.3/; revision=175144
* MFC: 1.8Marius Strobl2007-12-231-1/+9
| | | | | | | | | | In openprom_ioctl() ensure appropriate permissions and that data isn't NULL and doesn't point to a NULL pointer before dereferencing it. Approved by: re (kensmith) Notes: svn path=/releng/6.3/; revision=174875
* This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'.cvs2svn2007-12-1514-0/+27218
| | | | Notes: svn path=/releng/6.3/; revision=174606
* MFC to RELENG_6_3Ed Maste2007-12-101-0/+70
| | | | | | | | | | | | aac_pci.c:1.63-1.65 aac.4 1.37-1.39 Add PCI IDs for controllers obtained from Adaptec's latest drivers. Approved by: re (kensmith) Notes: svn path=/releng/6.3/; revision=174525
* MFC to RELENG_6_3Ed Maste2007-12-101-11/+11
| | | | | | | | | | | aac_debug.c:1.23 Respell 'Conatainer' as 'Container'. Approved by: re (kensmith) Notes: svn path=/releng/6.3/; revision=174522
* MFC: Support new ARC120x generation of cards.Scott Long2007-12-092-617/+1687
| | | | | | | | Approved by: re Submitted by: Erich Chen @ Areca Notes: svn path=/releng/6.3/; revision=174489
* Sync up ata(4) work by sos@ on -HEAD:Xin LI2007-12-092-41/+133
| | | | | | | | | | | | | | | * Add preliminary SATA ATAPI support for sii 3132/3124 chips. * Fix speed report on Intel SATA chips in compat mode. * Fix broken detect of JMicron 368. Related revisions: - ata-chipset.c: 1.208, 1.210 - ata-disk.c.c: 1.205 Approved by: re (kensmith), sos Notes: svn path=/releng/6.3/; revision=174486
* MFC rev 1.6 msk.4Remko Lodder2007-12-082-0/+3
| | | | | | | | | | | | | | | | | MFC rev 1.26 if_msk.c MFC rev 1.11 if_mskreg.h Bring in support for: Marvell Yukon 8039 PR: 118401 Submitted by: Skip Ford <skip at menantico dot com> Approved by: imp (mentor), yongari MFC After: 3 days Approved by: re (kensmith), imp (mentor, implicit) Notes: svn path=/releng/6.3/; revision=174445
* MFC revision 1.209Xin LI2007-12-071-1/+1
| | | | | | | | | | date: 2007/11/26 19:08:08; author: sos; state: Exp; lines: +1 -1 Use device_set_desc_copy in the generic ident as its used on a temp buffer. Approved by: re (kensmith) Notes: svn path=/releng/6.3/; revision=174411
* MFC r1.13:Philip Paeps2007-12-061-2/+1
| | | | | | | | | | | Fix a use-after-free. Submitted by: Ilja van Sprundel <ilja -at- netric.org> Reviewed by: secteam Approved by: re (kensmith) Notes: svn path=/releng/6.3/; revision=174356
* MFC if_iwi.c:1.59Philip Paeps2007-12-062-8/+8
| | | | | | | | | | | | | | if_ipw.c:1.34 Plug two potential (root-only, local) information leaks. buf is not initialized before use and returned integrally instead of up to size. Submitted by: Ilja van Sprundel <ilja -at- netric.org> Reviewed by: secteam Approved by: re (kensmith) Notes: svn path=/releng/6.3/; revision=174355
* MFC if_re.c, rev 1.98 to RELENG_6_3Pyun YongHyeon2007-12-061-2/+6
| | | | | | | | | | | Always honor promiscuous flag prior to programming Rx multicast filter. This fixes a regression introduced in rev 1.89. PR: 114632 Approved by: re (kensmith) Notes: svn path=/releng/6.3/; revision=174334
* Headphone / speakers automute fixup for Acer Aspire 4710 @ ALC268 laptop.Ariff Abdullah2007-12-061-0/+3
| | | | | | | | Tested by: Liyu, She Approved by: re (kensmith) Notes: svn path=/releng/6.3/; revision=174330
* Common code changes for firmware update.Kip Macy2007-12-066-72/+203
| | | | | | | Approved by: re(kensmith) Notes: svn path=/releng/6.3/; revision=174322
* - fix qset to port binding as a proper fix for the problems encountered on ↵Kip Macy2007-12-056-405/+298
| | | | | | | | | | | | | the 4-port - fix the use after free seen when sending packets small enough to fit as an immediate and bpf peers are present - update to firmware rev 4.7 along with various small vendor fixes Approved by: re(kensmith) Notes: svn path=/releng/6.3/; revision=174320
* MFC rev 1.8 ichsmb.4Remko Lodder2007-12-021-0/+8
| | | | | | | | | | | | | | | | | | | | | | Add information about the ICH6 and ICH7 being supported since recently. MFC rev 1.20 ichsmb_pci.c Add the Intel 82801FB (ICH6) SMBus controller and the Intel 82801GB (ICH7) SMBus controller. PR: 85106 [1] PR: 99663 [2] Approved by: imp (mentor), jhb Submitted by: Oliver Fromme <olli at lurza.secnetix dot de>, [1] Arthur Hartwig <arthur dot hartwig at nokia dot com>, [1] Lowell Gilbert <lgfbsd at be-well dot ilk dot org> [2]@ MFC After: 3 days Approved by: re (hrs), imp (mentor, implicit) Notes: svn path=/releng/6.3/; revision=174159
* MFC: (revision 1.47, 1.48)Ariff Abdullah2007-11-301-4/+29
| | | | | | | | | | | | | | | | - Add missing MCP65 id which was accidentally removed in previous commit. - Add Analog Devices AD1984 codec id. - Enable pcbeep control for Acer + ALC268 (nid 29). Give enough (fake) hints so the parser will grab it and allocate "speaker" control. - Fix regression while preparing DAC and ADC for multichannel format. Since playback policy is to output to every possible path, ensure that each DAC is started. Reported / Tested by: Guy Brand Approved by: re (kensmith) Notes: svn path=/releng/6.3/; revision=174107
* Correct a random value disclosure in random(4).Simon L. B. Nielsen2007-11-291-0/+1
| | | | | | | | Security: FreeBSD-SA-07:09.random Approved by: re (kensmith) Notes: svn path=/releng/6.3/; revision=174074
* * Fix support for followings:Ariff Abdullah2007-11-271-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. Approved by: re (kensmith) Notes: svn path=/releng/6.3/; revision=174000
* MFC(if_an.c:1.85, if_anreg.h:1.24): Trying to eliminate a racing as well asTai-hwa Liang2007-11-272-11/+14
| | | | | | | | | | reducing the chance of device removal(PCCARD) panic by replacing the timeout(9) with callout(9) APIs. Approved by: re (gnn) Notes: svn path=/releng/6.3/; revision=173974
* This commit was manufactured by cvs2svn to create branch 'RELENG_6_3'.cvs2svn2007-11-241564-0/+1183340
|\ | | | | | | Notes: svn path=/releng/6.3/; revision=173886
| * Update with the latest fixes from -current.Søren Schmidt2007-11-228-157/+259
| | | | | | | | | | | | | | Approved by: re@ Notes: svn path=/stable/6/; revision=173840
| * MFC (revision 1.54):Ariff Abdullah2007-11-151-3/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Limit total playback channels to just 1, for ALi M5451. 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 Notes: svn path=/stable/6/; revision=173644
| * MFC rev 1.96 if_re.cRemko Lodder2007-11-151-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for D-Link DGE-528(T) Rev.B1 PR: 112774 Submitted by: Denis Fortin <fortin at acm dot org> Approved by: imp (mentor), yongari MFC After: 3 days Approved by: imp (mentor, implicit) Notes: svn path=/stable/6/; revision=173626
| * MFC: Sync the -HEAD state of ata(4) back to RELENG_6, except interrupt ↵Xin LI2007-11-097-459/+850
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | filtering, CAM MPSAFE, BIO_FLUSH and alpha support removal, which are not suitable for RELENG_6. This makes RELENG_6 to support the same set of ATA devices as RELENG_7 and -CURRENT did. Reviewed by: sos Notes: svn path=/stable/6/; revision=173500
| * MFC: improve HPET table probe and give it a lower priority as a timer,Nate Lawson2007-11-085-16/+29
| | | | | | | | | | | | | | | | | | fix divide by zero if battery status invalid Approved by: re Notes: svn path=/stable/6/; revision=173482
| * MFC: Don't always re-route IRQs on resume.John Baldwin2007-11-081-1/+17
| | | | | | | | Notes: svn path=/stable/6/; revision=173475
| * This delta addresses some users experiencing watchdogs under load withJack F Vogel2007-11-072-154/+343
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the last driver version. I suspect sheduling to be at the bottom of it, but this version fixes it by: - Making FAST interrupt handling off by default, if you want to use it #define EM_FAST_IRQ in the Makefile. - Add dual locks, one for the TX subsystem, the other CORE for things like init and interface managment. - Add cleaner MSI/X setup code. - If using FAST interrupts there is now a mechanism in the watchdog routine to kick off TX cleanups if they have not been scheduled. I think everyone will be happier with this change. Notes: svn path=/stable/6/; revision=173402
| * MFC 1.68: remove smp_rendezvous() during shutdownNate Lawson2007-11-061-4/+6
| | | | | | | | | | | | | | Approved by: re Notes: svn path=/stable/6/; revision=173393
| * MFC:Ariff Abdullah2007-11-062-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revisions: 1.21 src/sys/dev/sound/pci/atiixp.c 1.4 src/sys/dev/sound/pci/atiixp.h Add support for trimmed down version of ATI SB600 AC97 audio controller. URL: http://www.ipc2u.de/catalog/P/PE/36486.html PR: kern/117813 Submitted by: Klaus Mayr Notes: svn path=/stable/6/; revision=173379
| * MFC miidevs rev 1.47 to RELENG_6Pyun YongHyeon2007-11-051-2/+2
| | | | | | | | | | | | | | Add a newer RTL8211B(L) PHY. Notes: svn path=/stable/6/; revision=173354
| * MFC rgephy.c rev 1.17-1.18, rgephyreg.h rev 1.3 to RELENG_6Pyun YongHyeon2007-11-052-28/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rgephy.c rev 1.17, rgephyreg.h rev 1.3 Add support for RealTek RTL8211B(L) PHY. It's based on the patch made by Michael Eisele and the patch was slightly modified by me. With this change several NVIDIA ethernet controllers(e.g. MCP61) works. RTL8211B(L) is RealTek's new gigabit PHY. The PHY has several features including crossover correction, polarity correction as well as supporting triple speed(10/100/1000bps). Data transfer between MAC and PHY is via RGMII for 1000baseT, MII for 10baseT/100baseTX. Unfortunately, RealTek used the same model number for RTL8211B(L) PHY so there is no way to discriminate between RTL8211B(L) and its predecessors. ATM RTL8211B uses revision number 2 so checking the revision number seems to be only way to identify it. rgephyreg.c rev 1.18 Setting sc->mii_anegticks to MII_ANEGTICKS_GIGE in rgephy_attach() is redundant. mii_phy_add_media() already takes care of that. Notes: svn path=/stable/6/; revision=173353
| * MFC rgephy.c rev 1.16 to RELENG_6Pyun YongHyeon2007-11-051-7/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o RTL8169S/8110S integrated PHY and RTL8211B are gigabit PHYs so set mii_anegticks to MII_ANEGTICKS_GIGE and use it. Previously it used to MII_ANEGTICKS which may not be enough to wait before retrying autonegotiation process at 1000bps. o Reset autonegotation timer if media option is not IFM_AUTO or we got a valid link. o Announce link loss right after it happends. o Autonegiation is retried every mii_anegticks seconds. o Report link state changes right after setting autonegotiation. Notes: svn path=/stable/6/; revision=173352
| * MFC 2007-10-05 07:26:40 UTCLuigi Rizzo2007-11-042-6/+38
| | | | | | | | | | | | | | | | | | | | Add entries for Epson multifunction scanner/printer/card readers, with all functions supported. More details on related topics (SANE configuration, OCR, etc.) at http://info.iet.unipi.it/~luigi/FreeBSD/dx5050.html Notes: svn path=/stable/6/; revision=173315
| * MFC: Don't attach to the "IBM0057" ID.John Baldwin2007-11-021-1/+1
| | | | | | | | Notes: svn path=/stable/6/; revision=173287
| * MFC e1000phy.c rev 1.19, e1000phyreg.h rev. 1.5 to RELENG_6Pyun YongHyeon2007-11-012-0/+15
| | | | | | | | | | | | | | | | Add 88E1116/88E1116R PHY support code that takes the PHY out of power-down mode. Notes: svn path=/stable/6/; revision=173246
| * MFC: Don't destroy an ACPI device_t for a PCI device if the ACPI device_tJohn Baldwin2007-10-311-2/+13
| | | | | | | | | | | | | | is already attached to a driver. Notes: svn path=/stable/6/; revision=173227
| * MFC:Poul-Henning Kamp2007-10-312-0/+2
| | | | | | | | | | | | | | recognize AMD GeodeLX companion chip CS5536 Notes: svn path=/stable/6/; revision=173222
| * MFC (revision 1.74):Ariff Abdullah2007-10-311-33/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | Remap and virtualize mixer controls for HP nx6110 with AD1981B AC97 codec, unifying master volume control. * Remap "phout" --> SOUND_MIXER_VOLUME (internal speakers) * Virtual "vol" --> { "phout", "ogain" (headphone) } Tested by: Frederic Chardon Notes: svn path=/stable/6/; revision=173212
| * MFC (revision 1.11):Ariff Abdullah2007-10-311-0/+1
| | | | | | | | | | | | | | | | | | | | Enable headphone jack-sense for HP nx6100 with AD1981B AC'97 codec, automuting internal speakers. Tested by: Frederic Chardon Notes: svn path=/stable/6/; revision=173211
| * MFC pccarddevs v1.130Remko Lodder2007-10-302-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC pccard_cis_quirks.c v1.17 Bring in some new Sierra Wireless drivers running under pccard. (AC710/AC750/AC850/A550/A555/A710/A750) PR: kern/110190 Submitted by: Pascal Vizeli<pvizeli at yahoo dot de> Approved by: imp (mentor) MFC After: 1 week Approved by: re (kensmith) Approved by: imp (mentor) Notes: svn path=/stable/6/; revision=173175
| * MFC 1.166: make dev.ath.N.ledpin have an immediate effectSam Leffler2007-10-281-3/+24
| | | | | | | | Notes: svn path=/stable/6/; revision=173111
| * MFC: 1.50 (partial)Marius Strobl2007-10-281-1/+1
| | | | | | | | | | | | | | | | Let pcib_write_ivar() return 0 instead of ENOENT when setting PCIB_IVAR_BUS. Notes: svn path=/stable/6/; revision=173096
| * MFC ata-chipset.c (1.199), ata-pci.h (1.78):Simon L. B. Nielsen2007-10-272-0/+8
| | | | | | | | | | | | | | | | | | Add PCI IDs for Intel ICH9. Tested by: pav Notes: svn path=/stable/6/; revision=173055
| * Update to version 3.60.04.006. This adds support newer SAS controllers. ThisScott Long2007-10-269-16/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | is a partial MFC of what went into HEAD/RELENG_7; the locking changes that constitude the other part do not apply to RELENG_6. Many thanks to 3Ware/AMCC for their continued support of FreeBSD. Submitted by: Manjunath Ranganathaiah Approved by: re Notes: svn path=/stable/6/; revision=173048
| * MFC: (revision 1.45)Ariff Abdullah2007-10-261-13/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Gigabyte G33-S2H fixup, due to the present of multiple competing codecs. Codec at address 0 seems purely digital, or perhaps an HDMI interface. Let the driver skip it and continue scanning the codecs starting with address 2 (Realtek ALC885). * Due to possibilities of future similar cases, put enough logic in hdac_scan_codecs() to force codec scanning starting from XX address via tunable "hint.pcm.%d.codec_index". Reported / Tested by: Toomas Pelberg <toomasp@gmx.net> - Trivial headphone / speaker automute fixup for Fujitsu-Siemens AMILO Si 1848 laptop. Reported / Tested by: Ed <ed@bsd.it> - Trivial headphone / speaker automute fixup for Fujitsu-Siemens Lifebook S7020D laptop. Reported / Tested by: Jaromir Dvoracek <jarek@ataxo.com> - Some smart vendor trying to create interplanetary wormhole by screwing pci config space during their BIOS update. The side effects of their failure attempt includes mutilated hardware id, broken speaker automuting and loosing the entire analog CD connectivity, thus causing enough collateral damages to collapse the entire universe. Move along with it. Please exercise extra cautious when applying BIOS updates. Reported / Tested by: Pietro Cerutti <gahr@gahr.ch> - assembled laptop, based on the MSI-1034 (662) which is now becoming MSI-034A. - Fix no sound issues (on headphones) for Lenovo ThinkCentre A55 due to global automute table entry which is not applicable for non-laptops. Reported / Tested by: Piotr Smyrak <piotr.smyrak@heron.pl> - Speaker mute control for HP DC7700 since the front headphone jack does not generate any interesting unsolicited signal/response. Reported / Tested by: tyop @ irc.freenode.net Notes: svn path=/stable/6/; revision=173036
| * MFC: Clear the flags in the persistent keyboard data for ukbd0 whenJohn Baldwin2007-10-251-2/+8
| | | | | | | | | | | | | | init_keyboard() or kbd_register() fails. Notes: svn path=/stable/6/; revision=172976
| * Temporary fix for polling.Hidetoshi Shimokawa2007-10-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | - fwohci_arcv() has a problem if the number of packets to be processed is limited. - RELENG_7 and -current already have a same workaround. Reported by: ikob PR: kern/85434 Notes: svn path=/stable/6/; revision=172950