aboutsummaryrefslogtreecommitdiffstats
path: root/roms/u-boot-sam460ex/board/ACube/common/hvideo.h
diff options
context:
space:
mode:
authorAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
committerAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
commitaf1a266670d040d2f4083ff309d732d648afba2a (patch)
tree2fc46203448ddcc6f81546d379abfaeb323575e9 /roms/u-boot-sam460ex/board/ACube/common/hvideo.h
parente02cda008591317b1625707ff8e115a4841aa889 (diff)
Add submodule dependency filesHEADmaster
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'roms/u-boot-sam460ex/board/ACube/common/hvideo.h')
-rw-r--r--roms/u-boot-sam460ex/board/ACube/common/hvideo.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/roms/u-boot-sam460ex/board/ACube/common/hvideo.h b/roms/u-boot-sam460ex/board/ACube/common/hvideo.h
new file mode 100644
index 000000000..aced59c5a
--- /dev/null
+++ b/roms/u-boot-sam460ex/board/ACube/common/hvideo.h
@@ -0,0 +1,39 @@
+#ifndef A1_VIDEO_H
+#define A1_VIDEO_H
+
+void video_clear_attr(void);
+void video_clear(void);
+void video_draw_box(int style, int attr, char *title, int separate, int x, int y, int w, int h);
+
+void video_draw_text(int x, int y, int attr, char *text, int field);
+/* Ok, I'm not the author of this madness but it looks like it works like this:
+x and y are the coordinates,
+attr is the "style"
+text is the text to be displayed
+field is the length of the field to write. If shorter than the text length, the text
+will be truncated. If longer, padding spaces will be added to erase the remaining field
+*/
+
+void video_push(int x, int y, int w, int h, int clearchar, int clearattr);
+void video_pop(void);
+void video_clear_box(int x, int y, int w, int h, int clearchar, int clearattr);
+int video_rows(void);
+int video_cols(void);
+void get_partial_scroll_limits(short * const start, short * const end);
+unsigned short set_partial_scroll_limits(const short start, const short end);
+
+int video_get_key(void);
+int video_init(void);
+extern int drv_video_init(void);
+extern void video_set_cursor(int line, int column);
+extern void video_attr(int which, int color);
+extern void video_repeat_char(int x, int y, int repcnt, int repchar, int attr);
+
+void set_current_display(void *);
+
+#define SINGLE_BOX 0
+#define DOUBLE_BOX 1
+
+#define PARTIAL_SCROLL_ACTIVE(s, e) ((s != -1) && (e != -1))
+
+#endif /* A1_VIDEO_H */