Module Name: src
Committed By: tsutsui
Date: Fri Feb 3 23:00:33 UTC 2023
Modified Files:
src/sys/arch/next68k/dev: mb8795.c
Log Message:
Add proper rnd_add_uint32(9) calls to next68k xe(4) driver.
To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 src/sys/arch/next68k/dev/mb8795.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/next68k/dev/mb8795.c
diff -u src/sys/arch/next68k/dev/mb8795.c:1.69 src/sys/arch/next68k/dev/mb8795.c:1.70
--- src/sys/arch/next68k/dev/mb8795.c:1.69 Sun Sep 18 13:00:18 2022
+++ src/sys/arch/next68k/dev/mb8795.c Fri Feb 3 23:00:33 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: mb8795.c,v 1.69 2022/09/18 13:00:18 thorpej Exp $ */
+/* $NetBSD: mb8795.c,v 1.70 2023/02/03 23:00:33 tsutsui Exp $ */
/*
* Copyright (c) 1998 Darrin B. Jewell
* All rights reserved.
@@ -25,7 +25,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mb8795.c,v 1.69 2022/09/18 13:00:18 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mb8795.c,v 1.70 2023/02/03 23:00:33 tsutsui Exp $");
#include "opt_inet.h"
@@ -348,6 +348,7 @@ mb8795_rint(struct mb8795_softc *sc)
printf("rxmode = %s\n", sbuf);
}
#endif
+ rnd_add_uint32(&sc->rnd_source, rxstat);
return;
}
@@ -380,7 +381,7 @@ mb8795_tint(struct mb8795_softc *sc)
/* printf ("Z"); */
mb8795_start_dma(sc);
}
- return;
+ goto out;
}
if (txstat & MB8795_TXSTAT_SHORTED) {
@@ -414,6 +415,8 @@ mb8795_tint(struct mb8795_softc *sc)
txmask & ~MB8795_TXMASK_READYIE);
}
#endif
+ out:
+ rnd_add_uint32(&sc->rnd_source, txstat);
return;
}