diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-05-12 10:10:03 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-05-12 10:10:03 +0100 |
commit | de239d043fbfddbcb509e64186f963697127983e (patch) | |
tree | 572eae02c73c3850771a8895cc5712d14bccc8f0 /extras/mini-os/include | |
parent | aa7e17e11bb354d0cda598c7e6ccff29b210eb1c (diff) | |
download | xen-de239d043fbfddbcb509e64186f963697127983e.tar.gz xen-de239d043fbfddbcb509e64186f963697127983e.tar.bz2 xen-de239d043fbfddbcb509e64186f963697127983e.zip |
pvfb/ioemu: transmit refresh interval advice from backend to frontend
which permits the frontend to avoid useless polls.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Diffstat (limited to 'extras/mini-os/include')
-rw-r--r-- | extras/mini-os/include/fbfront.h | 3 | ||||
-rw-r--r-- | extras/mini-os/include/lib.h | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/extras/mini-os/include/fbfront.h b/extras/mini-os/include/fbfront.h index 70b2f2a681..1e4d7ac6d9 100644 --- a/extras/mini-os/include/fbfront.h +++ b/extras/mini-os/include/fbfront.h @@ -1,4 +1,5 @@ #include <xen/io/kbdif.h> +#include <xen/io/fbif.h> #include <wait.h> /* from <linux/input.h> */ @@ -36,6 +37,8 @@ struct fbfront_dev *init_fbfront(char *nodename, unsigned long *mfns, int width, int fbfront_open(struct fbfront_dev *dev); #endif +int fbfront_receive(struct fbfront_dev *dev, union xenfb_in_event *buf, int n); +extern struct wait_queue_head fbfront_queue; void fbfront_update(struct fbfront_dev *dev, int x, int y, int width, int height); void fbfront_resize(struct fbfront_dev *dev, int width, int height, int stride, int depth, int offset); diff --git a/extras/mini-os/include/lib.h b/extras/mini-os/include/lib.h index 0acb0fc4e2..b26a5eda39 100644 --- a/extras/mini-os/include/lib.h +++ b/extras/mini-os/include/lib.h @@ -141,6 +141,7 @@ enum fd_type { FTYPE_TAP, FTYPE_BLK, FTYPE_KBD, + FTYPE_FB, }; #define MAX_EVTCHN_PORTS 16 @@ -175,6 +176,9 @@ extern struct file { struct { struct kbdfront_dev *dev; } kbd; + struct { + struct fbfront_dev *dev; + } fb; struct { /* To each xenbus FD is associated a queue of watch events for this * FD. */ |