if_ep_pccard.c (54385) | if_ep_pccard.c (55702) |
---|---|
1/* 2 * Copyright (c) 1994 Herb Peyerl <hpeyerl@novatel.ca> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * | 1/* 2 * Copyright (c) 1994 Herb Peyerl <hpeyerl@novatel.ca> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * |
30 * $FreeBSD: head/sys/dev/ep/if_ep_pccard.c 54385 1999-12-10 07:24:39Z imp $ | 30 * $FreeBSD: head/sys/dev/ep/if_ep_pccard.c 55702 2000-01-10 02:32:43Z imp $ |
31 */ 32 33/* 34 * Pccard support for 3C589 by: 35 * HAMADA Naoki 36 * nao@tom-yam.or.jp 37 */ 38 --- 70 unchanged lines hidden (view full) --- 109 switch (id) { 110 case 0x6055: /* 3C556 */ 111 return ("3Com 3C556"); 112 case 0x4057: /* 3C574 */ 113 return ("3Com 3C574"); 114 case 0x4b57: /* 3C574B */ 115 return ("3Com 3C574B, Megahertz 3CCFE574BT or " 116 "Fast Etherlink 3C574-TX"); | 31 */ 32 33/* 34 * Pccard support for 3C589 by: 35 * HAMADA Naoki 36 * nao@tom-yam.or.jp 37 */ 38 --- 70 unchanged lines hidden (view full) --- 109 switch (id) { 110 case 0x6055: /* 3C556 */ 111 return ("3Com 3C556"); 112 case 0x4057: /* 3C574 */ 113 return ("3Com 3C574"); 114 case 0x4b57: /* 3C574B */ 115 return ("3Com 3C574B, Megahertz 3CCFE574BT or " 116 "Fast Etherlink 3C574-TX"); |
117 case 0x2b57: /* 3CXSH572BT */ 118 return ("3Com OfficeConnect 572BT"); |
|
117 case 0x9058: /* 3C589 */ 118 return ("3Com Etherlink III 3C589"); 119 case 0x2056: /* 3C562/3C563 */ 120 return ("3Com 3C562D/3C563D"); 121 } 122 return (NULL); 123} 124 125static int 126ep_pccard_card_attach(struct ep_board *epb) 127{ 128 /* Determine device type and associated MII capabilities */ 129 switch (epb->prod_id) { 130 case 0x6055: /* 3C556 */ | 119 case 0x9058: /* 3C589 */ 120 return ("3Com Etherlink III 3C589"); 121 case 0x2056: /* 3C562/3C563 */ 122 return ("3Com 3C562D/3C563D"); 123 } 124 return (NULL); 125} 126 127static int 128ep_pccard_card_attach(struct ep_board *epb) 129{ 130 /* Determine device type and associated MII capabilities */ 131 switch (epb->prod_id) { 132 case 0x6055: /* 3C556 */ |
131 epb->mii_trans = 1; 132 return (1); | 133 case 0x2b57: /* 3C572BT */ |
133 case 0x4057: /* 3C574 */ | 134 case 0x4057: /* 3C574 */ |
134 epb->mii_trans = 1; 135 return (1); | |
136 case 0x4b57: /* 3C574B */ 137 epb->mii_trans = 1; 138 return (1); 139 case 0x2056: /* 3C562D/3C563D */ 140 case 0x9058: /* 3C589 */ 141 epb->mii_trans = 0; 142 return (1); 143 } --- 107 unchanged lines hidden --- | 135 case 0x4b57: /* 3C574B */ 136 epb->mii_trans = 1; 137 return (1); 138 case 0x2056: /* 3C562D/3C563D */ 139 case 0x9058: /* 3C589 */ 140 epb->mii_trans = 0; 141 return (1); 142 } --- 107 unchanged lines hidden --- |