summaryrefslogtreecommitdiff
path: root/hw/framebuffer.h
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-01 12:27:59 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-01 12:27:59 +0000
commit714fa308a3f86e1dc55021ff1282c1afe6954d3d (patch)
tree9377d95debe17aeda17cbcc2042ffff1f9ff59d0 /hw/framebuffer.h
parent602dafcf43d8a35ff77e33377c1f258515812e5b (diff)
downloadqemu-714fa308a3f86e1dc55021ff1282c1afe6954d3d.tar.gz
qemu-714fa308a3f86e1dc55021ff1282c1afe6954d3d.tar.bz2
qemu-714fa308a3f86e1dc55021ff1282c1afe6954d3d.zip
Implement and use shared memory framebuffer device rendering reoutine.
Use DMA mapping API. Signed-off-by: Paul Brook <paul@codesourcery.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6965 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/framebuffer.h')
-rw-r--r--hw/framebuffer.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/hw/framebuffer.h b/hw/framebuffer.h
new file mode 100644
index 0000000000..a3a214649d
--- /dev/null
+++ b/hw/framebuffer.h
@@ -0,0 +1,22 @@
+#ifndef QEMU_FRAMEBUFFER_H
+#define QEMU_FRAMEBUFFER_H
+
+/* Framebuffer device helper routines. */
+
+typedef void (*drawfn)(void *, uint8_t *, const uint8_t *, int, int);
+
+void framebuffer_update_display(
+ DisplayState *ds,
+ target_phys_addr_t base,
+ int cols,
+ int rows,
+ int src_width,
+ int dest_row_pitch,
+ int dest_col_pitch,
+ int invalidate,
+ drawfn fn,
+ void *opaque,
+ int *first_row,
+ int *last_row);
+
+#endif