diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2015-07-10 00:25:51 +0300 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-07-16 09:17:17 +0200 |
commit | e5138e2d3ee6d55ada09cb5a6a211b288b98d086 (patch) | |
tree | 48bd0be62e9dd3f5b6ab0624169b70929cdf4106 /include | |
parent | 322d8a509ed2e60623ee7828a7ffbc0dfda30728 (diff) | |
download | barebox-e5138e2d3ee6d55ada09cb5a6a211b288b98d086.tar.gz barebox-e5138e2d3ee6d55ada09cb5a6a211b288b98d086.tar.xz |
import lib/fonts framework from linux kernel
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/font.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/include/linux/font.h b/include/linux/font.h new file mode 100644 index 0000000000..f35b1dbbd2 --- /dev/null +++ b/include/linux/font.h @@ -0,0 +1,33 @@ +/* + * font.h -- `Soft' font definitions + * + * Created 1995 by Geert Uytterhoeven + * + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file COPYING in the main directory of this archive + * for more details. + */ + +#ifndef _VIDEO_FONT_H +#define _VIDEO_FONT_H + +#include <param.h> + +struct font_desc { + const char *name; + int width, height; + const void *data; +}; + +extern const struct font_desc font_vga_8x16; + +/* Max. length for the name of a predefined font */ +#define MAX_FONT_NAME 32 + +extern const struct font_desc *find_font_enum(int n); +extern struct param_d *add_param_font(struct device_d *dev, + int (*set)(struct param_d *p, void *priv), + int (*get)(struct param_d *p, void *priv), + int *value, void *priv); + +#endif /* _VIDEO_FONT_H */ |