ia64/linux-2.6.18-xen.hg

changeset 496:bfc040135633

pfvb: Add offset in resize event.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Mar 26 14:11:25 2008 +0000 (2008-03-26)
parents 542209a3e7e9
children a8d039cb11d1
files drivers/xen/fbfront/xenfb.c include/xen/interface/io/fbif.h
line diff
     1.1 --- a/drivers/xen/fbfront/xenfb.c	Wed Mar 26 11:08:08 2008 +0000
     1.2 +++ b/drivers/xen/fbfront/xenfb.c	Wed Mar 26 14:11:25 2008 +0000
     1.3 @@ -171,6 +171,7 @@ static void xenfb_do_update(struct xenfb
     1.4  {
     1.5  	union xenfb_out_event event;
     1.6  
     1.7 +	memset(&event, 0, sizeof(event));
     1.8  	event.type = XENFB_TYPE_UPDATE;
     1.9  	event.update.x = x;
    1.10  	event.update.y = y;
    1.11 @@ -185,6 +186,7 @@ static void xenfb_do_resize(struct xenfb
    1.12  {
    1.13  	union xenfb_out_event event;
    1.14  
    1.15 +	memset(&event, 0, sizeof(event));
    1.16  	event.resize = info->resize;
    1.17  
    1.18  	/* caller ensures !xenfb_queue_full() */
    1.19 @@ -504,6 +506,7 @@ static int xenfb_set_par(struct fb_info 
    1.20  	xenfb_info->resize.height = info->var.yres;
    1.21  	xenfb_info->resize.stride = info->fix.line_length;
    1.22  	xenfb_info->resize.depth = info->var.bits_per_pixel;
    1.23 +	xenfb_info->resize.offset = 0;
    1.24  	xenfb_info->resize_dpy = 1;
    1.25  	spin_unlock_irqrestore(&xenfb_info->resize_lock, flags);
    1.26  	return 0;
     2.1 --- a/include/xen/interface/io/fbif.h	Wed Mar 26 11:08:08 2008 +0000
     2.2 +++ b/include/xen/interface/io/fbif.h	Wed Mar 26 14:11:25 2008 +0000
     2.3 @@ -63,6 +63,7 @@ struct xenfb_resize
     2.4      int32_t height;  /* height in pixels */
     2.5      int32_t stride;  /* stride in bytes */
     2.6      int32_t depth;   /* depth in bits */
     2.7 +    int32_t offset;  /* offset of the framebuffer in bytes */
     2.8  };
     2.9  
    2.10  #define XENFB_OUT_EVENT_SIZE 40