Changeset 3ffa814 in rtems


Ignore:
Timestamp:
Oct 5, 2005, 7:29:23 PM (15 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
59d5575
Parents:
774515b
Message:

2005-10-05 Jiri Gaisler <jiri@…>

Edvin Catovic <edvin@…>
Konrad Eisele <konrad@…>

PR 827/bsps

  • network/Makefile.am, network/open_eth.c, network/open_eth.h: Portion of large update of SPARC BSPs. Includes addition of sis, leon2 and leon3 BSPs, deletion of leon BSP, addition of SMC91111 NIC driver and much more.
  • network/README.smc91111, network/smc91111.c, network/smc91111.h, network/smc91111config.h, network/smc91111exp.h: New files.
Location:
c/src/libchip
Files:
5 added
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/ChangeLog

    r774515b r3ffa814  
     12005-10-05  Jiri Gaisler <jiri@gaisler.com>
     2            Edvin Catovic <edvin@gaisler.com>
     3            Konrad Eisele <konrad@gaisler.com>
     4
     5        PR 827/bsps
     6        * network/Makefile.am, network/open_eth.c, network/open_eth.h: Portion
     7        of large update of SPARC BSPs. Includes addition of sis, leon2 and
     8        leon3 BSPs, deletion of leon BSP, addition of SMC91111 NIC driver and
     9        much more.
     10        * network/README.smc91111, network/smc91111.c, network/smc91111.h,
     11        network/smc91111config.h, network/smc91111exp.h: New files.
     12
    1132005-04-28      Jennifer Averett <jennifer.averett@oarcorp.com>
    214
  • c/src/libchip/network/Makefile.am

    r774515b r3ffa814  
    99LIB = $(ARCH)/$(LIBNAME).a
    1010
    11 C_FILES = cs8900.c dec21140.c i82586.c sonic.c if_fxp.c elnk.c open_eth.c
     11C_FILES = cs8900.c dec21140.c i82586.c sonic.c if_fxp.c elnk.c open_eth.c \
     12          smc91111.c
    1213OBJS = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT))
    1314
    1415include_libchip_HEADERS = cs8900.h i82586var.h if_fxpvar.h sonic.h if_media.h \
    15     mii.h open_eth.h
     16    mii.h open_eth.h smc91111.h smc91111exp.h
    1617
    1718include $(top_srcdir)/../../../automake/compile.am
     
    5051EXTRA_DIST = README README.cs8900 README.dec21140 README.i82586 \
    5152    README.open_eth README.sonic cs8900.c cs8900.c.bsp dec21140.c \
    52     i82586.c if_fxp.c open_eth.c sonic.c
     53    i82586.c if_fxp.c open_eth.c sonic.c \
     54    smc91111.c
    5355
    5456include $(top_srcdir)/../../../automake/local.am
  • c/src/libchip/network/open_eth.c

    r774515b r3ffa814  
    77 *  The license and distribution terms for this file may be
    88 *  found in found in the file LICENSE in this distribution or at
    9  *  http://www.rtems.com/license/LICENSE.
     9 *  http://www.OARcorp.com/rtems/license.html.
    1010 *
    1111 */
     
    8989#define OETH_SUSPEND_NOTXBUF
    9090 */
    91 
    92 #define OETH_RATE_10MHZ
    9391
    9492#if (MCLBYTES < RBUF_SIZE)
     
    117115    struct MDRX *rxdesc;
    118116    rtems_vector_number vector;
     117    unsigned int en100MHz;
    119118
    120119
     
    219218
    220219    /* reset PHY and wait for complettion */
    221     mii_cr = read_mii(0);
    222     mii_cr = 0x3320;
    223 #ifdef OETH_RATE_10MHZ
    224     mii_cr = 0;
    225 #endif
     220    /*
     221    */
     222    mii_cr = 0x3300;
     223    if (!sc->en100MHz) mii_cr = 0;
    226224    write_mii(0, mii_cr | 0x8000);
    227225    while (read_mii(0) & 0x8000) {}
    228     write_mii(20, 0x1422);
    229 #ifdef OETH_RATE_10MHZ
    230     mii_cr = 0;
    231 #endif
    232     write_mii(0, mii_cr);
     226    if (!sc->en100MHz) write_mii(0, 0);
     227    mii_cr = read_mii(0);
    233228    printf("open_eth: driver attached, PHY config : 0x%04x\n", read_mii(0));
    234229
     
    484479
    485480      /* write buffer descriptor length and status */
     481      len_status &= 0x0000ffff;
    486482      len_status |= (len << 16) | (OETH_TX_BD_READY | OETH_TX_BD_CRC);
    487483      dp->regs->xd[dp->tx_ptr].len_status = len_status;
     
    710706    sc->txbufs = chip->txd_count;
    711707    sc->rxbufs = chip->rxd_count;
     708    sc->en100MHz = chip->en100MHz;
    712709
    713710
  • c/src/libchip/network/open_eth.h

    r774515b r3ffa814  
    1313  unsigned32              txd_count;
    1414  unsigned32              rxd_count;
     15  unsigned32              en100MHz;
    1516} open_eth_configuration_t;
    1617
Note: See TracChangeset for help on using the changeset viewer.