IABSD.fr/src/sys/dev/isa

Branch :


Log

Author Commit Date CI Message
e0047aae 2017-06-04 20:28:05 fix a bungled logical/bitwise expression pointed out by clang; ok deraadt@
a86c5d82 2017-06-04 19:23:20 Remove unused function, as pointed out by clang. ok deraadt@ kettenis@
d40269af 2017-05-04 22:47:27 Also pass the blk offset to disk_unbusy(), so that it can pass it to the random subsystem as entropy. This value is pretty much unknown, and anyways our entropy input ring does not saturate from knowns. ok mikeb djm
5a9f5148 2017-05-04 15:19:01 Remove side effects from assignment. Fixes warning with cppcheck. No binary change. OK ratchov@
f4c36297 2017-04-30 13:04:49 Unifdef KGDB. It doesn't compile und hasn't been working during the last decade. ok kettenis@, deraadt@
2d357aed 2017-03-02 10:38:09 Add a new sysctl machdep.lidaction. The sysctl works as follows: machdep.lidaction=0 # do nothing machdep.lidaction=1 # suspend machdep.lidaction=2 # hibernate lidsuspend is just an alias for lidaction, so if you change one, the other one will have the same value. The plan is to remove machdep.lidsuspend eventually when people have upgraded their /ets/sysctl.conf. discussed with deraadt, who came up with the new MIB name no objections mlarkin ok stsp halex jcs
6ea1e70f 2017-02-14 15:47:12 asmc: on system resume, restore the keyboard backlight value ok various
88a08f2a 2017-01-22 10:17:37 move counting if_opackets next to counting if_obytes in if_enqueue. this means packets are consistently counted in one place, unlike the many and various ways that drivers thought they should do it. ok mpi@ deraadt@
56fd3f56 2016-09-19 06:46:43 Remove unused getdev() audio driver functions.
7cb42e31 2016-09-14 06:12:19 Remove drain(), query_encoding(), mappage() and get_default_params() methods from all audio drivers and from the audio_if structure as they are never called.
1447d400 2016-09-04 10:35:39 naddy discovered that bha no longer builds because it includes the now deleted aha.h header. therefore bha must be dragged into the attic too.
5e2c8f16 2016-09-03 21:51:52 aha remnants lurking in here
9d0115e0 2016-09-03 21:37:28 the src tree is growing too large. delete the aha and ahb drivers in order to make room for llvm. er, the llvm makefiles. er, some of them.
9d72ad6b 2016-08-31 20:01:57 Remove rt leftovers in isapnp, unbreak kernel config. OK deraadt@
cb893398 2016-08-31 15:53:06 Support A Radio Free Europe! remove long disabled radio devices ok deraadt
25e3ba0c 2016-08-31 12:46:45 remove some ISA drivers for devices not recently seen in the wild.
b895d78f 2016-08-30 12:24:07 Make the init code match the comment and disable watchdog reset by mouse and keyboard instead of mouse and mouse.
c327b910 2016-04-22 20:45:53 do not try to probe light sensors for machines with none available, this was already fixed in -r1.7 (for kettenis macmini), but since then the code was heavily shuffled and moved around and this regression was re-introduced choose a different fix now and introduce a light sensor flag for the different models to allow or avoid the probing prodded by landry (macmini again)
e2877bf9 2016-04-19 19:35:06 lower case temperature descriptions and separate fan description from fan location by a comma to avoid ambiguity with newer models hint from kettenis (last year)
1e1858b6 2016-04-13 10:49:26 G/C IFQ_SET_READY().
bdc2c1c3 2016-03-29 13:39:53 make the ie(4)s bpf_mtap_ether outgoing packets like all the other drivers ok mpi@ claudio@
e253c8f7 2016-03-19 11:34:22 Reduces the noise around the global ``ticks'' variable by renaming all the local ones to ``nticks''. ok stefan@, deraadt@
14bf419f 2016-03-14 23:08:05 Change a bunch of (<blah> *)0 to NULL. ok beck@ deraadt@
8a83145e 2016-01-08 15:54:12 Move HID support files out of dev/usb into new dev/hid directory These files aren't USB-specific and were used by the previous Bluetooth implementation, and will be used by the upcoming HID-over-i2C implementation ok deraadt previous version ok kettenis and mpi
a975199c 2015-12-27 20:54:53 set sensor type later on init
fa0b85b6 2015-12-27 20:42:33 fold for loops back into a wait function in a similar manner as acpiec does
40fe9f6a 2015-12-27 20:26:55 rename kbdled to backlight and mention chip model in comment
65b85658 2015-12-27 20:17:39 extra taskq is gone, so also remove the no longer needed init variable
1fa7db02 2015-12-27 20:05:05 simplify and unify keyboard backlight hooks, doing the same kassert instead of for-loop as acpithinkpad does
bfb0650f 2015-12-27 19:50:14 with Mark's fix in previous commit the extra taskq for delayed initialization and updates is no longer needed and can be removed, so simplify things and initialize the sensors on attach and update them through the sensors task
7ca5d720 2015-12-22 19:04:42 The Apple SMC is implemented on a H8S/2117 chip. Communication with the chip becomes much more reliably if we pay attention to the IBF and OBF flags. This removes the need for excessive delays and retries, making operations complete in microseconds instead of seconds. This diff also removes flushing the read buffer after a read operations. This doesn't seem to be necessary, but we might need to put that back if the length of a reply changes for some keys. ok jung@, deraadt@
aaa6428e 2015-12-15 20:58:22 ignore unlikely temperature values like -127 degC
84e9cc1a 2015-12-15 20:34:33 add 2 more temperature keys found in macbook pro (10,2) found via key dump diff, run by Bryan Vyhmeister also remove 3 temperature keys which likely do not return useful values verified with help from macbook pro output of tb (4,1 and 5,5), kettenis (12,1), and Cristoph R. Murauer (9,1) via misc@
c816df4e 2015-12-15 20:05:25 add more temperature keys found in newer macbook airs (6,1 and 7,2) encountered via key dump diff, run by Bryan Vyhmeister
e81a8b51 2015-12-15 19:46:14 make sure the read fan description is always nul terminated hint from kettenis
eaa4ba10 2015-12-12 12:34:05 enable keyboard backlight support via wskbd(4) hooks tested by Bryan Vyhmeister, krw, tb, and myself ok krw tb
a33fe9ff 2015-12-11 20:36:32 remove wrapper function and call LKSB key write directly
2b8c91db 2015-12-11 20:15:50 remove no longer needed prototype
bc448cd5 2015-12-11 20:06:48 instead of checking the status everywhere do it directly after (trying) the command and propagate the result
9d022f3e 2015-12-08 13:34:22 No trailers has been the default and only option for 20 years, yet some drivers still set IFF_NOTRAILERS while others do not. Remove all usage of the flag from the drivers which in ancient times used it (and the modern drivers which blindly copied it from those drivers of yore). suggested by guenther. ok mpi
aee5e838 2015-11-25 11:20:38 Network drivers should not include <net/route.h> or <net/netisr.h>
97818786 2015-11-25 04:49:10 add size to free
de6cd8fb 2015-11-25 03:09:57 replace IFF_OACTIVE manipulation with mpsafe operations. there are two things shared between the network stack and drivers in the send path: the send queue and the IFF_OACTIVE flag. the send queue is now protected by a mutex. this diff makes the oactive functionality mpsafe too. IFF_OACTIVE is part of if_flags. there are two problems with that. firstly, if_flags is a short and we dont have any MI atomic operations to manipulate a short. secondly, while we could make the IFF_OACTIVE operates mpsafe, all changes to other flags would have to be made safe at the same time, otherwise a read-modify-write cycle on their updates could clobber the oactive change. instead, this moves the oactive mark into struct ifqueue and provides an API for changing it. there's ifq_set_oactive, ifq_clr_oactive, and ifq_is_oactive. these are modelled on ifsq_set_oactive, ifsq_clr_oactive, and ifsq_is_oactive in dragonflybsd. this diff includes changes to all the drivers manipulating IFF_OACTIVE to now use the ifsq_{set,clr_is}_oactive API too. ok kettenis@ mpi@ jmatthew@ deraadt@
32f46ff2 2015-11-24 17:11:38 You only need <net/if_dl.h> if you're using LLADDR() or a sockaddr_dl.
f9ad5574 2015-11-24 13:33:17 The only network driver needing <net/if_types.h> is upl(4) for IFT_OTHER.
b5d83b91 2015-11-20 03:35:22 shuffle struct ifqueue so in flight mbufs are protected by a mutex. the code is refactored so the IFQ macros call newly implemented ifq functions. the ifq code is split so each discipline (priq and hfsc in our case) is an opaque set of operations that the common ifq code can call. the common code does the locking, accounting (ifq_len manipulation), and freeing of the mbuf if the disciplines enqueue function rejects it. theyre kind of like bufqs in the block layer with their fifo and nscan disciplines. the new api also supports atomic switching of disciplines at runtime. the hfsc setup in pf_ioctl.c has been tweaked to build a complete hfsc_if structure which it attaches to the send queue in a single operation, rather than attaching to the interface up front and building up a list of queues. the send queue is now mutexed, which raises the expectation that packets can be enqueued or purged on one cpu while another cpu is dequeueing them in a driver for transmission. a lot of drivers use IFQ_POLL to peek at an mbuf and attempt to fit it on the ring before committing to it with a later IFQ_DEQUEUE operation. if the mbuf gets freed in between the POLL and DEQUEUE operations, fireworks will ensue. to avoid this, the ifq api introduces ifq_deq_begin, ifq_deq_rollback, and ifq_deq_commit. ifq_deq_begin allows a driver to take the ifq mutex and get a reference to the mbuf they wish to try and tx. if there's space, they can ifq_deq_commit it to remove the mbuf and release the mutex. if there's no space, ifq_deq_rollback simply releases the mutex. this api was developed to make updating the drivers using IFQ_POLL easy, instead of having to do significant semantic changes to avoid POLL that we cannot test on all the hardware. the common code has been tested pretty hard, and all the driver modifications are straightforward except for de(4). if that breaks it can be dealt with later. ok mpi@ jmatthew@
a24c2796 2015-10-29 13:29:04 enable keyboard backlight led earlier to avoid race
5dc076fc 2015-10-25 19:26:43 refactor to use a taskq and postpone the long running initial sensor probing, also avoid excessive tsleep()s for updates within the sensor task, moreover this should fix some seldom seen 'comm collision' errors
b4d012a8 2015-10-25 13:13:06 arp_ifinit() is no longer needed and almost dead.
7be63962 2015-10-15 01:14:33 avoid using a var uninitialised ok jung@
d67b9c56 2015-10-10 12:05:47 add location to the fan description
84b563f6 2015-10-10 11:57:20 fix wrong brackets in if statement
a4c3bbb1 2015-10-04 20:00:50 tweak initial output a bit: do not show number of light sensors, just show if some is found or not, also remove kbdled output as there is no (known) way to test if (not) available at all
59f20258 2015-10-04 12:07:58 a macmini has no light sensor, but reading from light sensor keys is successful, while info/type reading from same keys fails and avoids initialization; so check the validity flag earlier and do not try to attach invalid (non-existing) keys debugged with help from kettenis
4983fd87 2015-10-04 11:41:24 remove duplicate key, found by kettenis
04aac60e 2015-10-01 18:41:06 relax vendor comparison to match variations found in older models for example macmini1,1
c94e3108 2015-10-01 18:31:40 add const, prodded by mpi
b28ae901 2015-10-01 18:24:28 remove superfluous sensor_attach() added for debug reasons
f6c5212e 2015-10-01 15:57:08 fix semicolon after if statement ok jung@
25d83aa9 2015-09-30 12:15:12 add a (disabled) driver for the Apple System Management Controller (SMC) as found in Apple Intel based devices "go at it" deraadt@
f2a0e423 2015-09-11 13:02:28 Make room for media types of the future. Extend the ifmedia word to 64 bits. This changes numbers of the SIOCSIFMEDIA and SIOCGIFMEDIA ioctls and grows struct ifmediareq. Old ifconfig and dhclient binaries can still assign addresses, however the 'media' subcommand stops working. Recompiling ifconfig and dhclient with new headers before a reboot should not be necessary unless in very special circumstances where non-default media settings must be used to get link and console access is not available. There may be some MD fallout but that will be cleared up later. ok deraadt miod with help and suggestions from several sharks attending l2k15
33c4f654 2015-08-18 06:54:00 Add missing trailing to error message: pckbc0: unable to establish interrupt for irq 12pckbd0 at pckbc0 (kbd slot) ok miod@
9d02a238 2015-07-18 00:48:05 Shuffle include file ordering in preparation for future changes in vgavar.h, which will have it depend upon wsdisplayvar.h.
822e8206 2015-07-08 07:21:49 MFREE(9) is dead, long live m_freem(9)! ok bluhm@, claudio@, dlg@
64a4b7dc 2015-06-25 20:05:11 Cards with revision < 10 (qemu rev is 0), have no ad1848 chip and don't attach the ad1848 driver. But the "malloc" method of gus_hw_if is ad1848_malloc() which assumes a ad1848 is attached (and expect the softc pointer to be a struct ad1848_softc, but get a gus_softc pointer instead). Implement, the missing gus_{malloc,free,mappage,...} routines. Add the missing mtx_{enter,leave} calls, as we're at it. Found by mlarkin. ok mlarkin
1cf28608 2015-06-25 06:43:45 Reimplement the audio driver in a simpler way, removing unused/unusable functionality. Same API and ABI except for the removed bits and no behaviour change for programs using libsndio. With help from armani@ and mpi@, thanks.
db4dc9aa 2015-06-24 09:40:53 Increment if_ipackets in if_input(). Note that pseudo-drivers not using if_input() are not affected by this conversion. ok mikeb@, kettenis@, claudio@, dlg@
4010ecea 2015-05-26 11:23:15 More than 100+ drivers converted to if_input(), this is the last "real" one. ok dlg@
8a76d52f 2015-05-25 15:19:22 Initialize ipa_ndrq in isascan() too...
60dbe9c7 2015-05-24 15:25:34 Initialize ipa_nirq in isascan(). Gets rid of spurious irq locators being printed for isadma(4).
bd4a265c 2015-05-24 10:57:47 Follow the recent pckbc@isa changes and always establish all the necessary interrupts at pckbc attach time, and get rid of the `intr_establish' pckbc callback. Tested on hppa (gsckbc) and sgi (pckbc@hpc); not tested on sparc64 (pckbc@ebus) but this attachment was already behaving this way and its intr_establish callback was an empty function.
1175f20b 2015-05-21 19:32:29 Establish interrupts for both keyboard and mouse slots at pckbc attach time, rather than lazily from pckbc when slots are discovered. This is consistent with what other isa devices (and pckbc on non-isa busses) do, and as a side effect, this makes the dmesg output shorter. This will also let us get rid of pckbc's intr_establish() callback in a later diff. Prompted by krw@ noticing ugly kernel output in a configuration with the mouse slot left empty. ok krw@ mpi@
da463e6c 2015-05-21 19:29:31 Report all valid interrupt locators in isaprint() - although config(8) stanzas only allow one irq for isa devices, there is actually support for more since we got isapnp(4) support, and upcoming changes will actually have regular isa(4) devices claim more than one irq in their indirect match function.
cdea9beb 2015-05-19 11:24:01 Convert to if_input(). ok dlg@
64a3f76c 2015-05-13 10:42:46 test mbuf pointers against NULL not 0 ok krw@ miod@
fd8ccecd 2015-05-12 16:35:23 Remove references to (deleted) auconv.h and mulaw.h files. Fixes i386 build. Found by Mark Patruck <mark at wrapped.cx>, thanks!
e79456d4 2015-05-11 06:52:35 Remove support for ADPCM encoding which isn't used nowadays and not available to programs anyway.
ac2bb4f3 2015-05-11 06:46:21 Remove all audio format conversion code from the kernel (btw holding the kernel_lock), as we already do better conversions in user-mode. Yet, no need for every single driver to fiddle with the conversion code as they are done transparently by common MI code. With help from armani and miod, support from mpi ok armani@
0a64bdd0 2015-05-09 10:27:32 Fix an occurance of mtx_enter() that should have been mtx_leave(). This line was originally an splx() before being converted to a mutex. ok ratchov@
36dbe1c7 2015-05-08 07:25:36 Fix the indentation. While originally I thought this was an if statement with missing braces ratchov checked the specs to see the current behaviour is correct, just poorly formatted. ok ratchov@
627a0107 2015-05-04 09:33:45 Print irq informations in pckbc_set_inputhandler(). ok miod@
21dab745 2015-03-14 03:38:46 Remove some includes include-what-you-use claims don't have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
285c523d 2015-02-10 22:50:12 Trivial conversion to uiomove()
081bf720 2015-02-10 21:56:08 First step towards making uiomove() take a size_t size argument: - rename uiomove() to uiomovei() and update all its users. - introduce uiomove(), which is similar to uiomovei() but with a size_t. - rewrite uiomovei() as an uiomove() wrapper. ok kettenis@
25c766cd 2015-01-02 23:02:54 Identify NCT5104D variant in dmesg. (No lm here, these are used for com and gpio pins on SuperMicro and PC Engines.) ok kettenis@
3f0696d9 2015-01-02 22:36:15 there's no need to defer the removal of the iic sensors to a task, we can just remove them directly. tested by krw@
f79ee556 2014-12-22 02:28:51 unifdef INET
e83e1938 2014-12-19 13:53:08 Use taskq rather than workq to remove unwanted alias. ok mikeb kettenis (for earlier version)
15cd8707 2014-12-17 06:58:10 Prefer MADV_* over POSIX_MADV_* in kernel for consistency: the latter doesn't have all the values and therefore can't be used everywhere. ok deraadt@ kettenis@
e087cc70 2014-12-15 02:24:22 Use MAP_INHERIT_* for the 'inh' argument to the UMV_MAPFLAG() macro, eliminating the must-be-kept-in-sync UVM_INH_* macros ok deraadt@ tedu@
7f25511a 2014-12-11 20:24:48 Do not blindly dereference hw_vendor and hw_prod without checking them for NULL first, for they are not guaranteed to be allocated. Found the hard way by Tobias Stoeckmann; ok deraadt@
3b06f262 2014-12-10 12:27:56 Convert watchdog(4) devices to use autoconf(9) framework. ok deraadt, tests on glxpcib and ok mpi
1f1c1562 2014-12-10 05:42:25 Add skgpio(4) a driver for the Soekris net6501 GPIO and LEDs from Matt Dainty.
4f96a8b9 2014-12-04 21:03:50 as promised 18 years ago, consolidate isa floppy disks in files.isa ok deraadt
09103d0d 2014-12-03 20:09:32 More duplicate #include cleanout. ok deraadt@ tedu@
0499a7f2 2014-11-24 02:03:36 use the correct capitalization for Realtek.
1e8cdc2e 2014-11-16 12:30:52 Replace a plethora of historical protection options with just PROT_NONE, PROT_READ, PROT_WRITE, and PROT_EXEC from mman.h. PROT_MASK is introduced as the one true way of extracting those bits. Remove UVM_ADV_* wrapper, using the standard names. ok doug guenther kettenis
5d04c39b 2014-10-18 15:37:06 oops, too greedy
e392834e 2014-10-18 12:21:56 Remove even more unnecessary `needs-flag' attributes from config machinery, as well as useless include of the generated flag files.
3b75c3e5 2014-10-12 19:33:32 Remove unnecessary `needs-flag' attributes.