summaryrefslogtreecommitdiffstats
path: root/sys/dev (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Add initialization of sc_sff_lock rwlock.kevlo2020-11-271-1/+3
| | | | ok semarie@
* fter ixgbe_stop() there will be no more link-state-changegerhard2020-11-241-1/+3
| | | | | | interrupts. Hence, update the link state manually. Tested and ok bluhm@
* Adopt a Linux heuristic and mark as IGNORE_RESIDUE those umass(4)krw2020-11-232-2/+12
| | | | | | | | | | devices whose INQUIRY command succeeds but with a residue equal to the requested bytes. Subsequent i/o's (including the INQUIRY) which succeed with a residue equal to the requested bytes will have residue set to 0. Fixes (very?) old devices such as the memory stick Andrew Daugherity pulled out of his drawer and with which he hoped to install 6.8. Subsequent testing of diffs much appreciated!
* Enabling RGE_ISR_RX_DESC_UNAVAIL causes an interrupt storm, so disableotto2020-11-221-2/+2
| | | | until the root cause is found. ok kevlo@ kettenis@
* Add barriers in the IO helper functions just like what was done for amdgpu(4).kettenis2020-11-211-6/+22
| | | | ok patrick@, jsg@
* Use bus_space_mmap(9) instead of pmap_extract(9) to find out the physicalkettenis2020-11-191-8/+5
| | | | | | (CPU) address of the device. Pointed out by miod@ ok patrick@
* The conversion of the IO BAR access did not completely mirror thepatrick2020-11-191-6/+22
| | | | | | | | | | | | behaviour of Linux' implementation: arm64's bus space operations have no barriers, so while Linux' iowrite32/ioread32 explicitly contain barriers, using bus space read/write is not enough on arm64. Add read barriers after a read to make sure that all reads have completed before the following reads. Add write barriers before a write to make sure all previous writes have completed before that write. This fixes panics on the HoneyComb LX2K with amdgpu(4). ok kettenis@
* fix build on loongson with clangjsg2020-11-181-3/+4
| | | | initial diff from and ok visa@
* regenjsg2020-11-182-2/+22
|
* add Realtek RealManage devicesjsg2020-11-181-1/+5
|
* Add ACPI support to imxiic(4).patrick2020-11-172-1/+235
| | | | ok kettenis@
* Split imxiic(4) into the FDT-attachment code and the i.MX I2C codepatrick2020-11-174-167/+184
| | | | | | in preparation for upcoming ACPI-attachment. ok kettenis@
* Zap parameter names in function prototypes.mglocker2020-11-171-4/+4
|
* remove unused definitions which no longer exist in linuxjsg2020-11-174-8/+2
|
* remove setup_timer() interface linux removed in 2017jsg2020-11-172-8/+10
|
* fix time_after32() macrojsg2020-11-171-1/+1
|
* adjust for reversed outb arguments linux usesjsg2020-11-171-0/+4
|
* Fix compile error on big-endian machines caused by recent multicast commit.patrick2020-11-161-2/+2
|
* Add multicast support to bwfm(4) to make IPv6 work and to fixpatrick2020-11-161-6/+52
| | | | | | promiscuous mode. ok gerhard@
* regenpatrick2020-11-162-9/+9
|
* Move PL2303GC around to make sure the list is sorted properly.patrick2020-11-161-2/+2
|
* regenkevlo2020-11-162-2/+72
|
* Add PCI ids for Intel 2.5Gb adapters.kevlo2020-11-161-1/+15
| | | | ok jsg@
* Add acpige(4), a driver for ACPI generic event devices. This is a ratherpatrick2020-11-152-1/+134
| | | | | | | | simple device that simply reacts to interrupts by invoking _EVT with the interrupt number. This is used on the HoneyComb LX2K to implement power button handling. ok kettenis@
* Add pchgpio(4), a driver for the GPIO controllers found on modern Intelkettenis2020-11-152-1/+369
| | | | | | PCHs. With help from James Hastings. ok deraadt@
* match on Edimax EW-7811Un V2, from Morgan Aldridgejmatthew2020-11-151-1/+2
|
* regenjmatthew2020-11-152-4/+9
|
* add Edimax EW-7811Un V2, from Morgan Aldridgejmatthew2020-11-141-1/+2
|
* Revise the initialization of the DRM Linux emulation layer such that wekettenis2020-11-142-30/+33
| | | | | | | | only call it when the first drm(4) instance attaches. Also add a cleanup function that gets called when the last drm(4) instance detaches. This makes sure that statically initialized IDR instances always work. ok jsg@, semarie@
* idr limit should be inclusivejsg2020-11-141-3/+7
| | | | ok kettenis@
* Extend pcamux(4) with ACPI support. So far pcamux(4) has assumed it'spatrick2020-11-141-5/+189
| | | | | | | | | | always matched on an FDT-capable device, but the HoneyComb LX2K seems to have a PCA9547 and provides it as NXP0002 HID. This means we know if it's ACPI or FDT based on the name passed. This is required to be able to make two acpitz(4) nodes work, since the thermel sensors are behind the mux. ok kettenis@
* Add support for the VF610 I2C controller to imxiic(4). It uses itspatrick2020-11-142-5/+53
| | | | | | | | own clock divisor table and its registers are each a byte apart. The status register is write 1 to clear instead of write 0 to clear, and the enable bit is also inverted. ok kettenis@
* Move enabling/disabling the I2C controller and clearing the Interruptpatrick2020-11-141-13/+31
| | | | | | | Flag into their own functions, since these are the two single pieces of register content that behave differently on the VF610. ok kettenis@
* Bring IDR function prototypes in line with modern Linux and implementkettenis2020-11-142-37/+23
| | | | | | | IDA functions in terms of IDR. Fixes issues with running out of PASIDs in amdgpu(4). ok jsg@
* whitespacekettenis2020-11-141-2/+2
|
* Add 10G media support. This makes the 10G ports on the "single shot" modelkettenis2020-11-141-2/+11
| | | | | | | work. The "double shot" model needs more work (support for "clause 45" PHYs). ok patrick@
* Add SFP+ support, including support for direct attach cables.kettenis2020-11-141-1/+36
| | | | ok patrick@
* We should only grab the drm_global_mutex lock for legacy drivers.kettenis2020-11-141-1/+3
| | | | | | Spotted thanks to debugging work by semarie@ ok jsg@, semarie@
* Assert reset before configuring the MACs. Otherwise we leave the 10G MACkettenis2020-11-131-7/+4
| | | | | | in reset which prevents it from working. ok patrick@
* To prepare for upcoming VF610 support, access the clk div table usingpatrick2020-11-132-11/+16
| | | | | | | | | a pointer in the softc instead of using a hardcoded table. While there move the call to retrieve the clock frequency into the attach code, and store the value in the softc as well. This will allow a future ACPI attachment driver to supply its value in different fashion. ok kettenis@
* Convert array of two-element arrays into a much more readable array ofpatrick2020-11-132-7/+12
| | | | | | structs. ok kettenis@
* Add support for the PL2303HXN series chips to uplcom(4). The mainpatrick2020-11-131-18/+62
| | | | | | | | | | difference is that is uses a different bRequest value for READ/WRITE. Apart from that the flow control bits are in a different register and resetting the data pipes uses different bits as well. We can check if its an HXN by reading an HX-only register and checking for a fail. ok kettenis@
* Add define for the status register's Arbitration Lost bit.patrick2020-11-131-1/+2
|
* On VF610 the registers are a single byte apart, so introduce a regshiftpatrick2020-11-131-8/+29
| | | | | | variable so that read/write can calculate the correct register offset. ok kettenis@
* Even though the registers are 16-bit wide, the upper 8 bits are alwayspatrick2020-11-131-45/+45
| | | | | | | | reserved. It is fine to use byte-wide access on those registers, which will be necessary to support VF610. Tested on i.MX6 by kettenis@ and on i.MX8MQ by myself ok kettenis@
* Add support for the PCA9547 I2C mux to pcamux(4). In comparison topatrick2020-11-131-7/+21
| | | | | | | | the PCA954[68], this is a mux instead of a switch and can only have one active channel at a time. On the bright side, we treat switches like a mux, so only the bits have to be set a little bit differently. ok kettenis@
* Nuke variable 'ba'. Only use was removed in r1.230.krw2020-11-121-3/+1
|
* Reconfigure the COMPHY mode when we find an SFP and configure inband mediakettenis2020-11-121-3/+29
| | | | | | | | status updates in that case. This probably won't work properly on the 10G ports of the MACCHIATOBin "double shot" model, but makes all SFP cages work on the "single shot" model. ok patrick@
* Add 1000baseT media support and set active media to the appropriate value.kettenis2020-11-121-4/+15
| | | | ok patrick@
* Don't enable port or link until all crypto keys are installed bykrw2020-11-121-3/+19
| | | | | | | | async task(s). Makes dhclient(8) much happier. Suggestions and ok stsp@, jmatthew@