3c590 _again_

Chris Evans (chris@ferret.lmh.ox.ac.uk)
Thu, 27 Feb 1997 17:02:22 +0000 (GMT)


I was just browsing the 3c590 source alongside the 3c509 source, and the
two cards appear to be programmed in a virtually identical way.

But, in 3c590.c (v0.30-all), line 903

if (inw(ioaddr + TxFree) > 1536) {
dev->tbusy = 0;
} else
/* Interrupt us when the FIFO has room for max-sized pa$
outw(SetTxThreshold + (1536>>2), ioaddr + EL3_CMD);
^^^^^^^^^

And in 3c509.c (version with kernel 2.0.28), line 489

if (inw(ioaddr + TX_FREE) > 1536) {
dev->tbusy = 0;
} else
/* Interrupt us when the FIFO has room for max-sized pa$
outw(SetTxThreshold + 1536, ioaddr + EL3_CMD);
^^^^

Anyone got any 3Com network card specs? Surely 2 cards would not be
programmed so similarly yet differ in that one reports bytes free and the
other dwords free? Or if they did, surely the 3c590 TxFree function would
operate in identical units to SetTxThreshold, ie. dwords?

Just an idea,
Chris.