summaryrefslogtreecommitdiffstats
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Merge DRM CVS as of 2005-12-02, adding i915 DRM support thanks to Alexey Popov,anholt2005-12-033-5/+11
| | | | and a new r300 PCI ID.
* Make cleaner diffs by munging the $FreeBSD$s from the FreeBSD CVS sources backanholt2005-12-031-1/+15
| | | | into the new sources.
* Add support for i915 GMCH AGP. This diff is a combination of work by myselfanholt2005-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
* Register definitions for the ancient via6522. This 20+ year-old chipgrehan2005-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.
* Add a missing newline to a printf.jhb2005-12-021-1/+1
| | | | MFC after: 1 week
* Update the ICH7 support so it deals better with chips without AHCI.sos2005-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
* Restore the enabling of debugging by default by the DRM_DEBUG kernel option.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>
* On the 82571 and newer chipset the ICR register is meaningful onlyglebius2005-12-021-1/+4
| | | | | | if the E1000_ICR_INT_ASSERTED bit is set. Submitted by: Jack Vogel
* Fix the misalignment bugs differently than was done in the previousmarcel2005-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
* Fix the type of "eaddr" to guarantee the required alignment.ru2005-12-011-8/+8
| | | | Suggested by: marcel
* Byte copy IF_LLADDR() on stack to align it to be safe for typecasts.ru2005-11-302-21/+20
| | | | Tested by: jhb
* If bus_dmamap_load() failed, we free the mbuf. We also need to clearglebius2005-11-301-2/+6
| | | | the pointer, to avoid double free on next bge_stop().
* Add codec ID for Avance Logic ALC203yongari2005-11-301-0/+1
|
* Tell Rx radiotap that hardware leaves FCS at the end of the frame.damien2005-11-291-1/+1
| | | | Obtained from: NetBSD (drochner@)
* Sync with ural:damien2005-11-292-18/+19
| | | | | o Send management frames at the lowest possible rate. o Cosmetic tweaks.
* Use usbd_clear_endpoint_stall_async() instead of usbd_clear_endpoint_stall()damien2005-11-291-2/+2
| | | | | | in Tx/Rx callbacks. Obtained from: NetBSD
* o Send management frames at the lowest possible rate.damien2005-11-293-8/+43
| | | | | | o Include rate in the Rx radiotap code. o Fix RSSI value in the Rx path. o Minor tweaks.
* Fix the ata_composite/ata_request leak when using RAID0+1.sos2005-11-292-9/+18
| | | | | | Submitted by: Michael Butler Minor changes to fit ATA style by me.
* Separate the hardware definitions into ipsreg.h so they can be used byscottl2005-11-297-309/+351
| | | | future userland tools.
* Add support for the i855GM, tested by an r300 user.anholt2005-11-291-1/+6
|
* Update DRM to CVS snapshot as of 2005-11-28. Notable changes:anholt2005-11-2873-1722/+3486
| | | | | | | | | | | | | - 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.
* Fix SiS SATA support, the SATA registers was off.sos2005-11-283-44/+243
| | | | | | Add support for SiS metadata. HW donated by: obrien
* Fix two identical harmless typos in ata error messages:keramida2005-11-281-2/+2
| | | | | | | | | s/issueing/issuing/ PR: kern/89481 Submitted by: John Nielsen Approved by: sos MFC after: 1 week
* The ohci driver's processing of completed transfer descriptors (TDs)iedowse2005-11-272-31/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Support for ATI IXP 200 / 300 / 400 series audio controllers.ariff2005-11-273-0/+1210
|
* Revision 5.0 of the Sony DSC camera appears to require RBC commandsiedowse2005-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
* Add a locking stub to call acpi_cmbat_get_bif() now that it is directlynjl2005-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
* The CAM interface is broken and seems to be causing lockups on boot. Itscottl2005-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
* Added mono to stereo and stereo to mono feeder functions for bothariff2005-11-261-0/+170
| | | | 24 and 32 bit format.
* Added codec id for Avance Logic (ALC250)ariff2005-11-261-0/+1
|
* o Pass received frames to radiotap.damien2005-11-252-18/+29
| | | | | | | o Remove some unsupported flags from the ic_caps field. o Various cosmetic tweaks. MFC after: 6 days
* Fix AMRR initialization.damien2005-11-251-1/+1
| | | | MFC after: 6 days
* Fix panic when we cannot find self-id of probing nodes.simokawa2005-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
* When IOCATAGPARM is called, update the capabilities page that is storedsos2005-11-252-18/+29
| | | | in the kernel and return the new values.
* Send the packet to BPF after setting the duration field of the frame.damien2005-11-241-24/+24
| | | | MFC after: 1 week
* o Force the sending of an extra URB if there is less than 2 bytes leftdamien2005-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
* Remember the bus_dmamap_t where we loaded the mbuf, and sync this map insteadcognet2005-11-241-1/+3
| | | | of tx_buffer->map, or we could end up syncing the wrong map.
* Only copy out the battery status/info if there was no error.njl2005-11-241-5/+6
|
* Merge in new driver version from Intel - 3.2.18.glebius2005-11-243-170/+497
| | | | | | | | The most important change is support for adapters based on 82571 and 82572 chips. Tested on: 82547EI on i386 Tested on: 82540EM on sparc64
* Add locking and mark MPSAFE:jhb2005-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
* Optimize PLCP length field computation for 802.11b rates.damien2005-11-232-10/+8
|
* - Quiet the pci_link(4) devices so that they don't show up in dmesg now.jhb2005-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
* Try to fix problems with periodic hangs by never directly calling _BIF.njl2005-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
* Simplify checks for valid battery info via DeMorgan's Rule. Nonjl2005-11-231-9/+3
| | | | functional change.
* - Add a new method ofw_bus_default_get_devinfo() that allows to retrievemarius2005-11-223-2/+213
| | | | | | | | | | | | | | | | a newly introduced struct ofw_bus_devinfo which can hold the OFW info of a device recallable via the ofw_bus KOBJ interface. Introduce a set of functions ofw_bus_gen_get_*() which use ofw_bus_default_get_devinfo() to provide generic subroutines for implementing the rest of the ofw_bus KOBJ interface in a bus driver. This is inspired by bus_get_resource_list() and bus_generic_rl_*_resource() and allows to reduce code duplication in bus drivers as they only have to provide an ofw_bus_default_get_devinfo() implementation in order to provide the ofw_bus KOBJ interface via ofw_bus_gen_get_*(). - While here add a comment to ofw_bus_if.m describing the intention of the ofw_bus KOBJ interface. Reviewed by: marcel
* Remove unused function and variables.marius2005-11-221-19/+0
|
* Check IFF_DRV_RUNNING in the re_intr() loop. It can disappear,glebius2005-11-221-4/+6
| | | | | | since re_rxeof() drops the lock for some time. Reported & tested by: XueFeng Deng <dsnofe yahoo.com.cn>
* Cache the result of battery info retrieval from smbat as wellume2005-11-221-22/+77
| | | | | | | as cmbat. Reviewed by: njl MFC after: 3 days
* Resolve misalignment traps caused by changes to IF_LLADDR().marcel2005-11-222-8/+8
| | | | | | | | | Use de16dec() and le16dec() to fetch the link-level address from struct ifnet. Tested on: alpha Reviewed by: jhb See also: de(4)
* Overhaul nve(4) locking to make it more like other ethernet drivers injhb2005-11-212-91/+113
| | | | | | | | | | | | | | | | | the tree. - Add locked variants of nve_start(), nve_init(), and nve_ifmedia_upd(). - Use callout_* to manage callouts rather than timeout(9). - Mark interrupt handler MPSAFE (IFF_NEEDGIANT was already clear). - Lock the driver lock in driver entry points such as the interrupt handler, if_start, and if_init rather than locking the driver mutex in the various work functions called by the binary blob. The spin lock used by the binary block can probably be stubbed out now. - Use IFQ_DRV_IS_EMPTY() macro rather than doing it by hand. - Fix locking in detach. - Remove some unused fields from the softc. Tested by: cognet MFC after: 2 weeks
OpenPOWER on IntegriCloud