if_ep_pccard.c (52589) | if_ep_pccard.c (52621) |
---|---|
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 52589 1999-10-28 06:12:58Z imp $ | 30 * $FreeBSD: head/sys/dev/ep/if_ep_pccard.c 52621 1999-10-29 06:27:07Z imp $ |
31 */ 32 33/* 34 * Pccard support for 3C589 by: 35 * HAMADA Naoki 36 * nao@tom-yam.or.jp 37 */ 38 --- 78 unchanged lines hidden (view full) --- 117 return ("3Com 3C556"); 118 case 0x4057: /* 3C574 */ 119 return ("3Com 3C574"); 120 case 0x4b57: /* 3C574B */ 121 return ("3Com 3C574B, Megahertz 3CCFE574BT or " 122 "Fast Etherlink 3C574-TX"); 123 case 0x9058: /* 3C589 */ 124 return ("3Com Etherlink III 3C589"); | 31 */ 32 33/* 34 * Pccard support for 3C589 by: 35 * HAMADA Naoki 36 * nao@tom-yam.or.jp 37 */ 38 --- 78 unchanged lines hidden (view full) --- 117 return ("3Com 3C556"); 118 case 0x4057: /* 3C574 */ 119 return ("3Com 3C574"); 120 case 0x4b57: /* 3C574B */ 121 return ("3Com 3C574B, Megahertz 3CCFE574BT or " 122 "Fast Etherlink 3C574-TX"); 123 case 0x9058: /* 3C589 */ 124 return ("3Com Etherlink III 3C589"); |
125 case 0x2056: /* 3C562/3C563 */ 126 return ("3Com 3C562D/3C563D"); |
|
125 } 126 return (NULL); 127} 128 129static int 130ep_pccard_card_attach(struct ep_board *epb) 131{ 132 /* Determine device type and associated MII capabilities */ 133 switch (epb->prod_id) { 134 case 0x6055: /* 3C556 */ 135 epb->mii_trans = 1; 136 return (1); 137 case 0x4057: /* 3C574 */ 138 epb->mii_trans = 1; 139 return (1); 140 case 0x4b57: /* 3C574B */ 141 epb->mii_trans = 1; 142 return (1); | 127 } 128 return (NULL); 129} 130 131static int 132ep_pccard_card_attach(struct ep_board *epb) 133{ 134 /* Determine device type and associated MII capabilities */ 135 switch (epb->prod_id) { 136 case 0x6055: /* 3C556 */ 137 epb->mii_trans = 1; 138 return (1); 139 case 0x4057: /* 3C574 */ 140 epb->mii_trans = 1; 141 return (1); 142 case 0x4b57: /* 3C574B */ 143 epb->mii_trans = 1; 144 return (1); |
145 case 0x2056: /* 3C562D/3C563D */ |
|
143 case 0x9058: /* 3C589 */ 144 epb->mii_trans = 0; 145 return (1); 146 } 147 return (0); 148} 149 150static int --- 104 unchanged lines hidden --- | 146 case 0x9058: /* 3C589 */ 147 epb->mii_trans = 0; 148 return (1); 149 } 150 return (0); 151} 152 153static int --- 104 unchanged lines hidden --- |