Deleted Added
full compact
if_xe.c (331722) if_xe.c (347962)
1/*-
2 * Copyright (c) 1998, 1999, 2003 Scott Mitchell
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

--- 43 unchanged lines hidden (view full) ---

52 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
53 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
54 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
55 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
56 * OF THE POSSIBILITY OF SUCH DAMAGE.
57 */
58
59#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1998, 1999, 2003 Scott Mitchell
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

--- 43 unchanged lines hidden (view full) ---

52 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
53 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
54 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
55 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
56 * OF THE POSSIBILITY OF SUCH DAMAGE.
57 */
58
59#include <sys/cdefs.h>
60__FBSDID("$FreeBSD: stable/11/sys/dev/xe/if_xe.c 331722 2018-03-29 02:50:57Z eadler $");
60__FBSDID("$FreeBSD: stable/11/sys/dev/xe/if_xe.c 347962 2019-05-18 20:43:13Z brooks $");
61
62/*
63 * FreeBSD device driver for Xircom CreditCard PCMCIA Ethernet adapters. The
64 * following cards are currently known to work with the driver:
65 * Xircom CreditCard 10/100 (CE3)
66 * Xircom CreditCard Ethernet + Modem 28 (CEM28)
67 * Xircom CreditCard Ethernet 10/100 + Modem 56 (CEM56)
68 * Xircom RealPort Ethernet 10

--- 241 unchanged lines hidden (view full) ---

310 err = bus_setup_intr(dev, scp->irq_res, INTR_TYPE_NET | INTR_MPSAFE,
311 NULL, xe_intr, scp, &scp->intrhand);
312 if (err) {
313 ether_ifdetach(scp->ifp);
314 mtx_destroy(&scp->lock);
315 return (err);
316 }
317
61
62/*
63 * FreeBSD device driver for Xircom CreditCard PCMCIA Ethernet adapters. The
64 * following cards are currently known to work with the driver:
65 * Xircom CreditCard 10/100 (CE3)
66 * Xircom CreditCard Ethernet + Modem 28 (CEM28)
67 * Xircom CreditCard Ethernet 10/100 + Modem 56 (CEM56)
68 * Xircom RealPort Ethernet 10

--- 241 unchanged lines hidden (view full) ---

310 err = bus_setup_intr(dev, scp->irq_res, INTR_TYPE_NET | INTR_MPSAFE,
311 NULL, xe_intr, scp, &scp->intrhand);
312 if (err) {
313 ether_ifdetach(scp->ifp);
314 mtx_destroy(&scp->lock);
315 return (err);
316 }
317
318 gone_by_fcp101_dev(dev);
319
318 /* Done */
319 return (0);
320}
321
322/*
323 * Complete hardware intitialisation and enable output. Exits without doing
324 * anything if there's no address assigned to the card, or if media selection
325 * is in progress (the latter implies we've already run this function).

--- 1749 unchanged lines hidden ---
320 /* Done */
321 return (0);
322}
323
324/*
325 * Complete hardware intitialisation and enable output. Exits without doing
326 * anything if there's no address assigned to the card, or if media selection
327 * is in progress (the latter implies we've already run this function).

--- 1749 unchanged lines hidden ---