summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2012-11-28 01:15:34 +0000
committerBrad Smith <brad@cvs.openbsd.org>2012-11-28 01:15:34 +0000
commit96ec03b564a0dfc86855d7c5d7a3853dd0b0e8a7 (patch)
treeb70820ba966a28377f63bd788e3a81800b6a63fc /sys/arch
parent4b4b0ef0a4a37726cc1d927025e4647b2521bc1f (diff)
- Use IF_Gbps(1) instead of IF_Mbps(1000)
- Use IF_Mbps() instead of multiplying the link speed by a bare value - Remove a useless comment as baudrate is already handled properly - Remove some commented out bits of code - Use IF_Mbps() instead of the bare value ok sthen@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/octeon/dev/cn30xxgmx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/octeon/dev/cn30xxgmx.c b/sys/arch/octeon/dev/cn30xxgmx.c
index 550133dadde..b647f5c19dc 100644
--- a/sys/arch/octeon/dev/cn30xxgmx.c
+++ b/sys/arch/octeon/dev/cn30xxgmx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cn30xxgmx.c,v 1.3 2011/07/03 20:31:39 yasuoka Exp $ */
+/* $OpenBSD: cn30xxgmx.c,v 1.4 2012/11/28 01:15:33 brad Exp $ */
/*
* Copyright (c) 2007 Internet Initiative Japan, Inc.
@@ -672,7 +672,7 @@ cn30xxgmx_rgmii_speed(struct cn30xxgmx_port_softc *sc)
baudrate = IF_Mbps(100);
break;
case RXN_RX_INBND_SPEED_125:
- baudrate = IF_Mbps(1000);
+ baudrate = IF_Gbps(1);
break;
default:
baudrate = 0/* XXX */;