aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2015-10-14 20:42:42 +0100
committerMichael Brown <mcb30@ipxe.org>2015-10-14 22:16:40 +0100
commitbc69777a4044c09cfed65d84f11988448b2db277 (patch)
treeda8e8429415473fe7e817e2af93deb9f5b05d8c9 /src/include
parentfb2af441c2ee7c62737094a10023c1a69f69b30e (diff)
downloadipxe-bc69777a4044c09cfed65d84f11988448b2db277.zip
ipxe-bc69777a4044c09cfed65d84f11988448b2db277.tar.gz
ipxe-bc69777a4044c09cfed65d84f11988448b2db277.tar.bz2
[fbcon] Allow character height to be selected at runtime
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ipxe/fbcon.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/include/ipxe/fbcon.h b/src/include/ipxe/fbcon.h
index d442bb9..7837845 100644
--- a/src/include/ipxe/fbcon.h
+++ b/src/include/ipxe/fbcon.h
@@ -18,9 +18,6 @@ struct pixel_buffer;
/** Character width, in pixels */
#define FBCON_CHAR_WIDTH 9
-/** Character height, in pixels */
-#define FBCON_CHAR_HEIGHT 16
-
/** Bold colour modifier (RGB value) */
#define FBCON_BOLD 0x555555
@@ -30,14 +27,21 @@ struct pixel_buffer;
/** A font glyph */
struct fbcon_font_glyph {
/** Row bitmask */
- uint8_t bitmask[FBCON_CHAR_HEIGHT];
-} __attribute__ (( packed ));
+ uint8_t bitmask[0];
+};
/** A font definition */
struct fbcon_font {
- /** Character glyphs */
- userptr_t start;
-} __attribute__ (( packed ));
+ /** Character height (in pixels) */
+ unsigned int height;
+ /**
+ * Get character glyph
+ *
+ * @v character Character
+ * @v glyph Character glyph to fill in
+ */
+ void ( * glyph ) ( unsigned int character, uint8_t *glyph );
+};
/** A frame buffer geometry
*