diff options
Diffstat (limited to 'include/linux/fb.h')
-rw-r--r-- | include/linux/fb.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/fb.h b/include/linux/fb.h index e7445df44d6c..f0268deca658 100644 --- a/include/linux/fb.h +++ b/include/linux/fb.h | |||
@@ -3,6 +3,9 @@ | |||
3 | 3 | ||
4 | #include <linux/types.h> | 4 | #include <linux/types.h> |
5 | #include <linux/i2c.h> | 5 | #include <linux/i2c.h> |
6 | #ifdef __KERNEL__ | ||
7 | #include <linux/kgdb.h> | ||
8 | #endif /* __KERNEL__ */ | ||
6 | 9 | ||
7 | /* Definitions of frame buffers */ | 10 | /* Definitions of frame buffers */ |
8 | 11 | ||
@@ -607,6 +610,12 @@ struct fb_deferred_io { | |||
607 | * LOCKING NOTE: those functions must _ALL_ be called with the console | 610 | * LOCKING NOTE: those functions must _ALL_ be called with the console |
608 | * semaphore held, this is the only suitable locking mechanism we have | 611 | * semaphore held, this is the only suitable locking mechanism we have |
609 | * in 2.6. Some may be called at interrupt time at this point though. | 612 | * in 2.6. Some may be called at interrupt time at this point though. |
613 | * | ||
614 | * The exception to this is the debug related hooks. Putting the fb | ||
615 | * into a debug state (e.g. flipping to the kernel console) and restoring | ||
616 | * it must be done in a lock-free manner, so low level drivers should | ||
617 | * keep track of the initial console (if applicable) and may need to | ||
618 | * perform direct, unlocked hardware writes in these hooks. | ||
610 | */ | 619 | */ |
611 | 620 | ||
612 | struct fb_ops { | 621 | struct fb_ops { |
@@ -676,6 +685,10 @@ struct fb_ops { | |||
676 | 685 | ||
677 | /* teardown any resources to do with this framebuffer */ | 686 | /* teardown any resources to do with this framebuffer */ |
678 | void (*fb_destroy)(struct fb_info *info); | 687 | void (*fb_destroy)(struct fb_info *info); |
688 | |||
689 | /* called at KDB enter and leave time to prepare the console */ | ||
690 | int (*fb_debug_enter)(struct fb_info *info); | ||
691 | int (*fb_debug_leave)(struct fb_info *info); | ||
679 | }; | 692 | }; |
680 | 693 | ||
681 | #ifdef CONFIG_FB_TILEBLITTING | 694 | #ifdef CONFIG_FB_TILEBLITTING |
@@ -812,6 +825,10 @@ struct fb_tile_ops { | |||
812 | */ | 825 | */ |
813 | #define FBINFO_BE_MATH 0x100000 | 826 | #define FBINFO_BE_MATH 0x100000 |
814 | 827 | ||
828 | /* report to the VT layer that this fb driver can accept forced console | ||
829 | output like oopses */ | ||
830 | #define FBINFO_CAN_FORCE_OUTPUT 0x200000 | ||
831 | |||
815 | struct fb_info { | 832 | struct fb_info { |
816 | int node; | 833 | int node; |
817 | int flags; | 834 | int flags; |