Changeset 70f1f1d9 in rtems
- Timestamp:
- 05/24/00 15:55:00 (23 years ago)
- Children:
- 9b3cdfe
- Parents:
- 2c8485b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/libchip/network/dec21140.c
r2c8485b r70f1f1d9 9 9 * 10 10 * $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 * ------------------------------------------------------------------------ 11 27 */ 12 28 … … 20 36 21 37 #if defined(__i386) 22 #define DEC21140_SUPPORTED 38 #define DEC21140_SUPPORTED 39 #define ENABLE_21143_VARIANT 23 40 #endif 24 41 25 42 #if defined(__PPC) && (defined(mpc604) || defined(mpc750)) 26 #define DEC21140_SUPPORTED43 #define DEC21140_SUPPORTED 27 44 #endif 28 45 … … 73 90 #define PCI_INVALID_VENDORDEVICEID 0xffffffff 74 91 #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 76 97 77 98 #define IO_MASK 0x3 … … 831 852 */ 832 853 #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 833 860 pcib_conf_read32(signature, 16, &value); 834 861 sc->port = value & ~IO_MASK; … … 923 950 ether_ifattach (ifp); 924 951 952 printk( "DEC21140 : driver has been attached\n" ); 925 953 return 1; 926 954 };
Note: See TracChangeset
for help on using the changeset viewer.