summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2013-09-17regenkettenis2-20/+90
2013-09-17Rename existing AMD Family 15h Models 00h-0Fh Processor entries and addkettenis2-9/+23
a bunch of AMD Family 15h Models 10h-1Fh Processor entries.
2013-09-15Make it clearer that sc_wdc_bio.blkno is actuall a disk hardwarekrw1-8/+9
address by using the DL_BLKTOSEC() and DL_SECTOBLK() defines rather than handrolling the equivalent. Fixes current addition of a 512-byte block value (b_blkno) to a disk hardware address (DL_GETPOFFSET()). Tested on real wd(4) hardware by guenther@.
2013-09-13Fix sign of returned error code.kettenis1-2/+2
ok jsg@
2013-09-12sync drm_mm with linux 3.8.13jsg2-144/+425
2013-09-12Add basic support for eMMC memory.rapha5-11/+214
Heavily based on netbsd. Tested by dlg@, bcallah@ (sdhc), stsp@ (rstx) and me (ommmc). ok patrick@
2013-09-11regenkettenis2-2/+7
2013-09-11Another AMD Hudson-2 PCIE bridge.kettenis1-1/+2
2013-09-10Enable some code that seems to relate to an errata forjsg1-2/+4
Crystalwell/eDRAM Haswell parts. Original linux commit mesage: 'This magic brings stability to HSW CRW machines.'
2013-09-08switch to using linux style pci match tablesjsg5-1446/+857
fixes some omissions and flag errors for radeon and removes the duplicate table for i915
2013-09-08Unbreak vmx(4) on i386. The right shift of 32 bits for the DSHreyk1-2/+2
register (driver shared address high) exceeded the width of the 32bit bus address; casting the address to a 64bit type will correctly result in a zero value on i386 and the high bits on amd64.
2013-09-06need sys/device.hderaadt1-1/+2
2013-09-06Fix build with USB_DEBUG defined, pipes don't have refcounters anymore.mpi1-3/+3
From Nils Frohberg.
2013-09-06Missing semicolons.mpi1-3/+3
ok jsg@
2013-09-05ugold(4) is a driver for PCsensor's USB gold TEMPer temperaturesasano5-5/+273
measurement device (idVendor:idProduct=0x0c45:0x7401). newly added. ok by mpi@ and sthen@
2013-09-03When /dev/wsmouse is opened right after resume, some synaptics touchpadsstsp1-6/+35
are still taking time to wake up. So make the pms(4) driver wait a little longer before giving up on them. Fixes mouse after resume on my x130e TP. ok mpi, earlier versions tested by weerd with no regressions seen
2013-09-03Only free the per-protocol descriptor if a touchpad cannot be correctlympi1-42/+29
identified during attach. This prevents the driver to downgrade itself to use the standard mouse protocol and reattach a new wsmouse child if something bad happens when we re-query the hardware (during resume for example). Discussed with and ok stsp@
2013-09-02fb refcount must be initialised to 1 not 0 to match the behaviourjsg1-4/+5
of the linux kref functions. Switch to using the FreeBSD refcount api for the fb refcount while here.
2013-09-02use DRM_MEMORYBARRIER() for smp_mb__*jsg3-10/+14
2013-09-02add static back to functions that originally had itjsg8-722/+338
reduces the diff to linux
2013-09-01drm/radeon: update line buffer allocation for dce6jsg2-6/+25
We need to allocate line buffer to each display when setting up the watermarks. Failure to do so can lead to a blank screen. This fixes blank screen problems on dce6 asics. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=64850 from a proposed Linux patch by Alex Deucher of AMD. Fixes problems with multiple displays on pitcairn reported by Alexis de BRUYN.
2013-09-01drm/radeon: update line buffer allocation for dce4.1/5jsg2-6/+27
We need to allocate line buffer to each display when setting up the watermarks. Failure to do so can lead to a blank screen. This fixes blank screen problems on dce4.1/5 asics. from a proposed Linux patch by Alex Deucher of AMD.
2013-08-30Turn on msi for mfii(4).haesbaert1-2/+2
There is a family of Supermicro boards where the apic pin is incorrectly mapped on acpi, it tells us the pin for "Intel boot interrupts". Since this is a fairly new chip, lets use MSI as no one else is probably using it via apic, this fixes the routing issues. Machines/Motherboards seen so far with incorrect routing: Supermicro X9DR3-F Supermicro X9DRH + Symbios Logic MegaRAID SAS2208 Fujitsu primergy RX300 S7 + Symbios Logic MegaRAID SAS2208 ok dlg@
2013-08-29Add support for advanced btcoex. This commit is not really neededsyl2-11/+121
but it reduces the diff against the FreeBSD version. Tested on: My Wifi Link 130. jca@ Wifi Link 5300. Jan Stary Wifi Link 4965 (thanks). Adapted from FreeBSD r220894. ok mpi@.
2013-08-28vmx(4) uses 4 different types of 128bit descriptors in little-endianreyk2-92/+139
format for Rx and Tx. Replace the bit fields in the descriptor structs with 32bit words to access them with traditional bit operations using shifts and masks. We try to avoid bit fields in OpenBSD. For consistence with other drivers, this change also uses letoh32/htole32 endianess conversions even if it is very unlikely that vmx will ever run on a big-endian VM/host. discussed with uebayasi@ and deraadt@
2013-08-27Give RS400/RS480/RS690 another chance. These were previously disabledjsg1-7/+1
with the old radeondrm code but should work now.
2013-08-27implement drm_pcie_get_speed_cap_mask()jsg1-24/+24
non integrated radeon >= r600 parts will now try to enable PCIe 2.0/3.0 speeds when the PCIe root port advertises the relevant speeds.
2013-08-27stash pci chipset and bridge tags in the drm_device structjsg2-2/+13
2013-08-26add a define for the link capabilities register forjsg1-1/+3
version 2 of the PCIe capability.
2013-08-26Add a stubbed out version of drm_pcie_get_speed_cap_mask() andjsg5-21/+63
enable all the code in the various radeon pcie_gen2_enable() functions. no functional change
2013-08-26remove an uneeded printfjsg1-3/+1
2013-08-25call if_link_state_change when link state actually changes; ok claudiomikeb1-6/+11
2013-08-25regenjsg2-2/+47
2013-08-25new ciss devices from Scott Benesh of HP via FreeBSDjsg2-2/+20
2013-08-23don't call if_link_state_change if link state is not changedmikeb1-29/+28
and fix minor discrepancies with link state handling
2013-08-23don't call if_link_state_change if link state is not changedmikeb1-8/+8
2013-08-22Remove a mac68k leftover, no object change.mpi1-11/+1
2013-08-21Add an indicator sensor to acpibtnX reflecting lid status when available,landry1-3/+22
useful for people not using machdep.lidsuspend. sysutils/upower will make use of this soon. Note that on some laptops, no LID event is triggered upon resume when using machdep.lidsuspend, so the value might be false in this case.. Tested by rpe@ on a variety of Lenovo HW, thanks! ok kettenis@ deraadt@
2013-08-21Fix build without vlan.mpi1-1/+3
ok mikeb@
2013-08-21Unswap address and configuration value arguments in a debug printf.mpi1-3/+3
2013-08-21get rid of the copy argument in m_devget that let you provide andlg16-37/+34
alternative to bcopy since noone uses it. while there use memcpy instead of bcopy because we know the memory cannot overlap. ok henning@ matthew@ mikeb@ deraadt@
2013-08-20Define WS_DEFAULT_FG and WS_DEFAULT_BG as default colors (black on white forkettenis2-4/+23
sparc/sparc64, white on black for everybody else), and use them to construct a default color attribute in the rasops(4) code. ok miod@
2013-08-20Remove uscanner(4). It was disabled in GENERIC more than 2.5 years ago.ajacoutot2-685/+1
No regression has been reported since libusb became the prefered solution to work with USB scanners. req. by mpi@ ok ian@ mpi@ miod@
2013-08-20tedu netnatm and ueagle(4).mpi4-1786/+1
ok mikeb@, sthen@, tedu@ (implied), doc bits ok jmc@
2013-08-20regenjsg2-33/+114
2013-08-20add some urtwn device ids found in the windows driverjsg2-9/+42
2013-08-19regenjsg2-4/+9
2013-08-19Add IO-DATA WN-G150UM from William Dunand.jsg2-2/+4
2013-08-18While we forceably detach radeondrm on fatal error in initjsg5-11/+15
non fatal errors with >= r600 could result in an unuseable system. Avoid this by always programming the MC on startup. Patch from Alex Deucher in Linux based on a change from kettenis to program the MC on failure to load firmware for cayman/aruba. ok kettenis@
2013-08-17Remove unnecessary activate functions and unused DPRINTFN macros.sthen2-50/+8
Req by and OK mpi@.