From 96ec03b564a0dfc86855d7c5d7a3853dd0b0e8a7 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Wed, 28 Nov 2012 01:15:34 +0000 Subject: - 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@ --- sys/arch/octeon/dev/cn30xxgmx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch') 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 */; -- cgit v1.2.3