CVS commit: src/sys/arch/mipsco/obio

2014-06-08 Thread Havard Eidnes
Module Name:src
Committed By:   he
Date:   Sun Jun  8 10:40:52 UTC 2014

Modified Files:
src/sys/arch/mipsco/obio: zs.c

Log Message:
Move the rest of real_bps handling in under #if 0, so
that we don't get set-but-not-used warnings from the compiler.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/mipsco/obio/zs.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/mipsco/obio/zs.c
diff -u src/sys/arch/mipsco/obio/zs.c:1.24 src/sys/arch/mipsco/obio/zs.c:1.25
--- src/sys/arch/mipsco/obio/zs.c:1.24	Fri Jun 13 12:25:37 2008
+++ src/sys/arch/mipsco/obio/zs.c	Sun Jun  8 10:40:52 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: zs.c,v 1.24 2008/06/13 12:25:37 cegger Exp $	*/
+/*	$NetBSD: zs.c,v 1.25 2014/06/08 10:40:52 he Exp $	*/
 
 /*-
  * Copyright (c) 1996, 2000 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: zs.c,v 1.24 2008/06/13 12:25:37 cegger Exp $);
+__KERNEL_RCSID(0, $NetBSD: zs.c,v 1.25 2014/06/08 10:40:52 he Exp $);
 
 #include opt_ddb.h
 #include opt_kgdb.h
@@ -393,7 +393,10 @@ zs_get_speed(struct zs_chanstate *cs)
 int
 zs_set_speed(struct zs_chanstate *cs, int bps)
 {
-	int tconst, real_bps;
+	int tconst;
+#if 0
+	int real_bps;
+#endif
 
 #if 0
 	while (!(zs_read_csr(cs)  ZSRR0_TX_READY))
@@ -413,11 +416,11 @@ zs_set_speed(struct zs_chanstate *cs, in
 	if (tconst  0)
 		return (EINVAL);
 
+#if 0
 	/* Convert back to make sure we can do it. */
 	real_bps = TCONST_TO_BPS(cs-cs_brg_clk, tconst);
 
 	/* XXX - Allow some tolerance here? */
-#if 0
 	if (real_bps != bps)
 		return (EINVAL);
 #endif



CVS commit: src/sys/arch/mipsco/obio

2009-06-29 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Mon Jun 29 20:49:25 UTC 2009

Modified Files:
src/sys/arch/mipsco/obio: rambo.h

Log Message:
Fix integer constant RB_FREQUENC, 25MHz/4 is 625L, not 625000L

This fixes PR 39931

PR and fix from Miod Vallat m...@online.fr, many thanks!


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/mipsco/obio/rambo.h

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/mipsco/obio/rambo.h
diff -u src/sys/arch/mipsco/obio/rambo.h:1.6 src/sys/arch/mipsco/obio/rambo.h:1.7
--- src/sys/arch/mipsco/obio/rambo.h:1.6	Mon Apr 28 20:23:28 2008
+++ src/sys/arch/mipsco/obio/rambo.h	Mon Jun 29 20:49:25 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: rambo.h,v 1.6 2008/04/28 20:23:28 martin Exp $	*/
+/*	$NetBSD: rambo.h,v 1.7 2009/06/29 20:49:25 mbalmer Exp $	*/
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -109,7 +109,7 @@
 #define	RB_BOUNDRY	(1RB_BSIZE)
 
 /* Rambo cycle counter is fed by 25MHz clock then divided by 4 */
-#define	RB_FREQUENCY		625000L
+#define	RB_FREQUENCY		625L
 #define	HZ_TO_TICKS(hz)		(RB_FREQUENCY/(hz))
 #define TICKS_TO_USECS(t)	(((t)*4)/25)
 #endif