|
iPXE
|
Frame buffer console. More...
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. | |
| #define | FBCON_BOLD 0x555555 |
| Bold colour modifier (RGB value) | |
| #define | FBCON_TRANSPARENT 0xffffffff |
| Transparent background magic colour (raw colour value) | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| FILE_SECBOOT (PERMITTED) | |
| int | fbcon_init (struct fbcon *fbcon, void *start, struct fbcon_geometry *pixel, struct fbcon_colour_map *map, struct fbcon_font *font, struct console_configuration *config) |
| Initialise frame buffer console. | |
| void | fbcon_fini (struct fbcon *fbcon) |
| Finalise frame buffer console. | |
| void | fbcon_putchar (struct fbcon *fbcon, int character) |
| Print a character to current cursor position. | |
Frame buffer console.
Definition in file fbcon.h.
| #define FBCON_CHAR_WIDTH 9 |
Character width, in pixels.
Definition at line 19 of file fbcon.h.
Referenced by fbcon_draw(), and fbcon_init().
| #define FBCON_BOLD 0x555555 |
Bold colour modifier (RGB value)
Definition at line 22 of file fbcon.h.
Referenced by fbcon_handle_sgr().
| #define FBCON_TRANSPARENT 0xffffffff |
Transparent background magic colour (raw colour value)
Definition at line 25 of file fbcon.h.
Referenced by fbcon_draw(), fbcon_draw_cursor(), and fbcon_set_default_background().
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| FILE_SECBOOT | ( | PERMITTED | ) |
|
extern |
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 601 of file fbcon.c.
References assert, console_configuration::bottom, fbcon_margin::bottom, fbcon_text::cells, 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::len, fbcon_geometry::len, fbcon::map, map, fbcon::margin, memcpy(), memset(), fbcon::picture, console_configuration::pixbuf, fbcon::pixel, rc, console_configuration::right, fbcon_margin::right, fbcon::show_cursor, fbcon::start, fbcon_picture::start, start, fbcon_geometry::stride, fbcon::text, console_configuration::top, fbcon_margin::top, ufree(), umalloc(), console_configuration::width, and fbcon_geometry::width.
Referenced by efifb_init(), and vesafb_init().
|
extern |
Finalise frame buffer console.
| fbcon | Frame buffer console |
Definition at line 729 of file fbcon.c.
References fbcon_text::cells, fbcon::picture, fbcon_picture::start, fbcon::text, and ufree().
Referenced by efifb_fini(), efifb_init(), vesafb_fini(), and vesafb_init().
|
extern |
Print a character to current cursor position.
| fbcon | Frame buffer console |
| character | Character |
Definition at line 461 of file fbcon.c.
References ansiesc_process(), fbcon::background, fbcon_text_cell::background, fbcon::bold, fbcon::character, fbcon_text_cell::character, fbcon::ctx, fbcon_cell(), fbcon_draw(), fbcon_draw_cursor(), fbcon_scroll(), fbcon::foreground, fbcon_text_cell::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().