Changeset 70f1f1d9 in rtems


Ignore:
Timestamp:
05/24/00 15:55:00 (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
9b3cdfe
Parents:
2c8485b
Message:

Initial DEC 21143 support from Stephan Wilms <Stephan.Wilms@…>.
Comments follow:

This support is (for now) only available for the i386 target, because
that's the only testing platform I have. It should to my best knowledge
work in the same way for the "
PPC" target, but someone should test
this first before it's put into the code. Thanks go to Andrew Klossner
who provided the vital information about the Intel 21143 chip.

(FWIW: my network card is a Kingston KNE100TX with 21143PD chip)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/network/dec21140.c

    r2c8485b r70f1f1d9  
    99 *
    1010 * $Id$
     11 *
     12 * ------------------------------------------------------------------------
     13 * [22.05.2000,StWi/CWA] added support for the DEC/Intel 21143 chip
     14 *
     15 * This support is (for now) only available for the __i386 target, because
     16 * that's the only testing platform I have. It should to my best knowledge
     17 * work in the same way for the "__PPC" target, but someone should test
     18 * this first before it's put into the code. Thanks go to Andrew Klossner
     19 * who provided the vital information about the Intel 21143 chip.
     20 *
     21 * (FWIW: my network card is a Kingston KNE100TX with 21143PD chip)
     22 *
     23 * The 21143 support is enabled by defining the macro
     24 * "ENABLE_21143_VARIANT" (see the "#if defined(__i386)" section right
     25 * below, just add or remove comments as needed)
     26 * ------------------------------------------------------------------------
    1127 */
    1228
     
    2036
    2137#if defined(__i386)
    22 #define DEC21140_SUPPORTED
     38  #define DEC21140_SUPPORTED
     39  #define ENABLE_21143_VARIANT
    2340#endif
    2441
    2542#if defined(__PPC) && (defined(mpc604) || defined(mpc750))
    26 #define DEC21140_SUPPORTED
     43  #define DEC21140_SUPPORTED
    2744#endif
    2845
     
    7390#define PCI_INVALID_VENDORDEVICEID      0xffffffff
    7491#define PCI_VENDOR_ID_DEC 0x1011
    75 #define PCI_DEVICE_ID_DEC_TULIP_FAST 0x0009
     92#if defined(ENABLE_21143_VARIANT)
     93  #define PCI_DEVICE_ID_DEC_TULIP_FAST 0x0019
     94#else
     95  #define PCI_DEVICE_ID_DEC_TULIP_FAST 0x0009
     96#endif
    7697
    7798#define IO_MASK  0x3
     
    831852         */
    832853#if defined(__i386)
     854
     855#if defined(ENABLE_21143_VARIANT)
     856  /* the 21143 chip must be enabled before it can be accessed */
     857  pcib_conf_write32( signature, 0x40, 0 );
     858#endif
     859
    833860        pcib_conf_read32(signature, 16, &value);
    834861        sc->port = value & ~IO_MASK;
     
    923950        ether_ifattach (ifp);
    924951
     952        printk( "DEC21140 : driver has been attached\n" );
    925953        return 1;
    926954};
Note: See TracChangeset for help on using the changeset viewer.