aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Fix -Wunder and make the sbus code really compile only on sparc64.Ruslan Ermilov2005-12-041-3/+3
| | | | Notes: svn path=/head/; revision=153083
* Fix -Wundef warnings and properly check the size of long, FWIW.Ruslan Ermilov2005-12-041-3/+3
| | | | Notes: svn path=/head/; revision=153082
* Fix on sparc64.Ruslan Ermilov2005-12-041-6/+2
| | | | Notes: svn path=/head/; revision=153077
* Recognize the Sony Clie PEG-TJ37.Bruce A. Mah2005-12-042-0/+2
| | | | | | | | Tested on: My PEG-TJ37 and my RELENG_6 workstation MFC after: 1 week Notes: svn path=/head/; revision=153076
* Fix -Wundef.Ruslan Ermilov2005-12-0427-56/+62
| | | | Notes: svn path=/head/; revision=153072
* Force any hardwire-routed interrupts to level trigger and active lowJohn Baldwin2005-12-031-2/+4
| | | | | | | | | | | | | polarity. Some machines route PCI IRQs to an ISA IRQ but fail to include an interrupt override entry to set the polarity and trigger of the given ISA IRQ in their MADT table. PR: usb/74989 Reported by: Julien Gabel jpeg at thilelli dot net MFC after: 1 week Notes: svn path=/head/; revision=153066
* Merge DRM CVS as of 2005-12-02, adding i915 DRM support thanks to Alexey Popov,Eric Anholt2005-12-033-5/+11
| | | | | | | and a new r300 PCI ID. Notes: svn path=/head/; revision=153033
* Make cleaner diffs by munging the $FreeBSD$s from the FreeBSD CVS sources backEric Anholt2005-12-031-1/+15
| | | | | | | into the new sources. Notes: svn path=/head/; revision=153032
* Add support for i915 GMCH AGP. This diff is a combination of work by myselfEric Anholt2005-12-022-31/+160
| | | | | | | | | | | | | | and some fixes from Motomichi Matsuzaki. Testing involved many people, but the final, successful testing was from rwatson who endured several rounds of "it crashes at XYZ stage" "oh, please correct this typo and try again." The Linux driver, and to a small extent the limited specs, were both used as a reference for how to program the chipset. PR: kern/80396 Submitted by: Martin Mersberger Notes: svn path=/head/; revision=153031
* Register definitions for the ancient via6522. This 20+ year-old chipPeter Grehan2005-12-021-0/+105
| | | | | | | | still exists as a cell in the Macio asic on Apples, and is used to communicate through the shift register with the external PMU microcontroller. Notes: svn path=/head/; revision=153030
* Add a missing newline to a printf.John Baldwin2005-12-021-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=153016
* Update the ICH7 support so it deals better with chips without AHCI.Søren Schmidt2005-12-024-84/+115
| | | | | | | | | | | | Update Intel MatrixRAID support to be able to pick up RAID0+1 (RAID10) and RAID5 arrays without panic'ing. This has the side effect of now also supporting multiple volumes on MatrixRAID's now I have the metadata better understood.. HW sponsored by: Mullet Scandinavia AB Notes: svn path=/head/; revision=153015
* Restore the enabling of debugging by default by the DRM_DEBUG kernel option.Eric Anholt2005-12-021-0/+4
| | | | | | | | | | It remains controlled by hw.dri.*.debug no matter what. PR: kern/85479 Submitted by: Oliver Fromme <olli@secnetix.de> Notes: svn path=/head/; revision=153013
* On the 82571 and newer chipset the ICR register is meaningful onlyGleb Smirnoff2005-12-021-1/+4
| | | | | | | | | if the E1000_ICR_INT_ASSERTED bit is set. Submitted by: Jack Vogel Notes: svn path=/head/; revision=153012
* Fix the misalignment bugs differently than was done in the previousMarcel Moolenaar2005-12-022-23/+33
| | | | | | | | | | | | commit. Copy the ethernet address into a local buffer, which we know is sufficiently aligned for the width of the memory accesses that we do. This also eliminates all suspicious and potentionally harmful casts. In collaboration with: ru Notes: svn path=/head/; revision=153003
* Fix the type of "eaddr" to guarantee the required alignment.Ruslan Ermilov2005-12-011-8/+8
| | | | | | | Suggested by: marcel Notes: svn path=/head/; revision=152992
* Byte copy IF_LLADDR() on stack to align it to be safe for typecasts.Ruslan Ermilov2005-11-302-21/+20
| | | | | | | Tested by: jhb Notes: svn path=/head/; revision=152962
* If bus_dmamap_load() failed, we free the mbuf. We also need to clearGleb Smirnoff2005-11-301-2/+6
| | | | | | | the pointer, to avoid double free on next bge_stop(). Notes: svn path=/head/; revision=152953
* Add codec ID for Avance Logic ALC203Pyun YongHyeon2005-11-301-0/+1
| | | | Notes: svn path=/head/; revision=152939
* Tell Rx radiotap that hardware leaves FCS at the end of the frame.Damien Bergamini2005-11-291-1/+1
| | | | | | | Obtained from: NetBSD (drochner@) Notes: svn path=/head/; revision=152936
* Sync with ural:Damien Bergamini2005-11-292-18/+19
| | | | | | | | o Send management frames at the lowest possible rate. o Cosmetic tweaks. Notes: svn path=/head/; revision=152935
* Use usbd_clear_endpoint_stall_async() instead of usbd_clear_endpoint_stall()Damien Bergamini2005-11-291-2/+2
| | | | | | | | | in Tx/Rx callbacks. Obtained from: NetBSD Notes: svn path=/head/; revision=152934
* o Send management frames at the lowest possible rate.Damien Bergamini2005-11-293-8/+43
| | | | | | | | | o Include rate in the Rx radiotap code. o Fix RSSI value in the Rx path. o Minor tweaks. Notes: svn path=/head/; revision=152933
* Fix the ata_composite/ata_request leak when using RAID0+1.Søren Schmidt2005-11-292-9/+18
| | | | | | | | | Submitted by: Michael Butler Minor changes to fit ATA style by me. Notes: svn path=/head/; revision=152931
* Separate the hardware definitions into ipsreg.h so they can be used byScott Long2005-11-297-309/+351
| | | | | | | future userland tools. Notes: svn path=/head/; revision=152919
* Add support for the i855GM, tested by an r300 user.Eric Anholt2005-11-291-1/+6
| | | | Notes: svn path=/head/; revision=152914
* Update DRM to CVS snapshot as of 2005-11-28. Notable changes:Eric Anholt2005-11-2873-1699/+3463
| | | | | | | | | | | | | | | | - S3 Savage driver ported. - Added support for ATI_fragment_shader registers for r200. - Improved r300 support, needed for latest r300 DRI driver. - (possibly) r300 PCIE support, needs X.Org server from CVS. - Added support for PCI Matrox cards. - Software fallbacks fixed for Rage 128, which used to render badly or hang. - Some issues reported by WITNESS are fixed. - i915 module Makefile added, as the driver may now be working, but is untested. - Added scripts for copying and preprocessing DRM CVS for inclusion in the kernel. Thanks to Daniel Stone for getting me started on that. Notes: svn path=/head/; revision=152909
* Fix SiS SATA support, the SATA registers was off.Søren Schmidt2005-11-283-44/+243
| | | | | | | | | Add support for SiS metadata. HW donated by: obrien Notes: svn path=/head/; revision=152908
* Fix two identical harmless typos in ata error messages:Giorgos Keramidas2005-11-281-2/+2
| | | | | | | | | | | | s/issueing/issuing/ PR: kern/89481 Submitted by: John Nielsen Approved by: sos MFC after: 1 week Notes: svn path=/head/; revision=152883
* The ohci driver's processing of completed transfer descriptors (TDs)Ian Dowse2005-11-272-30/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | appeared to rely on all kinds of non-guaranteed behaviours: the transfer abort code assumed that TDs with no interrupt timeout configured would end up on the done queue within 20ms, the done queue processing assumed that all TDs from a transfer would appear at the same time, and there were access-after-free bugs triggered on failed transfers. Attempt to fix these problems by the following changes: - Use a maximum (6-frame) interrupt delay instead of no interrupt delay to ensure that the 20ms wait in ohci_abort_xfer() is enough for the TDs to have been taken off the hardware done queue. - Defer cancellation of timeouts and freeing of TDs until we either hit an error or reach the final TD. - Remove TDs from the done queue before freeing them so that it is safe to continue traversing the done queue. This appears to fix a hang that was reproducable with revision 1.67 or 1.68 of ulpt.c (earlier revisions had a different transfer pattern). With certain HP printers, the command "true > /dev/ulpt0" would cause ohci_add_done() to spin because the done queue had a loop. The list corruption was caused by a 3-TD transfer where the first TD completed but remained on the internal host controller done queue because it had no interrupt timeout. When the transfer timed out, the TD got freed and reused, so it caused a loop in the done queue when it was inserted a second time from a different transfer. Reported by: Alex Pivovarov MFC after: 1 week Notes: svn path=/head/; revision=152855
* Support for ATI IXP 200 / 300 / 400 series audio controllers.Ariff Abdullah2005-11-273-0/+1210
| | | | Notes: svn path=/head/; revision=152851
* Revision 5.0 of the Sony DSC camera appears to require RBC commandsIan Dowse2005-11-261-2/+14
| | | | | | | | | | | to be padded to 12 bytes in length. Otherwise the requests just time out. Reported by: anders MFC after: 1 week Notes: svn path=/head/; revision=152833
* Add a locking stub to call acpi_cmbat_get_bif() now that it is directlyNate Lawson2005-11-261-1/+12
| | | | | | | | | | run from the taskqueue. There should probably be a better way to do this later, but this suffices for now. Submitted by: yongari Notes: svn path=/head/; revision=152818
* The CAM interface is broken and seems to be causing lockups on boot. ItScott Long2005-11-261-0/+13
| | | | | | | | | | doesn't appear to have worked in a long time, so just disable it completely for now. MFC After: 3 days Notes: svn path=/head/; revision=152817
* Added mono to stereo and stereo to mono feeder functions for bothAriff Abdullah2005-11-261-0/+170
| | | | | | | 24 and 32 bit format. Notes: svn path=/head/; revision=152816
* Added codec id for Avance Logic (ALC250)Ariff Abdullah2005-11-261-0/+1
| | | | Notes: svn path=/head/; revision=152815
* o Pass received frames to radiotap.Damien Bergamini2005-11-252-18/+29
| | | | | | | | | | o Remove some unsupported flags from the ic_caps field. o Various cosmetic tweaks. MFC after: 6 days Notes: svn path=/head/; revision=152810
* Fix AMRR initialization.Damien Bergamini2005-11-251-1/+1
| | | | | | | MFC after: 6 days Notes: svn path=/head/; revision=152807
* Fix panic when we cannot find self-id of probing nodes.Hidetoshi Shimokawa2005-11-251-1/+3
| | | | | | | | | | | | This shouldn't happen as far as the self-id buffer is vaild but some people have this problem. PR: kern/83999 Submitted by: Markus Wild <fbsd-lists@dudes.ch> MFC after: 3 days Notes: svn path=/head/; revision=152792
* When IOCATAGPARM is called, update the capabilities page that is storedSøren Schmidt2005-11-252-18/+29
| | | | | | | in the kernel and return the new values. Notes: svn path=/head/; revision=152783
* Send the packet to BPF after setting the duration field of the frame.Damien Bergamini2005-11-241-24/+24
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=152781
* o Force the sending of an extra URB if there is less than 2 bytes leftDamien Bergamini2005-11-241-5/+23
| | | | | | | | | | | at the end of the last URB (URB = USB Request Block = 64 bytes). o Free the AMRR reserved xfer in detach. o Minor tweaks. MFC after: 1 week Notes: svn path=/head/; revision=152780
* Remember the bus_dmamap_t where we loaded the mbuf, and sync this map insteadOlivier Houchard2005-11-241-1/+3
| | | | | | | of tx_buffer->map, or we could end up syncing the wrong map. Notes: svn path=/head/; revision=152774
* Only copy out the battery status/info if there was no error.Nate Lawson2005-11-241-5/+6
| | | | Notes: svn path=/head/; revision=152744
* Merge in new driver version from Intel - 3.2.18.Gleb Smirnoff2005-11-243-167/+494
| | | | | | | | | | | The most important change is support for adapters based on 82571 and 82572 chips. Tested on: 82547EI on i386 Tested on: 82540EM on sparc64 Notes: svn path=/head/; revision=152740
* Add locking and mark MPSAFE:John Baldwin2005-11-232-55/+98
| | | | | | | | | | | | | | - Add locked variants of start, init, and ifmedia_upd. - Add a mutex to the softc and remove spl calls. - Use callout(9) rather than timeout(9). - Setup interrupt handler last in attach. - Use M_ZERO rather than bzero. MFC after: 1 week Tested by: wpaul Notes: svn path=/head/; revision=152727
* Optimize PLCP length field computation for 802.11b rates.Damien Bergamini2005-11-232-10/+8
| | | | Notes: svn path=/head/; revision=152722
* - Quiet the pci_link(4) devices so that they don't show up in dmesg now.John Baldwin2005-11-231-1/+22
| | | | | | | | | | | | | | - Improve panic message if we fail to read the PCI bus number from a bridge device. - Don't try to lookup a BIOS IRQ for a link unless the link is routed via an ISA IRQ since BIOSen currently only route PCI link devices via ISA IRQs. Tested by: Mathieu Prevot bsdhack at club-internet dot fr MFC after: 1 week Notes: svn path=/head/; revision=152719
* Try to fix problems with periodic hangs by never directly calling _BIF.Nate Lawson2005-11-231-22/+34
| | | | | | | | | | | Instead, re-evaluate _BIF only when we get a notify and use the cached results. We also still evaluate _BIF once on boot. Also, optimize the init loop a little by only querying for a particular info if it's not valid. MFC after: 2 days Notes: svn path=/head/; revision=152705
* Simplify checks for valid battery info via DeMorgan's Rule. NoNate Lawson2005-11-231-9/+3
| | | | | | | functional change. Notes: svn path=/head/; revision=152703