blob: 6eae035b7d1ba6595add7833257b02a7bd686eff [file] [log] [blame]
pbrook714fa302009-04-01 12:27:59 +00001#ifndef QEMU_FRAMEBUFFER_H
2#define QEMU_FRAMEBUFFER_H
3
Paolo Bonzini022c62c2012-12-17 18:19:49 +01004#include "exec/memory.h"
Avi Kivity75c9d6c2011-12-08 16:00:54 +02005
pbrook714fa302009-04-01 12:27:59 +00006/* Framebuffer device helper routines. */
7
8typedef void (*drawfn)(void *, uint8_t *, const uint8_t *, int, int);
9
10void framebuffer_update_display(
Gerd Hoffmannc78f7132013-03-05 15:24:14 +010011 DisplaySurface *ds,
Avi Kivity75c9d6c2011-12-08 16:00:54 +020012 MemoryRegion *address_space,
Avi Kivitya8170e52012-10-23 12:30:10 +020013 hwaddr base,
pbrook714fa302009-04-01 12:27:59 +000014 int cols,
15 int rows,
16 int src_width,
17 int dest_row_pitch,
18 int dest_col_pitch,
19 int invalidate,
20 drawfn fn,
21 void *opaque,
22 int *first_row,
23 int *last_row);
24
25#endif