xen/intr: move evtchn_type to intr-internal.h
The evtchn_type enum is only touched by the Xen interrupt code. Other event channel uses no longer need the value, so that has been moved to restrict its use. Copyright note. The current evtchn_type was introduced at76acc41fb7
by Justin T. Gibbs. This in turn appears to have been heavily inspired by30d1eefe39
done by Kip Macy. Reviewed by: royger
This commit is contained in:
parent
ab7ce14b1d
commit
d32d65276b
@ -3,6 +3,7 @@
|
||||
*
|
||||
* Copyright © 2002-2005 K A Fraser
|
||||
* Copyright © 2005 Intel Corporation <xiaofeng.ling@intel.com>
|
||||
* Copyright © 2005-2006 Kip Macy
|
||||
* Copyright © 2013 Spectra Logic Corporation
|
||||
* Copyright © 2015 Julien Grall
|
||||
* Copyright © 2021,2022 Elliott Mitchell
|
||||
@ -39,6 +40,14 @@
|
||||
/* Current implementation only supports 2L event channels. */
|
||||
#define NR_EVENT_CHANNELS EVTCHN_2L_NR_CHANNELS
|
||||
|
||||
enum evtchn_type {
|
||||
EVTCHN_TYPE_UNBOUND,
|
||||
EVTCHN_TYPE_VIRQ,
|
||||
EVTCHN_TYPE_IPI,
|
||||
EVTCHN_TYPE_PORT,
|
||||
EVTCHN_TYPE_COUNT
|
||||
};
|
||||
|
||||
struct xenisrc {
|
||||
xen_arch_isrc_t xi_arch; /* @TOP -> *xi_arch=*xenisrc */
|
||||
enum evtchn_type xi_type;
|
||||
|
@ -38,14 +38,6 @@
|
||||
#include <xen/hypervisor.h>
|
||||
#include <contrib/xen/event_channel.h>
|
||||
|
||||
enum evtchn_type {
|
||||
EVTCHN_TYPE_UNBOUND,
|
||||
EVTCHN_TYPE_VIRQ,
|
||||
EVTCHN_TYPE_IPI,
|
||||
EVTCHN_TYPE_PORT,
|
||||
EVTCHN_TYPE_COUNT
|
||||
};
|
||||
|
||||
/** Submit a port notification for delivery to a userland evtchn consumer */
|
||||
void evtchn_device_upcall(evtchn_port_t port);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user