aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/atkbdc
Commit message (Collapse)AuthorAgeFilesLines
* psm(4): Always initialize Synaptics touchpad report range with defaultsVladimir Kondratyev2020-12-231-14/+9
| | | | | | | | | | Otherwise libinput refuses to recoginize some Synaptics touchpads with "kernel bug: device has min == max on ABS_X" message in Xorg.log. PR: 251149 Reported-by: Jens Grassel <freebsd-ports@jan0sch.de> Tested-by: Jens Grassel <freebsd-ports@jan0sch.de> MFC-after: 2 weeks
* atkbd(4): Just use nitems() for quirk enumerationConrad Meyer2020-12-051-3/+1
| | | | | | | | | Reviewed by: imp, wulf X-MFC-With: r368365 Differential Revision: https://reviews.freebsd.org/D27489 Notes: svn path=/head/; revision=368374
* atkbd(4): Change quirk table end-of-list marker to NULL vendor/maker/productVladimir Kondratyev2020-12-051-1/+2
| | | | | | | | | | | | | This fixes regression introduced in r367349 which effectively resulted in truncation of quirk table. PR: 250711 Submitted by: grembo Reported by: Matthias Apitz <guru@unixarea.de> X-MFC with: r367349 Notes: svn path=/head/; revision=368365
* psm(4): Disable AUX multiplexer probing on all Lenovo laptops.Vladimir Kondratyev2020-11-203-2/+6
| | | | | | | | | | | | | | | | | | | | Rudimentary AUX multiplexing support was added to kernel to make possible touchpad initialization on some HP EliteBook laptops with trackpoint. Disable multiplexer probing on all Lenovo laptops now as they use touchpad pass-through port rather than AUX multiplexer to connect trackpoint and at least two model (X120e and X121e) is known for getting PS/2 AUX port dysfunctional after switching back to hidden multiplexing mode. AUX MUX probing can be reenabled with setting of hw.psm.mux_disabled loader tunable to 0. PR: 249987 Reported by: jwb MFC after: 2 weeks Notes: svn path=/head/; revision=367854
* atkbdc(4): Add quirk for "System76 lemur Pro" laptops.Vladimir Kondratyev2020-11-041-0/+1
| | | | | | | | | | | | | | | | | | | Currently atkbdc(4) assumes all coreboot BIOSes belonging to Chromebooks and unconditionally sets a number of quirks to workaround known issues. Exclude "System76" laptops from this set as they appeared to be a traditional hardware ("lemur Pro" is a rebranded Clevo chassis) with coreboot firmware on board. KBDC_QUIRK_KEEP_ACTIVATED quirk activated for Chromebook platform makes keyboard on this devices inoperable. "Purism Librem" laptops may require the same exclusion too. PR: 250711 Reported by: nick.lott@gmail.com MFC after: 2 weeks Notes: svn path=/head/; revision=367349
* atkbdc: clean up empty lines in .c and .h filesMateusz Guzik2020-09-014-14/+5
| | | | Notes: svn path=/head/; revision=365117
* [psm] Workaround active PS/2 multiplexor hangVladimir Kondratyev2020-06-021-0/+22
| | | | | | | | | | | | which happens on some laptops after returning to legacy multiplexing mode at initialization stage. PR: 242542 Reported by: Felix Palmen <felix@palmen-it.de> MFC after: 1 week Notes: svn path=/head/; revision=361718
* [psm] Do not disable trackpoint when hw.psm.elantech.touchpad_off is enabledVladimir Kondratyev2020-06-021-1/+1
| | | | | | | | | PR: 246117 Reported by: Alexander Sieg <ports@xanderio.de> MFC after: 1 week Notes: svn path=/head/; revision=361715
* psm(4): Fix wrong key-release event occuring after trackpoint use.Vladimir Kondratyev2020-04-261-1/+1
| | | | | | | | | | | | | | Some models of laptops e.g. "X1 Carbon 3rd Gen Thinkpad" have LRM buttons wired as so called "Synaptic touchpads extended buttons" rather thah real trackpoint buttons. Handle this case with merging of events from both sources. PR: 245877 Reported by: Raichoo <raichoo@googlemail.com> MFC after: 1 week Notes: svn path=/head/; revision=360353
* Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many)Pawel Biernacki2020-02-261-54/+104
| | | | | | | | | | | | | | | | | | | r357614 added CTLFLAG_NEEDGIANT to make it easier to find nodes that are still not MPSAFE (or already are but aren’t properly marked). Use it in preparation for a general review of all nodes. This is non-functional change that adds annotations to SYSCTL_NODE and SYSCTL_PROC nodes using one of the soon-to-be-required flags. Mark all obvious cases as MPSAFE. All entries that haven't been marked as MPSAFE before are by default marked as NEEDGIANT Approved by: kib (mentor, blanket) Commented by: kib, gallatin, melifaro Differential Revision: https://reviews.freebsd.org/D23718 Notes: svn path=/head/; revision=358333
* psm: use make_dev_s instead of make_devKyle Evans2020-02-041-5/+16
| | | | | | | | | This most importantly reduces duplication, but it also removes any potential race with usage of dev->si_drv1 since it's now set prior to the device being constructed enough to be accessible. Notes: svn path=/head/; revision=357510
* psm: release resources on attach failureKyle Evans2020-02-041-6/+7
| | | | | | | | In exactly 1/3 cases we'll release resources on failure; touch up the other two to do so as well. Notes: svn path=/head/; revision=357509
* Remove sparc64 kernel supportWarner Losh2020-02-033-393/+0
| | | | | | | | | Remove all sparc64 specific files Remove all sparc64 ifdefs Removee indireeect sparc64 ifdefs Notes: svn path=/head/; revision=357455
* psm: properly check for atkbdc_open failureKyle Evans2019-12-311-0/+2
| | | | | | | | atkbdc_open can return NULL if the unit's out of bounds or the softc isn't setup. Check it to be safe. Notes: svn path=/head/; revision=356225
* atkbdc: use proper pointer type for KBDCKyle Evans2019-12-252-83/+82
| | | | | | | | | | | | | | | | | Proper locking for atkbdc will likely replace the kbdc_lock mechanism entirely with a mutex in atkbdc_softc, so that other consumers can also properly ensure locking protocol is followed (e.g. psm.c:doinitialize). The first step to doing this neatly is making KBDC less opaque so that others don't have to jump through weird casting hoops to address the mutex. No functional change intended; this diff effectively just removes a bunch of casting. A future change may remove the KBDC typedef entirely and just opt for using `atkbdc_softc_c *` directly, but this was decidedly a good intermediate step to make these changes simple to audit. Notes: svn path=/head/; revision=356076
* kbd: provide default implementations of get_fkeystr/diagKyle Evans2019-12-161-2/+0
| | | | | | | | | Most keyboard drivers are using the genkbd implementations as it is; formally use them for any that aren't set and make genkbd_get_fkeystr/genkbd_diag private. Notes: svn path=/head/; revision=355796
* keyboard switch definitions: standardize on c99 initializersKyle Evans2019-12-161-19/+19
| | | | | | | | | A future change will provide default implementations for some of these where it makes sense and most of them are already using the genkbd implementation (e.g. get_fkeystr, diag). Notes: svn path=/head/; revision=355794
* Add macOS-like three finger drag trackpad gesture to psm(4)Philip Paeps2019-06-161-3/+15
| | | | | | | | | Submitted by: Yan Ka Chiu <nyan@myuji.xyz> MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D20648 Notes: svn path=/head/; revision=349098
* psm(4): Enable touchpads and trackpads by defaultNiclas Zeising2019-06-101-3/+3
| | | | | | | | | | | | | | | | | Enable synaptics and elantech touchpads, as well as IBM/Lenovo TrackPoints by default, instead of having users find and toggle a loader tunable. This makes things like two finger scroll and other modern features work out of the box with X. By enabling these settings by default, we get a better desktop experience in X, since xserver and evdev can make use of the more advanced synaptics and elantech features. Reviewed by: imp, wulf, 0mp Approved by: imp Sponsored by: B3 Init (zeising) Differential Revision: https://reviews.freebsd.org/D20507 Notes: svn path=/head/; revision=348873
* psm(4): Add extra sanity checks to Elantech trackpoint packet parser.Vladimir Kondratyev2019-06-081-13/+23
| | | | | | | | | | | Add strict checks for unused bit states in Elantech trackpoint packet parser to filter out spurious events produces by some hardware which are detected as trackpoint packets. See comment on r328191 for example. Tested by: Andrey Kosachenko <andrey.kosachenko@gmail.com> Notes: svn path=/head/; revision=348818
* psm(4): Fix Elantech trackpoint support.Vladimir Kondratyev2019-06-081-3/+3
| | | | | | | | | | | | Sign bits for X and Y motion data were taken from wrong places. PR: 238291 Reported by: Andrey Kosachenko <andrey.kosachenko@gmail.com> Tested by: Andrey Kosachenko <andrey.kosachenko@gmail.com> MFC after: 2 weeks Notes: svn path=/head/; revision=348817
* psm(4): Add natural scrolling support to sysmouse protocolVladimir Kondratyev2019-06-031-7/+32
| | | | | | | | | | | | | | | | | | | This change enables natural scrolling with two finger scroll enabled and when user is using a trackpad (mouse and trackpoint are not affected). Depending on trackpad model it can be activated with setting of hw.psm.synaptics.natural_scroll or hw.psm.elantech.natural_scroll sysctl values to 1. Evdev protocol is not affected by this change too. Tune userland client e.g. libinput to enable natural scrolling in that case. Submitted by: nyan_myuji.xyz Reviewed by: wulf MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D20447 Notes: svn path=/head/; revision=348529
* psm(4): Add Elantech touchpad IC type 15 found on Thinkpad L480 laptopsVladimir Kondratyev2019-06-021-1/+1
| | | | | | | | | PR: 238291 Submitted by: Andrey Kosachenko <andrey.kosachenko@gmail.com> MFC after: 2 weeks Notes: svn path=/head/; revision=348520
* Extract eventfilter declarations to sys/_eventfilter.hConrad Meyer2019-05-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | This allows replacing "sys/eventfilter.h" includes with "sys/_eventfilter.h" in other header files (e.g., sys/{bus,conf,cpu}.h) and reduces header pollution substantially. EVENTHANDLER_DECLARE and EVENTHANDLER_LIST_DECLAREs were moved out of .c files into appropriate headers (e.g., sys/proc.h, powernv/opal.h). As a side effect of reduced header pollution, many .c files and headers no longer contain needed definitions. The remainder of the patch addresses adding appropriate includes to fix those files. LOCK_DEBUG and LOCK_FILE_LINE_ARG are moved to sys/_lock.h, as required by sys/mutex.h since r326106 (but silently protected by header pollution prior to this change). No functional change (intended). Of course, any out of tree modules that relied on header pollution for sys/eventhandler.h, sys/lock.h, or sys/mutex.h inclusion need to be fixed. __FreeBSD_version has been bumped. Notes: svn path=/head/; revision=347984
* psm(4): give names to synaptics commandsVladimir Kondratyev2019-04-201-11/+31
| | | | | | | | Submitted by: Ben LeMasurier <ben@crypt.ly> MFC after: 2 weeks Notes: svn path=/head/; revision=346458
* psm(4): respect tap_disabled configuration with enabled Extended supportVladimir Kondratyev2019-04-201-3/+9
| | | | | | | | | | | | | This fixes a bug where, even when hw.psm.tap_enabled=0, touchpad taps were processed. tap_enabled has three states: unconfigured, disabled, and enabled (-1, 0, 1). To respect PR kern/139272, taps are ignored only when explicity disabled. Submitted by: Ben LeMasurier <ben@crypt.ly> (initial version) MFC after: 2 weeks Notes: svn path=/head/; revision=346457
* psm(4): do not process gestures when palm is presentVladimir Kondratyev2019-04-201-9/+16
| | | | | | | | | | | | | Ignoring of gesture processing when the palm is detected helps to reduce some of the erratic pointer behavior. This fixes regression introduced in r317814 Reported by: Ben LeMasurier <ben@crypt.ly> MFC after: 2 weeks Notes: svn path=/head/; revision=346456
* psm(4): Add support for 4 and 5 finger touches in synaptics driverVladimir Kondratyev2019-04-201-1/+10
| | | | | | | | | | While 4-th and 5-th finger positions are not exported through PS/2 interface, total number of touches is reported by MT trackpads. MFC after: 2 weeks Notes: svn path=/head/; revision=346455
* psm(4): detect Lenovo top-button clickpadsVladimir Kondratyev2019-01-181-1/+50
| | | | | | | | | | | | | | | libinput has special handling for Lenovo ThinkPad *40 series, where it treats clicks on the top button area as if they came from the TrackPoint: https://wayland.freedesktop.org/libinput/doc/latest/t440-support.html Detect these devices and set the corresponding evdev property. Submitted by: Greg V <greg@unrelenting.technology> MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D18676 Notes: svn path=/head/; revision=343163
* psm(4): Add minimal support for active AUX port multiplexersVladimir Kondratyev2018-11-243-3/+258
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Active PS/2 multiplexing is a method for attaching up to four PS/2 pointing devices to a computer. Enabling of multiplexed mode allows commands to be directed to individual devices using routing prefixes. Multiplexed mode reports input with each byte tagged to identify its source. This method differs from one currently supported by psm(4) where so called guest device (trackpoint) is attached to special interface located on the host device (touchpad) and latter performs guest protocol conversion to special encapsulation packet format. At present time active PS/2 multiplexing is used in some models of HP laptops e.g. EliteBook 8560w, 9470m. Enabling of absolute operation mode on such touchpads is connected with following problems: 1. Touchpad's port priority is lower than trackpoint's. That blocks information queries thus prevents touchpad detection and configuration. 2. Touchpad and trackpoint have different protocol packet sizes and sync bytes. As PS/2 usage is on decline only minimal possible set of changes to support Synaptics touchpad and generic mouses is implemented. Active multiplexing mode is enabled only at probe stage to scan through attached PS/2 devices to query and configure Synaptics touchpad. After touchpad has been configured, mux is switched back to legacy (hidden multiplexing) mode to perform normal interrupt-driven input data processing. Overflow bit values rather than tags are used to separate packets produced by different devices. Switching back to legacy mode allows to avoid psm(4) and atkbd(4) rework to support 4 instances of mouse driver. Note: While in hidden multiplexing mode KBC does some editing of the packet stream. It remembers the button bits from the last packet received from each device, and replaces the button bits of every packet with the logical OR of all devices’ most recent button bits. This sort of button crosstalk results in spurious button events which are inhibitted with various tricks. E.g. trackpoint middle button events are suppressed while trackpad surface is touched and touchpad left and right button events are suppressed if corresponding trackpoint buttons are pressed. PR: 231058 Reported by: Michael Figiel <mifigiel@gmail.com> Tested by: Michael Figiel <mifigiel@gmail.com> MFC after: 2 weeks Notes: svn path=/head/; revision=340913
* Revert r328640: Add kludge for 0x46 identity middle byte Synaptics touchpads.Vladimir Kondratyev2018-11-241-58/+20
| | | | | | | | | It appeared that "0x46 identity middle byte" response is caused by so called "Active PS/2 multiplexing controller" presence. Support for it will be added in next commit. Notes: svn path=/head/; revision=340912
* evdev: Use console lock as evdev lock for all supported keyboard drivers.Vladimir Kondratyev2018-10-271-1/+1
| | | | | | | | | | | | Now evdev part of keyboard drivers does not take any locks if corresponding input/eventN device node is not opened by userland consumers. Do not assert console lock inside evdev to handle the cases when keyboard driver is called from some special single-threaded context like shutdown thread. Notes: svn path=/head/; revision=339823
* evdev: Remove evdev.ko linkage dependency on kbd driverVladimir Kondratyev2018-08-131-1/+19
| | | | | | | | | | | | | | | | | | Move evdev_ev_kbd_event() helper from evdev to kbd.c as otherwise evdev unconditionally requires all keyboard and console stuff to be compiled into the kernel. This dependency happens as evdev_ev_kbd_event() helper references kbdsw global variable defined in kbd.c through use of kbdd_ioctl() macro. While here make all keyboard drivers respect evdev_rcpt_mask while setting typematic rate and LEDs with evdev interface. Requested by: Milan Obuch <bsd@dino.sk> Reviewed by: hselasky, gonzo Differential Revision: https://reviews.freebsd.org/D16614 Notes: svn path=/head/; revision=337721
* evdev: remove soft context from evdev methods parameter list.Vladimir Kondratyev2018-08-131-14/+20
| | | | | | | | | | | | | Now softc should be retrieved from struct edvev * pointer with evdev_get_softc() helper. wmt(4) is a sample of driver that support both KPI. Reviewed by: hselasky, gonzo Differential Revision: https://reviews.freebsd.org/D16614 Notes: svn path=/head/; revision=337720
* Drop MOUSE_GETVARS and MOUSE_SETVARS ioctls support.Vladimir Kondratyev2018-06-101-18/+0
| | | | | | | | | | | | | | | | These ioctls are not documented and only stubbed in a few drivers: mse(4), psm(4) and syscon's sysmouse(4). The only exception is MOUSE_GETVARS implemented in psm(4) Given the fact that they were introduced 20 years ago and implementation has never been completed, remove any related code. PR: 228718 (exp-run) Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D15726 Notes: svn path=/head/; revision=334923
* Correct argument for evdev_push_rel().Hans Petter Selasky2018-05-311-2/+2
| | | | | | | | | | | This is a regression issue after r319162. Submitted by: Johannes Lundberg <johalun0@gmail.com> MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=334422
* Clean up OF_getprop_alloc APIOleksandr Tymoshenko2018-04-081-1/+1
| | | | | | | | | | | | | | | | | | | | OF_getprop_alloc takes element size argument and returns number of elements in the property. There are valid use cases for such behavior but mostly API consumers pass 1 as element size to get string properties. What API users would expect from OF_getprop_alloc is to be a combination of malloc + OF_getprop with the same semantic of return value. This patch modifies API signature to match these expectations. For the valid use cases with element size != 1 and to reduce modification scope new OF_getprop_alloc_multi function has been introduced that behaves the same way OF_getprop_alloc behaved prior to this patch. Reviewed by: ian, manu Differential Revision: https://reviews.freebsd.org/D14850 Notes: svn path=/head/; revision=332310
* Move most of the contents of opt_compat.h to opt_global.h.Brooks Davis2018-04-061-1/+0
| | | | | | | | | | | | | | | | | | | | | opt_compat.h is mentioned in nearly 180 files. In-progress network driver compabibility improvements may add over 100 more so this is closer to "just about everywhere" than "only some files" per the guidance in sys/conf/options. Keep COMPAT_LINUX32 in opt_compat.h as it is confined to a subset of sys/compat/linux/*.c. A fake _COMPAT_LINUX option ensure opt_compat.h is created on all architectures. Move COMPAT_LINUXKPI to opt_dontuse.h as it is only used to control the set of compiled files. Reviewed by: kib, cem, jhb, jtl Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D14941 Notes: svn path=/head/; revision=332122
* psm(4): Initialize variables before useConrad Meyer2018-03-061-0/+3
| | | | | | | | | | | dxp/dyp could have been used uninitialized in the subsequent debugging log invocation. Reported by: Coverity Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=330546
* psm(4): Always initialize used values in debug printConrad Meyer2018-03-011-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | 'status' array passed to get_mouse_status() is usually uninitialized by callers. Fully populating it with values in get_mouse_status() can fail due to read_aux_data(). Additionally, nothing in API constrains 'len' to be >= 3. In practice, every caller passes three, so perhaps that argument should just be removed. Refactoring is a larger change, though. Remove use of potentially uninitialized values by: 1. Only printing 3 debug statuses if the passed array was at least 'len' >= 3; 2. Populating 'status' array up to first three elements, if read_aux_data() failed. No functional change intended. Reported by: Coverity Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=330136
* psm(4): Fix panic occuring soon after PS/2 packet has been rejected byVladimir Kondratyev2018-02-041-3/+9
| | | | | | | | | | | | | | | | | | | | | | synaptics or elantech sanity checker. After packet has been rejected contents of packet buffer is not cleared with setting of inputbytes counter to 0. So when this packet buffer is filled again being an element of circular queue, new data appends to old data rather than overwrites it. This leads to packet buffer overflow after 10 rounds. Fix it with setting of packet's inputbytes counter to 0 after rejection. While here add extra logging of rejected packets. PR: 222667 (for reference) Reported by: Neel Chauhan <neel@neelc.org> Tested by: Neel Chauhan <neel@neelc.org> MFC after: 1 week Notes: svn path=/head/; revision=328864
* psm: Add a kludge to support 0x46 identity middle byte Synaptics touchpadsVladimir Kondratyev2018-01-311-20/+58
| | | | | | | | | | | | | | | | | Most synaptics touchpads return 0x47 in middle byte in responce to identify command as stated in p.4.4 of "Synaptics PS/2 TouchPad Interfacing Guide". But some devices e.g. found on HP EliteBook 9470m return 0x46 here. Allow them to be identified as Synaptics as well as 0x47. ExtendedQueries return incorrect data on such a touchpads so we ignore their result and set conservative defaults. PR: 222667 Reported by: Neel Chauhan <neel@neelc.org> Tested by: Neel Chauhan <neel@neelc.org> Approved by: gonzo Notes: svn path=/head/; revision=328640
* psm(4): Reduce psm watchdog verbosityVladimir Kondratyev2018-01-311-1/+1
| | | | | | | | | | | Modern touchpads do not issue interrupts on inactivity so "lost interrupt" message became annoying spam nowadays. This change quiets the message if debug.psm.loglevel=5 (or less) is set in /boot/loader.conf Approved by: gonzo Notes: svn path=/head/; revision=328638
* psm(4): Add support for HP EliteBook 1040 ForcePads.Vladimir Kondratyev2018-01-311-7/+77
| | | | | | | | | | | | | | | | | | ForcePads do not have any physical buttons, instead they detect click based on finger pressure. Forcepads erroneously report button click if there are 2 or more fingers on the touchpad breaking multifinger gestures. To workaround this start reporting a click only after 4 consecutive single touch packets has been received. Skip these packets in case more contacts appear. PR: 223369 Reported by: Neel Chauhan <neel@neelc.org> Tested by: Neel Chauhan <neel@neelc.org> Reviewed by: gonzo Approved by: gonzo Notes: svn path=/head/; revision=328636
* Add ISA PNP tables to ISA drivers. Fix a few incidental comments.Warner Losh2018-01-291-1/+1
| | | | | | | ACPI ISA PBP tables not tagged, there's bigger issues with them. Notes: svn path=/head/; revision=328524
* psm: Log syncmask[1], not syncmask[0] twiceJean-Sébastien Pédron2018-01-201-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=328208
* psm: Don't try to detect trackpoint packets if the Elantech device has noneJean-Sébastien Pédron2018-01-201-1/+1
| | | | | | | | | | | | | This fixes a panic when `EVDEV_SUPPORT` is enabled: if a trackpoint packet was detected but there was no trackpoint, we still tried to emit an evdev event even though the associated relative evdev device (`evdev_r`) was not initialized. PR: 225339 MFC after: 1 week Notes: svn path=/head/; revision=328191
* psm: Skip sync check when `PSM_CONFIG_NOCHECKSYNC` is setJean-Sébastien Pédron2018-01-201-4/+8
| | | | | | | | | | | | | | | | | | | | | | In psmprobe(), we set the initial `syncmask` to the vendor default value if the `PSM_CONFIG_NOCHECKSYNC` bit is unset. However, we currently only set it for the Elantech touchpad later in psmattach(), thus `syncmask` is always configured. Now, we check `PSM_CONFIG_NOCHECKSYNC` and skip sync check if it is set. This fixes Elantech touchpad support for units which have `hascrc` set. To clarify that, when we log the `syncmask` and `syncbits` fields, also mention if they are actually used. Finally, when we set `PSM_CONFIG_NOCHECKSYNC`, clear `PSM_NEED_SYNCBITS` flag. PR: 225338 MFC after: 1 week Notes: svn path=/head/; revision=328190
* Create a new ISA_PNP_INFO macro. Use this macro every where we haveWarner Losh2017-12-231-0/+1
| | | | | | | | | | ISA PNP card support (replace by hand version in if_ed). Move module declarations to the end of some files. Fix PCCARD_PNP_INFO to use nitems(). Remove some stale comments about pc98, turns out the comment was simply wrong. Notes: svn path=/head/; revision=327102
* sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-279-0/+18
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326255