1 /* SPDX-License-Identifier: MIT */ 1 /* SPDX-License-Identifier: MIT */ 2 /********************************************* 2 /****************************************************************************** 3 * console.h 3 * console.h 4 * 4 * 5 * Console I/O interface for Xen guest OSes. 5 * Console I/O interface for Xen guest OSes. 6 * 6 * 7 * Copyright (c) 2005, Keir Fraser 7 * Copyright (c) 2005, Keir Fraser 8 */ 8 */ 9 9 10 #ifndef __XEN_PUBLIC_IO_CONSOLE_H__ 10 #ifndef __XEN_PUBLIC_IO_CONSOLE_H__ 11 #define __XEN_PUBLIC_IO_CONSOLE_H__ 11 #define __XEN_PUBLIC_IO_CONSOLE_H__ 12 12 13 typedef uint32_t XENCONS_RING_IDX; 13 typedef uint32_t XENCONS_RING_IDX; 14 14 15 #define MASK_XENCONS_IDX(idx, ring) ((idx) & ( 15 #define MASK_XENCONS_IDX(idx, ring) ((idx) & (sizeof(ring)-1)) 16 16 17 struct xencons_interface { 17 struct xencons_interface { 18 char in[1024]; 18 char in[1024]; 19 char out[2048]; 19 char out[2048]; 20 XENCONS_RING_IDX in_cons, in_prod; 20 XENCONS_RING_IDX in_cons, in_prod; 21 XENCONS_RING_IDX out_cons, out_prod; 21 XENCONS_RING_IDX out_cons, out_prod; 22 }; 22 }; 23 23 24 #endif /* __XEN_PUBLIC_IO_CONSOLE_H__ */ 24 #endif /* __XEN_PUBLIC_IO_CONSOLE_H__ */ 25 25
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.