ppbconf.c (187714) | ppbconf.c (212413) |
---|---|
1/*- 2 * Copyright (c) 1997, 1998, 1999 Nicolas Souchu 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 --- 13 unchanged lines hidden (view full) --- 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * 26 * 27 */ 28 29#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1997, 1998, 1999 Nicolas Souchu 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 --- 13 unchanged lines hidden (view full) --- 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * 26 * 27 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: head/sys/dev/ppbus/ppbconf.c 187714 2009-01-26 14:12:12Z jhb $"); | 30__FBSDID("$FreeBSD: head/sys/dev/ppbus/ppbconf.c 212413 2010-09-10 11:19:03Z avg $"); |
31#include "opt_ppb_1284.h" 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/kernel.h> 36#include <sys/lock.h> 37#include <sys/module.h> 38#include <sys/mutex.h> --- 46 unchanged lines hidden (view full) --- 85} 86 87/* 88 * ppbus_add_child() 89 * 90 * Add a ppbus device, allocate/initialize the ivars 91 */ 92static device_t | 31#include "opt_ppb_1284.h" 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/kernel.h> 36#include <sys/lock.h> 37#include <sys/module.h> 38#include <sys/mutex.h> --- 46 unchanged lines hidden (view full) --- 85} 86 87/* 88 * ppbus_add_child() 89 * 90 * Add a ppbus device, allocate/initialize the ivars 91 */ 92static device_t |
93ppbus_add_child(device_t dev, int order, const char *name, int unit) | 93ppbus_add_child(device_t dev, u_int order, const char *name, int unit) |
94{ 95 struct ppb_device *ppbdev; 96 device_t child; 97 98 /* allocate ivars for the new ppbus child */ 99 ppbdev = malloc(sizeof(struct ppb_device), M_PPBUSDEV, 100 M_NOWAIT | M_ZERO); 101 if (!ppbdev) --- 508 unchanged lines hidden --- | 94{ 95 struct ppb_device *ppbdev; 96 device_t child; 97 98 /* allocate ivars for the new ppbus child */ 99 ppbdev = malloc(sizeof(struct ppb_device), M_PPBUSDEV, 100 M_NOWAIT | M_ZERO); 101 if (!ppbdev) --- 508 unchanged lines hidden --- |