summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2013-12-14regenbrad1-2/+4
2013-12-14new Realtek PHY.brad1-1/+2
2013-12-13add an entry for "IIJmobile 510FU"yuo1-1/+3
2013-12-13regenyuo2-4/+14
2013-12-13add IIJmobile 510FUyuo1-1/+3
2013-12-13regenyuo2-4/+9
2013-12-13add FUJITSU component FX-5251WByuo1-1/+2
2013-12-13add SACOM USB485BLyuo1-1/+2
2013-12-13regenyuo2-4/+16
2013-12-13add vendor SACOM (0ba0h)yuo1-1/+5
2013-12-13Rewrite receive filter handling and ioctl bits.brad2-48/+31
Tested by ISIHARA Takanori
2013-12-12Add db_vprintf(), and then use it in ACPI's db_disprint() instead ofguenther1-5/+2
formatting into a local buffer. ok miod@
2013-12-12printf(variable) --> printf("%s", variable)guenther1-3/+3
ok deraadt@
2013-12-11Make obj->pages a simple array instead of an array of bus_dma_segment_t's.kettenis5-85/+34
Simplifies things a bit and reduces the diffs with Linux a bit too.
2013-12-11Revert change to sha256: ramdisks don't build with this and the obviousguenther1-22/+25
conf/files change isn't enough due to size limits
2013-12-11update a few RC4 references to ChaCha. thanks sthentedu1-9/+7
2013-12-11md5 smells bad. switch to sha256. ok deraadt matthew mikebtedu1-18/+17
2013-12-11Clean up the ioctl handler to be in line with most of the otherbrad1-22/+14
Ethernet drivers. ok sasano@
2013-12-09Bring i915_gem_mmap_ioctl a bit closer to the Linux code.kettenis1-28/+14
2013-12-09At resume, do not spin flushing characters in from the chip. There shouldn'tderaadt1-5/+1
be any characters. If the chip is not actually there for some reason, we'd be spinning so early in the resume sequence, we'd probably go mad trying to find the reason.. ok kettenis request: people with serial ports on their laptops, try to run a "cu" over a suspend/resume cycle, and see if you see "input noise"
2013-12-09Remove MD intagp(4) code that is unused now that inteldrm(4) manages the GTTkettenis2-5/+2
all by itself.
2013-12-09use new com.c bus-independent suspend/resume code, rather than trying toderaadt2-39/+5
craft broken local code here ok kettenis
2013-12-09initialize staterr, no functional change; from david hillmikeb1-2/+2
2013-12-09At suspend/resume time cope with timeouts, DTR on resume in a busderaadt1-1/+11
bus-independent fashion. ok kettenis
2013-12-09Fix crash on urndis(4) detachpirofti1-6/+2
When detaching my nokia c2-01 dohooks in if_detach would panic. This was due to a failure to setup a pipe in urndis_ctrl_init() which results in a TIMEOUT on receive with side-effects later on during detach due to assumptions regarding the existence of interface hooks during dohooks on if_detach tear-down. That resulted on dereferencing a NULL function pointer which triggered a panic. Discussed with mpi@, tested and okay giovanni@.
2013-12-09replace workq_task_add with a task. stash teh struct in the ata xfer thingdlg2-7/+11
so its now reliable.
2013-12-09timeout_del unconditionallyderaadt1-3/+2
2013-12-09Mark a few functions with __unused.brad2-8/+8
ohci.c:193:1: error: unused function 'OREAD1' [-Werror,-Wunused-function] ohci.c:200:1: error: unused function 'OREAD2' [-Werror,-Wunused-function] uhci.c:256:1: error: unused function 'UREAD4' [-Werror,-Wunused-function] ok deraadt@
2013-12-08Fix rtsx_read_cfg() return value check in rtsx_attach(). Diff from dhill.stsp1-2/+2
Bug didn't have any bad effects since rtsx doesn't support SDIO at present.
2013-12-08simplify activate functionderaadt1-10/+5
2013-12-08remove case that does nothingderaadt1-3/+1
2013-12-08Enable rum(4) for armv7. Committing through it on pandaboard.martynas1-2/+3
OK rapha@, jasper@.
2013-12-08add static back to the ttm functionsjsg7-354/+156
ok kettenis@
2013-12-07Some cleaning up of the ioctl handling bits to bring things in linebrad3-44/+33
with the other drivers. No functional change.
2013-12-07Rewrite receive filter handling and ioctl bits. Fixes not being able tobrad1-61/+47
bring the interface out of all multicast mode once a range of multicast addresses has been found. Tested with QEMU and VMware's pcn(4) emulated adapters.
2013-12-07Emulating wait_event_timeout() using msleep() is hard. This version shouldkettenis1-7/+7
avoid the negative timeout panic and make __wait_seqno() properly wait forever if no timeout was specified.
2013-12-07Remove the agp-specific bus_dma code. It is no longer used now thatkettenis1-8/+1
inteldrm(4) manages the GTT by itself. ok miod@
2013-12-07No need to blow away the cache after updating GTT entries. The driver alreadykettenis1-3/+1
flushes individual cache lines when needed.
2013-12-07Now that we properly flush caches, we can enable cpu relocations.kettenis1-5/+1
2013-12-07Enable fast path for relocations.kettenis1-10/+23
ok jsg@
2013-12-07Some fixes for jme_encap()..brad2-53/+34
- Remove the maximum DMA segments handling bits as it is unused between DragonFly and OpenBSD. - Fix error handling for bus_dmamap_load_mbuf() so as to not try unloading a DMA map that had not already been loaded. - Clean up the DMA chain defragmenting path to remove unwanted printfs and simplify things a bit. - Have jme_encap() check the number of mapped DMA segments against the TX ring to see if it'll fit as do most of the driver nowadays. - Remove the KASSERT's that shouldn't be there. - Simplify the dummy descriptor handling to be closer to the FreeBSD driver since unlike the DragonFly driver this originated from our driver always uses the 64-bit dummy descriptor. - If the ring was full make sure to IF_PREPEND() the packet back on the queue since it wasn't transmitted. Tested by myself, comete@daknet.org and vigdis+obsd@chown.me.
2013-12-06Change a WARN_ON into a BUG_ON to match Linux.kettenis1-2/+2
2013-12-06Add a DVACT_WAKEUP op to the *_activate() API. This is called after thederaadt90-517/+371
kernel resumes normal (non-cold, able to run processes, etc) operation. Previously we were relying on specific DVACT_RESUME op's in drivers creating callback/threads themselves, but that has become too common, indicating the need for a built-in mechanism. ok dlg kettenis, tested by a sufficient amount of people
2013-12-06It seems to be possible to truncate an object while it is still mapped.kettenis1-2/+8
Don't panic in that case but force a page fault instead. Hopefully this fixes the panic during coredump that deraadt@ reported.
2013-12-06Another round of reducing diffs with Linux.kettenis1-25/+11
2013-12-05Fully unstub intel_overlay_{map|unmap}_regs.kettenis1-7/+16
2013-12-05use dv_unit rather than storing local version (removed sc_unit insasano1-4/+2
struct ugl_softc). ok by deraadt@
2013-12-05Rename 'struct drm_obj' to 'struct drm_gem_object' to reduce the diffs withkettenis15-139/+146
Linux. ok jsg@
2013-12-04kill a debug printf; noticed by sthenmikeb1-3/+1
2013-12-04mfi_refresh_sensors calls mfi_ioctl_vol which calls mfi_bio_getitall, whichdlg1-3/+8
replaces pointers in the softc and all sorts of fun stuff. this protects the call to bio_getitall with the sc_lock the ioctl path uses, so we dont get panics like those reported on bugs@ recently. ok deraadt@