summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAntonino Daplas <adaplas@hotpop.com>2004-09-07 17:55:42 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-09-07 17:55:42 -0700
commitf5ec16b7d57f1e6e9892028c81045dbb1a5fe574 (patch)
tree7c9488548f7a498afdd90c08ad9f45fe35295e3e /include/linux
parent51fc00d1ad2e4a3bd54d13cce79317066b5e206f (diff)
[PATCH] fbcon: take over console on driver registration
- This fixes another regression from 2.4. If fbcon is compiled statically, and the framebuffer driver is compiled as a module, doing a 'modprobe xxxfb' does nothing to the console. This has generated numerous bug reports from users. With this patch, fbmem will notify fbcon upon driver registration allowing fbcon to take over the console. - This also fixes con2fbmap not working if fbcon is compiled as a module using the same mechanism as described above. Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/fb.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/fb.h b/include/linux/fb.h
index ea088da59fe1..ec23a1772f6a 100644
--- a/include/linux/fb.h
+++ b/include/linux/fb.h
@@ -452,6 +452,13 @@ struct fb_cursor_user {
#define FB_EVENT_RESUME 0x03
/* An entry from the modelist was removed */
#define FB_EVENT_MODE_DELETE 0x04
+/* A driver registered itself */
+#define FB_EVENT_FB_REGISTERED 0x05
+/* get console to framebuffer mapping */
+#define FB_EVENT_GET_CONSOLE_MAP 0x06
+/* set console to framebuffer mapping */
+#define FB_EVENT_SET_CONSOLE_MAP 0x07
+
struct fb_event {
struct fb_info *info;