evtchnvar.h (9f3be3a6ec8ec6096e3d6c715695a6560aabbb80) evtchnvar.h (d32d65276b201d2abe963aa69cc2cfc951ddb278)
1/******************************************************************************
2 * evtchn.h
3 *
4 * Data structures and definitions private to the FreeBSD implementation
5 * of the Xen event channel API.
6 *
7 * Copyright (c) 2004, K A Fraser
8 * Copyright (c) 2012, Spectra Logic Corporation

--- 24 unchanged lines hidden (view full) ---

33 */
34
35#ifndef __XEN_EVTCHN_EVTCHNVAR_H__
36#define __XEN_EVTCHN_EVTCHNVAR_H__
37
38#include <xen/hypervisor.h>
39#include <contrib/xen/event_channel.h>
40
1/******************************************************************************
2 * evtchn.h
3 *
4 * Data structures and definitions private to the FreeBSD implementation
5 * of the Xen event channel API.
6 *
7 * Copyright (c) 2004, K A Fraser
8 * Copyright (c) 2012, Spectra Logic Corporation

--- 24 unchanged lines hidden (view full) ---

33 */
34
35#ifndef __XEN_EVTCHN_EVTCHNVAR_H__
36#define __XEN_EVTCHN_EVTCHNVAR_H__
37
38#include <xen/hypervisor.h>
39#include <contrib/xen/event_channel.h>
40
41enum evtchn_type {
42 EVTCHN_TYPE_UNBOUND,
43 EVTCHN_TYPE_VIRQ,
44 EVTCHN_TYPE_IPI,
45 EVTCHN_TYPE_PORT,
46 EVTCHN_TYPE_COUNT
47};
48
49/** Submit a port notification for delivery to a userland evtchn consumer */
50void evtchn_device_upcall(evtchn_port_t port);
51
52/* Macros for accessing event channel values */
53#define EVTCHN_PTR(type, port) \
54 (HYPERVISOR_shared_info->evtchn_##type + ((port) / __LONG_BIT))
55#define EVTCHN_BIT(port) ((port) & (__LONG_BIT - 1))
56#define EVTCHN_MASK(port) (1UL << EVTCHN_BIT(port))

--- 55 unchanged lines hidden ---
41/** Submit a port notification for delivery to a userland evtchn consumer */
42void evtchn_device_upcall(evtchn_port_t port);
43
44/* Macros for accessing event channel values */
45#define EVTCHN_PTR(type, port) \
46 (HYPERVISOR_shared_info->evtchn_##type + ((port) / __LONG_BIT))
47#define EVTCHN_BIT(port) ((port) & (__LONG_BIT - 1))
48#define EVTCHN_MASK(port) (1UL << EVTCHN_BIT(port))

--- 55 unchanged lines hidden ---