Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
kbdif.h File Reference

Go to the source code of this file.

Data Structures

struct  xenkbd_motion
 
struct  xenkbd_key
 
struct  xenkbd_position
 
union  xenkbd_in_event
 
union  xenkbd_out_event
 
struct  xenkbd_page
 

Macros

#define XENKBD_TYPE_MOTION   1
 
#define XENKBD_TYPE_KEY   3
 
#define XENKBD_TYPE_POS   4
 
#define XENKBD_IN_EVENT_SIZE   40
 
#define XENKBD_OUT_EVENT_SIZE   40
 
#define XENKBD_IN_RING_SIZE   2048
 
#define XENKBD_IN_RING_LEN   (XENKBD_IN_RING_SIZE / XENKBD_IN_EVENT_SIZE)
 
#define XENKBD_IN_RING_OFFS   1024
 
#define XENKBD_IN_RING(page)   ((union xenkbd_in_event *)((char *)(page) + XENKBD_IN_RING_OFFS))
 
#define XENKBD_IN_RING_REF(page, idx)   (XENKBD_IN_RING((page))[(idx) % XENKBD_IN_RING_LEN])
 
#define XENKBD_OUT_RING_SIZE   1024
 
#define XENKBD_OUT_RING_LEN   (XENKBD_OUT_RING_SIZE / XENKBD_OUT_EVENT_SIZE)
 
#define XENKBD_OUT_RING_OFFS   (XENKBD_IN_RING_OFFS + XENKBD_IN_RING_SIZE)
 
#define XENKBD_OUT_RING(page)   ((union xenkbd_out_event *)((char *)(page) + XENKBD_OUT_RING_OFFS))
 
#define XENKBD_OUT_RING_REF(page, idx)   (XENKBD_OUT_RING((page))[(idx) % XENKBD_OUT_RING_LEN])
 

Macro Definition Documentation

#define XENKBD_IN_EVENT_SIZE   40

Definition at line 68 of file kbdif.h.

#define XENKBD_IN_RING (   page)    ((union xenkbd_in_event *)((char *)(page) + XENKBD_IN_RING_OFFS))

Definition at line 98 of file kbdif.h.

#define XENKBD_IN_RING_LEN   (XENKBD_IN_RING_SIZE / XENKBD_IN_EVENT_SIZE)

Definition at line 96 of file kbdif.h.

#define XENKBD_IN_RING_OFFS   1024

Definition at line 97 of file kbdif.h.

#define XENKBD_IN_RING_REF (   page,
  idx 
)    (XENKBD_IN_RING((page))[(idx) % XENKBD_IN_RING_LEN])

Definition at line 100 of file kbdif.h.

#define XENKBD_IN_RING_SIZE   2048

Definition at line 95 of file kbdif.h.

#define XENKBD_OUT_EVENT_SIZE   40

Definition at line 86 of file kbdif.h.

#define XENKBD_OUT_RING (   page)    ((union xenkbd_out_event *)((char *)(page) + XENKBD_OUT_RING_OFFS))

Definition at line 106 of file kbdif.h.

#define XENKBD_OUT_RING_LEN   (XENKBD_OUT_RING_SIZE / XENKBD_OUT_EVENT_SIZE)

Definition at line 104 of file kbdif.h.

#define XENKBD_OUT_RING_OFFS   (XENKBD_IN_RING_OFFS + XENKBD_IN_RING_SIZE)

Definition at line 105 of file kbdif.h.

#define XENKBD_OUT_RING_REF (   page,
  idx 
)    (XENKBD_OUT_RING((page))[(idx) % XENKBD_OUT_RING_LEN])

Definition at line 108 of file kbdif.h.

#define XENKBD_OUT_RING_SIZE   1024

Definition at line 103 of file kbdif.h.

#define XENKBD_TYPE_KEY   3

Definition at line 39 of file kbdif.h.

#define XENKBD_TYPE_MOTION   1

Definition at line 36 of file kbdif.h.

#define XENKBD_TYPE_POS   4

Definition at line 46 of file kbdif.h.