macio.c (108994) | macio.c (109623) |
---|---|
1/* 2 * Copyright 2002 by Peter Grehan. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 10 unchanged lines hidden (view full) --- 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 20 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 22 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 23 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * | 1/* 2 * Copyright 2002 by Peter Grehan. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 10 unchanged lines hidden (view full) --- 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 20 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 22 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 23 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/sys/powerpc/powermac/macio.c 108994 2003-01-09 09:15:42Z benno $ | 27 * $FreeBSD: head/sys/powerpc/powermac/macio.c 109623 2003-01-21 08:56:16Z alfred $ |
28 */ 29 30/* 31 * Driver for KeyLargo/Pangea, the MacPPC south bridge ASIC. 32 */ 33 34#include <sys/param.h> 35#include <sys/systm.h> --- 246 unchanged lines hidden (view full) --- 282 if ((quirks & MACIO_QUIRK_IGNORE) != 0) { 283 free(name, M_OFWPROP); 284 free(type, M_OFWPROP); 285 continue; 286 } 287 288 cdev = device_add_child(dev, NULL, -1); 289 if (cdev != NULL) { | 28 */ 29 30/* 31 * Driver for KeyLargo/Pangea, the MacPPC south bridge ASIC. 32 */ 33 34#include <sys/param.h> 35#include <sys/systm.h> --- 246 unchanged lines hidden (view full) --- 282 if ((quirks & MACIO_QUIRK_IGNORE) != 0) { 283 free(name, M_OFWPROP); 284 free(type, M_OFWPROP); 285 continue; 286 } 287 288 cdev = device_add_child(dev, NULL, -1); 289 if (cdev != NULL) { |
290 dinfo = malloc(sizeof(*dinfo), M_MACIO, M_WAITOK); | 290 dinfo = malloc(sizeof(*dinfo), M_MACIO, 0); |
291 memset(dinfo, 0, sizeof(*dinfo)); 292 resource_list_init(&dinfo->mdi_resources); 293 dinfo->mdi_node = child; 294 dinfo->mdi_name = name; 295 dinfo->mdi_device_type = type; 296 dinfo->mdi_ninterrupts = 0; 297 macio_add_intr(child, dinfo); 298 macio_add_reg(child, dinfo); --- 222 unchanged lines hidden --- | 291 memset(dinfo, 0, sizeof(*dinfo)); 292 resource_list_init(&dinfo->mdi_resources); 293 dinfo->mdi_node = child; 294 dinfo->mdi_name = name; 295 dinfo->mdi_device_type = type; 296 dinfo->mdi_ninterrupts = 0; 297 macio_add_intr(child, dinfo); 298 macio_add_reg(child, dinfo); --- 222 unchanged lines hidden --- |