Subversion Repositories Kolibri OS

Rev

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

Rev 5056 Rev 6082
Line 1109... Line 1109...
1109
			       int index);
1109
			       int index);
1110
extern int fb_videomode_from_videomode(const struct videomode *vm,
1110
extern int fb_videomode_from_videomode(const struct videomode *vm,
1111
				       struct fb_videomode *fbmode);
1111
				       struct fb_videomode *fbmode);
Line 1112... Line 1112...
1112
 
1112
 
1113
/* drivers/video/modedb.c */
1113
/* drivers/video/modedb.c */
-
 
1114
#define VESA_MODEDB_SIZE 43
-
 
1115
#define DMT_SIZE 0x50
1114
#define VESA_MODEDB_SIZE 34
1116
 
1115
extern void fb_var_to_videomode(struct fb_videomode *mode,
1117
extern void fb_var_to_videomode(struct fb_videomode *mode,
1116
				const struct fb_var_screeninfo *var);
1118
				const struct fb_var_screeninfo *var);
1117
extern void fb_videomode_to_var(struct fb_var_screeninfo *var,
1119
extern void fb_videomode_to_var(struct fb_var_screeninfo *var,
1118
				const struct fb_videomode *mode);
1120
				const struct fb_videomode *mode);
Line 1160... Line 1162...
1160
	u32 sync;
1162
	u32 sync;
1161
	u32 vmode;
1163
	u32 vmode;
1162
	u32 flag;
1164
	u32 flag;
1163
};
1165
};
Line -... Line 1166...
-
 
1166
 
-
 
1167
struct dmt_videomode {
-
 
1168
	u32 dmt_id;
-
 
1169
	u32 std_2byte_code;
-
 
1170
	u32 cvt_3byte_code;
-
 
1171
	const struct fb_videomode *mode;
-
 
1172
};
1164
 
1173
 
1165
extern const char *fb_mode_option;
1174
extern const char *fb_mode_option;
1166
extern const struct fb_videomode vesa_modes[];
1175
extern const struct fb_videomode vesa_modes[];
-
 
1176
extern const struct fb_videomode cea_modes[64];
Line 1167... Line 1177...
1167
extern const struct fb_videomode cea_modes[64];
1177
extern const struct dmt_videomode dmt_modes[];
1168
 
1178
 
1169
struct fb_modelist {
1179
struct fb_modelist {
1170
	struct list_head list;
1180
	struct list_head list;
Line 1176... Line 1186...
1176
			const struct fb_videomode *db,
1186
			const struct fb_videomode *db,
1177
			unsigned int dbsize,
1187
			unsigned int dbsize,
1178
			const struct fb_videomode *default_mode,
1188
			const struct fb_videomode *default_mode,
1179
			unsigned int default_bpp);
1189
			unsigned int default_bpp);
Line -... Line 1190...
-
 
1190
 
-
 
1191
/* Convenience logging macros */
-
 
1192
#define fb_err(fb_info, fmt, ...)					\
-
 
1193
	pr_err("fb%d: " fmt, (fb_info)->node, ##__VA_ARGS__)
-
 
1194
#define fb_notice(info, fmt, ...)					\
-
 
1195
	pr_notice("fb%d: " fmt, (fb_info)->node, ##__VA_ARGS__)
-
 
1196
#define fb_warn(fb_info, fmt, ...)					\
-
 
1197
	pr_warn("fb%d: " fmt, (fb_info)->node, ##__VA_ARGS__)
-
 
1198
#define fb_info(fb_info, fmt, ...)					\
-
 
1199
	pr_info("fb%d: " fmt, (fb_info)->node, ##__VA_ARGS__)
-
 
1200
#define fb_dbg(fb_info, fmt, ...)					\
-
 
1201
	pr_debug("fb%d: " fmt, (fb_info)->node, ##__VA_ARGS__)
1180
 
1202