xenbus_dev.c (843e1988) | xenbus_dev.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 --- 57 unchanged lines hidden (view full) --- 66#include <sys/list.h> 67#include <sys/file.h> 68#include <sys/errno.h> 69#include <sys/open.h> 70#include <sys/cred.h> 71#include <sys/condvar.h> 72#include <sys/ddi.h> 73#include <sys/sunddi.h> | 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 --- 57 unchanged lines hidden (view full) --- 66#include <sys/list.h> 67#include <sys/file.h> 68#include <sys/errno.h> 69#include <sys/open.h> 70#include <sys/cred.h> 71#include <sys/condvar.h> 72#include <sys/ddi.h> 73#include <sys/sunddi.h> |
74#ifdef XPV_HVM_DRIVER 75#include <public/io/xenbus.h> 76#include <public/io/xs_wire.h> 77#include <sys/xpv_support.h> 78#endif |
|
74#include <sys/hypervisor.h> | 79#include <sys/hypervisor.h> |
80#include <xen/sys/xenbus.h> |
|
75#include <xen/sys/xenbus_comms.h> 76#include <xen/sys/xenbus_impl.h> | 81#include <xen/sys/xenbus_comms.h> 82#include <xen/sys/xenbus_impl.h> |
77#include <xen/sys/xenbus.h> | |
78#include <xen/public/io/xs_wire.h> 79 80#ifdef DEBUG 81#define XENBUSDRV_DBPRINT(fmt) { if (xenbusdrv_debug) cmn_err fmt; } 82#else 83#define XENBUSDRV_DBPRINT(fmt) 84#endif /* ifdef DEBUG */ 85 --- 196 unchanged lines hidden (view full) --- 282 goto fail; 283 284 /* 285 * save dip for getinfo 286 */ 287 xenbusdrv_dip = dip; 288 ddi_report_dev(dip); 289 | 83#include <xen/public/io/xs_wire.h> 84 85#ifdef DEBUG 86#define XENBUSDRV_DBPRINT(fmt) { if (xenbusdrv_debug) cmn_err fmt; } 87#else 88#define XENBUSDRV_DBPRINT(fmt) 89#endif /* ifdef DEBUG */ 90 --- 196 unchanged lines hidden (view full) --- 287 goto fail; 288 289 /* 290 * save dip for getinfo 291 */ 292 xenbusdrv_dip = dip; 293 ddi_report_dev(dip); 294 |
295#ifndef XPV_HVM_DRIVER |
|
290 if (DOMAIN_IS_INITDOMAIN(xen_info)) 291 xs_dom0_init(); | 296 if (DOMAIN_IS_INITDOMAIN(xen_info)) 297 xs_dom0_init(); |
298#endif |
|
292 293 return (DDI_SUCCESS); 294 295fail: 296 (void) xenbusdrv_detach(dip, DDI_DETACH); 297 return (error); 298} 299 --- 346 unchanged lines hidden --- | 299 300 return (DDI_SUCCESS); 301 302fail: 303 (void) xenbusdrv_detach(dip, DDI_DETACH); 304 return (error); 305} 306 --- 346 unchanged lines hidden --- |