PageRenderTime 37ms CodeModel.GetById 35ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/include/xen/interface/io/console.h

https://bitbucket.org/thekraven/iscream_thunderc-2.6.35
C++ Header | 23 lines | 11 code | 5 blank | 7 comment | 0 complexity | 20faa207967ad9243c5832b76eab5e27 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, AGPL-1.0
 1/******************************************************************************
 2 * console.h
 3 *
 4 * Console I/O interface for Xen guest OSes.
 5 *
 6 * Copyright (c) 2005, Keir Fraser
 7 */
 8
 9#ifndef __XEN_PUBLIC_IO_CONSOLE_H__
10#define __XEN_PUBLIC_IO_CONSOLE_H__
11
12typedef uint32_t XENCONS_RING_IDX;
13
14#define MASK_XENCONS_IDX(idx, ring) ((idx) & (sizeof(ring)-1))
15
16struct 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;
21};
22
23#endif /* __XEN_PUBLIC_IO_CONSOLE_H__ */