19 #define FBCON_CHAR_WIDTH 9 22 #define FBCON_BOLD 0x555555 25 #define FBCON_TRANSPARENT 0xffffffff unsigned int height
Character height (in pixels)
userptr_t start
Start address.
unsigned int ypos
Text cursor Y position.
uint8_t green_lsb
Green LSB.
unsigned int bottom
Bottom margin.
struct fbcon_font * font
Font definition.
unsigned int width
Width (number of entities per displayed row)
struct fbcon_geometry character
Character geometry.
struct ansiesc_context ctx
ANSI escape sequence context.
uint8_t bitmask[0]
Row bitmask.
A frame buffer text cell.
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.
ANSI escape sequence context.
void(* glyph)(unsigned int character, uint8_t *glyph)
Get character glyph.
Access to external ("user") memory.
struct fbcon_geometry * pixel
Pixel geometry.
unsigned int left
Left margin.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
uint32_t start
Starting offset.
uint32_t background
Background colour.
A frame buffer background picture.
uint32_t userptr_t
A pointer to a user buffer.
uint32_t foreground
Text foreground raw colour.
void fbcon_fini(struct fbcon *fbcon)
Finalise frame buffer console.
uint8_t red_scale
Red scale (right shift amount from 24-bit RGB)
size_t len
Length of a single entity.
void fbcon_putchar(struct fbcon *fbcon, int character)
Print a character to current cursor position.
A frame buffer colour mapping.
unsigned int top
Top margin.
unsigned int character
Unicode character.
userptr_t start
Stored text cells.
uint32_t foreground
Foreground colour.
uint8_t green_scale
Green scale (right shift amount from 24-bit RGB)
unsigned int xpos
Text cursor X position.
struct fbcon_margin margin
Margin.
static __always_inline int struct dma_mapping * map
A frame buffer text array.
uint32_t background
Text background raw colour.
uint8_t blue_scale
Blue scale (right shift amount from 24-bit RGB)
struct fbcon_text text
Text array.
struct utf8_accumulator utf8
UTF-8 accumulator.
size_t len
Length of one complete displayed screen.
A UTF-8 character accumulator.
unsigned int height
Height (number of entities per displayed column)
unsigned int right
Right margin.
uint32_t bold
Bold colour modifier raw colour.
uint8_t blue_lsb
Blue LSB.
struct fbcon_picture picture
Background picture.
size_t indent
Indent to first character (in bytes)
struct fbcon_colour_map * map
Colour mapping.
userptr_t start
Start address.
int show_cursor
Display cursor.
size_t stride
Stride (offset between vertically adjacent entities)