diff options
author | Dzmitry Sankouski | 2023-03-07 13:21:11 +0300 |
---|---|---|
committer | Anatolij Gustschin | 2023-03-07 13:26:08 +0100 |
commit | 3154725949f921ac017e0e58fb167fd1b603b025 (patch) | |
tree | 9f098420b14f10a3d2940a0e45a3e9480d8b7f65 /include/video_console.h | |
parent | d1653548d29959a6ea6b4037a00b48a28257e6e6 (diff) |
video console: refactoring and optimization
- move common code to vidconsole_internal.h and console_core.c
- unite probe functions
- get rid of code duplications in switch across bpp values
- extract common pixel fill logic in two functions one per
horizontal and vertical filling
- rearrange statements in put_xy* methods in unified way
- replace types - uint*_t to u*
Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/video_console.h')
-rw-r--r-- | include/video_console.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/video_console.h b/include/video_console.h index 9d2c0f210e4..3e1e00c23f9 100644 --- a/include/video_console.h +++ b/include/video_console.h @@ -340,6 +340,9 @@ int vidconsole_sync_copy(struct udevice *dev, void *from, void *to); int vidconsole_memmove(struct udevice *dev, void *dst, const void *src, int size); #else + +#include <string.h> + static inline int vidconsole_sync_copy(struct udevice *dev, void *from, void *to) { |