ebus.c (106555) | ebus.c (109623) |
---|---|
1/* 2 * Copyright (c) 1999, 2000 Matthew R. Green 3 * Copyright (c) 2001 Thomas Moestl <tmm@FreeBSD.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 14 unchanged lines hidden (view full) --- 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 24 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 25 * 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 * from: NetBSD: ebus.c,v 1.26 2001/09/10 16:27:53 eeh Exp 30 * | 1/* 2 * Copyright (c) 1999, 2000 Matthew R. Green 3 * Copyright (c) 2001 Thomas Moestl <tmm@FreeBSD.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 14 unchanged lines hidden (view full) --- 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 24 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 25 * 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 * from: NetBSD: ebus.c,v 1.26 2001/09/10 16:27:53 eeh Exp 30 * |
31 * $FreeBSD: head/sys/sparc64/ebus/ebus.c 106555 2002-11-07 16:07:46Z tmm $ | 31 * $FreeBSD: head/sys/sparc64/ebus/ebus.c 109623 2003-01-21 08:56:16Z alfred $ |
32 */ 33 34#include "opt_ebus.h" 35 36/* 37 * UltraSPARC 5 and beyond ebus support. 38 * 39 * note that this driver is not complete: --- 326 unchanged lines hidden (view full) --- 366ebus_setup_dinfo(struct ebus_softc *sc, phandle_t node, char *name) 367{ 368 struct ebus_devinfo *edi; 369 struct isa_regs *reg; 370 u_int32_t *intrs, intr; 371 u_int64_t start; 372 int nreg, nintr, i; 373 | 32 */ 33 34#include "opt_ebus.h" 35 36/* 37 * UltraSPARC 5 and beyond ebus support. 38 * 39 * note that this driver is not complete: --- 326 unchanged lines hidden (view full) --- 366ebus_setup_dinfo(struct ebus_softc *sc, phandle_t node, char *name) 367{ 368 struct ebus_devinfo *edi; 369 struct isa_regs *reg; 370 u_int32_t *intrs, intr; 371 u_int64_t start; 372 int nreg, nintr, i; 373 |
374 edi = malloc(sizeof(*edi), M_DEVBUF, M_ZERO | M_WAITOK); | 374 edi = malloc(sizeof(*edi), M_DEVBUF, M_ZERO); |
375 if (edi == NULL) 376 return (NULL); 377 resource_list_init(&edi->edi_rl); 378 edi->edi_name = name; 379 edi->edi_node = node; 380 381 OF_getprop_alloc(node, "compat", 1, (void **)&edi->edi_compat); 382 nreg = OF_getprop_alloc(node, "reg", sizeof(*reg), (void **)®); --- 56 unchanged lines hidden --- | 375 if (edi == NULL) 376 return (NULL); 377 resource_list_init(&edi->edi_rl); 378 edi->edi_name = name; 379 edi->edi_node = node; 380 381 OF_getprop_alloc(node, "compat", 1, (void **)&edi->edi_compat); 382 nreg = OF_getprop_alloc(node, "reg", sizeof(*reg), (void **)®); --- 56 unchanged lines hidden --- |