blob: 527a6b85f812ffa56acda8660df25c1f461bb03f [file] [log] [blame]
pbrook714fa302009-04-01 12:27:59 +00001#ifndef QEMU_FRAMEBUFFER_H
2#define QEMU_FRAMEBUFFER_H
3
Avi Kivity75c9d6c2011-12-08 16:00:54 +02004#include "memory.h"
5
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(
11 DisplayState *ds,
Avi Kivity75c9d6c2011-12-08 16:00:54 +020012 MemoryRegion *address_space,
Anthony Liguoric227f092009-10-01 16:12:16 -050013 target_phys_addr_t 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