View | Details | Raw Unified | Return to bug 18639
Collapse All | Expand All

(-)i386/isa/if_le.c (-6 / +13 lines)
Lines 1377-1384 Link Here
1377
#define	DEPCA_NICSR_SHE		0x0080		/* Shared RAM Enabled (ie hide ROM) */
1377
#define	DEPCA_NICSR_SHE		0x0080		/* Shared RAM Enabled (ie hide ROM) */
1378
#define	DEPCA_NICSR_BOOTTMO	0x0100		/* Remote Boot Timeout (ignored) */
1378
#define	DEPCA_NICSR_BOOTTMO	0x0100		/* Remote Boot Timeout (ignored) */
1379
1379
1380
#define	DEPCA_RDNICSR(sc)	(LE_INW(sc, DEPCA_REG_NICSR))
1380
#define	DEPCA_RDNICSR(sc)	(LE_INB(sc, DEPCA_REG_NICSR))
1381
#define	DEPCA_WRNICSR(sc, val)	(LE_OUTW(sc, DEPCA_REG_NICSR, val))
1381
#define	DEPCA_WRNICSR(sc, val)	(LE_OUTB(sc, DEPCA_REG_NICSR, val))
1382
1382
1383
#define	DEPCA_IDSTR_OFFSET	0xC006		/* ID String Offset */
1383
#define	DEPCA_IDSTR_OFFSET	0xC006		/* ID String Offset */
1384
1384
Lines 1546-1555 Link Here
1546
	sc->lance_rxbufsize *= rxdescs / LN_DESC_MAX;
1546
	sc->lance_rxbufsize *= rxdescs / LN_DESC_MAX;
1547
	rxdescs = LN_DESC_MAX;
1547
	rxdescs = LN_DESC_MAX;
1548
    }
1548
    }
1549
    txdescs = sc->lance_ramsize / LN_TXDESC_RATIO;
1549
    if (!strcmp(sc->le_prodname,"DEPCA")) {
1550
    if (txdescs > LN_DESC_MAX)
1550
	txdescs = 1;
1551
	txdescs = LN_DESC_MAX;
1551
	while (txdescs <= sc->lance_ramsize / LN_TXDESC_RATIO && 
1552
1552
		txdescs <= LN_DESC_MAX)
1553
	    txdescs *= 2;
1554
	txdescs /= 2;
1555
    } else {
1556
    	txdescs = sc->lance_ramsize / LN_TXDESC_RATIO;
1557
    	if (txdescs > LN_DESC_MAX)
1558
	    txdescs = LN_DESC_MAX;
1559
    }
1553
    /*
1560
    /*
1554
     * Now calculate where everything goes in memory
1561
     * Now calculate where everything goes in memory
1555
     */
1562
     */

Return to bug 18639