Deleted Added
full compact
if_ep_isa.c (121206) if_ep_isa.c (121492)
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

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

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
31#include <sys/cdefs.h>
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

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

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
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/dev/ep/if_ep_isa.c 121206 2003-10-18 15:22:43Z imp $");
32__FBSDID("$FreeBSD: head/sys/dev/ep/if_ep_isa.c 121492 2003-10-25 04:09:49Z imp $");
33
34#include <sys/cdefs.h>
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: head/sys/dev/ep/if_ep_isa.c 121206 2003-10-18 15:22:43Z imp $");
35__FBSDID("$FreeBSD: head/sys/dev/ep/if_ep_isa.c 121492 2003-10-25 04:09:49Z imp $");
36
37#include <sys/param.h>
38#include <sys/systm.h>
39#include <sys/kernel.h>
40#include <sys/socket.h>
41#include <sys/module.h>
42#include <sys/bus.h>
43

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

338 device_printf(dev, "ep_attach() failed! (%d)\n", error);
339 goto bad;
340 }
341 error = ep_eeprom_cksum(sc);
342 if (error) {
343 device_printf(sc->dev, "Invalid EEPROM checksum!\n");
344 goto bad;
345 }
36
37#include <sys/param.h>
38#include <sys/systm.h>
39#include <sys/kernel.h>
40#include <sys/socket.h>
41#include <sys/module.h>
42#include <sys/bus.h>
43

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

338 device_printf(dev, "ep_attach() failed! (%d)\n", error);
339 goto bad;
340 }
341 error = ep_eeprom_cksum(sc);
342 if (error) {
343 device_printf(sc->dev, "Invalid EEPROM checksum!\n");
344 goto bad;
345 }
346 if ((error = bus_setup_intr(dev, sc->irq, INTR_TYPE_NET, ep_intr,
346 if ((error = bus_setup_intr(dev, sc->irq, INTR_TYPE_NET | INTR_MPSAFE, ep_intr,
347 sc, &sc->ep_intrhand))) {
348 device_printf(dev, "bus_setup_intr() failed! (%d)\n", error);
349 goto bad;
350 }
351 return (0);
352bad:
353 ep_free(dev);
354 return (error);

--- 61 unchanged lines hidden ---
347 sc, &sc->ep_intrhand))) {
348 device_printf(dev, "bus_setup_intr() failed! (%d)\n", error);
349 goto bad;
350 }
351 return (0);
352bad:
353 ep_free(dev);
354 return (error);

--- 61 unchanged lines hidden ---