summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2011-10-16Provide battery charge/discharge rate in proper units.Mark Kettenis
Based on a diff from Vladimir Kirrillov.
2011-10-16align the read to the PCI config space.David Hill
from drahn@, ok deraadt@
2011-10-14Make ath(4) send multicast frames once, not multiple times.Stefan Sperling
Fixes TKIP replays seen by STAs connecting to an ath(4) hostap and matches the FreeBSD driver. Tested with several cards by Theo and myself. Thanks mikeb for providing some cards, your next beer in Berlin is on me. ok deraadt
2011-10-14Return EINVAL when there's no config descriptor for a given index.Martin Pieuchot
Problem reported by ajacoutot@ ok deraadt@, kettenis@, krw@
2011-10-13Make WOL support do something that actually makes sense; effectivelyMark Kettenis
reverting most of the previous commit. Fixes unaligned read from PCI config space as well. ok & tested by stsp@
2011-10-13Fix definition of XL_PME_EN.Mark Kettenis
ok stsp@
2011-10-10Introduce pci_probe_device_hook(pci_chipset_tag_t, struct pci_attach_args *).Miod Vallat
This mandatory function will get invoked in pci_probe_device(), and allows a pci host driver to alter the pci_attach_args passed to a device when attaching. This function will also, if returning non-zero, cause the device to be skipped completely during all the phases of the PCI device discovery (i.e. ressource enumeration, ressource assignment, and actual attachment). This particular feature is experimental and might be reverted in the future (or the scope narrowed to device attachment only). A dummy #define pci_probe_device_hook() 0 is added to all platforms except sgi, where real functions (currently only returning 0) are added; real meat will be added shortly. Discussed at s2k11, no objection from the usual suspects.
2011-10-09add support for WCH CH352 serialJonathan Gray
tested by Atanas Vladimirov on a CardBus device with one physical port
2011-10-09regenJonathan Gray
2011-10-09WCH CH352 serialJonathan Gray
2011-10-09Fix the backspace key under X11 and make the 'option' key behaves like inMartin Pieuchot
console. The 'command' key is now the alt modifier. Based on a diff from shadchin@ with inputs from miod@ ok shadchin@, miod@
2011-10-07Detect the ts3000b3 and stts2002, and weaken the cat34ts02 model checkTheo de Raadt
since a similar device (not yet named as far as I can see) has showed up on the market. cat34ts02 tested by weerd.
2011-10-07Interface cable for Yaesu ham radios, ok deraadtChris Kuethe
uftdi0 at uhub2 port 1 "RT Systems CT57B Radio Cable" rev 2.00/6.00 addr 2 ucom0 at uftdi0 portno 1
2011-10-07regenChris Kuethe
2011-10-07RT Systems interface cable (rebranded FTDI) for Yaesu ham radiosChris Kuethe
ok deraadt
2011-10-06ccd goes to the atticTheo de Raadt
discussed with jsing and millert
2011-10-05It is not safe to call sensor_task_unregister() from inside theTheo de Raadt
refresh function. sensor_task_work() is incomprehensively complex. Work around this by using a workq to deactive the i2c alias when the isa interface is preffered. Problem of dead sensors reported by henning, fix tested by Nigel Taylor ok kettenis
2011-10-05ami_drv_inq bus_dmamap_loads the inquiry buffer, so that buffer has to beDavid Gwynne
under 4g now. this moves the inqbufs off the stack to dma_alloc/dma_free. reported by and fix tested by henning@ ok henning@
2011-10-05Add the remaining parts of support for 82580 based devices such asJonathan Gray
the Intel I340-T4 and HP NC365T and simplify some of the multi port handling while here. Thanks to fredrik danerklint for donating a card, Linden Varley for setting up a test system and everyone who made sure this didn't break their existing em setups.
2011-10-04Add support for ALPS touchpads.Martin Pieuchot
This also fix the "slow touchpad" problem due to the fact that some ALPS devices respond to some Synaptics messages and stay in un half-configured state. Tested by Rivo Nurges, armani@, shadchin@ and matthieu@ ok shadchin@
2011-10-03Add a 'flag' locator to gpioiic(4), and define a first flagMatthieu Herrb
value to swap the SDA and SCL pins assigment during attach. Mostly from work with mbalmer@NetBSD. ok miod@
2011-09-29Avoid a potential NULL dereference if nports == 0.Stefan Sperling
Found by Amit Kulkarni using clang. Fix from jakemsr; his diff was sitting on tech@ since February. ok myself, phessler, sthen, jasper and also pirofti, mikeb, krw (back in February)
2011-09-27Needs explicit <sys/kthread.h>; fixes build on palm.Miod Vallat
2011-09-23Make sure siop_xfer is a multiple of 128 bytes as intended (and as told byMiod Vallat
the comments); this makes hppa64 much happier according to jsing@. ok krw@ exactly two years ago, it was about time to commit this.
2011-09-23regenJonathan Gray
2011-09-23XHCI -> xHCI and some additional devicesJonathan Gray
2011-09-22KNF of mlarkin's code, requested by him. Some improvements to the interfaceTheo de Raadt
for talking to the disk driver snuck in. ok mlarkin
2011-09-22Fix white space and tabs here. ok miod@, oga@Matthieu Herrb
2011-09-21Some minor clean up to the _start funtions to make the code read a littleKevin Lo
better. No functional change. From Brad
2011-09-20Prepare to add support ALPS touchpadsAlexandr Shadchin
no objections mpi@ and matthieu@
2011-09-20In its current state the ring code doesn't work on sandybridge. As a resultMark Kettenis
idling the rings fails and esults in an infinte sleep. So skip initialization of the rings altogetheron sandybridge. Issuing 3D commands won't work in that state, but at least VT switches (and therefore suspend) will no longer hang. This is a temporary measure until the ring code has been fixed. ok oga@
2011-09-20The BIOS on the x220 doesn't retrain the FDI link upon resume and restoringMark Kettenis
the modeset registers in that state hangs the machine halfway through resume. So skip this step on sandybrige and rely on the (upcoming) xf86-video-intel driver to properly restore the mode. ok oga@
2011-09-20Very early in suspend while the clock is still ticking realtime,Theo de Raadt
save the clock back to the rtc. The zaurus already did this. ok phessler miod kettenis
2011-09-20Mark softraid crypto volumes as being capable of auto assembly, since theyJoel Sing
are if used with a key disk.
2011-09-20Simplify the crypto descriptor handling by changing the list head, insteadJoel Sing
of splitting and rejoining the list.
2011-09-19If the rootduid matches a softraid chunk of a bootable softraid volume,Joel Sing
map the rootduid to the DUID of the softraid volume. This means that regardless of where the kernel is loaded from we always get the softraid volume as the root device, providing we booted from one of its chunks. If we boot from any other disk then the rootduid remains unchanged. With this diff it is now possible to have the root filesystem on softraid, however at this stage the kernel still needs to be loaded from a separate FFS partition. ok deraadt@
2011-09-19When installboot is run on a softraid volume, add boot optional metadataJoel Sing
to store the DUID of the softraid volume and each of the chunks that it is assembled from. This allows us to correctly identify the root disk. ok deraadt@
2011-09-19Cleanup sr_ioctl_createraid(). There are three clear cases - (1) corruptJoel Sing
or invalid metadata; (2) a new volume with no existing metadata; and (3) an existing volume with metadata. This removes duplicated code and simplifies the code path. Also ensure that we only process the optional metadata once per volume and not once per chunk. Move the optional metadata handler calls into sr_ioctl_createraid().
2011-09-19Missing argument in STIDEBUG printfMiod Vallat
2011-09-19Make sure snooping is enabled on Intel HDA variants. Fixes audio on myMark Kettenis
x220. Suggested before by jakemsr. ok deraadt@, ratchov@
2011-09-18Add support for *at(2) system calls to systrace(1).Matthew Dempsky
ok deraadt@, sthen@, jasper@
2011-09-18usbdivar.h needs struct timeout. But don't get it indirectly viaKenneth R Westerback
sys/kthread.h, use sys/timeout.h explicitly. Noted by Michael Knudsen. ok deraadt@ kettenis@ guenther@
2011-09-18Add support for variable length optional metadata in softraid(4). ThisJoel Sing
will allow new optional metadata types to be added without needing to change the softraid metadata version. Note that this commit changes the softraid metadata version, however an upgrade from older metadata is handled automatically. A full backup prior to upgrading is still strongly recommended. With feedback from stsp@ and marco.
2011-09-18Set pointer to NULL not 0. From Michael Knudsen (several times).Kenneth R Westerback
2011-09-18Remove extra printf argumentsMiod Vallat
2011-09-18Rename the optional metadata handler function and factor out the optionalJoel Sing
metadata handling code. This will simplify upcoming changes.
2011-09-18Fix various format string types to as a minimum match the width of theMiod Vallat
variables being processed. ok bluhm@ henning@
2011-09-17Fix a truncated DPRINTF.Miod Vallat
2011-09-17use default_chip_unmap for sata_chip_map, lets the via controllers detachJonathan Gray
ok deraadt@
2011-09-17Don't bother keeping a {u,}lptioctl function which is a duplicate ofMiod Vallat
enodev(). ok jsing@ krw@ deraadt@