1181624Skmacy/****************************************************************************** 2181624Skmacy * console.h 3181624Skmacy * 4181624Skmacy * Console I/O interface for Xen guest OSes. 5181624Skmacy * 6181624Skmacy * Permission is hereby granted, free of charge, to any person obtaining a copy 7181624Skmacy * of this software and associated documentation files (the "Software"), to 8181624Skmacy * deal in the Software without restriction, including without limitation the 9181624Skmacy * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 10181624Skmacy * sell copies of the Software, and to permit persons to whom the Software is 11181624Skmacy * furnished to do so, subject to the following conditions: 12181624Skmacy * 13181624Skmacy * The above copyright notice and this permission notice shall be included in 14181624Skmacy * all copies or substantial portions of the Software. 15181624Skmacy * 16181624Skmacy * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17181624Skmacy * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18181624Skmacy * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19181624Skmacy * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20181624Skmacy * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21181624Skmacy * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22181624Skmacy * DEALINGS IN THE SOFTWARE. 23181624Skmacy * 24181624Skmacy * Copyright (c) 2005, Keir Fraser 25181624Skmacy */ 26181624Skmacy 27181624Skmacy#ifndef __XEN_PUBLIC_IO_CONSOLE_H__ 28181624Skmacy#define __XEN_PUBLIC_IO_CONSOLE_H__ 29181624Skmacy 30181624Skmacytypedef uint32_t XENCONS_RING_IDX; 31181624Skmacy 32181624Skmacy#define MASK_XENCONS_IDX(idx, ring) ((idx) & (sizeof(ring)-1)) 33181624Skmacy 34181624Skmacystruct xencons_interface { 35181624Skmacy char in[1024]; 36181624Skmacy char out[2048]; 37181624Skmacy XENCONS_RING_IDX in_cons, in_prod; 38181624Skmacy XENCONS_RING_IDX out_cons, out_prod; 39181624Skmacy}; 40181624Skmacy 41181624Skmacy#endif /* __XEN_PUBLIC_IO_CONSOLE_H__ */ 42181624Skmacy 43181624Skmacy/* 44181624Skmacy * Local variables: 45181624Skmacy * mode: C 46288917Sroyger * c-file-style: "BSD" 47181624Skmacy * c-basic-offset: 4 48181624Skmacy * tab-width: 4 49181624Skmacy * indent-tabs-mode: nil 50181624Skmacy * End: 51181624Skmacy */ 52