Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: include/dev/display.h

Issue 1741463002: [target][dartuinoP0] Allow for varying framebuffer format and stride. (Closed) Base URL: https://github.com/littlekernel/lk.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/gfx/gfx.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/dev/display.h
diff --git a/include/dev/display.h b/include/dev/display.h
index 63d9c077140c74c50556a771ff065acbfe375c5b..8e35fafaf0007103053c0a417029c079dd47d389 100644
--- a/include/dev/display.h
+++ b/include/dev/display.h
@@ -24,16 +24,26 @@
#define __DEV_DISPLAY_H
#include <stdbool.h>
-#include <lib/gfx.h>
+#include <sys/types.h>
+#include <inttypes.h>
int display_init(void *framebuffer);
int display_enable(bool enable);
void display_pre_freq_change(void);
void display_post_freq_change(void);
+#define DISPLAY_FORMAT_NONE (-1)
+#define DISPLAY_FORMAT_RGB_565 (0)
+#define DISPLAY_FORMAT_RGB_332 (1)
+#define DISPLAY_FORMAT_RGB_2220 (2)
+#define DISPLAY_FORMAT_ARGB_8888 (3)
+#define DISPLAY_FORMAT_RGB_x888 (4)
+#define DISPLAY_FORMAT_MONO_1 (5)
+#define DISPLAY_FORMAT_MONO_8 (6)
+
struct display_info {
void *framebuffer;
- gfx_format format;
+ int format;
uint width;
uint height;
uint stride;
« no previous file with comments | « no previous file | lib/gfx/gfx.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698