summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2014-12-04regenmpi2-6/+26
2014-12-04Various MosChip Semiconductor multiport serial adapter.mpi1-2/+6
2014-12-04Disable MSI with the Samsung S4LN053X01 SSD controller as found in somebrad1-1/+11
Apple MacBook Air systems such as the 6,1 and 6,2. Workaround noticed in the Linux kernel. Tested by Scott Bonds with a 6,1 system "the disk operations that previously took 5 minutes are now instantaneous."
2014-12-04Simplify the MSI bits a bit.brad1-6/+5
2014-12-03More duplicate #include cleanout.krw2-6/+2
ok deraadt@ tedu@
2014-12-03wb_init() calls wb_stop() and wb_reset() so remove some redundant callsbrad1-8/+2
to those functions before wb_init() within wb_watchdog() / wb_intr() and wb_rxeof().
2014-12-03Turn ahci port start into a callback so sxiahci can do some magic tojsg2-4/+10
setup dma. Modified version of a patch from Edwin Amsler which was based on changes made in Bitrig by Artturi Alm. ok dlg@
2014-12-02regenbrad2-2/+7
2014-12-02Add Samsung SSD controller.brad1-1/+2
2014-12-01rxr ioctl handling.brad1-1/+22
2014-11-30Don't overwrite fields in the message when setting up the REMOTE_NDIS_SET_MSGkettenis1-3/+3
command in urndis_ctrl_set(). Seems many RNDIS hardware doesn't care about the overwritten fields, but the SunMicro Virtual Eth Device found in newer Oracle SPARC hardware does. ok armani@
2014-11-29rxr ioctl handling.brad1-4/+8
ok sf@
2014-11-28regenkettenis2-2/+17
2014-11-28Add a few entries for SPARC T3/T4/T5/M5 machines. The IDT 89H64H16G3 entrykettenis1-1/+4
is a bit of a guess, but it is the only PCIe Gen3 part listed on their website that has enough lanes/ports.
2014-11-27Previous change wasn't quite right and broke "classic' PCI sparc64 machines.kettenis1-16/+13
Undo the code rearrangement in rev. 1.108 but keep the sparc64-specific code dealing with non-prefetchable 64-bit BARs. Found out the hard way by stsp@
2014-11-27Another spot where the VLAN tag doesn't need swapping in the currentlybrad1-2/+2
unused TSO code. ok mikeb@
2014-11-27Garbage collect some bits that were never used.brad2-21/+2
ok mikeb@
2014-11-27Fix a long standing bug in MAC statistics register access. Onebrad4-30/+10
additional register was erroneously added in the MAC register set such that 7 TX statistics counters were wrong. From FreeBSD ok mikeb@
2014-11-27Use dv_xname instead of if_xname to establish our interrupt. The latter iskettenis1-3/+2
still unset when at this point, and some MD variants of pci_intr_establish(9) make a copy of the string instead of storing a pointer. Makes vmstat -i properly print the device name on sparc64. ok mikeb@, deraadt@
2014-11-27rxr ioctl handling.brad1-1/+6
2014-11-27rxr ioctl handling.brad1-1/+6
2014-11-26The onboard ix(4) interfaces on the SPARC T5 machines don't have a valid MACkettenis1-1/+13
address in their EEPROM. Use the MAC address given by the "local-mac-address" Open Firmware property instead. ok mikeb@, deraadt@
2014-11-26Seems Sun^H^H^HOracle is doing something naughty and (deliberately) putskettenis1-11/+31
non-prefetchable BARs of the onboard mpii(4) behind a prefetchable memory range on the bridge it sists behind. Since we rely on the formware to program BARs for us on sparc64, add a workaround to avoid whacking these BARs and make the machine panic later when it tries to access the registers. ok miod@, deraadt@
2014-11-26dont swap the vlan tag twice on big endian archs for transmit.dlg1-2/+2
ok mikeb@
2014-11-24rxr ioctl handling.brad1-1/+6
ok mpi@
2014-11-24Fix some issues with 64-bit BARs behind PCI-PCI bridges.kettenis2-4/+10
Actual BARs that have the upper 32-bits set seen in the wild now on a SPARC T5-2 system. Tested by many.
2014-11-24No point in setting the Interrupt-on Short Packet bit on OUT endpoint.mpi1-4/+5
As explained in section 4.11.7 it should be used when a device is allowed to supply less data than the provided buffer space.
2014-11-24In debug mode, print more information when a transfer is aborted and usempi1-10/+12
a different index value for a chained TRB and a freed one.
2014-11-24rxr ioctl handling.brad3-3/+17
2014-11-24Count how many lids are open, rather than accumulating the values ACPIderaadt1-13/+12
gives for true (could be "1", for all we know) ok mlarkin
2014-11-24- Check IFF_RUNNING in xl_intr().brad1-3/+6
From FreeBSD - Clear IFF_RUNNING at the top of xl_stop() before freeing resources. Tested with 3c905C.
2014-11-24use the correct capitalization for Realtek.brad17-50/+50
2014-11-24regenbrad1-3/+3
2014-11-24use the correct capitalization for Realtek.brad4-14/+27
2014-11-23regensasano2-7/+7
2014-11-23SILABS CP210X_4(0x10c4:0xea80) is no longer CP210x family.sasano1-2/+2
This is CP2110 USB-HID UART bridge, fixed. ok by mpi@
2014-11-23USB_VENDOR_SILABS:USB_PRODUCT_SILABS_CP210X_4(0x10c4:0xea80) issasano1-2/+1
not CP210x family. removed. ok mpi@
2014-11-23If a machine has no _LIDs, then none can be open. This diff fixes a problemmlarkin3-16/+27
where machines without any _LIDs were going back to sleep after hibernate due to the recent suspend-if-lid-closed-on-resume diff. Noticed on qemu, which doesn't have any _LIDs. discussed with deraadt
2014-11-23Revert the logic to skip ports which status hasn't changed, it introducesmpi1-33/+14
a regression reported by ajacoutot@.
2014-11-23Be less verbose when opening a pipe and print the endpoint & slotmpi1-25/+14
when submitting a command. No change for non-XHCI_DEBUG kernel.
2014-11-23Move link state handling into re_miibus_statchg().brad1-12/+35
From FreeBSD Tested with 8168D / 8168G.
2014-11-22Split the MP trampoline into two pages, one for code and one for data/stackmlarkin1-2/+2
and then protect the code page as RX and the data/stack page as RW (NX). ok deraadt@
2014-11-20Fix previous.landry1-1/+3
Build failure reported by Sebastien Marie testing & ok phessler@
2014-11-20Force a status check of all the ports of a newly attached hub. In thempi1-6/+7
interrupt routine properly initialize a variable. Finally stop talking about the "bus event handler thread". Our USB stack has only one thread doing discovery for all buses. Prompted by a report from Patrick Wildt.
2014-11-20oops, mangled the prototypederaadt1-1/+2
2014-11-20- Remove some unused #if 0'd code which does not pertain to OpenBSDbrad1-9/+1
- Remove a bogus if_ierrors++ which if the counter was incremented it would be overwritten by ixgbe_update_stats_counters() ok mikeb@
2014-11-20Rename slow_ovbcopy() to slow_bcopy(), since ovbcopy means nothing toderaadt1-10/+7
the young kids and old greybeards who know that bcopy has always handled the ov case.
2014-11-19Copy over some recent commits from ix(4)..brad1-20/+23
- remove pointless timeout_del/add dance in the interrupt handler - don't try to update the link status every second - Gather full statistics only when EM_DEBUG is defined ok mikeb@
2014-11-19Add support for stopping the operation of the chipset within re_stop()brad2-3/+43
for newer generations of chipsets. From FreeBSD Tested with 8169, 8168C, 8168D, 8168G and by stsp@ with WOL.
2014-11-18Nuke yet more obvious #include duplications.krw12-25/+12
ok miod@