Deleted Added
full compact
if_ste.c (200875) if_ste.c (200877)
1/*-
2 * Copyright (c) 1997, 1998, 1999
3 * Bill Paul <wpaul@ctr.columbia.edu>. 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

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

26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1997, 1998, 1999
3 * Bill Paul <wpaul@ctr.columbia.edu>. 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

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

26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/sys/dev/ste/if_ste.c 200875 2009-12-22 21:39:34Z yongari $");
34__FBSDID("$FreeBSD: head/sys/dev/ste/if_ste.c 200877 2009-12-22 21:44:25Z yongari $");
35
36#ifdef HAVE_KERNEL_OPTION_HEADERS
37#include "opt_device_polling.h"
38#endif
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/bus.h>

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

967 &sc->ste_res_id, RF_ACTIVE);
968 }
969 if (sc->ste_res == NULL) {
970 device_printf(dev, "couldn't map ports/memory\n");
971 error = ENXIO;
972 goto fail;
973 }
974
35
36#ifdef HAVE_KERNEL_OPTION_HEADERS
37#include "opt_device_polling.h"
38#endif
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/bus.h>

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

967 &sc->ste_res_id, RF_ACTIVE);
968 }
969 if (sc->ste_res == NULL) {
970 device_printf(dev, "couldn't map ports/memory\n");
971 error = ENXIO;
972 goto fail;
973 }
974
975 sc->ste_btag = rman_get_bustag(sc->ste_res);
976 sc->ste_bhandle = rman_get_bushandle(sc->ste_res);
977
978 /* Allocate interrupt */
979 rid = 0;
980 sc->ste_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid,
981 RF_SHAREABLE | RF_ACTIVE);
982
983 if (sc->ste_irq == NULL) {
984 device_printf(dev, "couldn't map interrupt\n");
985 error = ENXIO;

--- 994 unchanged lines hidden ---
975 /* Allocate interrupt */
976 rid = 0;
977 sc->ste_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid,
978 RF_SHAREABLE | RF_ACTIVE);
979
980 if (sc->ste_irq == NULL) {
981 device_printf(dev, "couldn't map interrupt\n");
982 error = ENXIO;

--- 994 unchanged lines hidden ---