summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386/pc386/console/fb_default_mode.h
diff options
context:
space:
mode:
authorJan Dolezal <dolezj21@fel.cvut.cz>2015-05-23 12:32:00 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2015-05-26 11:26:46 -0500
commit56399c3bc8b924b5e9266fd73b5b4eed0746adf3 (patch)
treee718bfd8db3bfff7a3300f5b4f61b2955fd28ace /c/src/lib/libbsp/i386/pc386/console/fb_default_mode.h
parentMerge branch 'master' of ssh://dispatch.rtems.org/data/git/rtems (diff)
downloadrtems-56399c3bc8b924b5e9266fd73b5b4eed0746adf3.tar.bz2
i386/pc386/VESA framebuffer driver: modified and extended initialization options
driver is not initialized by default initialization is possible through multiboot command line option or through the string variable (see fb_default_mode.h) set in user's module allowing the driver to evaluate this variable after the two modules are linked together
Diffstat (limited to 'c/src/lib/libbsp/i386/pc386/console/fb_default_mode.h')
-rw-r--r--c/src/lib/libbsp/i386/pc386/console/fb_default_mode.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/console/fb_default_mode.h b/c/src/lib/libbsp/i386/pc386/console/fb_default_mode.h
new file mode 100644
index 0000000000..948ffee5b6
--- /dev/null
+++ b/c/src/lib/libbsp/i386/pc386/console/fb_default_mode.h
@@ -0,0 +1,25 @@
+/**
+ * @file fb_default_mode.h
+ *
+ * @ingroup i386_pc386
+ *
+ * @brief Variable for the definition of the default graphical mode to be
+ * initialized.
+ */
+
+/*
+ * @brief Allows to enable initialization of specific framebuffer driver (e.g.
+ * VESA real mode) from an application by setting the value of this variable
+ * to non null value in user's module. The value of this variable will be then
+ * updated when linked with an application's object.
+ *
+ * Further the value should point to string in the following format:
+ * "<resX>x<resY>[-<bpp>]" - e.g. "1024x768-32"
+ * "auto" - select the graphic mode automatically
+ * "none" / "off" - do not initialize the driver
+ * the given parameters are used if applicable.
+ *
+ * Command line argument "--video=" has priority over this string if
+ * it is read/implemented by the driver.
+ */
+extern const char * const rtems_fb_default_mode;