Re: Oops with 3c59x module (3com 3c595 NIC)

From: Henning P. Schmiedehausen (hps@intermeta.de)
Date: Sun Dec 08 2002 - 07:30:32 EST


Jeff Garzik <jgarzik@pobox.com> writes:

>pci-skeleton.c and several of Don's drivers actually do do something
>else on TxUnderrun, twiddle DMA burst settings:

> if ((intr_status & TxUnderrun)
> && (np->tx_config & TxThresholdField) !=
>TxThresholdField) {
> long ioaddr = dev->base_addr;
> np->tx_config += TxThresholdInc;
> writel(np->tx_config, ioaddr + TxMode);
> np->stats.tx_fifo_errors++;
> }

>I wonder how feasible it is to do that on 3c59x hardware?

I wonder whether this is not a layer violation. Shouldn't there be
some sort of API call to do this?

        Regards
                Henning

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen       -- Geschaeftsfuehrer
INTERMETA - Gesellschaft fuer Mehrwertdienste mbH     hps@intermeta.de

Am Schwabachgrund 22 Fon.: 09131 / 50654-0 info@intermeta.de D-91054 Buckenhof Fax.: 09131 / 50654-20 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Dec 15 2002 - 22:00:13 EST