~kris/9p

9hist

37379260936da1e9c4ad6e25149ea84ba6d5bf0e — David du Colombier 29 years ago c37e9aa
Plan 9 from Bell Labs 1996-09-28
2 files changed, 5 insertions(+), 3 deletions(-)

M pc/clock.c
M pc/etherelnk3.c
M pc/clock.c => pc/clock.c +2 -0
@@ 93,11 93,13 @@ X86type x86type[] =
	{ 4,	8,	22,	"IntelDX4", },
	{ 5,	1,	23,	"Pentium510", },
	{ 5,	2,	23,	"Pentium735", },
	{ 6,	1,	16,	"PentiumPro", },/* determined by trial and error */

	/* family defaults */
	{ 3,	-1,	32,	"Intel386", },
	{ 4,	-1,	22,	"Intel486", },
	{ 5,	-1,	23,	"Pentium", },
	{ 6,	-1,	16,	"PentiumPro", },

	/* total default */
	{ -1,	-1,	23,	"unknown", },

M pc/etherelnk3.c => pc/etherelnk3.c +3 -3
@@ 722,7 722,7 @@ interrupt(Ureg*, void* arg)
			}

			if(txstatus & (txJabber|txUnderrun)){
				COMMAND(port, TxReset, 0);
				COMMAND(port, TxReset, dmaReset);
				while(STATUS(port) & commandInProgress)
					;
				COMMAND(port, SetTxStartThresh, ctlr->txthreshold>>ctlr->ts);


@@ 1219,8 1219,8 @@ etherelnk3reset(Ether* ether)
	 * if any txUnderrun errors occur and ensure no RxEarly
	 * interrupts happen.
	 */
	ctlr->txthreshold = ETHERMINTU;
	COMMAND(port, SetTxStartThresh, ETHERMINTU>>ctlr->ts);
	ctlr->txthreshold = ETHERMINTU*2;
	COMMAND(port, SetTxStartThresh, ctlr->txthreshold>>ctlr->ts);
	COMMAND(port, SetRxEarlyThresh, rxearly>>ctlr->ts);

	iunlock(&ctlr->wlock);