summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2013-04-19Remove allocm() and freem() from the USB bus interface now that theyMartin Pieuchot
are only used as wrappers around usb_{alloc,free}mem(). ok deraadt@, mglocker@
2013-04-19Remove unused usbd_get_buffer() function.Martin Pieuchot
2013-04-18"160 chars ought to be enough for everybody"Mark Kettenis
2013-04-18pin the acpi thread to the BSP, because AML and SMI cannot be trusted. ITheo de Raadt
was certain we were doing this already, but it turns out no...
2013-04-18Move over function prototypes from ubsdi.h to usb.c which just get usedMarcus Glocker
there. Some spacing while here. Suggested and ok mpi@
2013-04-17Also accelerate scrolling backwards.Mark Kettenis
2013-04-17Add support for 16bpp mode to code that interfaces with the rasops(9) code.Mark Kettenis
2013-04-17Another round of reducing diffs with Linux code.Mark Kettenis
2013-04-17uvm_extern.h not uvm.hTed Unangst
2013-04-17Add new ioctl command USB_DEVICE_GET_DDESC to usb(4) to retrieve theMarcus Glocker
device descriptor. Help and ok mpi@
2013-04-16spelling errors; Diego CasatiTheo de Raadt
2013-04-16Don't be too clever when allocating a buffer for a transfer and do notMartin Pieuchot
pre-allocate TDs to put them in the free list. ok deraadt@, mglocker@
2013-04-16Merge ohci_hash_rem_td() into ohci_free_std() to reduce differences withMartin Pieuchot
uhci(4). No functional change. ok mglocker@
2013-04-15Get rid of various 'typedef struct' definitions and use plain structureMarcus Glocker
definitions instead. We don't change usb.h for now to stay compatible with userland. Tested by mpi@ on macppc and myself on i386. ok mpi@
2013-04-15Revert r1.37 now that we stop after the first matching protocol, testedMartin Pieuchot
by Peter J. Philipp, thanks.
2013-04-15Move the IntelliMouse protocol definition after Elantech ones, because someMartin Pieuchot
touchpads support both of them and we want to pick the latter. Reported by Peter J. Philipp, thanks.
2013-04-15Don't probe for all supported protocols this can confuse some touchpads andMartin Pieuchot
makes it harder to pick the right protocol if a device answers to more than one magic sequence. Tested by many on tech@, ok shadchin@
2013-04-14Add escape codes for F21 to F24, continuing the existing sequence. Note thatMiod Vallat
vt100 and vt220 do not have such function keys, and there is no clear consensus, for terminal emulations supporting F21 to F24, of the escape codes to use (linux stops at F20, and Wyse and QNX use incompatible sequences for keys up to F20). From "Creamy" on tech@
2013-04-14regenMiod Vallat
2013-04-14Get USB F13 to F24 keys from the PS/2 layout, rather than as extra entries, now.Miod Vallat
2013-04-14Support for F13-F24 keys found on IBM 122-key keyboards.Miod Vallat
From "Creamy" on tech@
2013-04-14Take a different approach towards framebuffer accelartion. Instead of usingMark Kettenis
the blitter, scroll by double-mapping the framebuffer and reprogramming the registers that determine the first visible pixel, much in the same way as the vga text console uses the 6845. This makes scrolling very fast, and since we no longer need to issue commands to any of the rings, we can enable this when X is running and safely scroll when printing panic messages or if we've entered ddb. Testes by many.
2013-04-14Be sure to turn hsync/vsync back on at crt enable (v2)Jonathan Gray
from linux 3.8.7
2013-04-14add some acer quirks from linux 3.8.7Jonathan Gray
2013-04-13Perform a warm reset instead of putting the hardware into full sleep modeStefan Sperling
to avoid system hangs upon 'ifconfig down up' with some AR5212 hardware. Linux uses the same workaround. Diff from Dinar Talypov (t.dinar.m at gmail).
2013-04-12usbd_setup_default_xfer() already use the default device's pipe so there'sMartin Pieuchot
no need to reset it afterward.
2013-04-12Instead of using a wrapper around usbd_transfer() when submitting aMartin Pieuchot
transfer synchronously just pass the USBD_SYNCHRONOUS flag like any other flags when creating a transfer. ok sthen@, mglocker@
2013-04-12Now we can handle bitbanging enable the fallback method of gettingJonathan Gray
the crt edid if normal gmbus access failed. Seems to resolve problems Christopher Zimmermann was seeing fetching the crt edid.
2013-04-11Merge usbd_ar_pipe in usbd_abort_pipe, no functional change.Martin Pieuchot
ok ratchov@, mglocker@
2013-04-10Merge usbd_get_device_desc() into the only function using them.Martin Pieuchot
ok mglocker@
2013-04-10Instead of refetching the descriptor from the device, just use the copyMartin Pieuchot
already in memory retrieved during the autoconf USB attach logic. This is a good example of how confusing can be the usbd_get_* functions. ok mglocker@
2013-04-10Merge usb_devinfo* helper functions into usbd_print(), nothing else useMartin Pieuchot
them. ok ratchov@, mglocker@
2013-04-10Remove unused function usb_find_desc().Martin Pieuchot
2013-04-10Fix various glitches in queue macro usage.Philip Guenther
ok millert@
2013-04-09When submitting a request the device's default pipe is alwaysMartin Pieuchot
used, so do not pretend to support a different one and get rid of the unused usbd_do_request_flags_pipe() function. ok mglocker@
2013-04-09There's no need for usbd_get_config_desc_full() so just call usbd_get_desc()Martin Pieuchot
directly this also makes it easier to understand which function actually generates IO. ok mglocker@
2013-04-08A few changes that reduce the diffs to the Linux code. Mostly style issues,Mark Kettenis
but in one case change the errno value that gets returened to match Linux.
2013-04-08Add new ioctl's USB_DEVICE_GET_CDESC and USB_DEVICE_GET_FDESC to usb(4).Marcus Glocker
Those are the equivalents for ugen(4)'s USB_GET_CONFIG_DESC and USB_GET_FULL_DESC. Help and OK mpi@, jmc@
2013-04-08Fix typo in ale_stop_mac().Brad Smith
From FreeBSD ok kevlo@
2013-04-08Use the fixed pixel clock for eDP in intel_dp_set_m_n()Jonathan Gray
from linux 3.8.6
2013-04-08Don't clobber crtc->fb when queue_flip failsJonathan Gray
from linux 3.8.6
2013-04-07check BGE_SGDIG_STS when the chip is NOT a 5717 A0, like freebsd.David Gwynne
found by david imhoff. tested by david on a 5719 and by me on a 5720 and 5721
2013-04-07david imhoff points out that the error handling in mfi_init_ccb gets theDavid Gwynne
index to which ccb to free wrong. this takes the logic from mpi/mpii/mfii which pulls the ready ccbs off the free list rather than rely on the current index from the for loop that we failed inside of. thanks to david for finding this out.
2013-04-06fix format string % escapeStefan Fritsch
2013-04-05Even though Sandy Bridge and Ivy Bridge have stolen memory, substracting itMark Kettenis
from the GTT aperture doesn't make a lot of sense. On some machines the amount of stolen memory is the same size of even larger than the aperture! So pretend that there is no stolen memory on these systems for now. ok jsg@
2013-04-05unfinished opti device code is never called or usedTed Unangst
2013-04-05Fix USB athn(4) to be able to build on the RAMDISK. RAMDISK has SMALL_KERNELBrad Smith
so there is no HostAP. athn_usb_newassoc() would return if not in HostAP mode so just stub out the function and don't build the callback function for the RAMDISK. ok deraadt@
2013-04-05move the bounds check for execbuffer relocation count closer to linuxJonathan Gray
ok kettenis@
2013-04-04regenBrad Smith
2013-04-04Add Broadcom BCM5717C, BCM5725, BCM5727, BCM5762 PCI ids.Brad Smith