Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: MIT */
0002 /******************************************************************************
0003  * console.h
0004  *
0005  * Console I/O interface for Xen guest OSes.
0006  *
0007  * Copyright (c) 2005, Keir Fraser
0008  */
0009 
0010 #ifndef __XEN_PUBLIC_IO_CONSOLE_H__
0011 #define __XEN_PUBLIC_IO_CONSOLE_H__
0012 
0013 typedef uint32_t XENCONS_RING_IDX;
0014 
0015 #define MASK_XENCONS_IDX(idx, ring) ((idx) & (sizeof(ring)-1))
0016 
0017 struct xencons_interface {
0018     char in[1024];
0019     char out[2048];
0020     XENCONS_RING_IDX in_cons, in_prod;
0021     XENCONS_RING_IDX out_cons, out_prod;
0022 };
0023 
0024 #endif /* __XEN_PUBLIC_IO_CONSOLE_H__ */