From fb5a1a23721a68e6adf6fbd3d5a23b321fa0ed42 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Tue, 21 May 1996 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1996-05-21 --- pc/ether589.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pc/ether589.c b/pc/ether589.c index 6e2b7127cd002d7ff7b88a31d8cfa47d70eea57f..8a30d22ff61d72644738b1d5b4d4aeec939e50d7 100644 --- a/pc/ether589.c +++ b/pc/ether589.c @@ -46,6 +46,7 @@ static int configASIC(Ether *ether, int port, int xcvr) { ushort x; +int r; /* set Window 0 configuration registers */ COMMAND(port, SelectWindow, 0); @@ -53,6 +54,7 @@ configASIC(Ether *ether, int port, int xcvr) /* ROM size & base - must be set before we can access ROM */ /* transceiver type is 2 for 'figure it out' */ x = ins(port + AddressConfig); +print("x = %uX\n", x); outs(port + AddressConfig, (x & 0xf0) | xcvr); /* IRQ must be 3 on 3C589 */ @@ -68,7 +70,9 @@ configASIC(Ether *ether, int port, int xcvr) x = ins(port+EEPROMdata); outs(port + ProductID, x); - return ether509reset(ether); + r = ether509reset(ether); + outs(port + ResourceConfig, 0x3f00); + return r; } static int