Changeset 27111a79 in rtems


Ignore:
Timestamp:
Apr 13, 2005, 7:31:26 PM (17 years ago)
Author:
Eric Norum <WENorum@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
9674bf43
Parents:
a97f235a
Message:

Add some more diagnostics. Poke TDAR/RDAR only when necessary.

Location:
c/src/lib/libbsp/m68k/uC5282
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/uC5282/ChangeLog

    ra97f235a r27111a79  
     12005-04-13  Eric Norum <norume@aps.anl.gov>
     2
     3        * network/network.c: Add some more diagnostics.
     4                         Poke TDAR/RDAR only when necessary.
     5
    162005-04-10  Eric Norum <norume@aps.anl.gov>
    27
  • c/src/lib/libbsp/m68k/uC5282/network/network.c

    ra97f235a r27111a79  
    22 * RTEMS/TCPIP driver for MCF5282 Fast Ethernet Controller
    33 *
    4  * TO DO: Check network stack code -- force longword alignment of all tx mbufs?
     4 * TO DO: Check network stack code -- Is it possible force longword alignment
     5 *                                    of all tx mbufs?  If so, the stupid
     6 *                                    realignment code in the output routine
     7 *                                    could be removed.
    58 */
    69
     
    359362     * Input packet handling loop
    360363     */
    361     /* Indicate we have some ready buffers available */
    362     MCF5282_FEC_RDAR = MCF5282_FEC_RDAR_R_DES_ACTIVE;
     364    MCF5282_FEC_RDAR = 0;
    363365
    364366    rxBdIndex = 0;
     
    435437         */
    436438        rxBd->status = (status & MCF5282_FEC_RxBD_W) | MCF5282_FEC_RxBD_E;
    437         MCF5282_FEC_RDAR = MCF5282_FEC_RDAR_R_DES_ACTIVE;
     439        if ((MCF5282_FEC_RDAR & MCF5282_FEC_RDAR_R_DES_ACTIVE) == 0)
     440            MCF5282_FEC_RDAR = 0;
    438441
    439442        /*
     
    557560            if (nAdded > 1)
    558561                firstTxBd->status |= MCF5282_FEC_TxBD_R;
    559             MCF5282_FEC_TDAR = MCF5282_FEC_TDAR_X_DES_ACTIVE;
     562            if ((MCF5282_FEC_TDAR & MCF5282_FEC_TDAR_X_DES_ACTIVE) == 0)
     563                MCF5282_FEC_TDAR = 0;
    560564            sc->txBdActiveCount += nAdded;
    561565          }
     
    728732    printf("Tx Pause Frames:%-10lu\n",   MCF5282_FEC_IEEE_T_FDXFC);
    729733    printf("   Tx Octets OK:%-10lu\n", MCF5282_FEC_IEEE_T_OCTETS_OK);
     734    printf(" EIR:%8.8lx  ",  MCF5282_FEC_EIR);
     735    printf("EIMR:%8.8lx  ",  MCF5282_FEC_EIMR);
     736    printf("RDAR:%8.8lx  ",  MCF5282_FEC_RDAR);
     737    printf("TDAR:%8.8lx\n",  MCF5282_FEC_TDAR);
     738    printf(" ECR:%8.8lx  ",  MCF5282_FEC_ECR);
     739    printf(" RCR:%8.8lx  ",  MCF5282_FEC_RCR);
     740    printf(" TCR:%8.8lx\n",  MCF5282_FEC_TCR);
     741    printf("FRBR:%8.8lx  ",  MCF5282_FEC_FRBR);
     742    printf("FRSR:%8.8lx\n",  MCF5282_FEC_FRSR);
    730743}
    731744
Note: See TracChangeset for help on using the changeset viewer.