brintos

brintos / linux-shallow public Read only

0
0
Text · 2.1 KiB · 7bfaaad Raw
70 lines · c
1/*-*- linux-c -*-2 *  linux/drivers/video/i810fb_main.h -- Intel 810 frame buffer device 3 *                                       main header file4 *5 *      Copyright (C) 2001 Antonino Daplas<adaplas@pol.net>6 *      All Rights Reserved      7 *8 *9 *  This file is subject to the terms and conditions of the GNU General Public10 *  License. See the file COPYING in the main directory of this archive for11 *  more details.12 */13 14#ifndef __I810_MAIN_H__15#define __I810_MAIN_H__16 17/* Video Timings */18extern void round_off_xres         (u32 *xres);19extern void round_off_yres         (u32 *xres, u32 *yres);20extern u32 i810_get_watermark      (const struct fb_var_screeninfo *var,21			            struct i810fb_par *par);22extern void i810fb_encode_registers(const struct fb_var_screeninfo *var,23				    struct i810fb_par *par, u32 xres, u32 yres);24extern void i810fb_fill_var_timings(struct fb_var_screeninfo *var);25				    26/* Accelerated Functions */27extern void i810fb_fillrect (struct fb_info *p, 28			     const struct fb_fillrect *rect);29extern void i810fb_copyarea (struct fb_info *p, 30			     const struct fb_copyarea *region);31extern void i810fb_imageblit(struct fb_info *p, const struct fb_image *image);32extern int  i810fb_sync     (struct fb_info *p);33 34extern void i810fb_init_ringbuffer(struct fb_info *info);35extern void i810fb_load_front     (u32 offset, struct fb_info *info);36 37#ifdef CONFIG_FB_I810_I2C38/* I2C */39extern int i810_probe_i2c_connector(struct fb_info *info, u8 **out_edid,40				    int conn);41extern void i810_create_i2c_busses(struct i810fb_par *par);42extern void i810_delete_i2c_busses(struct i810fb_par *par);43#else44static inline int i810_probe_i2c_connector(struct fb_info *info, u8 **out_edid,45				    int conn)46{47	return 1;48}49static inline void i810_create_i2c_busses(struct i810fb_par *par) { }50static inline void i810_delete_i2c_busses(struct i810fb_par *par) { }51#endif52 53/* Conditionals */54#ifdef CONFIG_X8655static inline void flush_cache(void)56{57	asm volatile ("wbinvd":::"memory");58}59#else60#define flush_cache() do { } while(0)61#endif 62 63#ifdef CONFIG_FB_I810_GTF64#define IS_DVT (0)65#else66#define IS_DVT (1)67#endif68 69#endif /* __I810_MAIN_H__ */70