|
|
f96e0b |
From 54dd20578308c07d3c15a6d07638d3abecfb626c Mon Sep 17 00:00:00 2001
|
|
|
f96e0b |
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
Date: Thu, 2 May 2013 18:10:11 +0200
|
|
|
f96e0b |
Subject: [PATCH 404/482] Add missing exports on mips.
|
|
|
f96e0b |
|
|
|
f96e0b |
---
|
|
|
f96e0b |
ChangeLog | 4 ++++
|
|
|
f96e0b |
grub-core/Makefile.am | 2 ++
|
|
|
f96e0b |
include/grub/font.h | 2 +-
|
|
|
f96e0b |
include/grub/video.h | 2 +-
|
|
|
f96e0b |
include/grub/video_fb.h | 61 +++++++++++++++++++++++++------------------------
|
|
|
f96e0b |
5 files changed, 39 insertions(+), 32 deletions(-)
|
|
|
f96e0b |
|
|
|
f96e0b |
diff --git a/ChangeLog b/ChangeLog
|
|
|
f96e0b |
index ef402f8..8525dd9 100644
|
|
|
f96e0b |
--- a/ChangeLog
|
|
|
f96e0b |
+++ b/ChangeLog
|
|
|
f96e0b |
@@ -1,5 +1,9 @@
|
|
|
f96e0b |
2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
|
|
|
f96e0b |
+ Add missing exports on mips.
|
|
|
f96e0b |
+
|
|
|
f96e0b |
+2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
+
|
|
|
f96e0b |
* grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
|
|
|
f96e0b |
if no unifont is found.
|
|
|
f96e0b |
Restore original keyboard.
|
|
|
f96e0b |
diff --git a/grub-core/Makefile.am b/grub-core/Makefile.am
|
|
|
f96e0b |
index fa6afcf..c350b5a 100644
|
|
|
f96e0b |
--- a/grub-core/Makefile.am
|
|
|
f96e0b |
+++ b/grub-core/Makefile.am
|
|
|
f96e0b |
@@ -160,6 +160,7 @@ KERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/kernel.h
|
|
|
f96e0b |
KERNEL_HEADER_FILES += $(top_builddir)/include/grub/cpu/cache.h
|
|
|
f96e0b |
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/bitmap.h
|
|
|
f96e0b |
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/video.h
|
|
|
f96e0b |
+KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/video_fb.h
|
|
|
f96e0b |
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/gfxterm.h
|
|
|
f96e0b |
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/font.h
|
|
|
f96e0b |
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/bitmap_scale.h
|
|
|
f96e0b |
@@ -178,6 +179,7 @@ KERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/time.h
|
|
|
f96e0b |
KERNEL_HEADER_FILES += $(top_builddir)/include/grub/cpu/cache.h
|
|
|
f96e0b |
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/bitmap.h
|
|
|
f96e0b |
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/video.h
|
|
|
f96e0b |
+KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/video_fb.h
|
|
|
f96e0b |
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/gfxterm.h
|
|
|
f96e0b |
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/font.h
|
|
|
f96e0b |
KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/bitmap_scale.h
|
|
|
f96e0b |
diff --git a/include/grub/font.h b/include/grub/font.h
|
|
|
f96e0b |
index 975432e..aed7e1c 100644
|
|
|
f96e0b |
--- a/include/grub/font.h
|
|
|
f96e0b |
+++ b/include/grub/font.h
|
|
|
f96e0b |
@@ -81,7 +81,7 @@ void grub_font_loader_init (void);
|
|
|
f96e0b |
|
|
|
f96e0b |
/* Load a font and add it to the beginning of the global font list.
|
|
|
f96e0b |
Returns: 0 upon success; nonzero upon failure. */
|
|
|
f96e0b |
-grub_font_t grub_font_load (const char *filename);
|
|
|
f96e0b |
+grub_font_t EXPORT_FUNC(grub_font_load) (const char *filename);
|
|
|
f96e0b |
|
|
|
f96e0b |
/* Get the font that has the specified name. Font names are in the form
|
|
|
f96e0b |
"Family Name Bold Italic 14", where Bold and Italic are optional.
|
|
|
f96e0b |
diff --git a/include/grub/video.h b/include/grub/video.h
|
|
|
f96e0b |
index 6308177..36e863b 100644
|
|
|
f96e0b |
--- a/include/grub/video.h
|
|
|
f96e0b |
+++ b/include/grub/video.h
|
|
|
f96e0b |
@@ -419,7 +419,7 @@ grub_err_t EXPORT_FUNC (grub_video_get_info) (struct grub_video_mode_info *mode_
|
|
|
f96e0b |
grub_err_t EXPORT_FUNC (grub_video_get_info_and_fini) (struct grub_video_mode_info *mode_info,
|
|
|
f96e0b |
void **framebuffer);
|
|
|
f96e0b |
|
|
|
f96e0b |
-enum grub_video_blit_format grub_video_get_blit_format (struct grub_video_mode_info *mode_info);
|
|
|
f96e0b |
+enum grub_video_blit_format EXPORT_FUNC(grub_video_get_blit_format) (struct grub_video_mode_info *mode_info);
|
|
|
f96e0b |
|
|
|
f96e0b |
grub_err_t grub_video_set_palette (unsigned int start, unsigned int count,
|
|
|
f96e0b |
struct grub_video_palette_data *palette_data);
|
|
|
f96e0b |
diff --git a/include/grub/video_fb.h b/include/grub/video_fb.h
|
|
|
f96e0b |
index d696398..0628467 100644
|
|
|
f96e0b |
--- a/include/grub/video_fb.h
|
|
|
f96e0b |
+++ b/include/grub/video_fb.h
|
|
|
f96e0b |
@@ -31,45 +31,46 @@ struct grub_video_fbblit_info;
|
|
|
f96e0b |
struct grub_video_fbrender_target;
|
|
|
f96e0b |
|
|
|
f96e0b |
#define GRUB_VIDEO_FBSTD_NUMCOLORS 16
|
|
|
f96e0b |
-extern struct grub_video_palette_data grub_video_fbstd_colors[GRUB_VIDEO_FBSTD_NUMCOLORS];
|
|
|
f96e0b |
+extern struct grub_video_palette_data EXPORT_VAR(grub_video_fbstd_colors)[GRUB_VIDEO_FBSTD_NUMCOLORS];
|
|
|
f96e0b |
|
|
|
f96e0b |
grub_err_t
|
|
|
f96e0b |
-grub_video_fb_init (void);
|
|
|
f96e0b |
+EXPORT_FUNC(grub_video_fb_init) (void);
|
|
|
f96e0b |
|
|
|
f96e0b |
grub_err_t
|
|
|
f96e0b |
-grub_video_fb_fini (void);
|
|
|
f96e0b |
+EXPORT_FUNC(grub_video_fb_fini) (void);
|
|
|
f96e0b |
|
|
|
f96e0b |
grub_err_t
|
|
|
f96e0b |
-grub_video_fb_get_info (struct grub_video_mode_info *mode_info);
|
|
|
f96e0b |
+EXPORT_FUNC(grub_video_fb_get_info) (struct grub_video_mode_info *mode_info);
|
|
|
f96e0b |
|
|
|
f96e0b |
grub_err_t
|
|
|
f96e0b |
-grub_video_fb_get_palette (unsigned int start, unsigned int count,
|
|
|
f96e0b |
- struct grub_video_palette_data *palette_data);
|
|
|
f96e0b |
+EXPORT_FUNC(grub_video_fb_get_palette) (unsigned int start, unsigned int count,
|
|
|
f96e0b |
+ struct grub_video_palette_data *palette_data);
|
|
|
f96e0b |
grub_err_t
|
|
|
f96e0b |
-grub_video_fb_set_palette (unsigned int start, unsigned int count,
|
|
|
f96e0b |
- struct grub_video_palette_data *palette_data);
|
|
|
f96e0b |
+EXPORT_FUNC(grub_video_fb_set_palette) (unsigned int start, unsigned int count,
|
|
|
f96e0b |
+ struct grub_video_palette_data *palette_data);
|
|
|
f96e0b |
grub_err_t
|
|
|
f96e0b |
-grub_video_fb_set_viewport (unsigned int x, unsigned int y,
|
|
|
f96e0b |
- unsigned int width, unsigned int height);
|
|
|
f96e0b |
+EXPORT_FUNC(grub_video_fb_set_viewport) (unsigned int x, unsigned int y,
|
|
|
f96e0b |
+ unsigned int width, unsigned int height);
|
|
|
f96e0b |
grub_err_t
|
|
|
f96e0b |
-grub_video_fb_get_viewport (unsigned int *x, unsigned int *y,
|
|
|
f96e0b |
- unsigned int *width, unsigned int *height);
|
|
|
f96e0b |
+EXPORT_FUNC(grub_video_fb_get_viewport) (unsigned int *x, unsigned int *y,
|
|
|
f96e0b |
+ unsigned int *width,
|
|
|
f96e0b |
+ unsigned int *height);
|
|
|
f96e0b |
|
|
|
f96e0b |
grub_video_color_t
|
|
|
f96e0b |
-grub_video_fb_map_color (grub_uint32_t color_name);
|
|
|
f96e0b |
+EXPORT_FUNC(grub_video_fb_map_color) (grub_uint32_t color_name);
|
|
|
f96e0b |
|
|
|
f96e0b |
grub_video_color_t
|
|
|
f96e0b |
-grub_video_fb_map_rgb (grub_uint8_t red, grub_uint8_t green,
|
|
|
f96e0b |
- grub_uint8_t blue);
|
|
|
f96e0b |
+EXPORT_FUNC(grub_video_fb_map_rgb) (grub_uint8_t red, grub_uint8_t green,
|
|
|
f96e0b |
+ grub_uint8_t blue);
|
|
|
f96e0b |
|
|
|
f96e0b |
grub_video_color_t
|
|
|
f96e0b |
-grub_video_fb_map_rgba (grub_uint8_t red, grub_uint8_t green,
|
|
|
f96e0b |
- grub_uint8_t blue, grub_uint8_t alpha);
|
|
|
f96e0b |
+EXPORT_FUNC(grub_video_fb_map_rgba) (grub_uint8_t red, grub_uint8_t green,
|
|
|
f96e0b |
+ grub_uint8_t blue, grub_uint8_t alpha);
|
|
|
f96e0b |
|
|
|
f96e0b |
grub_err_t
|
|
|
f96e0b |
-grub_video_fb_unmap_color (grub_video_color_t color,
|
|
|
f96e0b |
- grub_uint8_t *red, grub_uint8_t *green,
|
|
|
f96e0b |
- grub_uint8_t *blue, grub_uint8_t *alpha);
|
|
|
f96e0b |
+EXPORT_FUNC(grub_video_fb_unmap_color) (grub_video_color_t color,
|
|
|
f96e0b |
+ grub_uint8_t *red, grub_uint8_t *green,
|
|
|
f96e0b |
+ grub_uint8_t *blue, grub_uint8_t *alpha);
|
|
|
f96e0b |
|
|
|
f96e0b |
void
|
|
|
f96e0b |
grub_video_fb_unmap_color_int (struct grub_video_fbblit_info * source,
|
|
|
f96e0b |
@@ -78,42 +79,42 @@ grub_video_fb_unmap_color_int (struct grub_video_fbblit_info * source,
|
|
|
f96e0b |
grub_uint8_t *blue, grub_uint8_t *alpha);
|
|
|
f96e0b |
|
|
|
f96e0b |
grub_err_t
|
|
|
f96e0b |
-grub_video_fb_fill_rect (grub_video_color_t color, int x, int y,
|
|
|
f96e0b |
- unsigned int width, unsigned int height);
|
|
|
f96e0b |
+EXPORT_FUNC(grub_video_fb_fill_rect) (grub_video_color_t color, int x, int y,
|
|
|
f96e0b |
+ unsigned int width, unsigned int height);
|
|
|
f96e0b |
|
|
|
f96e0b |
grub_err_t
|
|
|
f96e0b |
-grub_video_fb_blit_bitmap (struct grub_video_bitmap *bitmap,
|
|
|
f96e0b |
+EXPORT_FUNC(grub_video_fb_blit_bitmap) (struct grub_video_bitmap *bitmap,
|
|
|
f96e0b |
enum grub_video_blit_operators oper, int x, int y,
|
|
|
f96e0b |
int offset_x, int offset_y,
|
|
|
f96e0b |
unsigned int width, unsigned int height);
|
|
|
f96e0b |
|
|
|
f96e0b |
grub_err_t
|
|
|
f96e0b |
-grub_video_fb_blit_render_target (struct grub_video_fbrender_target *source,
|
|
|
f96e0b |
+EXPORT_FUNC(grub_video_fb_blit_render_target) (struct grub_video_fbrender_target *source,
|
|
|
f96e0b |
enum grub_video_blit_operators oper,
|
|
|
f96e0b |
int x, int y, int offset_x, int offset_y,
|
|
|
f96e0b |
unsigned int width, unsigned int height);
|
|
|
f96e0b |
|
|
|
f96e0b |
grub_err_t
|
|
|
f96e0b |
-grub_video_fb_scroll (grub_video_color_t color, int dx, int dy);
|
|
|
f96e0b |
+EXPORT_FUNC(grub_video_fb_scroll) (grub_video_color_t color, int dx, int dy);
|
|
|
f96e0b |
|
|
|
f96e0b |
grub_err_t
|
|
|
f96e0b |
-grub_video_fb_create_render_target (struct grub_video_fbrender_target **result,
|
|
|
f96e0b |
+EXPORT_FUNC(grub_video_fb_create_render_target) (struct grub_video_fbrender_target **result,
|
|
|
f96e0b |
unsigned int width, unsigned int height,
|
|
|
f96e0b |
unsigned int mode_type __attribute__ ((unused)));
|
|
|
f96e0b |
|
|
|
f96e0b |
grub_err_t
|
|
|
f96e0b |
-grub_video_fb_create_render_target_from_pointer (struct grub_video_fbrender_target **result,
|
|
|
f96e0b |
+EXPORT_FUNC(grub_video_fb_create_render_target_from_pointer) (struct grub_video_fbrender_target **result,
|
|
|
f96e0b |
const struct grub_video_mode_info *mode_info,
|
|
|
f96e0b |
void *ptr);
|
|
|
f96e0b |
|
|
|
f96e0b |
grub_err_t
|
|
|
f96e0b |
-grub_video_fb_delete_render_target (struct grub_video_fbrender_target *target);
|
|
|
f96e0b |
+EXPORT_FUNC(grub_video_fb_delete_render_target) (struct grub_video_fbrender_target *target);
|
|
|
f96e0b |
|
|
|
f96e0b |
grub_err_t
|
|
|
f96e0b |
-grub_video_fb_get_active_render_target (struct grub_video_fbrender_target **target);
|
|
|
f96e0b |
+EXPORT_FUNC(grub_video_fb_get_active_render_target) (struct grub_video_fbrender_target **target);
|
|
|
f96e0b |
|
|
|
f96e0b |
grub_err_t
|
|
|
f96e0b |
-grub_video_fb_set_active_render_target (struct grub_video_fbrender_target *target);
|
|
|
f96e0b |
+EXPORT_FUNC(grub_video_fb_set_active_render_target) (struct grub_video_fbrender_target *target);
|
|
|
f96e0b |
|
|
|
f96e0b |
typedef grub_err_t (*grub_video_fb_set_page_t) (int page);
|
|
|
f96e0b |
|
|
|
f96e0b |
--
|
|
|
f96e0b |
1.8.2.1
|
|
|
f96e0b |
|