summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2018-09-01Match on interfaces with Digitizers/Touchscreen collections, as longJoshua Stein
as they have an X usage. Should get basic touchscreen functionality on some common HID-over-i2c devices like laptops.
2018-09-01For touchscreen devices, use the first HUG_X/Y usage pages foundJoshua Stein
when looking for logical min/max of screen. ok kettenis
2018-08-31remove shadow variables for 'error' in usbioctl(); ok mpi@ ratchov@miko
2018-08-31ich variable is only used in DPRINTF() and uaudio_get_cluster_nchan()miko
has no side effect, so setting value for ich can be moved under UAUDIO_DEBUG. ok ratchov
2018-08-30fix memory leak in an error pathJonathan Gray
ok patrick@
2018-08-30Set up an aggregation buffer ring and configure placement mode so dataJonathan Matthew
that doesn't fit in the rx buffer goes into an aggregation buffer, allowing jumbo frames to be received. Using 8k aggregation buffers means we'll only ever need one per packet. When receiving jumbos, sometimes we get an interrupt before all three of the completion events are ready, in which case we should not consume the events that are ready. Expanding the completion ring makes this happen less frequently, so allocate four cp ring pages instead of one.
2018-08-30Move softbutton check before the check that skips attaching certain acpiMark Kettenis
devices. Fixes regression caused by matching on _CID in addition to matching on _HID. ok matthieu@, mlarkin@
2018-08-29Remove unused struct member.Mark Kettenis
ok deraadt@, mlarkin@
2018-08-28avoid uninitialised variable useJonathan Gray
ok patrick@ kettenis@
2018-08-28avoid uninitialised variable use in an error pathJonathan Gray
ok kettenis@
2018-08-27Add hitemp(4), a driver for the temperature sensors on the HiSilicon Hi3660Mark Kettenis
and Hi3670 SoCs.
2018-08-27Add 64-bit DMA support. Enable DMA on HiSilicon SoCs.Mark Kettenis
ok patrick@
2018-08-27Add hiclock(4). Make sure hireset(4) attaches early.Mark Kettenis
2018-08-27Rename struct kd -> kcov_dev. The terse name was initially fine since it wasn'tanton
used outside of dev/kcov.c. Nowadays, struct proc includes a kcov pointer and it therefore deserves a more descriptive name. Prodded by visa@; ok deraadt@ visa@
2018-08-27Add hirest(4), a driver to support reset signal controller blocks onMark Kettenis
HiSilicon SoCs.
2018-08-27Add glue for the USB3 controller on the HiKey 970.Mark Kettenis
2018-08-27handle 16 bit register width required for omap3/omap4Jonathan Gray
ok kettenis@
2018-08-27Add an interface that allows drivers to claim a framebuffer and checkMark Kettenis
whether another driver has already claimed a framebuffer. Use this in radeondrm(4) and simplefb(4) to prevent the latter from attaching if radeondrm(4) is attached to the hardware that provides the framebuffer set up by the firmware. ok mlarkin@
2018-08-27HiSilicon SoCs pre-divide the clock by a factor 8.Mark Kettenis
2018-08-26Add pinctrl(4), a generic pin mux driver.Mark Kettenis
ok patrick@
2018-08-26Add plgpio(4), a driver for the ARM PrimeCell GPIO (PL061) peripheral.Mark Kettenis
ok jsg@, patrick@
2018-08-26Add support for HiSilicon Hi3660 (Kirin960) and Hi3670 (Kirin970).Mark Kettenis
2018-08-26return -1 from the interrupt handler if we didn't find any work to doJonathan Matthew
2018-08-25Add umt(4) for USB Windows Precision Touchpad devicesJoshua Stein
Based on imt(4) Rename HIDMT_INPUT_MODE_MT to HIDMT_INPUT_MODE_MT_TOUCHPAD ok deraadt
2018-08-25Use __HAVE_ACPI to decide whether ACPI support should be considered.Mark Kettenis
ok deraadt@, krw@, jca@
2018-08-25Move HID->bus constant conversion for HID report types out of ihidevJoshua Stein
into hidmt. The HID code uses hid_feature, hid_input, and hid_output constants to refer to report types internally that then need to be converted to their bus-level counterparts before actually getting sent out (so hid_feature becomes UHID_FEATURE_REPORT for USB, I2C_HID_REPORT_TYPE_FEATURE for i2c). This conversion was hard-coded in ihidev but ihidev_[gs]et_report should assume the type passed is already an i2c-level define, not a hid one. This is how uhidev does it. Add a conversion routine callback that any hidmt callers need to set so that hidmt can convert hid constants to the bus-level versions. Also add a similar conversion function to uhidev. ok deraadt
2018-08-25regenMark Kettenis
2018-08-25Audio as found on an "Oland" Radeon card. Naming is a bit arbitrary, butMark Kettenis
this one is present on several GCN gen 1 cards that have names that start in the HD 7700 range.
2018-08-25fix misplaced parenthesis inside an if-clause. already fixed in FreeBSD in revRicardo Mestre
295608. OK jca@
2018-08-25fix misplaced parenthesis inside an if-clause. already fixed in NetBSD in revRicardo Mestre
1.13. OK stsp@ jca@ claudio@
2018-08-25Change kcov semantics, kernel code coverage tracing is now enabled on a peranton
thread basis instead of process. The decision to enable on process made development easier initially but could lead to non-deterministic results for processes with more than one thread. This behavior matches the implementation found on both Linux and FreeBSD. With help and ok mpi@ visa@
2018-08-25The current rasops cursor implementation simply inverts the appropriateMark Kettenis
framebuffer pixels by doing an XOR with an all-ones bit pattern. This means the code has to read from the framebuffer which can be very slow. Add an implementation that simply redraws the character covered by the cursor with the foreground and background color swapped. While this doesn't necessarily have the same visual result, most people probably won't notice the difference (let's see). Use this implementation when the RI_WRONLY or the RI_VCONS flags are set. ok fcambus@
2018-08-25Match ACPI devices based on _CID if no match for _HID is found.Mark Kettenis
ok mpi@
2018-08-24Add common Ethernet interface attributes to vio(4)'s build config.Visa Hankala
OK deraadt@
2018-08-24Include the list of multicast groups in the rx filter configuration.Jonathan Matthew
The adapter reads this from host memory, so we allocate a new page for it. The rx filter code ends up looking a lot more like other drivers as a result.
2018-08-24Allocate framebuffer PCI BAR if left uninitialized by firmware.Mark Kettenis
ok mlarkin@
2018-08-24set the rx mask to always accept all vlan tags, making vlan interfacesJonathan Matthew
on top of bnxt work properly.
2018-08-23remove hwrm interface code for nvram reads and writes, firmware updates,Jonathan Matthew
and wol filters, none of which we're going to use.
2018-08-23rearrange txeof so it processes slots up to the index given in theJonathan Matthew
completion event, and only request completion events for the last packet we place on the ring in bnxt_start, which doesn't do anything now but will make tx faster when we get tx mitigation working.
2018-08-23set interrupt aggregation parameters so we get around 10000 interruptsJonathan Matthew
per second, which makes a pretty sizable improvement to rx performance.
2018-08-22Initialize bridge registers instead of relying on ppb(4) to do it for us.Mark Kettenis
This gives us more control over the I/O windows that we expose such that we can make enough address space available for graphics cards.
2018-08-22Work well with the Dynastream ANTUSB-m, from Jan Klemkow.Martin Pieuchot
2018-08-22regenMartin Pieuchot
2018-08-22Dynastream ANTUSB-m, from Jan Klemkow.Martin Pieuchot
2018-08-21Implement address translation. Makes I/O space access work.Mark Kettenis
2018-08-21Rework kcov kernel config. Instead of treating kcov as both an option and aanton
pseudo-device, get rid of the option. Enabling kcov now requires the following line to be added to the kernel config: pseudo-device kcov 1 This is how pseudo devices are enabled in general. A side-effect of this change is that dev/kcov.c will no longer be compiled by default. Prodded by deraadt@; ok mpi@ visa@
2018-08-20Memory barriers for arm64. These are somewhat stronger than strictlyMark Kettenis
necessary since we define the linux compat symbols in terms of a single set of macros. ok jsg@, mpi@, visa@
2018-08-20Add arm64 support. On ARM write-combining translates into the normal uncachedMark Kettenis
memory attribute and uncached translates into device-nGnRnE memory. This complicates the mapping onto PMAP_WC, PMAP_NOCACHE and PMAP_DEVICE a bit since the requirements of the drm(4) subsystem don't quite match the natural definitions for these. ok jsg@, mpi@, visa@
2018-08-20Attach bwfm(4) to Broadcom BCM4371.Patrick Wildt
ok kettenis@
2018-08-20regenPatrick Wildt