From 6409c7eacab6f726167d284d647b07db2acebac0 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Mon, 21 Oct 2002 20:30:33 +0000 Subject: ugly hack to make the 21145 work without manual media setting. many many many thanks to nick@, who booted no less then 8 kernels for me today while hacking on that (and this includes going downstairs to the basement and up again 8 times...) ok jason@ --- sys/dev/ic/dc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/dev/ic') diff --git a/sys/dev/ic/dc.c b/sys/dev/ic/dc.c index 8493b0d7e81..2228f613a6b 100644 --- a/sys/dev/ic/dc.c +++ b/sys/dev/ic/dc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dc.c,v 1.52 2002/10/20 16:46:27 henning Exp $ */ +/* $OpenBSD: dc.c,v 1.53 2002/10/21 20:30:32 henning Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -1432,6 +1432,9 @@ void dc_reset(sc) CSR_WRITE_4(sc, DC_WATCHDOG, 0); } + if (sc->dc_type == DC_TYPE_21145) + dc_setcfg(sc, IFM_10_T); + return; } -- cgit v1.2.3