Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-3]: src/sys/dev/pci Pull up following revision(s) (requested by t...
details: https://anonhg.NetBSD.org/src/rev/d8ca4bb4a1fb
branches: netbsd-3
changeset: 577811:d8ca4bb4a1fb
user: riz <riz%NetBSD.org@localhost>
date: Sun Feb 05 17:26:10 2006 +0000
description:
Pull up following revision(s) (requested by tls in ticket #1158):
sys/dev/pci/amdpm.c: revision 1.9
PR/32220: Murray Armfield: Enable AMD768 random no generator.
diffstat:
sys/dev/pci/amdpm.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 40c74d9ef9bb -r d8ca4bb4a1fb sys/dev/pci/amdpm.c
--- a/sys/dev/pci/amdpm.c Sun Feb 05 17:22:19 2006 +0000
+++ b/sys/dev/pci/amdpm.c Sun Feb 05 17:26:10 2006 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: amdpm.c,v 1.7 2003/09/01 06:30:24 tls Exp $ */
+/* $NetBSD: amdpm.c,v 1.7.14.1 2006/02/05 17:26:10 riz Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amdpm.c,v 1.7 2003/09/01 06:30:24 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amdpm.c,v 1.7.14.1 2006/02/05 17:26:10 riz Exp $");
#include "opt_amdpm.h"
@@ -132,6 +132,8 @@
}
reg = pci_conf_read(pa->pa_pc, pa->pa_tag, AMDPM_CONFREG);
+ pci_conf_write(pa->pa_pc, pa->pa_tag, AMDPM_CONFREG, reg | AMDPM_RNGEN);
+ reg = pci_conf_read(pa->pa_pc, pa->pa_tag, AMDPM_CONFREG);
if (reg & AMDPM_RNGEN) {
/* Check to see if we can read data from the RNG. */
(void) bus_space_read_4(sc->sc_iot, sc->sc_ioh,
Home |
Main Index |
Thread Index |
Old Index