summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2013-06-20Allocate the various hook head descriptors as part of the ifnetMartin Pieuchot
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 sureMark Kettenis
"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 *.Miod Vallat
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 toMark Kettenis
prevent us from accidentally reenabling the burner. ok miod@
2013-06-15Add support for RTL8101E 10/100 PHY.Mark Kettenis
ok miod@, mikeb@
2013-06-15regenMark Kettenis
2013-06-15Add RTL8101E 10/100 PHY.Mark Kettenis
ok miod@, mikeb@
2013-06-15sync with the latest linux version of radeon_drm.hJonathan Gray
adds definitions needed to compile recent versions of libdrm
2013-06-15add some definitions from the libdrm version of i915_drm.hJonathan Gray
needed to compile recent versions of libdrm
2013-06-14Correct interrupt moderation setting for 82598; tested on the CX4 versionMike Belopuhov
2013-06-13Random TX Backoff Register mask must be 0x3FF; ok beck, dlgMike Belopuhov
2013-06-13sync the userland facing radeon_drm.h with linuxJonathan Gray
ok mpi@ kettenis@
2013-06-13regen for previous commitMike Larkin
2013-06-13Add some missing Intel pci devices found on various machinesMike Larkin
ok deraadt
2013-06-12Add suspend/resume support to lpt. Basically, ensure that DACT_SUSPENDTheo de Raadt
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.Mark Kettenis
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.Martin Pieuchot
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 ↵Masao Uebayashi
descriptors. No binary change.
2013-06-12Consistenly use bpf_mtap_ether(). From tsubai@.Masao Uebayashi
2013-06-12Almost identical diffs from brad@ and dlg@:Masao Uebayashi
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 trulyMiod Vallat
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 driverMark Kettenis
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 tooTheo de Raadt
2013-06-11Replace all ovbcopy with memmove; swap the src and dst arguments tooTheo de Raadt
ok otto
2013-06-11final removal of daddr64_t. daddr_t has been 64 bit for a long enoughTheo de Raadt
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>:Mike Belopuhov
- 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().Brad Smith
ok yasuoka@
2013-06-09adapt to a pcidevs name changeTheo de Raadt
2013-06-09syncTheo de Raadt
2013-06-09shorten many names to cope with uvm code growthTheo de Raadt
ok jsg
2013-06-08Remove redundant code setting PCI_COMMAND_MASTER_ENABLE as this is alreadyBrad Smith
taken care of by pci_mapreg_map(). Ok yasuoka@ uebayasi@
2013-06-07Add proper mmap(2) support for drm(4)/inteldrm(4). This changes theMark Kettenis
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 graphicsJonathan Gray
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-06regenJonathan Gray
2013-06-06add 4th gen Intel Core/Haswell graphics devicesJonathan Gray
ok deraadt@
2013-06-06dont count rx ring overruns as input errors. with MCLGETI controlling theDavid Gwynne
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 forDavid Gwynne
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,Miod Vallat
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 macrosMiod Vallat
2013-06-04A couple of style/comment fixes from FreeBSD, with input fromMike Belopuhov
David Imhoff. No functional change.
2013-06-04Substitute a couple of magic numbers with newly added PCIEMike Belopuhov
DCTL flag defines. Now with the right defines, doh!
2013-06-04Substitute a couple of magic numbers with newly added PCIEMike Belopuhov
DCTL flag defines. No binary change.
2013-06-03remove unless linesYojiro Uo
ok reyk@ deraadt@
2013-06-03Define some more DCSR/DCTL bits; ok kettenisMike Belopuhov
2013-06-03vmxnet3_load_mbuf() could replace the mbuf but did not return the newReyk Floeter
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 connectedMartin Pieuchot
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.Reyk Floeter
ok uebayasi@ yasuoka@ dlg@
2013-06-02support aml_store to a method object to override itjoshua stein
resolves a problem parsing the AML on an ASUS UX21A originally from armani@ ok kettenis@
2013-06-02The AML on the Lanner FW-8758 does a Store() to a named object that's neverMark Kettenis
actually defined. The ACPI standard isn't clear wether this is allowed, but it makes some sense to just initialize the object with the source of the Store(). Fixes the resulting panic on that particular machine. ok mlarkin@
2013-06-01Stop printing ACPI wakeup devices in dmesg after the 16th wakeup device.Mike Larkin
Helps with VMware VMs that report hundreds of wakeup devices. ok reyk@, deraadt@