summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2015-04-16New driver for Araneus Alea II TRNG. All the hardwork has been done byMartin Pieuchot
Sean Levy, aka attila, <attila + stalphonsos ! com>, thanks! ok deraadt@
2015-04-15Convert remaining drm ioctl implementation functions to return Linux-styleMark Kettenis
negative errno values. ok jsg@
2015-04-14Setting the configuration in *_attach() is a bad practise because if itMartin Pieuchot
fails it's impossible to debug and you cannot use your device. So instead of calling usbd_set_config_index(), match the right interface. This is trivial with this device because it has only one configuration and interface.
2015-04-14It's not possible to call umcs_get_status() in interrupt contextMartin Pieuchot
because it submits synchronous transfers, so schedule a task when necessary.
2015-04-14Make sure we close the interrupt pipe when the device is detached.Martin Pieuchot
Bug reported and fix tested by Thomas Pfaff, thanks!
2015-04-13Initialize RX/TX on re(4) slightly later; it appears that newer chipsStuart Henderson
don't setup DMA correctly until more configuration has been done - enabling RX too soon causes DMA to bad places. KVM corruption problems reported by Adam Wolk on Lenovo G50-70 (RTL8111GU). Diff derived by Brad from FreeBSD commit; see bz# 197535 and 193743, inspired by https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d6e572911a4cb2b9fcd1c26a38d5317a3971f2fd Tested on the following by Brad, Adam Wolk, box963 at gmail, Jim Smith re0 at pci4 dev 0 function 0 "Realtek 8168" rev 0x03: RTL8168D/8111D (0x2800), apic 2 int 16, address 00:0a:cd:1a:86:04 re0 at pci2 dev 0 function 0 "Realtek 8168" rev 0x0c: RTL8168G/8111G (0x4c00), msi, address 80:ee:73:76:8e:8a re0 at pci0 dev 3 function 0 "Realtek 8169" rev 0x10: RTL8110S (0x0400), ivec 0x78c, address 00:22:3f:ee:fa:25 re0 at pci1 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E (0x2c00), msi, address 00:0d:b9:31:2e:88 re0 at pci1 dev 0 function 0 "Realtek 8168" rev 0x10: RTL8168GU/8111GU (0x5080), msi, address 68:f7:28:18:35:8e ok mpi@ dlg@
2015-04-13Make sure we print the MAC address on sparc64 as well.Mark Kettenis
2015-04-13Now that if_input() set the receiving interface pointer on mbufs for usMartin Pieuchot
there's no need to do it in m_devget(9). Stop passing an ``ifp'' will help for upcoming interface pointer -> index conversion. While here remove unused ``ifp'' argument from m_clget(9) and kill two birds^W layer violations in one commit. ok henning@
2015-04-12Add a few missing trace functions, and "use" them. Add back the WATCH_GTTMark Kettenis
code (that isn't actually compiled in). Use dev_priv->dev in one more place now that we have it, and add set_normalized_timespec() and use it.
2015-04-12change back to linux style pci vendor/device definesJonathan Gray
2015-04-12change back to wait_for/wait_for_atomic_usJonathan Gray
2015-04-12Switch back to ioread32 and iowrite32 for cases where bus_space_vaddr isJonathan Gray
used instead of bus_space_read/bus_space_write.
2015-04-12make wait_queue_head a struct with a mutexJonathan Gray
better matches linux behaviour
2015-04-11Directly handle ioctls issued to a SCSI device associated with a softraidJoel Sing
volume, ignoring any device name specified in the bio(4) ioctl struct. One of bio(4)'s design flaws is that the device name is hardcoded in many of the ioctl structs, making it basically unusable with DUIDs. In the case of `bioctl -d' the bioctl(8) code actually uses opendev(3) on the given name, then issues the ioctl directly to the resulting device. As such, we already know which device (or in this case, softraid volume) the ioctl was intended for, however the current softraid(4) code ignores this and instead attempts to perform a lookup using the name in the bio(4) ioctl struct. This diff splits the sr_bio_ioctl() code into two parts - one that implements the API required by bio(4) and the other that contains the ioctl handling code, which now takes an optional pointer to the softraid discipline. If an ioctl is issued to a SCSI device associated with a softraid volume, pass the corresponding softraid discipline struct through and to the bio ioctl handler and use it in preference to performing a device name lookup. Amongst other things, this makes bioctl -d now work with DUIDs. ok krw@
2015-04-11Add support for restarting rebuilds on RAID 5.Joel Sing
ok krw@
2015-04-11Convert lii(4) to if_input().Joel Sing
ok mpi@
2015-04-11rename i915 interrupt handlers from *_intr back to *_irq_handlerJonathan Gray
2015-04-11change back to spinlock_t/DEFINE_SPINLOCKJonathan Gray
2015-04-11change back to drm_free_large/drm_malloc_abJonathan Gray
2015-04-11add/use max_t()Jonathan Gray
2015-04-11Rename i915_gem_chipset_flush() to intel_gtt_chipset_flush()Jonathan Gray
so we can use the inline definition of i915_gem_chipset_flush() that avoids the flush entirely on gen >= 6.
2015-04-10Axe vq_free_entry_lockedStefan Fritsch
A leftover from netbsd
2015-04-10Fix typo in macro nameStefan Fritsch
2015-04-10Convert to if_input().Martin Pieuchot
Tested by Daniel Jakots, thanks!
2015-04-10I did quite some changes to this driver, so add copyright.Martin Pieuchot
2015-04-10Full-speed isochronous transfers support with opportunistic micro-framesMartin Pieuchot
scheduling. More work is required to properly budget and schedule micro-frames, most of it at the HUB level. But this let people use USB1.1 uaudio(4) devices on ehci(4)-only systems. Thanks to all the testers! ok ratchov@, sthen@, naddy@
2015-04-10Move irqs_disabled() and in_dbg_master() out of the i386/amd64 ifdef blockJonathan Gray
and change drm_can_sleep() to only use in_atomic() on i386/amd64 as it isn't defined for other archs currently. Unbreaks the sparc64 build. Found the hard way by benoit@
2015-04-10Add support for CRC-enabled elantech v3 touchpads.Stefan Sperling
Patch by Fasse <fasse.f2@gmail.com> ok mpi@
2015-04-10Convert remaining USB Ethernet adapter to if_input().Martin Pieuchot
ok dlg@
2015-04-10Use mdelay(x) instead of delay(x * 1000) for drm_msleep() to betterJonathan Gray
deal with long delays.
2015-04-10Make drm_can_sleep() match linux. No change in behaviour as it'sJonathan Gray
only ever used to decide between mdelay and drm_msleep and our drm_msleep delays instead of sleeping.
2015-04-10add irqs_disabled() and in_dbg_master() using cold and db_is_activeJonathan Gray
2015-04-09Send lmc(4) and san(4) to the HDLC framed bit bucket in the sky.Theo de Raadt
2015-04-09to quote jim smith:David Gwynne
> fix a regression on re chips which have > 7k jumbo support (RL_JUMBO_MTU_7K) as reported by daniel jakots > and emilio perea. the regression was caused because RL_JUMBO_FRAMELEN > was changed to 9k and i missed fixing up the RL_JUMBO_MTU_7K macro. nice of him to fix the thing he broke ;) ok sthen@
2015-04-08Move vmap back to kernel_map/uvm_km_valloc as it's allowed to fail.Jonathan Gray
This should help dlg's dell 2950 that gets stuck during boot with vmap in the trace. ok kettenis@
2015-04-08Convert to if_input().Martin Pieuchot
ok dlg@
2015-04-08Convert to if_input().Martin Pieuchot
ok dlg@
2015-04-08don't leak the chip's hardware address during scans when a randomized addressJasper Lievisse Adriaanse
is set by the user. previously the address read from the eeprom would also be used in discovery frames, even if later data frames would contain the spoofed address. ok stsp@
2015-04-08change back to udelay/mdelayJonathan Gray
2015-04-08change back to memcpy_toio/memcpy_fromio/memset_ioJonathan Gray
2015-04-08change back to using min_tJonathan Gray
2015-04-08ttm has it's own version of kmap/kunmap that usesJonathan Gray
kernel_map/uvm_km_valloc and i915 has a version that uses phys_map/uvm_km_valloc_wait as calling code assumes kmap would sleep if no memory is available. Move these and ttm's vmap/vunmap into the linux compat files and make them all use phys_map/uvm_km_valloc_wait. looks good kettenis@
2015-04-07Use m_defrag when mbuf chains get fragmented.Stefan Fritsch
Patch by Kimberley Manning <kmanning at gmx ! com> with some additional tweaks.
2015-04-07Keep in sync with the sparc version: convert to if_input().Martin Pieuchot
2015-04-06Move almost all of the linux compat from drmP.h to drm_linux.h.Jonathan Gray
The exception being the barrier defines that are implemented in terms of DRM_* defines. ok kettenis@
2015-04-06switch back from roundup2() and roundup() to round_up()Jonathan Gray
2015-04-06switch back from howmany() to DIV_ROUND_UP()Jonathan Gray
2015-04-06move some inline linux compat into the dedicated filesJonathan Gray
2015-04-06drm_calloc -> kcallocJonathan Gray
2015-04-06add/use some more errno remappingJonathan Gray