Subversion Repositories Kolibri OS

Rev

Rev 4538 | Rev 6082 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4538 Rev 5056
Line 411... Line 411...
411
 
411
 
412
struct vm_area_struct;
412
struct vm_area_struct;
413
struct fb_info;
413
struct fb_info;
414
struct device;
414
struct device;
-
 
415
struct file;
-
 
416
struct videomode;
Line 415... Line 417...
415
struct file;
417
struct device_node;
416
 
418
 
417
/* Definitions below are used in the parsed monitor specs */
419
/* Definitions below are used in the parsed monitor specs */
418
#define FB_DPMS_ACTIVE_OFF	1
420
#define FB_DPMS_ACTIVE_OFF	1
Line 437... Line 439...
437
#define FB_SIGNAL_SYNC_ON_GREEN	8
439
#define FB_SIGNAL_SYNC_ON_GREEN	8
438
#define FB_SIGNAL_SERRATION_ON	16
440
#define FB_SIGNAL_SERRATION_ON	16
Line 439... Line 441...
439
 
441
 
440
#define FB_MISC_PRIM_COLOR	1
442
#define FB_MISC_PRIM_COLOR	1
-
 
443
#define FB_MISC_1ST_DETAIL	2	/* First Detailed Timing is preferred */
441
#define FB_MISC_1ST_DETAIL	2	/* First Detailed Timing is preferred */
444
#define FB_MISC_HDMI		4
442
struct fb_chroma {
445
struct fb_chroma {
443
	__u32 redx;	/* in fraction of 1024 */
446
	__u32 redx;	/* in fraction of 1024 */
444
	__u32 greenx;
447
	__u32 greenx;
445
	__u32 bluex;
448
	__u32 bluex;
Line 688... Line 691...
688
	void (*fb_get_caps)(struct fb_info *info, struct fb_blit_caps *caps,
691
	void (*fb_get_caps)(struct fb_info *info, struct fb_blit_caps *caps,
689
			    struct fb_var_screeninfo *var);
692
			    struct fb_var_screeninfo *var);
Line 690... Line 693...
690
 
693
 
691
	/* teardown any resources to do with this framebuffer */
694
	/* teardown any resources to do with this framebuffer */
-
 
695
	void (*fb_destroy)(struct fb_info *info);
-
 
696
 
-
 
697
	/* called at KDB enter and leave time to prepare the console */
-
 
698
	int (*fb_debug_enter)(struct fb_info *info);
692
	void (*fb_destroy)(struct fb_info *info);
699
	int (*fb_debug_leave)(struct fb_info *info);
Line 693... Line 700...
693
};
700
};
694
 
701
 
695
#ifdef CONFIG_FB_TILEBLITTING
702
#ifdef CONFIG_FB_TILEBLITTING
Line 936... Line 943...
936
#define fb_writeq sbus_writeq
943
#define fb_writeq sbus_writeq
937
#define fb_memset sbus_memset_io
944
#define fb_memset sbus_memset_io
938
#define fb_memcpy_fromfb sbus_memcpy_fromio
945
#define fb_memcpy_fromfb sbus_memcpy_fromio
939
#define fb_memcpy_tofb sbus_memcpy_toio
946
#define fb_memcpy_tofb sbus_memcpy_toio
Line 940... Line 947...
940
 
947
 
Line 941... Line 948...
941
#elif defined(__i386__) || defined(__alpha__) || defined(__x86_64__) || defined(__hppa__) || defined(__sh__) || defined(__powerpc__) || defined(__avr32__) || defined(__bfin__)
948
#elif defined(__i386__) || defined(__alpha__) || defined(__x86_64__) || defined(__hppa__) || defined(__sh__) || defined(__powerpc__) || defined(__avr32__) || defined(__bfin__) || defined(__arm__)
942
 
949
 
943
#define fb_readb __raw_readb
950
#define fb_readb __raw_readb
944
#define fb_readw __raw_readw
951
#define fb_readw __raw_readw
Line 997... Line 1004...
997
 
1004
 
998
/* drivers/video/fbmem.c */
1005
/* drivers/video/fbmem.c */
999
extern int register_framebuffer(struct fb_info *fb_info);
1006
extern int register_framebuffer(struct fb_info *fb_info);
1000
extern int unregister_framebuffer(struct fb_info *fb_info);
1007
extern int unregister_framebuffer(struct fb_info *fb_info);
1001
extern int unlink_framebuffer(struct fb_info *fb_info);
1008
extern int unlink_framebuffer(struct fb_info *fb_info);
1002
extern void remove_conflicting_framebuffers(struct apertures_struct *a,
1009
extern int remove_conflicting_framebuffers(struct apertures_struct *a,
1003
				const char *name, bool primary);
1010
				const char *name, bool primary);
1004
extern int fb_prepare_logo(struct fb_info *fb_info, int rotate);
1011
extern int fb_prepare_logo(struct fb_info *fb_info, int rotate);
1005
extern int fb_show_logo(struct fb_info *fb_info, int rotate);
1012
extern int fb_show_logo(struct fb_info *fb_info, int rotate);
1006
extern char* fb_get_buffer_offset(struct fb_info *info, struct fb_pixmap *buf, u32 size);
1013
extern char* fb_get_buffer_offset(struct fb_info *info, struct fb_pixmap *buf, u32 size);
Line 1025... Line 1032...
1025
}
1032
}
Line 1026... Line 1033...
1026
 
1033
 
1027
static inline void __fb_pad_aligned_buffer(u8 *dst, u32 d_pitch,
1034
static inline void __fb_pad_aligned_buffer(u8 *dst, u32 d_pitch,
1028
					   u8 *src, u32 s_pitch, u32 height)
1035
					   u8 *src, u32 s_pitch, u32 height)
1029
{
1036
{
Line 1030... Line 1037...
1030
	int i, j;
1037
	u32 i, j;
Line 1031... Line 1038...
1031
 
1038
 
1032
	d_pitch -= s_pitch;
1039
	d_pitch -= s_pitch;