Deleted Added
full compact
sbus.c (108830) sbus.c (109623)
1/*-
2 * Copyright (c) 1998 The NetBSD Foundation, Inc.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to The NetBSD Foundation
6 * by Paul Kranenburg.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

95 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
96 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
97 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
98 * SUCH DAMAGE.
99 *
100 * from: @(#)sbus.c 8.1 (Berkeley) 6/11/93
101 * from: NetBSD: sbus.c,v 1.46 2001/10/07 20:30:41 eeh Exp
102 *
1/*-
2 * Copyright (c) 1998 The NetBSD Foundation, Inc.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to The NetBSD Foundation
6 * by Paul Kranenburg.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

95 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
96 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
97 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
98 * SUCH DAMAGE.
99 *
100 * from: @(#)sbus.c 8.1 (Berkeley) 6/11/93
101 * from: NetBSD: sbus.c,v 1.46 2001/10/07 20:30:41 eeh Exp
102 *
103 * $FreeBSD: head/sys/sparc64/sbus/sbus.c 108830 2003-01-06 21:59:54Z tmm $
103 * $FreeBSD: head/sys/sparc64/sbus/sbus.c 109623 2003-01-21 08:56:16Z alfred $
104 */
105
106/*
107 * Sbus support.
108 */
109#include <sys/param.h>
110#include <sys/systm.h>
111#include <sys/bus.h>

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

475static struct sbus_devinfo *
476sbus_setup_dinfo(struct sbus_softc *sc, phandle_t node, char *name)
477{
478 struct sbus_devinfo *sdi;
479 struct sbus_regs *reg;
480 u_int32_t base, iv, *intr;
481 int i, nreg, nintr, slot, rslot;
482
104 */
105
106/*
107 * Sbus support.
108 */
109#include <sys/param.h>
110#include <sys/systm.h>
111#include <sys/bus.h>

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

475static struct sbus_devinfo *
476sbus_setup_dinfo(struct sbus_softc *sc, phandle_t node, char *name)
477{
478 struct sbus_devinfo *sdi;
479 struct sbus_regs *reg;
480 u_int32_t base, iv, *intr;
481 int i, nreg, nintr, slot, rslot;
482
483 sdi = malloc(sizeof(*sdi), M_DEVBUF, M_ZERO | M_WAITOK);
483 sdi = malloc(sizeof(*sdi), M_DEVBUF, M_ZERO);
484 if (sdi == NULL)
485 return (NULL);
486 resource_list_init(&sdi->sdi_rl);
487 sdi->sdi_name = name;
488 sdi->sdi_node = node;
489 OF_getprop_alloc(node, "compat", 1, (void **)&sdi->sdi_compat);
490 OF_getprop_alloc(node, "device_type", 1, (void **)&sdi->sdi_type);
491 slot = -1;

--- 516 unchanged lines hidden ---
484 if (sdi == NULL)
485 return (NULL);
486 resource_list_init(&sdi->sdi_rl);
487 sdi->sdi_name = name;
488 sdi->sdi_node = node;
489 OF_getprop_alloc(node, "compat", 1, (void **)&sdi->sdi_compat);
490 OF_getprop_alloc(node, "device_type", 1, (void **)&sdi->sdi_type);
491 slot = -1;

--- 516 unchanged lines hidden ---