summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2016-01-13Fix iwn(4) firmware SYSASSERT during hardware initialization.stsp1-9/+6
For some reason we would end up passing channel number zero to the RXON firmware command, which the firmware doesn't like. ok sthen@ reyk@ and also tested by stefan@, deraadt@, mikeb@
2016-01-12properly initialize quirks before sending them to hid layer, brokenjcs2-4/+4
during hid abstraction problem noticed and fix tested by abieber
2016-01-12rename new i2c_attach_args fields to avoid conflict with cpp magic inderaadt3-10/+10
isavar.h (a few parts of the tree include both) ok jcs
2016-01-12Use uiomove() instead of uiomovei(); from Martin Natanostefan1-4/+6
ok deraadt@
2016-01-12A couple of unused variables have sneaked in from the debug codemikeb1-3/+1
2016-01-12Convert XenStore code to free running producer/consumer indicesmikeb1-69/+48
After some hair pulling while implementing xnf(4) I've realised that Xen uses free running producer/consumer indices wrapping with their type (unsigned 32 bit integer). Later I've confirmed it with free chapters of the "The Definitive Guide to the Xen Hypervisor" by David Chisnall available online.
2016-01-12fix a misplaced curly bracestsp1-2/+2
2016-01-12Use task to execute command except polling context.uebayasi2-5/+50
2016-01-12Remove wireless turbo mode support. It is a non-standard extensionstsp8-186/+75
which only worked with ath(4) devices from a decade ago. Diff tested on ath(4) hardware by me to verify that 11a/b modes still work. ok reyk deraadt chris sthen kettenis
2016-01-12Use task to execute watchdog tickle.uebayasi2-3/+14
2016-01-12Refactor ipmi_watchdog(); split tickle and set into separate functions.uebayasi1-28/+46
2016-01-12Improve emulation of PM registers on Hardware-redcued ACPI by emulatingkettenis2-7/+59
SPL_TYPx, SLP_EN and WAK_STS using the new SLEEP_STATUS_REG and SLEEP_CONTROL_REG registers. Makes the transition into S5 (powerdown) work on the ASUS X205TA. ok deraadt@, mlarkin@
2016-01-12Add dwiic, a driver for the Synopsys DesignWare i2c controller foundjcs10-29/+1882
on the Samsung ATIV Book 9 laptop. This initial version only supports ACPI config/attachment. Add ihidev, a HID-over-i2c driver largely based on uhidev. dwiic handles attaching ihidev devices found in ACPI. Add ims, a HID-over-i2c mouse/trackpad driver to get basic cursor and button functionality from HID-compliant i2c trackpads. ok kettenis deraadt
2016-01-12post the packet on em_82547 chips after bpfdlg1-7/+13
now that start and txeof can run on different cpus, txeof could have freed the mbuf before bpf got to it.
2016-01-11Make sdhc(4) attach to hardware IDs "80860F14" and "PNP0FFF".kettenis1-2/+3
2016-01-11Use uiomove() instead of uiomovei(); from Martin Natanostefan1-2/+2
ok kettenis@
2016-01-11xs_cmd should always return errno(2) codesmikeb1-5/+5
2016-01-11Do not fail when receiving an empty reply (or directory node) inreyk1-8/+10
xs_intr() but put an empty message in the queue. This prevents xs_reply() from being stuck in an endless loop because it expectes a message in the queue to break out of it. Depends on mikeb@'s previous commit because it would otherwise panic on trying to cleanup the empty message. OK mikeb@
2016-01-11Handle zero lenght messages in the xs_parse by returning an empty stringmikeb1-10/+11
Problem was reported and analyzed by reyk@
2016-01-11Make sendmsg() and recvmsg() functions take only struct ipmi_cmd *.uebayasi2-59/+64
Handle interface specific command length more nicely. No functional changes.
2016-01-11Allocate command data buffer on softc and use it from both ipmi_sendcmd()uebayasi2-44/+24
and ipmi_recvcmd(). No functional changes.
2016-01-11Only include sdhc_acpi.c if shdc* at acpi? is included in the kernel config.kettenis1-2/+2
2016-01-11Refactor buildmsg() functions to take struct ipmi_cmd * instead of 6uebayasi2-27/+26
arguments. No functional changes.
2016-01-11Introduce struct ipmi_cmd and have ipmi_cmd() function. IPMI commanduebayasi2-79/+138
sequence is always a pair of send and receive; call both from ipmi_cmd(). By making ipmi_cmd() take only one argument struct ipmi_cmd *, this also helps to prepare to call ipmi_cmd() as a task. No functional changes intended.
2016-01-11Remove useless sc_poll flag because it is always 1. Remove unused globaluebayasi2-14/+4
ipmi_poll too.
2016-01-11Read values from disabled sensors if possible. From jmatthew@.uebayasi1-4/+4
2016-01-11Add glue to make sdhc(4) attach to acpi(4). Needed to support the SD hostkettenis2-1/+160
controllers integrated on Intel's Bay Trail SoCs.
2016-01-11Improve CIS parsing to recognize CISTPL_NULL codes instead of bailing out onkettenis2-8/+13
them. Add symbolic constant for CISTPL_END. ok jsg@
2016-01-11Add (limited) support for controllers that implement version 3.0 of thekettenis2-8/+46
SD host controller standard. Support the larger base clock and larger clock divisors. ok jsg@
2016-01-11do further work on the em transmit path to simplify the code.dlg2-198/+140
noone could understand how em_txeof worked, so i rewrote it. this also gets rid of the sc_tx_desc_free var that needed atomic ops. space to use in em_start and space to free in em_txeof is now calculated from the producer and consumer. testers have reported better responsiveness with this. somehow. if em issues persist after this, im rolling back to pre-mpsafe changes.
2016-01-10Introduce acpi_intr_establish(9), an API to establish interrupt handlers forkettenis1-1/+4
"platform" devices that attach to acpi(4). ok mlarkin@, deraadt@
2016-01-10Add thinkpad tablet dock/undock ACPI events.stsp1-1/+5
ok deraadt kettenis
2016-01-10Print a message to console when ipmi(4) watchdog is either enabled oruebayasi1-3/+7
disabled. Replace a magic number while here.
2016-01-10When stopping wdog (via wdog_shutdown() e.g. before entering shutdown),uebayasi2-2/+6
clear DONTSTOP bits. Without this, BMC records, at least on some NEC servers, watchdog timer expiration event, which only confuses admins. OK kettenis@
2016-01-10Seems the voltage bit defenitions in sdmmcreg.h for voltages below 2Vkettenis2-8/+5
are not quite right. At least I can't find them in any of the MMC and SD card documentation I can find on the interwebs. Instead there is a single "low voltage bit" that indicates support for the 1.65-1.95V or 1.70-1.95V range depending on the document you're reading. Go with the 1.65-1.95V range as that is what Linux does. Necessary (but not sufficient) to make the eMMC on the ASUS X205TA work. ok jsg@ (who did the armv7 bits)
2016-01-09missing breakjsg1-1/+2
ok ratchov@ deraadt@
2016-01-09Initial support for Hardware-Reduced ACPI. This skips the legacy mode checkskettenis2-3/+23
by emulating the PM_CNT register such that SCI_EN is always enabled. It also skip attaching acpitimer(4) since the relevant registers are no longer there. ok deraadt@, mlarkin@
2016-01-09add a missing printf argumentjsg1-2/+2
2016-01-09consistently use the desc ring pointers as guards for their dmamem.dlg1-3/+8
2016-01-09Use uiomove(9) instead of uiomovei(9). From Martin Natano.kettenis1-2/+2
2016-01-09Add HW_REDUCED_ACPI and LOW_POWER_S0_IDLE_CAPABLE FADT flags.kettenis1-1/+3
2016-01-09Rename LR_24BIT, LR_32BIT and LR_32BITFIXED to LR_MEM24, LR_MEM32 andkettenis1-4/+11
LR_MEM32FIXED to better match the names used in the specification. Add lr_m32fixed to union acpi_resource. ok jcs@
2016-01-09Correct sensor threashold handling by properly checking response of Get Sensoruebayasi1-37/+8
Reading Command. Patch from jmatthew@. Extra review by kettenis@. Tested by me.
2016-01-09revert manual additions of hid.h now that usbhid.h brings it injcs14-40/+14
2016-01-09include dev/hid/hid.h from dev/usb/usbhid.h, so all previous usersjcs1-1/+3
of it get the HID framework as they used to
2016-01-09move UHID_* definitions back to usbhid.h where they were before thejcs2-6/+6
HID separation
2016-01-08protect structs in hid.h with #ifdef _KERNEL, to allow inclusion injcs1-1/+5
libusbhid
2016-01-08Move HID support files out of dev/usb into new dev/hid directoryjcs28-482/+512
These files aren't USB-specific and were used by the previous Bluetooth implementation, and will be used by the upcoming HID-over-i2C implementation ok deraadt previous version ok kettenis and mpi
2016-01-08mikeb@ doesn't like RCS ids, so I add the OpenBSD one for him.reyk1-0/+2
2016-01-08Work around buggy zero-length packets produced by the DP83816A.mpi2-4/+15
From Nathanael Rensen, ok dlg@