[fbcon] Move margin calculations to fbcon.c

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2015-10-14 22:01:29 +01:00
parent bc69777a40
commit 79afe60b09
3 changed files with 40 additions and 46 deletions

View File

@@ -12,8 +12,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#include <stdint.h>
#include <ipxe/ansiesc.h>
#include <ipxe/uaccess.h>
struct pixel_buffer;
#include <ipxe/console.h>
/** Character width, in pixels */
#define FBCON_CHAR_WIDTH 9
@@ -149,10 +148,9 @@ struct fbcon {
extern int fbcon_init ( struct fbcon *fbcon, userptr_t start,
struct fbcon_geometry *pixel,
struct fbcon_margin *margin,
struct fbcon_colour_map *map,
struct fbcon_font *font,
struct pixel_buffer *pixbuf );
struct console_configuration *config );
extern void fbcon_fini ( struct fbcon *fbcon );
extern void fbcon_putchar ( struct fbcon *fbcon, int character );