Merge tag 'v3.3.7' into 3.3/master
[zen-stable.git] / include / xen / interface / io / console.h
blobe563de70f7843b8438b683479e9bd39af8a7b270
1 /******************************************************************************
2 * console.h
4 * Console I/O interface for Xen guest OSes.
6 * Copyright (c) 2005, Keir Fraser
7 */
9 #ifndef __XEN_PUBLIC_IO_CONSOLE_H__
10 #define __XEN_PUBLIC_IO_CONSOLE_H__
12 typedef uint32_t XENCONS_RING_IDX;
14 #define MASK_XENCONS_IDX(idx, ring) ((idx) & (sizeof(ring)-1))
16 struct xencons_interface {
17 char in[1024];
18 char out[2048];
19 XENCONS_RING_IDX in_cons, in_prod;
20 XENCONS_RING_IDX out_cons, out_prod;
23 #endif /* __XEN_PUBLIC_IO_CONSOLE_H__ */