diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-02-26 14:47:23 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-02-26 14:47:23 +0000 |
commit | 26a1b308f37898b744d3b38477edcfb0a23b93cc (patch) | |
tree | 568602b1e4b7c88b844a5758baccdaaacc4b64ea /extras/mini-os/include/fbfront.h | |
parent | 2e83dbdb929d8a553ffd2f82404e8169d1fe4134 (diff) | |
download | xen-26a1b308f37898b744d3b38477edcfb0a23b93cc.tar.gz xen-26a1b308f37898b744d3b38477edcfb0a23b93cc.tar.bz2 xen-26a1b308f37898b744d3b38477edcfb0a23b93cc.zip |
minios: add PVFB support
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Diffstat (limited to 'extras/mini-os/include/fbfront.h')
-rw-r--r-- | extras/mini-os/include/fbfront.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/extras/mini-os/include/fbfront.h b/extras/mini-os/include/fbfront.h new file mode 100644 index 0000000000..502f0330a2 --- /dev/null +++ b/extras/mini-os/include/fbfront.h @@ -0,0 +1,38 @@ +#include <xen/io/kbdif.h> +#include <wait.h> + +/* from <linux/input.h> */ +#ifndef BTN_LEFT +#define BTN_LEFT 0x110 +#endif +#ifndef BTN_RIGHT +#define BTN_RIGHT 0x111 +#endif +#ifndef BTN_MIDDLE +#define BTN_MIDDLE 0x112 +#endif +#ifndef KEY_Q +#define KEY_Q 16 +#endif + + +struct kbdfront_dev; +struct kbdfront_dev *init_kbdfront(char *nodename, int abs_pointer); +#ifdef HAVE_LIBC +int kbdfront_open(struct kbdfront_dev *dev); +#endif + +int kbdfront_receive(struct kbdfront_dev *dev, union xenkbd_in_event *buf, int n); +extern struct wait_queue_head kbdfront_queue; + +void shutdown_kbdfront(struct kbdfront_dev *dev); + + +struct fbfront_dev *init_fbfront(char *nodename, void *data, int width, int height, int depth, int line_length, int mem_length); +#ifdef HAVE_LIBC +int fbfront_open(struct fbfront_dev *dev); +#endif + +void fbfront_update(struct fbfront_dev *dev, int x, int y, int width, int height); + +void shutdown_fbfront(struct fbfront_dev *dev); |