console.h 548 B

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