summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2015-07-19Remove unneeded #include <disklabel.h>.Kenneth R Westerback
ok jsing@
2015-07-19Stop passing daddr_t parameters for lengths. Use long since that's the typeKenneth R Westerback
of the destination fields. ok jsing@
2015-07-19Change some obviously incorrect usages of daddr_t (a DEV_BSIZEKenneth R Westerback
address) to 64 signed or unsigned ints. Add some paranoia checks during partition size calculations to account for the fact that partition sizes (DL_GETPSIZE()) are unsigned values. More daddr_t rectification to do. ok jsing@
2015-07-19Oops. Missed a file from offset commit.Kenneth R Westerback
2015-07-19Stop adding and subtracting data offset. Just keep to chunk relativeKenneth R Westerback
block offsets until actual i/o is constructed and needs the physical offset. Eliminate a number of <<DEV_BSIZE shifts as a bonus. No intentional functional change. Fixed and ok jsing@
2015-07-19Stop adding and subtracting data offset. Just keep to chunk relativeKenneth R Westerback
block offsets until actual i/o is constructed and needs the physical offset. Eliminate a number of <<DEV_BSIZE shifts as a bonus. No intentional functional change. Fixed and ok jsing@
2015-07-19Use DEV_BSIZE instead of 512 where appropriate. Use DL_SECTOBLK()Kenneth R Westerback
where appropriate. Noop for disks with 512-byte sectors. i.e. the only kind currently allowed in softraid volumes. But starts laying the groundwork to allow disks with other sector sizes. ok jsing@
2015-07-19Don't emit values for 'width' thatKenneth R Westerback
/usr/xenocara/driver/xf86-input-synaptics/src/wsconscomm.c doesn't understand. 'Fixes' synaptics trackpad in Dell L400 laptop so the cursor can be moved in X. Problem noted and experimental Dell L400 donated by Paolo Aglialoro. Thanks! ok miod@ mpi@ jcs@
2015-07-19use standardized register defintion in mii.h rather than specificYojiro Uo
driver definetion. ok deraadt@
2015-07-19regenYojiro Uo
2015-07-19add RTL8211Yojiro Uo
2015-07-19use standardized register definition in mii.h rather than eachYojiro Uo
specific driver definition. no logical change. ok deraadt@
2015-07-19revert privious commitYojiro Uo
2015-07-19simplify a triple-deep ternary operation.Brent Cook
ok beck@ krw@
2015-07-19according to MII specification, these seems to be bug.Yojiro Uo
ok deraadt@
2015-07-18fix typo.Yojiro Uo
2015-07-18add following registers from IEEE 802.3-2009 Clause 22.Yojiro Uo
- PSE control register (0x0b) - PSE status register (0x0c) - MMD access control register (0x0d) - MMD access address data register (0x0e) from netbsd ok deraadt@, miod@
2015-07-18virtio_pci: Do the ISR read without kernel lockStefan Fritsch
The ISR read is relatively expensive because it causes a vmexit. Grab the kernel lock only after it is done.
2015-07-18If _CST provides a C2 or C3 but lacks a C1 that we understand, provide aPhilip Guenther
fallback C1 state using 'halt' tested in snaps for a bit problem laptops noted by and oks okan@ and kettenis@
2015-07-18Shuffle include file ordering in preparation for future changes in vgavar.h,Miod Vallat
which will have it depend upon wsdisplayvar.h.
2015-07-18KNF fixesStefan Fritsch
No object file changes besides line numbers in KASSERTs
2015-07-17add missing braces to only call selrecord when intended toJonathan Gray
ok deraadt@ millert@
2015-07-17fix commentsMike Larkin
2015-07-17Nuke a bunch of leading and trailing whitespace so I don't go blindKenneth R Westerback
reading this code. No intentional functional change.
2015-07-17fix compilation with ACPI_DEBUGJoshua Stein
2015-07-17fix typo.Yojiro Uo
2015-07-16Introduce a Linux compatible wait_event API and use it in the inteldrm code.Mark Kettenis
ok jsg@, guenther@
2015-07-16Expand ancient NTOHL/NTOHS/HTONS/HTONL macros.Martin Pieuchot
ok guenther@, henning@
2015-07-16add USB3.0 related codeYojiro Uo
2015-07-16ignore 4 byte trailing padding of each recv packet, when copying to upperYojiro Uo
layer.
2015-07-16fix recv packet header definitonYojiro Uo
2015-07-15add some definitions from libdrm 2.4.62Jonathan Gray
2015-07-15Fix urtw(4) error code paths to not panic the kernel. Makes the driver workStefan Sperling
with a somewhat flaky urtw(4) device of mine. ok mpi@
2015-07-15Use mallocarray() and unsigned integers.Miod Vallat
2015-07-15Match another Netgear WG111T. This one shares the Non-Firmware ID of aMartin Pieuchot
another device. ok stsp@
2015-07-15regenMartin Pieuchot
2015-07-15Another ID for the Netgear WG111T.Martin Pieuchot
2015-07-15Fix two bugs in the variable keys handling:Miod Vallat
- do not overrun the array if there are more than MAXVARS, by using the proper variable in the check. - correctly allow up to MAXVARS (128), not strictly less than. This makes mlarkin's new shiny Corsair K70 RGB gaming keyboard work. Tested by and ok mlarkin@
2015-07-15add support for newer PCsensor TEMPerHUM thermo- and hygrometers:Joerg Jung
TEMPerHUM1V1.2 tested by Raf Czlonka via bugs@ and TEMPerHUM1V1.0 tested by myself earlier version tested by sasano, input from mpi@ and deraadt ok mpi@
2015-07-15Fix a crash caused by uath(4) if device init fails.Stefan Sperling
usbd_close_pipes() now implies xfer cancellation and this driver was relying on assumptions from times when it didn't. With and ok mpi@
2015-07-12Do not trust the hardware when it says that the number of remainingMartin Pieuchot
bytes to transfer is superior to the length of the transfer. Found by krw@ with an ETRON controller.
2015-07-11Make use of recent drm_linux.h additions to further reduce theJonathan Gray
diff to linux. ok kettenis@
2015-07-10usbd_{endpoint,interface}_count() are no longer used and die.Martin Pieuchot
2015-07-10Do not use usbd_endpoint_count() and usbd_interface_count(), thesesMartin Pieuchot
functions are almost unused and create confusion. Do like the rest of the drivers and simply get an interface or device descriptor. Tested by ajacoutot@ and Grant Czajkowski, thanks!
2015-07-09Revert previous, doesn't fix anything. I managed to reproduceStefan Sperling
the problem on one of my machines and the patch doesn't help. See http://marc.info/?l=openbsd-tech&m=143645936727569&w=2
2015-07-09Move the softc definition to uvideo.c so that userland can includeMartin Pieuchot
<dev/usb/uvideo.h> to get USB video descriptor definitions. from Ludovic Coues.
2015-07-09Allow more time for USB athn(4) firmware boot. It seems people on daemonforumsStefan Sperling
are running into the previous 1 second timeout on some machines, which the driver will treat as fatal. Not sure if this will really fix the issue but it won't hurt. Also reported in NetBSD land which inherited our driver: http://mail-index.netbsd.org/current-users/2014/05/06/msg024793.html ok mpi@
2015-07-09Do not use usbd_endpoint_count(), this function is almost unused andMartin Pieuchot
creates confusion. Do like the rest of the drivers and simply get a interface descriptor with usbd_get_interface_descriptor(). Tested by stsp@
2015-07-09Name unamed structures, from Ludovic Coues with some tweaks.Martin Pieuchot
2015-07-08Fix a use-after-free, from Maxime Villard w/ Brainy.Martin Pieuchot
ok jsg@