summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2013-06-20Revert previous and unbreak asr, the new include should be protected.mpi1-2/+2
Reported by naddy@
2013-06-20Drop 3rd and 4th clauses from the BSD licence, from the following NetBSD'smpi3-15/+3
revision: sys/dev/acpi/asus_acpi.c r1.4 sys/dev/cardbus/cardbus_exrom.c r1.11 sys/dev/cardbus/cardbus_exrom.h r1.6 ok kettenis@
2013-06-20Allocate the various hook head descriptors as part of the ifnetmpi1-2/+2
structure rather than doing various M_WAITOK allocations during the *attach() functions, we always rely on them anyway. ok mikeb@, uebayasi@
2013-06-17Include <uvm/uvm.h> instead of <uvm/uvm_extern.h> to make surekettenis1-2/+2
"struct uvm_object" gets defined on macppc as well. ok miod@, deraadt@
2013-06-16Use (N * sizeof(u_int)) instead of (N * sizeof(int)) when malloc'ing u_int *.miod1-5/+5
Doesn't change anything, but silences a Clang warning; dhill@bitrig
2013-06-15When we disable the burner when X is running, also set sc_burnout to 0 tokettenis1-3/+7
prevent us from accidentally reenabling the burner. ok miod@
2013-06-15Add support for RTL8101E 10/100 PHY.kettenis1-1/+3
ok miod@, mikeb@
2013-06-15regenkettenis1-2/+4
2013-06-15Add RTL8101E 10/100 PHY.kettenis1-1/+2
ok miod@, mikeb@
2013-06-15sync with the latest linux version of radeon_drm.hjsg1-1/+27
adds definitions needed to compile recent versions of libdrm
2013-06-15add some definitions from the libdrm version of i915_drm.hjsg1-2/+3
needed to compile recent versions of libdrm
2013-06-14Correct interrupt moderation setting for 82598; tested on the CX4 versionmikeb1-6/+3
2013-06-13Random TX Backoff Register mask must be 0x3FF; ok beck, dlgmikeb1-2/+2
2013-06-13sync the userland facing radeon_drm.h with linuxjsg1-32/+94
ok mpi@ kettenis@
2013-06-13regen for previous commitmlarkin2-0/+35
2013-06-13Add some missing Intel pci devices found on various machinesmlarkin1-1/+8
ok deraadt
2013-06-12Add suspend/resume support to lpt. Basically, ensure that DACT_SUSPENDderaadt3-14/+82
stops the timeouts, and that DVACT_RESUME unwedges the soft state and bring the hardware state back to normal operation. Tested by rpe, thanks a lot!
2013-06-12Oops. I looked at slightly newer Linux code when doing the previous change.kettenis1-19/+4
This fixes things up to better match Linux 3.8.x, which we're currently tracking. No functional change.
2013-06-12Rework of the suspend/resume logic.mpi2-86/+75
Do not places the ports into suspend mode now that we detach/attach all USB devicess during a suspend/resume cycle. Emit a reset when reinitializing the controller after resume and try to use the same logic as in ehci_init(). Correctly wait for the controller to set the HCHalted bit to one before attempting a reset. Tested by many and have been in snap for a week.
2013-06-12Don't rely on __attribute__((__aligned__(x))) GCC extension. Explicitly pad descriptors.uebayasi2-6/+10
No binary change.
2013-06-12Consistenly use bpf_mtap_ether(). From tsubai@.uebayasi1-2/+2
2013-06-12Almost identical diffs from brad@ and dlg@:uebayasi1-41/+31
o OpenBSD'ify the vmx(4) receive filter handling code o IFF_ALLMULTI is like hte OACTIVE flag in that its only ever set and cleared by an interface driver. with that in mind, this reorders the config to do that and take advantage of it to conditionally configure the multicast filtering. o It also makes the code check if any multicast ranges have been configured, which every other driver interprets as "set ALLMULTI", so we do too now. o Add the usual ifdef INET guard to the ioctl code. OK yasuoka@ dlg@
2013-06-11Overhaul the {aviion,mvme68k,mvme88k} dart(4) driver and move the trulymiod3-0/+1175
machine-independent parts to MI land. The MI code now allow MD configuration of the various input and output ports, to allow for proper DCD/RTS/DTR monitoring and control. It will also allow the second set of baud rates to be used (when possible, i.e. if both ports can use the same BRG), allowing for 38400 bps mode.
2013-06-11Turn the allocation of GEM objects upside down and make the driverkettenis3-48/+94
responsible for allocating and freeing them. This is what Linux has been doing for a while now, and will be needed for radeondrm(4) in the near future.
2013-06-11Replace more ovbcopy with memmove; swap the src and dst arguments tooderaadt3-7/+7
2013-06-11Replace all ovbcopy with memmove; swap the src and dst arguments tooderaadt9-29/+29
ok otto
2013-06-11final removal of daddr64_t. daddr_t has been 64 bit for a long enoughderaadt16-89/+89
test period; i think 3 years ago the last bugs fell out. ok otto beck others
2013-06-10A couple of changes from Masanobu SAITOH <msaitoh@netbsd.org>:mikeb1-5/+5
- fixup the Random Backoff Register value masking; - keep the GPIO settings when modifying the Misc Local Control register value. Tested by Rob Sessink on 5719, David Imhoff on 5719, 5720, 5721, me on 5719 and 5715; ok dlg
2013-06-10Make use of pci_matchbyid().brad1-8/+6
ok yasuoka@
2013-06-09adapt to a pcidevs name changederaadt1-3/+3
2013-06-09syncderaadt2-453/+453
2013-06-09shorten many names to cope with uvm code growthderaadt1-226/+226
ok jsg
2013-06-08Remove redundant code setting PCI_COMMAND_MASTER_ENABLE as this is alreadybrad1-6/+2
taken care of by pci_mapreg_map(). Ok yasuoka@ uebayasi@
2013-06-07Add proper mmap(2) support for drm(4)/inteldrm(4). This changes thekettenis4-53/+212
DRM_I915_GEM_MMAP and DRM_I915_GEM_MMAP_GTT ioctls to be compatible with Linux. This also is the first step that moves us away from accessing all graphics memory through the GTT, which should make things faster. ok tedu@ (for the uvm bits)
2013-06-06Add the remaining support code for 4th gen Intel Core/Haswell graphicsjsg2-2/+259
and match the same pci devices Linux does. Untested for lack of hardware but should work. Note that 3D/OpenGL won't work until we update to a newer version of Mesa, which can't happen until the Radeon KMS work is ready. ok deraadt@
2013-06-06regenjsg2-2/+302
2013-06-06add 4th gen Intel Core/Haswell graphics devicesjsg1-1/+61
ok deraadt@
2013-06-06dont count rx ring overruns as input errors. with MCLGETI controlling thedlg1-4/+2
ring we expect to run out of rx descriptors as a matter of course, its not an error. ok mikeb@
2013-06-05tweak vmxnet3_load_mbuf to use m_pulldown to safely reach into the mbuf fordlg1-47/+37
the tcp/udp headers and to make theyre contiguous for the hypervisors offload to work correctly. use m_defrag instead of handrolling a copy of a heavily fragmented mbuf into a single mbuf or cluster. ok reyk@ yasuoka@
2013-06-04Prevent panic'ing on alpha after ifconfig'ing up an unplugged de interface,miod1-23/+28
by making tulip_txput() aware of whether or not the mbuf it is processing is in if_snq or not, rather than abusing the TULIP_TXPROBE_ACTIVE flag. Found the hard way by kurt@, tested on AlphaServer 1000A, I've been sleeping on this diff for about 3 years.
2013-06-04remove orphaned macrosmiod1-5/+1
2013-06-04A couple of style/comment fixes from FreeBSD, with input frommikeb1-14/+7
David Imhoff. No functional change.
2013-06-04Substitute a couple of magic numbers with newly added PCIEmikeb1-3/+3
DCTL flag defines. Now with the right defines, doh!
2013-06-04Substitute a couple of magic numbers with newly added PCIEmikeb1-5/+5
DCTL flag defines. No binary change.
2013-06-03remove unless linesyuo1-6/+1
ok reyk@ deraadt@
2013-06-03Define some more DCSR/DCTL bits; ok kettenismikeb1-2/+8
2013-06-03vmxnet3_load_mbuf() could replace the mbuf but did not return the newreyk1-6/+6
one which caused the following Tx bpf call to panic. Instead of moving the bpf hook in front of the vmxnet3_load_mbuf() function, we return the updated mbuf because we want don't want to see packets that don't go on the wire/chipset. Analyzed and discussed with yasuoka@ uebayasi@ OK yasuoka@ uebayasi@
2013-06-03Correctly increment the refcounter when trying to open a non connectedmpi1-20/+51
serial. Fix a panic triggered by removing the USB device while the opener is sleeping holding a reference to the softc. Found the hardway by tobiasu@. While here add more sanity checks to avoid races when the driver is being detached. ok tobiasu@
2013-06-03Use IF_POLL to check for available transmit descriptors before IF_DEQUEUE.reyk1-2/+5
ok uebayasi@ yasuoka@ dlg@
2013-06-02support aml_store to a method object to override itjcs1-1/+9
resolves a problem parsing the AML on an ASUS UX21A originally from armani@ ok kettenis@