~ubuntu-branches/ubuntu/precise/linux-lowlatency/precise

« back to all changes in this revision

Viewing changes to include/xen/interface/io/console.h

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-tz023xykf0i6eosh
Tags: upstream-3.2.0
ImportĀ upstreamĀ versionĀ 3.2.0

Show diffs side-by-side

added added

removed removed

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