Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / include / hw / xen / interface / io / console.h
blob4509b4b689ea1e304f1033f939bacf0917b794dd
1 /* SPDX-License-Identifier: MIT */
2 /******************************************************************************
3 * console.h
5 * Console I/O interface for Xen guest OSes.
7 * Copyright (c) 2005, Keir Fraser
8 */
10 #ifndef __XEN_PUBLIC_IO_CONSOLE_H__
11 #define __XEN_PUBLIC_IO_CONSOLE_H__
13 typedef uint32_t XENCONS_RING_IDX;
15 #define MASK_XENCONS_IDX(idx, ring) ((idx) & (sizeof(ring)-1))
17 struct xencons_interface {
18 char in[1024];
19 char out[2048];
20 XENCONS_RING_IDX in_cons, in_prod;
21 XENCONS_RING_IDX out_cons, out_prod;
24 #ifdef XEN_WANT_FLEX_CONSOLE_RING
25 #include "ring.h"
26 DEFINE_XEN_FLEX_RING(xencons);
27 #endif
29 #endif /* __XEN_PUBLIC_IO_CONSOLE_H__ */
32 * Local variables:
33 * mode: C
34 * c-file-style: "BSD"
35 * c-basic-offset: 4
36 * tab-width: 4
37 * indent-tabs-mode: nil
38 * End: