ofw_iicbus.c (282702) | ofw_iicbus.c (282972) |
---|---|
1/*- 2 * Copyright (c) 2009, Nathan Whitehorn <nwhitehorn@FreeBSD.org> 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 --- 11 unchanged lines hidden (view full) --- 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2009, Nathan Whitehorn <nwhitehorn@FreeBSD.org> 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 --- 11 unchanged lines hidden (view full) --- 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/dev/ofw/ofw_iicbus.c 282702 2015-05-10 02:19:27Z loos $"); | 28__FBSDID("$FreeBSD: head/sys/dev/ofw/ofw_iicbus.c 282972 2015-05-15 13:55:18Z br $"); |
29 30#include <sys/param.h> 31#include <sys/bus.h> 32#include <sys/kernel.h> 33#include <sys/libkern.h> 34#include <sys/lock.h> 35#include <sys/module.h> 36#include <sys/mutex.h> --- 114 unchanged lines hidden (view full) --- 151 if (ofw_bus_gen_setup_devinfo(&dinfo->opd_obdinfo, child) != 152 0) { 153 free(dinfo, M_DEVBUF); 154 continue; 155 } 156 157 childdev = device_add_child(dev, NULL, -1); 158 resource_list_init(&dinfo->opd_dinfo.rl); | 29 30#include <sys/param.h> 31#include <sys/bus.h> 32#include <sys/kernel.h> 33#include <sys/libkern.h> 34#include <sys/lock.h> 35#include <sys/module.h> 36#include <sys/mutex.h> --- 114 unchanged lines hidden (view full) --- 151 if (ofw_bus_gen_setup_devinfo(&dinfo->opd_obdinfo, child) != 152 0) { 153 free(dinfo, M_DEVBUF); 154 continue; 155 } 156 157 childdev = device_add_child(dev, NULL, -1); 158 resource_list_init(&dinfo->opd_dinfo.rl); |
159 ofw_bus_intr_to_rl(childdev, child, &dinfo->opd_dinfo.rl); | 159 ofw_bus_intr_to_rl(childdev, child, 160 &dinfo->opd_dinfo.rl, NULL); |
160 device_set_ivars(childdev, dinfo); 161 } 162 163 return (bus_generic_attach(dev)); 164} 165 166static device_t 167ofw_iicbus_add_child(device_t dev, u_int order, const char *name, int unit) --- 37 unchanged lines hidden --- | 161 device_set_ivars(childdev, dinfo); 162 } 163 164 return (bus_generic_attach(dev)); 165} 166 167static device_t 168ofw_iicbus_add_child(device_t dev, u_int order, const char *name, int unit) --- 37 unchanged lines hidden --- |