/******************************************************************************1* console.h2*3* Console I/O interface for Xen guest OSes.4*5* Permission is hereby granted, free of charge, to any person obtaining a copy6* of this software and associated documentation files (the "Software"), to7* deal in the Software without restriction, including without limitation the8* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or9* sell copies of the Software, and to permit persons to whom the Software is10* furnished to do so, subject to the following conditions:11*12* The above copyright notice and this permission notice shall be included in13* all copies or substantial portions of the Software.14*15* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR16* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,17* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE18* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER19* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING20* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER21* DEALINGS IN THE SOFTWARE.22*23* Copyright (c) 2005, Keir Fraser24*/2526#ifndef __XEN_PUBLIC_IO_CONSOLE_H__27#define __XEN_PUBLIC_IO_CONSOLE_H__2829typedef uint32_t XENCONS_RING_IDX;3031#define MASK_XENCONS_IDX(idx, ring) ((idx) & (sizeof(ring)-1))3233struct xencons_interface {34char in[1024];35char out[2048];36XENCONS_RING_IDX in_cons, in_prod;37XENCONS_RING_IDX out_cons, out_prod;38};3940#ifdef XEN_WANT_FLEX_CONSOLE_RING41#include "ring.h"42DEFINE_XEN_FLEX_RING(xencons);43#endif4445#endif /* __XEN_PUBLIC_IO_CONSOLE_H__ */4647/*48* Local variables:49* mode: C50* c-file-style: "BSD"51* c-basic-offset: 452* tab-width: 453* indent-tabs-mode: nil54* End:55*/565758