xencons.c (843e1988) | xencons.c (551bc2a6) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 276 unchanged lines hidden (view full) --- 285 */ 286 mutex_enter(&xcp->excl); 287 (void) taskq_dispatch(system_taskq, 288 (void (*)(void *))xenconssetup_add_avintr, xcp, TQ_SLEEP); 289 cv_wait(&xcp->excl_cv, &xcp->excl); 290 mutex_exit(&xcp->excl); 291 } else { 292 (void) xvdi_alloc_evtchn(xcp->dip); | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 276 unchanged lines hidden (view full) --- 285 */ 286 mutex_enter(&xcp->excl); 287 (void) taskq_dispatch(system_taskq, 288 (void (*)(void *))xenconssetup_add_avintr, xcp, TQ_SLEEP); 289 cv_wait(&xcp->excl_cv, &xcp->excl); 290 mutex_exit(&xcp->excl); 291 } else { 292 (void) xvdi_alloc_evtchn(xcp->dip); |
293 xcp->evtchn = xvdi_get_evtchn(xcp->dip); |
|
293 (void) ddi_add_intr(xcp->dip, 0, NULL, NULL, xenconsintr, 294 (caddr_t)xcp); | 294 (void) ddi_add_intr(xcp->dip, 0, NULL, NULL, xenconsintr, 295 (caddr_t)xcp); |
295 xcp->evtchn = xvdi_get_evtchn(xcp->dip); | |
296 } 297} 298 299static int 300xenconsattach(dev_info_t *devi, ddi_attach_cmd_t cmd) 301{ 302 int instance = ddi_get_instance(devi); 303 struct xencons *xcp; --- 1351 unchanged lines hidden --- | 296 } 297} 298 299static int 300xenconsattach(dev_info_t *devi, ddi_attach_cmd_t cmd) 301{ 302 int instance = ddi_get_instance(devi); 303 struct xencons *xcp; --- 1351 unchanged lines hidden --- |