Commit Graph

27 Commits

Author SHA1 Message Date
xtraeme
434a9a86ff There's no need to add timecounter code inside of __HAVE_TIMECOUNTER
ifdefs.
2007-08-26 17:15:42 +00:00
ad
88ab7da936 Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
2007-07-09 20:51:58 +00:00
jmcneill
ff20668913 Disgusting Xbox hack;
The "pci0 dev 1 function 2" aka "System Management" on the nForce chipset
isn't detected on the Xbox. If XBOX is defined and arch_i386_is_xbox is
true, force intrline to 12 and map the system management IO space at
0x8000. We can now call iic_smbus_intr when a system management interrupt
takes place.

While we're here, make amdpm_smbus honour the I2C_F_POLL flag.

The Xbox no longer resets when you press the eject button.
2007-02-05 23:38:15 +00:00
jmcneill
a33eb10c0b Make sure that we don't use the amdpm timecounter on Xbox. 2007-01-06 20:25:01 +00:00
jmcneill
5c65159089 nForce uses a slightly different register offset for the smbus controls;
compensate for this.
2007-01-06 01:20:39 +00:00
jmcneill
87323934f6 Add nVidia nForce support, tested on Xbox. 2007-01-06 00:14:21 +00:00
christos
168cd830d2 __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
christos
4d595fd7b1 - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
2006-10-12 01:30:41 +00:00
christos
c689e59cb9 restructure ifdefs 2006-08-27 23:27:44 +00:00
drochner
e16c6a6b67 include machine/bus.h explicitely, fixes build problem 2006-07-11 17:37:14 +00:00
drochner
d94734d110 use timecounter code in dev/ic/acpipmtimer.*,
kill interface attribute in device declaration
2006-07-11 14:47:49 +00:00
xtraeme
d0e49918a6 Attach amdpm timer on AMD8111 too, as was suggested by Nicolas Joly. 2006-07-10 20:11:29 +00:00
christos
26115e2d37 PR/33968: Nicolas Joly: amdpm(4) timer, fix and AMD8111 support
Refactor the code to use different variable names to hold each conf register
and avoid reading/witing the conf space multiple times.
2006-07-10 20:03:42 +00:00
explorer
02018a0856 formatting nit, newline, print device name 2006-06-21 21:09:36 +00:00
explorer
b76f23191b Actually set amdpm_timecounter.tc_priv before using it later. 2006-06-21 20:16:35 +00:00
xtraeme
be705fc9c7 Support for the 24/32bit timer in the AMD 768 Power Management
Controller, to try it use `sysctl -w kern.timecounter.hardware=amdpm`.

From OpenBSD.
2006-06-17 15:05:15 +00:00
tls
b69125454c Add support for i2c bus on AMD-8111 used on many Opteron server motherboards,
and ADT 7463c thermal and voltage monitor found on the Tyan S2881 and S2882-D
(and probably other boards as well).  We do not currently support any kind
of detection of the i2c address of the thermal monitor; it appears to be
at 0x2D on the S2881 and 0x2E on the S2882-D (kernel config examples
forthcoming).

From PR kern/32463 submitted by Anil Gopinath, anil_public@yahoo.com.
2006-02-19 02:24:20 +00:00
kleink
2269235d63 Add support for the AMD8111 RNG; from Nicolas Joly in PR kern/32284. 2006-01-28 23:31:24 +00:00
christos
f1c1eb475b PR/32220: Murray Armfield: Enable AMD768 random no generator. 2005-12-04 17:47:33 +00:00
thorpej
d36c43c511 Use ANSI function decls and static. 2005-06-28 00:28:41 +00:00
tls
48e67d1d60 Revert previous change, which was wrong. As Enami points out, we really do
want the NO_ESTIMATE flag here, because if the source doesn't have it,
rnd_add_data will *use the time the data was added directly as entropy*,
which is not a good idea either for a hardware RNG that works like this
one (periodically polled by the driver) or, really, like any other that I've
seen, because even for "interrupt when ready" RNGs the data rate (and thus
interrupt time) will vary only slightly for a given RNG configuration over
time, if at all.

The data we add _is_ counted into the pool estimage because we directly
pass in an entropy estimate.

The overloading of the NO_ESTIMATE flag with this meaning seems, to me, like
a design bug (albeit easily fixed) in the rng interface; but until that's
changed, we need to use it here.
2003-09-01 06:30:24 +00:00
tls
062dab3c81 Remove RND_FLAG_NO_ESTIMATE and comment claiming we can't estimate (which
means "count", in this context) the entropy we're adding because we poll the
device periodically.  Sure, we poll it periodically, but it's a hardware
RNG -- the data returned should be random no matter when we read the
register!
2003-08-12 09:46:46 +00:00
thorpej
7ec10e2d99 Use aprint_*(). 2003-01-31 00:07:39 +00:00
thorpej
9b2c2ec24d Add trailing ; to CFATTACH_DECL. 2002-10-02 16:50:59 +00:00
thorpej
387fc6dc87 Use CFATTACH_DECL(). 2002-09-30 20:37:04 +00:00
thorpej
f818766afe Declare all cfattach structures const. 2002-09-27 20:31:45 +00:00
enami
461e42e9ef Collect random number from AMD 768MPX power management controller. 2002-06-02 02:44:27 +00:00