iPXE
|
Frame buffer console. More...
#include <stdint.h>
#include <ipxe/ansiesc.h>
#include <ipxe/utf8.h>
#include <ipxe/uaccess.h>
#include <ipxe/console.h>
Go to the source code of this file.
Data Structures | |
struct | fbcon_font_glyph |
A font glyph. More... | |
struct | fbcon_font |
A font definition. More... | |
struct | fbcon_geometry |
A frame buffer geometry. More... | |
struct | fbcon_margin |
A frame buffer margin. More... | |
struct | fbcon_colour_map |
A frame buffer colour mapping. More... | |
struct | fbcon_text_cell |
A frame buffer text cell. More... | |
struct | fbcon_text |
A frame buffer text array. More... | |
struct | fbcon_picture |
A frame buffer background picture. More... | |
struct | fbcon |
A frame buffer console. More... | |
Macros | |
#define | FBCON_CHAR_WIDTH 9 |
Character width, in pixels. More... | |
#define | FBCON_BOLD 0x555555 |
Bold colour modifier (RGB value) More... | |
#define | FBCON_TRANSPARENT 0xffffffff |
Transparent background magic colour (raw colour value) More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
int | fbcon_init (struct fbcon *fbcon, userptr_t start, struct fbcon_geometry *pixel, struct fbcon_colour_map *map, struct fbcon_font *font, struct console_configuration *config) |
Initialise frame buffer console. More... | |
void | fbcon_fini (struct fbcon *fbcon) |
Finalise frame buffer console. More... | |
void | fbcon_putchar (struct fbcon *fbcon, int character) |
Print a character to current cursor position. More... | |
Variables | |
struct fbcon_font_glyph | __attribute__ |
Frame buffer console.
Definition in file fbcon.h.
#define FBCON_TRANSPARENT 0xffffffff |
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
int fbcon_init | ( | struct fbcon * | fbcon, |
userptr_t | start, | ||
struct fbcon_geometry * | pixel, | ||
struct fbcon_colour_map * | map, | ||
struct fbcon_font * | font, | ||
struct console_configuration * | config | ||
) |
Initialise frame buffer console.
fbcon | Frame buffer console |
start | Start address |
pixel | Pixel geometry |
map | Colour mapping |
font | Font definition |
config | Console configuration |
rc | Return status code |
Definition at line 588 of file fbcon.c.
References assert(), console_configuration::bottom, bottom, fbcon_margin::bottom, fbcon::character, console_set_size(), fbcon::ctx, DBGC, EINVAL, ENOMEM, fbcon_ansiesc_handlers, FBCON_CHAR_WIDTH, fbcon_clear(), fbcon_picture_init(), fbcon_set_default_background(), fbcon_set_default_foreground(), fbcon::font, ansiesc_context::handlers, console_configuration::height, fbcon_font::height, fbcon_geometry::height, fbcon::indent, console_configuration::left, fbcon_margin::left, fbcon_geometry::len, fbcon::len, fbcon::map, map, fbcon::margin, memcpy_user(), memset(), memset_user(), fbcon::picture, console_configuration::pixbuf, fbcon::pixel, rc, console_configuration::right, fbcon_margin::right, fbcon::show_cursor, start, fbcon_text::start, fbcon_picture::start, fbcon::start, fbcon_geometry::stride, fbcon::text, console_configuration::top, top, fbcon_margin::top, ufree(), umalloc(), user_to_phys(), console_configuration::width, and fbcon_geometry::width.
Referenced by efifb_init(), and vesafb_init().
void fbcon_fini | ( | struct fbcon * | fbcon | ) |
Finalise frame buffer console.
fbcon | Frame buffer console |
Definition at line 718 of file fbcon.c.
References fbcon::picture, fbcon_text::start, fbcon_picture::start, fbcon::text, and ufree().
Referenced by efifb_fini(), efifb_init(), vesafb_fini(), and vesafb_init().
void fbcon_putchar | ( | struct fbcon * | fbcon, |
int | character | ||
) |
Print a character to current cursor position.
fbcon | Frame buffer console |
character | Character |
Definition at line 441 of file fbcon.c.
References ansiesc_process(), fbcon_text_cell::background, fbcon::background, fbcon::bold, fbcon_text_cell::character, fbcon::character, fbcon::ctx, fbcon_draw(), fbcon_draw_cursor(), fbcon_scroll(), fbcon_store(), fbcon_text_cell::foreground, fbcon::foreground, fbcon_geometry::height, fbcon::show_cursor, fbcon::utf8, utf8_accumulate(), fbcon_geometry::width, fbcon::xpos, and fbcon::ypos.
Referenced by efifb_putchar(), and vesafb_putchar().
struct fbcon_font_glyph __attribute__ |