if_pcn.c (66592) | if_pcn.c (66690) |
---|---|
1/* 2 * Copyright (c) 2000 Berkeley Software Design, Inc. 3 * Copyright (c) 1997, 1998, 1999, 2000 4 * Bill Paul <wpaul@osd.bsdi.com>. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 16 unchanged lines hidden (view full) --- 25 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 31 * THE POSSIBILITY OF SUCH DAMAGE. 32 * | 1/* 2 * Copyright (c) 2000 Berkeley Software Design, Inc. 3 * Copyright (c) 1997, 1998, 1999, 2000 4 * Bill Paul <wpaul@osd.bsdi.com>. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 16 unchanged lines hidden (view full) --- 25 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 31 * THE POSSIBILITY OF SUCH DAMAGE. 32 * |
33 * $FreeBSD: head/sys/pci/if_pcn.c 66592 2000-10-03 18:11:36Z wpaul $ | 33 * $FreeBSD: head/sys/pci/if_pcn.c 66690 2000-10-05 19:40:19Z wpaul $ |
34 */ 35 36/* 37 * AMD Am79c972 fast ethernet PCI NIC driver. Datatheets are available 38 * from http://www.amd.com. 39 * 40 * Written by Bill Paul <wpaul@osd.bsdi.com> 41 */ --- 51 unchanged lines hidden (view full) --- 93 94MODULE_DEPEND(pcn, miibus, 1, 1, 1); 95 96/* "controller miibus0" required. See GENERIC if you get errors here. */ 97#include "miibus_if.h" 98 99#ifndef lint 100static const char rcsid[] = | 34 */ 35 36/* 37 * AMD Am79c972 fast ethernet PCI NIC driver. Datatheets are available 38 * from http://www.amd.com. 39 * 40 * Written by Bill Paul <wpaul@osd.bsdi.com> 41 */ --- 51 unchanged lines hidden (view full) --- 93 94MODULE_DEPEND(pcn, miibus, 1, 1, 1); 95 96/* "controller miibus0" required. See GENERIC if you get errors here. */ 97#include "miibus_if.h" 98 99#ifndef lint 100static const char rcsid[] = |
101 "$FreeBSD: head/sys/pci/if_pcn.c 66592 2000-10-03 18:11:36Z wpaul $"; | 101 "$FreeBSD: head/sys/pci/if_pcn.c 66690 2000-10-05 19:40:19Z wpaul $"; |
102#endif 103 104/* 105 * Various supported device vendors/types and their names. 106 */ 107static struct pcn_type pcn_devs[] = { 108 { PCN_VENDORID, PCN_DEVICEID_PCNET, "AMD PCnet/PCI 10/100BaseTX" }, 109 { PCN_VENDORID, PCN_DEVICEID_HOME, "AMD PCnet/Home HomePNA" }, --- 295 unchanged lines hidden (view full) --- 405 bus_release_resource(dev, PCN_RES, 406 PCN_RID, sc->pcn_res); 407 chip_id >>= 12; 408 sc->pcn_type = chip_id & PART_MASK; 409 switch(sc->pcn_type) { 410 case Am79C971: 411 case Am79C972: 412 case Am79C973: | 102#endif 103 104/* 105 * Various supported device vendors/types and their names. 106 */ 107static struct pcn_type pcn_devs[] = { 108 { PCN_VENDORID, PCN_DEVICEID_PCNET, "AMD PCnet/PCI 10/100BaseTX" }, 109 { PCN_VENDORID, PCN_DEVICEID_HOME, "AMD PCnet/Home HomePNA" }, --- 295 unchanged lines hidden (view full) --- 405 bus_release_resource(dev, PCN_RES, 406 PCN_RID, sc->pcn_res); 407 chip_id >>= 12; 408 sc->pcn_type = chip_id & PART_MASK; 409 switch(sc->pcn_type) { 410 case Am79C971: 411 case Am79C972: 412 case Am79C973: |
413 case Am79C975: |
|
413 case Am79C976: 414 case Am79C978: 415 break; 416 default: 417 return(ENXIO); 418 break; 419 } 420 device_set_desc(dev, t->pcn_name); --- 930 unchanged lines hidden --- | 414 case Am79C976: 415 case Am79C978: 416 break; 417 default: 418 return(ENXIO); 419 break; 420 } 421 device_set_desc(dev, t->pcn_name); --- 930 unchanged lines hidden --- |