summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2017-10-31Re-generatekhorben
2017-10-31Add the TP-LINK TL-WN823N (version 2)khorben
2017-10-30regensevan
2017-10-30Add Areca ARC1214 & ARC1880.sevan
From OpenBSD.
2017-10-29Provisionally return to declaring midi_cd unconditionally.riastradh
Apparently this breaks compiling some kernels, although how they ever managed to link if midi_cd is not declared in ioconf.h, and therefore presumably not defined in ioconf.c, is beyond me. Maybe someone who knows how sequencer is supposed to work, and/or someone who knows how arm kernels are linked, can figure this out...
2017-10-29Allow drivers to provide their own read/write register functions. Whilejmcneill
here, sprinkle KASSERTs to verify that the i2c lock is held where it should be.
2017-10-29Make all of the COM_xxx type options runtime selectable. Kernel configsjmcneill
with the existing options (COM_16650, COM_16750, COM_AWIN, COM_HAYESP, and COM_PXA2X0) will select the correct type in com_attach_subr. New code should specify the com type by passing COM_TYPE_xxx to comcnattach and/or setting sc_type.
2017-10-29Use driver specific label code as fallback. This fixes the UDF label for CDs.mlelstv
2017-10-28And yet another one. :(pgoyette
2017-10-28Misssed one cast of pointer --> uintptr_t in previous kernhist(9) commitpgoyette
2017-10-28Update format to report sCskrll
2017-10-28Add some #includes to make a few more header files compile.riastradh
2017-10-28Add #includes to make this compile.riastradh
<sys/cdefs.h> for __packed <sys/types.h> for uint32_t
2017-10-28Kill some more extern struct cfdriver declarations.riastradh
Down with externs in .c!
2017-10-28Back out extern struct cfdriver -> ioconf.h change to sequencer.c.riastradh
This broke the module build, because it needs midi_cd which is defined in another module and not declared by the ioconf.h generated from sequencer.ioconf. But... It also needs sequencer_cd, which is _also_ not declared by the ioconf.h generated from sequencer.ioconf, nor defined in the ioconf.c generated from sequencer.ioconf. Did this ever work???
2017-10-28Kill some more extern cfdriver xyz_cd in favour of #include "ioconf.h".riastradh
2017-10-28No externs in .c files! Include ioconf.h for struct cfdriver xyz_cd.riastradh
2017-10-28Update the kernhist(9) kernel history code to address issues identifiedpgoyette
in PR kern/52639, as well as some general cleaning-up... (As proposed on tech-kern@ with additional changes and enhancements.) Details of changes: * All history arguments are now stored as uintmax_t values[1], both in the kernel and in the structures used for exporting the history data to userland via sysctl(9). This avoids problems on some architectures where passing a 64-bit (or larger) value to printf(3) can cause it to process the value as multiple arguments. (This can be particularly problematic when printf()'s format string is not a literal, since in that case the compiler cannot know how large each argument should be.) * Update the data structures used for exporting kernel history data to include a version number as well as the length of history arguments. * All [2] existing users of kernhist(9) have had their format strings updated. Each format specifier now includes an explicit length modifier 'j' to refer to numeric values of the size of uintmax_t. * All [2] existing users of kernhist(9) have had their format strings updated to replace uses of "%p" with "%#jx", and the pointer arguments are now cast to (uintptr_t) before being subsequently cast to (uintmax_t). This is needed to avoid compiler warnings about casting "pointer to integer of a different size." * All [2] existing users of kernhist(9) have had instances of "%s" or "%c" format strings replaced with numeric formats; several instances of mis-match between format string and argument list have been fixed. * vmstat(1) has been modified to handle the new size of arguments in the history data as exported by sysctl(9). * vmstat(1) now provides a warning message if the history requested with the -u option does not exist (previously, this condition was silently ignored, with only a single blank line being printed). * vmstat(1) now checks the version and argument length included in the data exported via sysctl(9) and exits if they do not match the values with which vmstat was built. * The kernhist(9) man-page has been updated to note the additional requirements imposed on the format strings, along with several other minor changes and enhancements. [1] It would have been possible to use an explicit length (for example, uint64_t) for the history arguments. But that would require another "rototill" of all the users in the future when we add support for an architecture that supports a larger size. Also, the printf(3) format specifiers for explicitly-sized values, such as "%"PRIu64, are much more verbose (and less aesthetically appealing, IMHO) than simply using "%ju". [2] I've tried very hard to find "all [the] existing users of kernhist(9)" but it is possible that I've missed some of them. I would be glad to update any stragglers that anyone identifies.
2017-10-27Independent blocksizes for virtual channels where a static blocksize isnat
not stipulated by the underlying hw driver. This improves latency in games esp. when the stream format differs from the harware format. OK christos@.
2017-10-26Ensure that the low/high water marks are at least PREFILL_BLOCKS.nat
2017-10-26Add latency sysctl to adjust hw blocksize and hence latency of the mixer.nat
usage: sysctl -w hw.hdafg0.lantency="value in milliseconds" It is possible to set the latency of the mixer unless a static blocksize is configured by the underlying hardware driver (pad, vcaudio on RPI). Documentation updates to audio.4 will occur in a follow up commit. OK christos@. XXX pullup-8.
2017-10-26- Remove all half duplex setting.msaitoh
- Remove special handling of IXGBE_DEV_ID_82598AT's 1000BaseT. The PHY is compliant with clause 45, so the media is added in the beginning of ixgbe_add_media_types().
2017-10-25 Whitespace fix.msaitoh
2017-10-25Use C99 initializer for filteropsmaya
Mostly done with spatch with touchups for indentation @@ expression a; identifier b,c,d; identifier p; @@ const struct filterops p = - { a, b, c, d + { + .f_isfd = a, + .f_attach = b, + .f_detach = c, + .f_event = d, };
2017-10-25- For X550 and newer, print NVM Image Version with %u.%02x (e.g. "0.05").msaitoh
- Fix value check of OEM_NVM_IMAGE_VER.
2017-10-24 Print Error Source Identification register correctly.msaitoh
2017-10-24 Print "ECC" or "no ECC" for DDR4.msaitoh
2017-10-23fix wm(4) vlan panic. Reported and tested by Tom Ivar Helbekkmo, thanks.knakahara
wm(4) used PRI bits and CFI bit as vlantag by mistake. It is found out by if_ether.h:r1.67. XXX need pullup-8
2017-10-23Initialize txrate to 0 for new associations; firmware handles rate ↵jmcneill
adaptation for us
2017-10-23We don't need '&mii', but just 'mii' for mii_detach().jakllsch
2017-10-23- Get SDIO reset working (from OpenBSD).jmcneill
- After switching bus width, notify the host controller of the change.
2017-10-23 If if_initialize() failed in the attach function, free resources and return.msaitoh
2017-10-23- If if_initialize() failed in the attach function, free resources and return.msaitoh
- Fix error path in the attach function correctly.
2017-10-23- If if_initialize() failed in the attach function, free resources and return.msaitoh
- ifp is always not NULL in iwi_detach(). Check correctly with ifp->if_softc.
2017-10-23- If if_initialize() failed in the attach function, free resources and return.msaitoh
- Add missing dwc_gmac_free_dma_rings() and mutex_destroy() when attach failed.
2017-10-23 If if_initialize() failed in the attach function, return.msaitoh
2017-10-23- Free resources correctly on some errors in atw_attach().msaitoh
- Use apint*() insread of printf() in the attach function.
2017-10-23- If if_initialize() failed in athn_attach(), free resources and return.msaitoh
- Add missing pmf_event_deregister() in athn_detach().
2017-10-23 If error occured in the attach function, free resources and return.msaitoh
2017-10-23 If if_attach() failed in the attach function, return.msaitoh
2017-10-22KNFskrll
2017-10-22Add support for simple MMC power sequence provider bindings.jmcneill
2017-10-22do not share queue between the non-indepedant channels; instead makejdolecek
sure only one of the channels is ever active on the same controller fixes PR kern/52606 by Martin Husemann, thanks for report and testing
2017-10-22AXP209 isn't an SMBus device, so don't use iic_smbus_* APIs.jmcneill
2017-10-21Pass WME access classification to bcdc headerjmcneill
2017-10-21Initialize all fields in bcdc header.jmcneill
2017-10-21Fix return value. fo_kqfilter is expected to return errno on error.isaki
This is the rest of 1.226 (10 years ago).
2017-10-21Fix return value. fo_poll is expected to return revents on error.isaki
2017-10-21Fix return value. fo_mmap is expected to return errno on error.isaki
2017-10-21match atmel,24c16jmcneill