bhnd.c (299996) | bhnd.c (300050) |
---|---|
1/*- 2 * Copyright (c) 2015 Landon Fuller <landon@landonf.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 --- 14 unchanged lines hidden (view full) --- 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 27 * THE POSSIBILITY OF SUCH DAMAGES. 28 */ 29 30#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2015 Landon Fuller <landon@landonf.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 --- 14 unchanged lines hidden (view full) --- 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 27 * THE POSSIBILITY OF SUCH DAMAGES. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/dev/bhnd/bhnd.c 299996 2016-05-17 00:23:46Z adrian $"); | 31__FBSDID("$FreeBSD: head/sys/dev/bhnd/bhnd.c 300050 2016-05-17 12:52:31Z eadler $"); |
32 33/* 34 * Broadcom Home Networking Division (HND) Bus Driver. 35 * 36 * The Broadcom HND family of devices consists of both SoCs and host-connected 37 * networking chipsets containing a common family of Broadcom IP cores, 38 * including an integrated MIPS and/or ARM cores. 39 * --- 72 unchanged lines hidden (view full) --- 112 113 free(devs, M_TEMP); 114 return (0); 115} 116 117/** 118 * Default bhnd(4) bus driver implementation of DEVICE_DETACH(). 119 * | 32 33/* 34 * Broadcom Home Networking Division (HND) Bus Driver. 35 * 36 * The Broadcom HND family of devices consists of both SoCs and host-connected 37 * networking chipsets containing a common family of Broadcom IP cores, 38 * including an integrated MIPS and/or ARM cores. 39 * --- 72 unchanged lines hidden (view full) --- 112 113 free(devs, M_TEMP); 114 return (0); 115} 116 117/** 118 * Default bhnd(4) bus driver implementation of DEVICE_DETACH(). 119 * |
120 * This implementation calls device_detach() for each of the the device's | 120 * This implementation calls device_detach() for each of the device's |
121 * children, in reverse bhnd probe order, terminating if any call to 122 * device_detach() fails. 123 */ 124int 125bhnd_generic_detach(device_t dev) 126{ 127 device_t *devs; 128 int ndevs; --- 539 unchanged lines hidden --- | 121 * children, in reverse bhnd probe order, terminating if any call to 122 * device_detach() fails. 123 */ 124int 125bhnd_generic_detach(device_t dev) 126{ 127 device_t *devs; 128 int ndevs; --- 539 unchanged lines hidden --- |