summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2016-01-20make AUDIO_GETDEV ioctl return the device name (ex "azalia0") ratherratchov1-2/+6
than driver specific strings. ok kettenis
2016-01-20Set segflg member of uio struct with symbolic enum valuestefan1-2/+2
instead of using magic numbers. No binary change. Diff from Martin Natano. ok deraadt@
2016-01-20Don't bump output errors when when tx ring is fullmikeb1-5/+3
Reported by Jonathon Sisson <openbsd at j3z ! org>, thanks!
2016-01-20Set byte order the default encoding in the attach method toratchov1-2/+6
native byte order. No behaviour change, as attach time parameters are just hints, except thay this makes audioctl output nicer if the device was never opened.
2016-01-20remove an unused ifp variablejsg1-3/+1
2016-01-20add hidmt, a HID-layer driver for multitouch touchpads that conformjcs6-4/+772
to the "Windows Precision Touchpad" standard. when a compatible device is found, hidmt claims all report ids and switches the device into multitouch packet mode. add imt, an i2c-HID driver that sits between ihidev and hidmt
2016-01-20add the ability to set and get reportsjcs2-88/+314
establish interrupt before probing for devices to handle each report id sign an int, found by jsg
2016-01-20add hid_get_udatajcs2-7/+25
code from FreeBSD, name from NetBSD
2016-01-19Mask interrupts on boot, masking/unmasking is handled by stop/initmikeb1-1/+2
2016-01-19Fix a few issues in the xnf transmit pathmikeb1-6/+9
A crash reported by Jonathon Sisson is caused by incorrect calculation of available descriptors on the tx ring. While here, split the mbuf chain so that we won't unload the whole thing in the txeof before removing grant table references from transmit descriptors.
2016-01-19Cast evtchn_mask to a char pointer for an isset operationmikeb1-4/+5
When testing evtchn_mask bits we need to treat the array as a bit matrix for an isset macro to test correct bits. Reported by reyk@ some time ago, Wei Liu <wei ! liu2 at citrix !com> figured out how to reproduce the problem. Thanks!
2016-01-18Log unhandled interruptsmikeb1-2/+5
2016-01-18Provide a Xen v3 API compatible fallback for event channel hypercallsmikeb3-14/+52
2016-01-18Fixup a hang while performing a read operation on XenStoremikeb1-4/+7
Reyk has reported an issue that turned out to be an incorrect calculation of bytes available for reading. This diff also places missed semaphore releases in the xs_start and makes 'left' a size_t in xs_ring_{get,put}.
2016-01-17fix an off-by-one that could result in read operations not readingjcs1-2/+2
the last byte, depending on the timing
2016-01-17dwiic_i2c_{read,write} -> dwiic_{read,write}jcs1-56/+56
2016-01-17Take acpi_foundhid() outside of #ifndef SMALL_KERNEL so the ramdiskjsg1-9/+11
kernel can find and attach dwiic(4) and sdhc(4).
2016-01-17remove an unused global variablejsg1-2/+1
2016-01-15In dwiic_acpi_foundhid() treat _STA missing as if all the bitsjsg1-6/+5
were set as per the acpi spec. ok kettenis@
2016-01-15Check _STA method to see whether te device is actually present. If not, makekettenis1-1/+9
the match function return 0 to prevent the driver from attaching.
2016-01-15Moxa CP-168U support; from Olaf Schreckderaadt1-1/+17
2016-01-15syncderaadt2-2/+7
2016-01-15Moxa CP-168U, from Olaf Schreckderaadt1-1/+2
2016-01-15Cleanup dmesg output, disable debugging; prodding and suggestions from reyk@mikeb3-73/+27
2016-01-15Detach emulated network devices if Netfront driver is enabledmikeb4-25/+26
Xen doesn't provide a way for a guest to decide which model of the interface is selected in the VM configuration and therefore there's no simple way for Netfront and emulated devices to co- exist on the same system. Emulated em(4) or re(4) drivers will take over if xnf(4) driver is disabled or not compiled in. Idea and OK reyk
2016-01-15when enabling the controller, wait till CSTS.RDY lights up.dlg1-6/+6
2016-01-15feng shui.dlg1-38/+30
dont need a billion tabs for the function prototypes. just some akward line wrappings.
2016-01-15fix calculation of the max queue entries supported valuedlg1-2/+2
2016-01-15handle the version register like ahci.dlg2-6/+22
2016-01-15wrap up dma syncs for the whole mapping.dlg1-13/+19
2016-01-14Attach dwiic(4) on the Intel Bay Trail i2c controllers as well.kettenis2-3/+5
2016-01-14Several fixes for dwiic(4).kettenis2-50/+60
* Properly map bus space; using BUS_SPACE_MAP_PREFATCHABLE is not agood idea as it may lead to reordering or merging of register writes in the store buffer. * Properly implement the iic(4) operations in dwiic_i2c_exec(). * Keep timings set up by the firmware if the SSCN and FMCN methods aren't available. ok jcs@
2016-01-14Use I2C_F_POLL flag when acquiring and releasing the i2c bus in thekettenis1-6/+9
interrupt handler. ok jcs@
2016-01-14When iterating over the report IDs to calculate the maximum size, takekettenis1-16/+14
into account the 2 bytes needed to store the length. Also make sure that we have at least wMaxInputLength bytes available for reading input reports. ok jcs@
2016-01-14Driver for HID-over-i2c keyboards.kettenis2-1/+178
2016-01-14Prevent a NULL dereference when detaching a USB device with ugen(4)mpi1-3/+5
disabled or if allocating memory during the attachment process failed. Problem reported by and original diff from James Hastings on bugs@. ok deraadt@
2016-01-14Fixup a merge errormikeb1-3/+3
2016-01-14regendlg3-7/+12
ahci_pci updated to cope with the new pcidevs id for its sm951
2016-01-14there are two types of samsung sm951dlg1-2/+3
2016-01-14add brackets to avoid an operator precedence bugjsg1-2/+2
ok ratchov@ deraadt@
2016-01-13Change aml_find_node() such that it only walks down the tree and doesn'tkettenis2-14/+14
traverse sideways. This seems to be what all callersexpect it to do, and fixes a bug in dwiic(4) where it would try to access i2c devices on busses they're not attached to. If there is any fallout from this change, the right thing to do is probably to make sure callers pass the right node. While there, change the return type to void, as the return value was useless and none of the callers looked at it. ok mlarkin@
2016-01-13Bump number of tx fragments to the stock value of 18mikeb1-2/+2
2016-01-13Implement transmit watchdog for testing purposesmikeb1-1/+18
2016-01-13spacing typosmikeb1-8/+7
2016-01-13Create rx and tx fragment maps with a page size boundary restrictionmikeb2-4/+8
We need to ensure that rx and tx fragments do not cross page boundary since grant table reference can only point to a complete page. Add a couple of kernel assertions in the dma map loading code to catch these problems early in the future.
2016-01-13fix hid packet length calculationjcs1-4/+4
noticed by jsg
2016-01-13Revert most of if_iwm.c r1.155. Use of channel zero was a symptom ofstsp1-3/+9
another bug introduced in my turbo mode removal commit; Now fixed. Keep the debug printf added in r1.155.
2016-01-13Don't confuse the HID descriptor address (which really is an office into thekettenis3-6/+15
register space of the i2c device) with the i2c address. For i2c busses enumerated by ACPI we get the address from the I2C Serial Bus Connection Resource Descriptor returned by the _CRS methide of the i2c device. Pass the HID descriptor address in the ia_size member. ok jcs@
2016-01-13Add data structures and defines for Generic and I2C Serial Bus Connectionkettenis1-1/+29
descriptors. ok jcs@
2016-01-13Tell the iwn(4) firmware to retry failed Tx at 1Mbit/s instead of MCS 0.stsp1-10/+2
Seems to make Tx rate scaling go up faster and helps Rx performance. ok deraadt@