if_my.c (130270) | if_my.c (143158) |
---|---|
1/*- 2 * Written by: yen_cw@myson.com.tw 3 * Copyright (c) 2002 Myson Technology Inc. 4 * 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: --- 14 unchanged lines hidden (view full) --- 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 * Myson fast ethernet PCI NIC driver, available at: http://www.myson.com.tw/ 28 */ 29 30#include <sys/cdefs.h> | 1/*- 2 * Written by: yen_cw@myson.com.tw 3 * Copyright (c) 2002 Myson Technology Inc. 4 * 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: --- 14 unchanged lines hidden (view full) --- 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 * Myson fast ethernet PCI NIC driver, available at: http://www.myson.com.tw/ 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/dev/my/if_my.c 130270 2004-06-09 14:34:04Z naddy $"); | 31__FBSDID("$FreeBSD: head/sys/dev/my/if_my.c 143158 2005-03-05 18:10:49Z imp $"); |
32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/sockio.h> 36#include <sys/mbuf.h> 37#include <sys/malloc.h> 38#include <sys/kernel.h> 39#include <sys/socket.h> --- 751 unchanged lines hidden (view full) --- 791 struct my_type *t; 792 793 t = my_devs; 794 while (t->my_name != NULL) { 795 if ((pci_get_vendor(dev) == t->my_vid) && 796 (pci_get_device(dev) == t->my_did)) { 797 device_set_desc(dev, t->my_name); 798 my_info_tmp = t; | 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/sockio.h> 36#include <sys/mbuf.h> 37#include <sys/malloc.h> 38#include <sys/kernel.h> 39#include <sys/socket.h> --- 751 unchanged lines hidden (view full) --- 791 struct my_type *t; 792 793 t = my_devs; 794 while (t->my_name != NULL) { 795 if ((pci_get_vendor(dev) == t->my_vid) && 796 (pci_get_device(dev) == t->my_did)) { 797 device_set_desc(dev, t->my_name); 798 my_info_tmp = t; |
799 return (0); | 799 return (BUS_PROBE_DEFAULT); |
800 } 801 t++; 802 } 803 return (ENXIO); 804} 805 806/* 807 * Attach the interface. Allocate softc structures, do ifmedia setup and --- 1033 unchanged lines hidden --- | 800 } 801 t++; 802 } 803 return (ENXIO); 804} 805 806/* 807 * Attach the interface. Allocate softc structures, do ifmedia setup and --- 1033 unchanged lines hidden --- |