subr_autoconf.c (176323) | subr_autoconf.c (177253) |
---|---|
1/*- 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This software was developed by the Computer Systems Engineering group 6 * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and 7 * contributed to Berkeley. 8 * --- 21 unchanged lines hidden (view full) --- 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)subr_autoconf.c 8.1 (Berkeley) 6/10/93 34 * 35 */ 36 37#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This software was developed by the Computer Systems Engineering group 6 * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and 7 * contributed to Berkeley. 8 * --- 21 unchanged lines hidden (view full) --- 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)subr_autoconf.c 8.1 (Berkeley) 6/10/93 34 * 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/sys/kern/subr_autoconf.c 176323 2008-02-15 21:54:21Z antoine $"); | 38__FBSDID("$FreeBSD: head/sys/kern/subr_autoconf.c 177253 2008-03-16 10:58:09Z rwatson $"); |
39 40#include <sys/param.h> 41#include <sys/kernel.h> 42#include <sys/lock.h> 43#include <sys/mutex.h> 44#include <sys/systm.h> 45 46/* --- 27 unchanged lines hidden (view full) --- 74 75 while (!TAILQ_EMPTY(&intr_config_hook_list)) { 76 msleep(&intr_config_hook_list, &intr_config_hook_lock, PCONFIG, 77 "conifhk", 0); 78 } 79 mtx_unlock(&intr_config_hook_lock); 80} 81SYSINIT(intr_config_hooks, SI_SUB_INT_CONFIG_HOOKS, SI_ORDER_FIRST, | 39 40#include <sys/param.h> 41#include <sys/kernel.h> 42#include <sys/lock.h> 43#include <sys/mutex.h> 44#include <sys/systm.h> 45 46/* --- 27 unchanged lines hidden (view full) --- 74 75 while (!TAILQ_EMPTY(&intr_config_hook_list)) { 76 msleep(&intr_config_hook_list, &intr_config_hook_lock, PCONFIG, 77 "conifhk", 0); 78 } 79 mtx_unlock(&intr_config_hook_lock); 80} 81SYSINIT(intr_config_hooks, SI_SUB_INT_CONFIG_HOOKS, SI_ORDER_FIRST, |
82 run_interrupt_driven_config_hooks, NULL) | 82 run_interrupt_driven_config_hooks, NULL); |
83 84/* 85 * Register a hook that will be called after "cold" 86 * autoconfiguration is complete and interrupts can 87 * be used to complete initialization. 88 */ 89int 90config_intrhook_establish(hook) --- 42 unchanged lines hidden --- | 83 84/* 85 * Register a hook that will be called after "cold" 86 * autoconfiguration is complete and interrupts can 87 * be used to complete initialization. 88 */ 89int 90config_intrhook_establish(hook) --- 42 unchanged lines hidden --- |