arch/x86: drivers/display: add framebuffer driver w/ multiboot support
A basic display driver is added for a generic 32-bpp framebuffer. Glue logic is added to the x86 arch to request the intitialization of a linear framebuffer by the Multiboot loader (GRUB) and connect it to this generic driver. Signed-off-by: Charles E. Youse <charles.youse@intel.com>
This commit is contained in:
parent
a1a3a4fced
commit
4c63e29aec
9 changed files with 275 additions and 31 deletions
23
include/display/framebuf.h
Normal file
23
include/display/framebuf.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* Copyright (c) 2019 Intel Corp.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef ZEPHYR_INCLUDE_DISPLAY_FRAMEBUF_H_
|
||||
#define ZEPHYR_INCLUDE_DISPLAY_FRAMEBUF_H_
|
||||
|
||||
#include <display.h>
|
||||
|
||||
extern const struct display_driver_api framebuf_display_api;
|
||||
|
||||
struct framebuf_dev_data {
|
||||
void *buffer;
|
||||
u32_t pitch;
|
||||
u16_t width;
|
||||
u16_t height;
|
||||
};
|
||||
|
||||
#define FRAMEBUF_DATA(dev) ((struct framebuf_dev_data *) ((dev)->driver_data))
|
||||
|
||||
#endif /* ZEPHYR_INCLUDE_DISPLAY_FRAMEBUF_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue