Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

Ticket #354: eepro.diff

File eepro.diff, 3.2 KB (added by strauman, on 12/03/06 at 13:31:12)

eepro.diff

Line 
1Patch against RTEMS-ss-20030128
2Author: Till Straumann <strauman@slac.stanford.edu>
3
42003/2/11
5
6This patch addresses the following issues:
7  - if_fxp (intel eepro network driver): re-enabled the chip
8    detection against a table of supported chips. The untested
9    ones are still commented out, however.
10
11Index: c/src/libchip/network/if_fxp.c
12===================================================================
13RCS file: /afs/slac/g/spear/cvsrep/rtems/src-20030128/c/src/libchip/network/if_fxp.c,v
14retrieving revision 1.1.1.1
15diff -c -r1.1.1.1 if_fxp.c
16*** c/src/libchip/network/if_fxp.c      29 Jan 2003 22:54:46 -0000      1.1.1.1
17--- c/src/libchip/network/if_fxp.c      5 Feb 2003 05:25:30 -0000
18***************
19*** 190,202 ****
20   * particular variants, but we don't currently differentiate between
21   * them.
22   */
23- #ifdef NOTUSED
24  static struct fxp_ident fxp_ident_table[] = {
25      { 0x1229,         "Intel Pro 10/100B/100+ Ethernet" },
26      { 0x2449,         "Intel Pro/100 Ethernet" },
27      { 0x1209,         "Intel Embedded 10/100 Ethernet" },
28      { 0x1029,         "Intel Pro/100 Ethernet" },
29      { 0x1030,         "Intel Pro/100 Ethernet" },
30      { 0x1031,         "Intel Pro/100 Ethernet" },
31      { 0x1032,         "Intel Pro/100 Ethernet" },
32      { 0x1033,         "Intel Pro/100 Ethernet" },
33--- 190,209 ----
34   * particular variants, but we don't currently differentiate between
35   * them.
36   */
37  static struct fxp_ident fxp_ident_table[] = {
38+ #ifdef NOTUSED
39+       /* currently untested */
40      { 0x1229,         "Intel Pro 10/100B/100+ Ethernet" },
41      { 0x2449,         "Intel Pro/100 Ethernet" },
42+ #endif
43      { 0x1209,         "Intel Embedded 10/100 Ethernet" },
44+ #ifdef NOTUSED
45+       /* currently untested */
46      { 0x1029,         "Intel Pro/100 Ethernet" },
47+ #endif
48      { 0x1030,         "Intel Pro/100 Ethernet" },
49+ #ifdef NOTUSED
50+       /* currently untested */
51      { 0x1031,         "Intel Pro/100 Ethernet" },
52      { 0x1032,         "Intel Pro/100 Ethernet" },
53      { 0x1033,         "Intel Pro/100 Ethernet" },
54***************
55*** 205,213 ****
56      { 0x1036,         "Intel Pro/100 Ethernet" },
57      { 0x1037,         "Intel Pro/100 Ethernet" },
58      { 0x1038,         "Intel Pro/100 Ethernet" },
59      { 0,              NULL },
60  };
61- #endif
62 
63  #if 0
64  static int            fxp_probe(device_t dev);
65--- 212,220 ----
66      { 0x1036,         "Intel Pro/100 Ethernet" },
67      { 0x1037,         "Intel Pro/100 Ethernet" },
68      { 0x1038,         "Intel Pro/100 Ethernet" },
69+ #endif
70      { 0,              NULL },
71  };
72 
73  #if 0
74  static int            fxp_probe(device_t dev);
75***************
76*** 456,466 ****
77        /*
78         * find device on pci bus
79         */     
80!       i = pcib_find_by_devid(0x8086,0x1209,unitNumber-1,
81!                              &(sc->pci_signature));
82!       DBGLVL_PRINTK(2,"fxp_attach: find_devid returned %d "
83                      "and pci signature 0x%x\n",
84                      i,sc->pci_signature);
85 
86        /*
87         * FIXME: add search for more device types...
88--- 463,482 ----
89        /*
90         * find device on pci bus
91         */     
92!     { int j;
93!
94!       for (j=0; fxp_ident_table[j].devid; j++ ) {
95!               i = pcib_find_by_devid( 0x8086,
96!                                                               fxp_ident_table[j].devid,
97!                                                               unitNumber-1,
98!                                                       &(sc->pci_signature));
99!               DBGLVL_PRINTK(2,"fxp_attach: find_devid returned %d "
100                      "and pci signature 0x%x\n",
101                      i,sc->pci_signature);
102+         if (PCIB_ERR_SUCCESS == i)
103+                       break;
104+         }                     
105+       }
106 
107        /*
108         * FIXME: add search for more device types...