~kris/9p

9hist

950a2754087b1e727127934a743c3efda8bb8a1b — David du Colombier 30 years ago 636853a
Plan 9 from Bell Labs 1995-10-18
1 files changed, 14 insertions(+), 6 deletions(-)

M pc/ether509.c
M pc/ether509.c => pc/ether509.c +14 -6
@@ 669,17 669,25 @@ ether509reset(Ether *ether)
		ea[eax] = (x>>8) & 0xFF;
		ea[eax+1] = x & 0xFF;
	}
	if(pcicfg == 0)
		acr = ins(port+AddressConfig);
	else{
	if(pcicfg){
		ether->irq = pcicfg->irq;
		acr = Xcvr10BaseT;
		COMMAND(port, SelectWindow, 3);
		acr = XcvrAUI;
		l = inl(port+InternalCgf);
		l &= ~0x700000;
		outl(port+InternalCgf, l);
		switch(l & 0x700000){

		case 0x000000:
			acr = Xcvr10BaseT;
			break;

		case 0x300000:
			acr = XcvrBNC;
			break;
		}
		free(pcicfg);
	}
	else
		acr = ins(port+AddressConfig);

	/*
	 * Finished with window 0. Now set the ethernet address