summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2015-09-01Reject USB requests that could damage the bus integrity, just like itMartin Pieuchot
is done in ugen(4). Found by Grant Czajkowski during the GSoC 2015.
2015-09-01Use the correct free(9) size for the RX ring.Martin Pieuchot
ok dlg@, phessler@
2015-09-01sizes for free(), mostly related to firmwares.Theo de Raadt
ok dlg
2015-09-01free() firmware with right len; ok dlgTheo de Raadt
2015-09-01size for free()Theo de Raadt
2015-09-01uses sizes for free()Theo de Raadt
2015-08-31Use one xfer per pipe instead of doing an alloc/free dance for everyMartin Pieuchot
usbd_transfer(9). This fixes a use-after-free. Bug found by and diff from John L. Scarfone <john AT scarfone DOT net>
2015-08-30Modify kernel to prepare boot from UEFI.YASUOKA Masahiko
- Add new boot arg "bios_efi_info_t" to pass the paramters from UEFI - Make bios(4) and acpi(4) be able to probe with the parameters from UEFI - Add efifb(8). It uses the framebuffer from UEFI and it will work as a backend of wsdisplay(4) and wsfb (X11 video driver). Disabled by the kernel config for this moment input and ok kettenis
2015-08-30Add the number of midi ports to the card description, and use it toAlexandre Ratchov
prevent cards with no midi connectors from attaching midi(4) devices.
2015-08-30size for free(); ok krwTheo de Raadt
2015-08-30Track rom size, for free()Theo de Raadt
2015-08-29firmware sizes are known; use them for free()Theo de Raadt
2015-08-29video sub-drivers will not return EINVAL in size variable. (Well,Theo de Raadt
a broken USB driver could, then what happens?) 0 is the right error. Also, keep track the size for free()
2015-08-29Set the rx mbuf size to MCLBYTES + ETHER_ALIGN for strict alignmentMark Kettenis
architectures to communicate better what size is needed to mclgeti. Makes ix(4) consistent with em(4). ok mikeb@, dlg@
2015-08-29_NLIST_DO_ELF is no longer needed: it's the only optionPhilip Guenther
ok deraadt@
2015-08-28Set the midi_isopen flag to zero before the chip is reset, as the flagAlexandre Ratchov
is used to determine the interrupt mask. Currently this doesn't matter, but once suspend/resume works, this will matter.
2015-08-28remove forgotten debug printf in envy_midi_closeAlexandre Ratchov
2015-08-28Disable interrupts while the midi uart is not in use. Avoids generatingAlexandre Ratchov
unused interrupts when a chatty peripheral is connected but is not used.
2015-08-28Fix compiling a kernel without NBPFILTER > 0.Reyk Floeter
OK mikeb@
2015-08-28Fix support of M-Audio Delta 44 cards that use different GPIO pins,Alexandre Ratchov
than other Delta cards.
2015-08-28fairly simple sizes for free(); ok teduTheo de Raadt
2015-08-27size for free()Theo de Raadt
2015-08-27fairly simple size for free()Theo de Raadt
2015-08-27sizes for free()Theo de Raadt
2015-08-27simple sizes for free()Theo de Raadt
2015-08-27simple size for free()Theo de Raadt
2015-08-27simple sizes for free()Theo de Raadt
2015-08-26Simple size for free(). These are a pleasure to convert when theTheo de Raadt
allocation is clearly spelled out as ptr = malloc(sizeof(*ptr), ...)
2015-08-26two simple sizes to free()Theo de Raadt
2015-08-26trivial size to free()Theo de Raadt
2015-08-26Get rid if em_align. This approach used to make sense, but now that theMark Kettenis
hardware rx mtu always gets set to the maximum supported value we will hit it for every received packet. Instead, use a larger mbuf cluster size on strict alignment architectures such that we can always m_adj to make sure the packets are properly aligned. This wastes some memory but simplifies things considerably. Hopefully we can reduce the spillage in the near future by taking advantage of recent improvements in the pool code. ok mpi@, mikeb@, dlg@
2015-08-25trivial size argument for free()Theo de Raadt
2015-08-25obvious sizes for free()Theo de Raadt
2015-08-25sizes for simple free() callsTheo de Raadt
2015-08-24Audio on the T400/T410/T510/T420/T520/X220/X220t docks needs a quirkJonathan Gray
for the pin configuration as well. From Dmitry Alenichev. ok mlarkin@
2015-08-24Add some additional urtwn ids found in the linux rtl8192cu driver.Jonathan Gray
ok stsp@
2015-08-24regenJonathan Gray
2015-08-24Add some additional urtwn ids found in the linux rtl8192cu driver.Jonathan Gray
ok stsp@
2015-08-23Make Atom S1200 UART work; Atanas Vladimirov has one.Theo de Raadt
2015-08-23fairly trivial sizes for free()Theo de Raadt
2015-08-22Make urtwn(4) attach to Netgear WNA1000Mv2. From Mark Willson.Stefan Sperling
2015-08-22regenStefan Sperling
2015-08-22Add device ID for Netgear WNA1000Mv2. From Mark Willson via misc@Stefan Sperling
2015-08-21Run the part of the interrupt handler that does rx completion without holdingMark Kettenis
the kernel lock. ok mpi@, dlg@
2015-08-21enable beep and CD controls on ALC292Jonathan Gray
2015-08-20Respect the access size when reading or writing to pci config space.Mark Kettenis
This version also makes sure writes are properly aligned, preventing the panics seen with the previous incarnation of this change. Fixes battery status passthrough in vmware, brightness keys on my x220 and who knows what else. ok mlarkin@, deraadt@
2015-08-20Enable audio on Thinkpad docks. Help from jsg@ for the *40 / *50 seriesMike Larkin
docks. ok jsg@
2015-08-20remove unused vesafb code, had been commented out and not compiled in forMike Larkin
7 years (for some parts, 9 years), and was only ever referenced in i386 anyway. ok jsg@, matthieu@, armani@
2015-08-19Stop passing around constants for metadata size and location. JustKenneth R Westerback
use the constants where needed. ok jsing@
2015-08-18Add missing trailing to error message:Stefan Sperling
pckbc0: unable to establish interrupt for irq 12pckbd0 at pckbc0 (kbd slot) ok miod@