console.h 587 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /******************************************************************************
  3. * console.h
  4. *
  5. * Console I/O interface for Xen guest OSes.
  6. *
  7. * Copyright (c) 2005, Keir Fraser
  8. */
  9. #ifndef __XEN_PUBLIC_IO_CONSOLE_H__
  10. #define __XEN_PUBLIC_IO_CONSOLE_H__
  11. typedef uint32_t XENCONS_RING_IDX;
  12. #define MASK_XENCONS_IDX(idx, ring) ((idx) & (sizeof(ring)-1))
  13. struct xencons_interface {
  14. char in[1024];
  15. char out[2048];
  16. XENCONS_RING_IDX in_cons, in_prod;
  17. XENCONS_RING_IDX out_cons, out_prod;
  18. };
  19. #endif /* __XEN_PUBLIC_IO_CONSOLE_H__ */