The event channel specific union member in struct file is no longer
needed, so remove it together with the associated structure
definitions.
The event channel file type and its associated handling can be removed,
too, as libxenevtchn is now supplying a struct file_ops via a call of
alloc_file_type().
This removes all contents of CONFIG_LIBXENEVTCHN guarded sections, so
this config option can be removed.
Add an extern declaration for event_queue as it is used by
libxenevtchn.
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
endif
# Support legacy CONFIG_XC value
CONFIG_XC ?= $(libc)
-CONFIG-$(CONFIG_XC) += CONFIG_LIBXENEVTCHN
CONFIG-$(CONFIG_XC) += CONFIG_LIBXENGNTTAB
CONFIG-$(lwip) += CONFIG_LWIP
CONFIG_CONSFRONT = n
CONFIG_XENBUS = n
CONFIG_LIBXS = n
-CONFIG_LIBXENEVTCHN = n
CONFIG_LIBXENGNTTAB = n
CONFIG_LWIP = n
CONFIG_BALLOON = n
CONFIG_BALLOON = y
CONFIG_USE_XEN_CONSOLE = y
# The following are special: they need support from outside
-CONFIG_LIBXENEVTCHN = n
CONFIG_LIBXENGNTTAB = n
CONFIG_LWIP = n
CONFIG_USE_XEN_CONSOLE = y
XEN_INTERFACE_VERSION=__XEN_LATEST_INTERFACE_VERSION__
# The following are special: they need support from outside
-CONFIG_LIBXENEVTCHN = n
CONFIG_LIBXENGNTTAB = n
CONFIG_LWIP = n
void sanity_check(void);
#ifdef HAVE_LIBC
+extern struct wait_queue_head event_queue;
+
#define FTYPE_NONE 0
#define FTYPE_CONSOLE 1
#define FTYPE_FILE 2
#define FTYPE_TPM_TIS 11
#define FTYPE_XENBUS 12
#define FTYPE_GNTMAP 13
-#define FTYPE_EVTCHN 14
-#define FTYPE_N 15
+#define FTYPE_N 14
#define FTYPE_SPARE 16
-LIST_HEAD(evtchn_port_list, evtchn_port_info);
-
-struct evtchn_port_info {
- LIST_ENTRY(evtchn_port_info) list;
- evtchn_port_t port;
- unsigned long pending;
- int bound;
-};
-
struct file {
unsigned int type;
bool read; /* maybe available for read */
union {
int fd; /* Any fd from an upper layer. */
void *dev;
- struct {
- struct evtchn_port_list ports;
- } evtchn;
struct gntmap gntmap;
};
};
res = lwip_close(files[fd].fd);
break;
#endif
-#ifdef CONFIG_LIBXENEVTCHN
- case FTYPE_EVTCHN:
- minios_evtchn_close_fd(fd);
- break;
-#endif
#ifdef CONFIG_LIBXENGNTTAB
case FTYPE_GNTMAP:
minios_gnttab_close_fd(fd);
[FTYPE_NONE] = "none",
[FTYPE_CONSOLE] = "console",
[FTYPE_XENBUS] = "xenbus",
- [FTYPE_EVTCHN] = "evtchn",
[FTYPE_SOCKET] = "socket",
[FTYPE_TAP] = "net",
[FTYPE_BLK] = "blk",
FD_CLR(i, exceptfds);
break;
#endif
- case FTYPE_EVTCHN:
case FTYPE_TAP:
case FTYPE_BLK:
case FTYPE_KBD: