Changeset View
Changeset View
Standalone View
Standalone View
sys/xen/xen-os.h
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
static inline uint32_t | static inline uint32_t | ||||
xen_get_start_flags(void) | xen_get_start_flags(void) | ||||
{ | { | ||||
return (hypervisor_info.get_start_flags()); | return (hypervisor_info.get_start_flags()); | ||||
} | } | ||||
#endif | |||||
#include <machine/xen/xen-os.h> | |||||
/* Everything below this point is not included by assembler (.S) files. */ | |||||
#ifndef __ASSEMBLY__ | |||||
extern shared_info_t *HYPERVISOR_shared_info; | extern shared_info_t *HYPERVISOR_shared_info; | ||||
extern int xen_disable_pv_disks; | extern int xen_disable_pv_disks; | ||||
extern int xen_disable_pv_nics; | extern int xen_disable_pv_nics; | ||||
extern bool xen_suspend_cancelled; | extern bool xen_suspend_cancelled; | ||||
enum xen_domain_type { | enum xen_domain_type { | ||||
Show All 23 Lines | |||||
} | } | ||||
static inline bool | static inline bool | ||||
xen_initial_domain(void) | xen_initial_domain(void) | ||||
{ | { | ||||
return (xen_domain() && (xen_get_start_flags() & SIF_INITDOMAIN) != 0); | return (xen_domain() && (xen_get_start_flags() & SIF_INITDOMAIN) != 0); | ||||
} | } | ||||
#endif | |||||
#include <machine/xen/xen-os.h> | |||||
/* Everything below this point is not included by assembler (.S) files. */ | |||||
#ifndef __ASSEMBLY__ | |||||
/* | /* | ||||
* Based on ofed/include/linux/bitops.h | * Based on ofed/include/linux/bitops.h | ||||
* | * | ||||
* Those helpers are prefixed by xen_ because xen-os.h is widely included | * Those helpers are prefixed by xen_ because xen-os.h is widely included | ||||
* and we don't want the other drivers using them. | * and we don't want the other drivers using them. | ||||
* | * | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |