~kris/9p

9hist

fb5a1a23721a68e6adf6fbd3d5a23b321fa0ed42 — David du Colombier 30 years ago 7f152ad
Plan 9 from Bell Labs 1996-05-21
1 files changed, 5 insertions(+), 1 deletions(-)

M pc/ether589.c
M pc/ether589.c => pc/ether589.c +5 -1
@@ 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