Commit Graph

2302 Commits

Author SHA1 Message Date
matt 737a317ffe Use C89 prototypes. 2012-02-01 02:01:28 +00:00
christos 6fb39d18da add a tpm driver from bsssd.sourceforge.net 2012-01-22 06:44:28 +00:00
jakllsch 8f0ea367ff wbsio(4) rescan support. 2012-01-18 00:23:30 +00:00
jakllsch c178e583d6 Improve module dependency list. 2012-01-18 00:14:32 +00:00
jakllsch 3349f7e947 Improve module dependencies, clean up old #if 0 code. 2012-01-18 00:11:43 +00:00
jakllsch 32dd90c25f update for wbsio and lm changes 2012-01-17 18:05:15 +00:00
jakllsch 7db60498ba Make this compile. 2012-01-17 18:04:46 +00:00
jakllsch 3f9c821629 No module dependencies are denoted with NULL. Pointed out by jmcneill. 2012-01-17 17:17:15 +00:00
jakllsch 4dd99ce884 Modularize lm_isa and lm_wbsio, splitting the common part out
into a 3rd module.  Add wbsio module too.
2012-01-17 16:50:07 +00:00
jakllsch 70c82e3eee Add module glue. 2012-01-17 16:34:52 +00:00
jakllsch 74ac6cec3b Add and enable detachment and child detachment functions. 2012-01-17 16:32:03 +00:00
jakllsch b5ca2ea8e0 Add NULL pmf handlers. 2012-01-17 16:28:33 +00:00
jakllsch f3842730f2 Initialize the opl softc lock pointer to the parent's interrupt lock.
Briefly tested only on wss@isapnp.
2011-12-07 17:38:50 +00:00
christos f5e469b78a make joy code consistent (avoid games with pointers), and fix the isa softc
declaration
2011-12-05 19:20:54 +00:00
drochner 9dc717c79e stopgap fix to avoid panic due to recursive locking if the keyboard beep
is activated through a tty (which it usually is)
IMO it was no good idea to abuse tty_lock here - it is already
problematic in the tty subsystem
2011-11-26 15:54:51 +00:00
riastradh 6612803043 KASSERT(!mutex_owned(...)) is not kosher. 2011-11-25 22:40:02 +00:00
jakllsch 2c12aa993d Make locking in pcppi_pckbd_bell() work. Works around locking problems
triggered when an X server rings the console bell.
2011-11-25 14:31:44 +00:00
jakllsch ca6ee1e0e7 This hopefully completes the audiomp conversion of cms(4). 2011-11-24 16:11:02 +00:00
jakllsch 1aeefdff80 Make this compile without warnings.
(No static is better than inconsistent and partial use of static.)
2011-11-24 16:07:28 +00:00
mrg 8de08fa998 put back IPL_AUDIO and splaudio(), at the request of rmind. they are
aliases and now we can easily revert audio to IPL_VM if necessary,
without having to revert the whole branch.
2011-11-24 03:35:56 +00:00
jmcneill 8a962f23f2 Merge jmcneill-audiomp3 branch, which is derived from ad-audiomp2. From
the original ad-audiomp branch notes:

  Add MP locking to the audio drivers.

  Making the audio drivers MP safe is necessary before efforts
  can be made to make the VM system MP safe.

  The are two locks per device instance, an ISR lock and
  a character device lock. The ISR lock replaces calls to
  splaudio()/splx(), and will be held across calls to device
  methods which were called at splaudio() before (e.g.
  trigger_output). The character device lock is held across
  calls to nearly all of the methods, excluding some only
  used for initialization, e.g. get_locks.

Welcome to 5.99.57.
2011-11-23 23:07:28 +00:00
tls 3afd44cf08 First step of random number subsystem rework described in
<20111022023242.BA26F14A158@mail.netbsd.org>.  This change includes
the following:

	An initial cleanup and minor reorganization of the entropy pool
	code in sys/dev/rnd.c and sys/dev/rndpool.c.  Several bugs are
	fixed.  Some effort is made to accumulate entropy more quickly at
	boot time.

	A generic interface, "rndsink", is added, for stream generators to
	request that they be re-keyed with good quality entropy from the pool
	as soon as it is available.

	The arc4random()/arc4randbytes() implementation in libkern is
	adjusted to use the rndsink interface for rekeying, which helps
	address the problem of low-quality keys at boot time.

	An implementation of the FIPS 140-2 statistical tests for random
	number generator quality is provided (libkern/rngtest.c).  This
	is based on Greg Rose's implementation from Qualcomm.

	A new random stream generator, nist_ctr_drbg, is provided.  It is
	based on an implementation of the NIST SP800-90 CTR_DRBG by
	Henric Jungheim.  This generator users AES in a modified counter
	mode to generate a backtracking-resistant random stream.

	An abstraction layer, "cprng", is provided for in-kernel consumers
	of randomness.  The arc4random/arc4randbytes API is deprecated for
	in-kernel use.  It is replaced by "cprng_strong".  The current
	cprng_fast implementation wraps the existing arc4random
	implementation.  The current cprng_strong implementation wraps the
	new CTR_DRBG implementation.  Both interfaces are rekeyed from
	the entropy pool automatically at intervals justifiable from best
	current cryptographic practice.

	In some quick tests, cprng_fast() is about the same speed as
	the old arc4randbytes(), and cprng_strong() is about 20% faster
	than rnd_extract_data().  Performance is expected to improve.

	The AES code in src/crypto/rijndael is no longer an optional
	kernel component, as it is required by cprng_strong, which is
	not an optional kernel component.

	The entropy pool output is subjected to the rngtest tests at
	startup time; if it fails, the system will reboot.  There is
	approximately a 3/10000 chance of a false positive from these
	tests.  Entropy pool _input_ from hardware random numbers is
	subjected to the rngtest tests at attach time, as well as the
	FIPS continuous-output test, to detect bad or stuck hardware
	RNGs; if any are detected, they are detached, but the system
	continues to run.

	A problem with rndctl(8) is fixed -- datastructures with
	pointers in arrays are no longer passed to userspace (this
	was not a security problem, but rather a major issue for
	compat32).  A new kernel will require a new rndctl.

	The sysctl kern.arandom() and kern.urandom() nodes are hooked
	up to the new generators, but the /dev/*random pseudodevices
	are not, yet.

	Manual pages for the new kernel interfaces are forthcoming.
2011-11-19 22:51:18 +00:00
jakllsch 1d4d51395d Appease _LP64 build with GCC 4.5. 2011-08-07 19:46:22 +00:00
jakllsch ffb4d47223 The Fintek base address registers implement the bottom 3 bits as read/write,
but the address decoder in the chip ignores these three bits.  Do the same.
2011-07-31 18:23:46 +00:00
jmcneill 9f438526b6 modularize and recognize ASUS F8000 Super I/O chips 2011-07-31 17:53:26 +00:00
jmcneill 0d3a27d5dc modularize 2011-07-31 16:18:54 +00:00
jmcneill 60427626c4 add module support 2011-07-29 20:58:47 +00:00
jmcneill 17536f8e9e add module support 2011-07-15 20:56:26 +00:00
mrg 1ff8330243 fix sequence point errors. diff explains best:
-       sc->sc_playbuf = ++sc->sc_playbuf % sc->sc_nbufs;
+       sc->sc_playbuf = (sc->sc_playbuf + 1) % sc->sc_nbufs;
2011-07-02 13:14:46 +00:00
wiz 4cbd24b23f dependant -> dependent 2011-06-30 20:09:15 +00:00
pgoyette ac39d68c59 Initialize sensors states before registering. 2011-06-20 18:12:54 +00:00
tsutsui c22ffc3803 Split device_t/softc of i82586. No crash on TME emulating sun2. 2011-06-03 16:28:40 +00:00
tsutsui ff2f721f5c Split device_t/softc of all ad1848 variants properly. Compile test only.
Please check all attribute users in all files.* on device_t/softc split.

XXX: not sure if gus(4) needs device_t in ad1848_isa_softc
2011-06-02 14:12:24 +00:00
nonaka 26a17089a0 fix compile failure. 2011-06-02 12:51:52 +00:00
jakllsch c0d7afac87 Convert ltsleep() in atppc(4) to modern interfaces.
Reviewed by rmind@.
2011-05-26 02:29:23 +00:00
mrg 046a9cdb65 avoid mutex locking botch and introduce an unlocked version of
pcppi_bell_stop().  fixes a problem reported in private email.
2011-05-24 09:28:03 +00:00
dyoung b11777e520 #include <sys/bus.h>, not <machine/bus.h>. 2011-05-18 01:02:43 +00:00
mrg dad44dc109 convert a lockless + spltty() combo to a IPL_VM mutex and cv.
hopefully this will avoid the beep-didn't-stop problem i had recently
that i was able to fix by calling wakeup() on pcppi's softc from ddb.
2011-05-03 04:27:13 +00:00
plunky b0b433c20f use static inline for ec_readmem(), it is not referenced elsewhere
(avoids C99 vs GNU semantics for external inline functions)
2011-04-24 18:54:41 +00:00
kiyohara 5f8633bdc8 Fix hci_private data. slhci(4) is assuming, it is slhci_softc. not device_t. 2011-03-08 04:58:21 +00:00
jruoho ea9b26744b As suggested by Sverre Froyen in a follow-up to PR # 41698, change the
sensor names to real words (e.g. "temperature 1" instead of "TEMP_1").
No functional change; only consistent envstat(8) output with other sensors.
2011-02-16 10:08:05 +00:00
jmcneill 1785be53ab treat temperature readings of 0xff as invalid, as I'm somewhat confident
that my Thinkpad isn't idling at 255 degC.
2011-01-18 16:45:11 +00:00
jmcneill 7f772947f7 save a line of dmesg 2011-01-16 14:16:03 +00:00
jmcneill a5a55fa2c0 - catch up with OpenBSD driver, adding support for newer Thinkpad models
- add module hooks
2011-01-16 01:05:45 +00:00
uebayasi 8184d5dc03 Don't pull in the whole uvm(9) API to access only PAGE_SIZE and
some other constants.  These are provided by sys/param.h now.
2010-11-13 13:51:57 +00:00
uebayasi e9fb4f077e Include uvm/uvm_external.h to access UVM external API (uvm_km_*(9)). 2010-11-06 10:59:45 +00:00
jmcneill cecc6dab21 If the 'no-legacy-devices' property is present and true, skip device
enumeration.
2010-08-21 17:08:15 +00:00
jakllsch ad67ca3e3a Implement user-settable rfact in itesio.
Additionally, match on IT8721.
2010-08-13 19:28:26 +00:00
pgoyette aa30923a4e Keep condvar wmesg within 8-char limit 2010-08-11 11:32:58 +00:00
chs ef8ada5da8 move a debug printf to FD_DEBUG. 2010-08-08 18:24:34 +00:00