Deleted Added
full compact
rge.c (216408) rge.c (217072)
1/*-
2 * Copyright (c) 2003-2009 RMI Corporation
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

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

25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * RMI_BSD
30 */
31
32#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2003-2009 RMI Corporation
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

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

25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * RMI_BSD
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/mips/rmi/dev/xlr/rge.c 216408 2010-12-13 14:30:35Z avg $");
33__FBSDID("$FreeBSD: head/sys/mips/rmi/dev/xlr/rge.c 217072 2011-01-06 21:08:06Z jhb $");
34
35#ifdef HAVE_KERNEL_OPTION_HEADERS
36#include "opt_device_polling.h"
37#endif
38
39#include <sys/types.h>
40#include <sys/endian.h>
41#include <sys/systm.h>

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

1836
1837 /* Set the IRQ into the rid field */
1838 /*
1839 * note this is a hack to pass the irq to the iodi interrupt setup
1840 * routines
1841 */
1842 sc->rge_irq.__r_i = (struct resource_i *)(intptr_t)sc->irq;
1843
34
35#ifdef HAVE_KERNEL_OPTION_HEADERS
36#include "opt_device_polling.h"
37#endif
38
39#include <sys/types.h>
40#include <sys/endian.h>
41#include <sys/systm.h>

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

1836
1837 /* Set the IRQ into the rid field */
1838 /*
1839 * note this is a hack to pass the irq to the iodi interrupt setup
1840 * routines
1841 */
1842 sc->rge_irq.__r_i = (struct resource_i *)(intptr_t)sc->irq;
1843
1844 ret = bus_setup_intr(dev, &sc->rge_irq, INTR_FAST | INTR_TYPE_NET | INTR_MPSAFE,
1844 ret = bus_setup_intr(dev, &sc->rge_irq, INTR_TYPE_NET | INTR_MPSAFE,
1845 NULL, rge_intr, sc, &sc->rge_intrhand);
1846
1847 if (ret) {
1848 rge_detach(dev);
1849 device_printf(sc->rge_dev, "couldn't set up irq\n");
1850 RGE_LOCK_DESTROY(sc);
1851 goto out;
1852 }

--- 714 unchanged lines hidden ---
1845 NULL, rge_intr, sc, &sc->rge_intrhand);
1846
1847 if (ret) {
1848 rge_detach(dev);
1849 device_printf(sc->rge_dev, "couldn't set up irq\n");
1850 RGE_LOCK_DESTROY(sc);
1851 goto out;
1852 }

--- 714 unchanged lines hidden ---