亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? fbmem.2.6

?? 嵌入式linux下sm501芯片的驅動源碼
?? 6
?? 第 1 頁 / 共 3 頁
字號:
/*
 *  linux/drivers/video/fbmem.c
 *
 *  Copyright (C) 1994 Martin Schaller
 *
 *	2001 - Documented with DocBook
 *	- Brad Douglas <brad@neruo.com>
 *
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file COPYING in the main directory of this archive
 * for more details.
 */

#include <linux/config.h>
#include <linux/module.h>

#include <linux/types.h>
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/smp_lock.h>
#include <linux/kernel.h>
#include <linux/major.h>
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/mman.h>
#include <linux/tty.h>
#include <linux/init.h>
#include <linux/linux_logo.h>
#include <linux/proc_fs.h>
#include <linux/console.h>
#ifdef CONFIG_KMOD
#include <linux/kmod.h>
#endif
#include <linux/devfs_fs_kernel.h>

#if defined(__mc68000__) || defined(CONFIG_APUS)
#include <asm/setup.h>
#endif

#include <asm/io.h>
#include <asm/uaccess.h>
#include <asm/page.h>
#include <asm/pgtable.h>

#include <linux/fb.h>

#ifdef CONFIG_FRAMEBUFFER_CONSOLE
#include "console/fbcon.h"
#endif
    /*
     *  Frame buffer device initialization and setup routines
     */

extern int acornfb_init(void);
extern int acornfb_setup(char*);
extern int amifb_init(void);
extern int amifb_setup(char*);
extern int anakinfb_init(void);
extern int atafb_init(void);
extern int atafb_setup(char*);
extern int macfb_init(void);
extern int macfb_setup(char*);
extern int cyberfb_init(void);
extern int cyberfb_setup(char*);
extern int pm2fb_init(void);
extern int pm2fb_setup(char*);
extern int pm3fb_init(void);
extern int pm3fb_setup(char*);
extern int clps711xfb_init(void);
extern int cyber2000fb_init(void);
extern int cyber2000fb_setup(char*);
extern int retz3fb_init(void);
extern int retz3fb_setup(char*);
extern int clgenfb_init(void);
extern int clgenfb_setup(char*);
extern int hitfb_init(void);
extern int vfb_init(void);
extern int vfb_setup(char*);
extern int offb_init(void);
extern int atyfb_init(void);
extern int atyfb_setup(char*);
extern int aty128fb_init(void);
extern int aty128fb_setup(char*);
extern int neofb_init(void);
extern int neofb_setup(char*);
extern int igafb_init(void);
extern int igafb_setup(char*);
extern int imsttfb_init(void);
extern int imsttfb_setup(char*);
extern int dnfb_init(void);
extern int tgafb_init(void);
extern int tgafb_setup(char*);
extern int virgefb_init(void);
extern int virgefb_setup(char*);
extern int resolver_video_setup(char*);
extern int s3triofb_init(void);
extern int vesafb_init(void);
extern int vesafb_setup(char*);
extern int vga16fb_init(void);
extern int vga16fb_setup(char*);
extern int hgafb_init(void);
extern int hgafb_setup(char*);
extern int matroxfb_init(void);
extern int matroxfb_setup(char*);
extern int hpfb_init(void);
extern int platinumfb_init(void);
extern int platinumfb_setup(char*);
extern int control_init(void);
extern int control_setup(char*);
extern int valkyriefb_init(void);
extern int valkyriefb_setup(char*);
extern int chips_init(void);
extern int g364fb_init(void);
extern int sa1100fb_init(void);
extern int fm2fb_init(void);
extern int fm2fb_setup(char*);
extern int q40fb_init(void);
extern int sun3fb_init(void);
extern int sun3fb_setup(char *);
extern int sgivwfb_init(void);
extern int sgivwfb_setup(char*);
extern int rivafb_init(void);
extern int rivafb_setup(char*);
extern int tdfxfb_init(void);
extern int tdfxfb_setup(char*);
extern int tridentfb_init(void);
extern int tridentfb_setup(char*);
extern int sisfb_init(void);
extern int sisfb_setup(char*);
extern int stifb_init(void);
extern int stifb_setup(char*);
extern int pmagbafb_init(void);
extern int pmagbbfb_init(void);
extern int maxinefb_init(void);
extern int tx3912fb_init(void);
extern int tx3912fb_setup(char*);
extern int radeonfb_init(void);
extern int radeonfb_setup(char*);
extern int radeonfb_old_init(void);
extern int radeonfb_old_setup(char*);
extern int e1355fb_init(void);
extern int e1355fb_setup(char*);
extern int pvr2fb_init(void);
extern int pvr2fb_setup(char*);
extern int sstfb_init(void);
extern int sstfb_setup(char*);
extern int i810fb_init(void);
extern int i810fb_setup(char*);
extern int ffb_init(void);
extern int ffb_setup(char*);
extern int cg6_init(void);
extern int cg6_setup(char*);
extern int cg3_init(void);
extern int cg3_setup(char*);
extern int bw2_init(void);
extern int bw2_setup(char*);
extern int cg14_init(void);
extern int cg14_setup(char*);
extern int p9100_init(void);
extern int p9100_setup(char*);
extern int tcx_init(void);
extern int tcx_setup(char*);
extern int leo_init(void);
extern int leo_setup(char*);
extern int kyrofb_init(void);
extern int kyrofb_setup(char*);
extern int sm501fb_init(void);

static struct {
	const char *name;
	int (*init)(void);
	int (*setup)(char*);
} fb_drivers[] __initdata = {

	/*
	 * Chipset specific drivers that use resource management
	 */
#ifdef CONFIG_FB_RETINAZ3
	{ "retz3fb", retz3fb_init, retz3fb_setup },
#endif
#ifdef CONFIG_FB_AMIGA
	{ "amifb", amifb_init, amifb_setup },
#endif
#ifdef CONFIG_FB_ANAKIN
	{ "anakinfb", anakinfb_init, NULL },
#endif
#ifdef CONFIG_FB_CLPS711X
	{ "clps711xfb", clps711xfb_init, NULL },
#endif
#ifdef CONFIG_FB_CYBER
	{ "cyberfb", cyberfb_init, cyberfb_setup },
#endif
#ifdef CONFIG_FB_CYBER2000
	{ "cyber2000fb", cyber2000fb_init, cyber2000fb_setup },
#endif
#ifdef CONFIG_FB_PM2
	{ "pm2fb", pm2fb_init, pm2fb_setup },
#endif
#ifdef CONFIG_FB_PM3
	{ "pm3fb", pm3fb_init, pm3fb_setup },
#endif           
#ifdef CONFIG_FB_CLGEN
	{ "clgenfb", clgenfb_init, clgenfb_setup },
#endif
#ifdef CONFIG_FB_ATY
	{ "atyfb", atyfb_init, atyfb_setup },
#endif
#ifdef CONFIG_FB_MATROX
	{ "matroxfb", matroxfb_init, matroxfb_setup },
#endif
#ifdef CONFIG_FB_ATY128
	{ "aty128fb", aty128fb_init, aty128fb_setup },
#endif
#ifdef CONFIG_FB_NEOMAGIC
	{ "neofb", neofb_init, neofb_setup },
#endif
#ifdef CONFIG_FB_VIRGE
	{ "virgefb", virgefb_init, virgefb_setup },
#endif
#ifdef CONFIG_FB_RIVA
	{ "rivafb", rivafb_init, rivafb_setup },
#endif
#ifdef CONFIG_FB_3DFX
	{ "tdfxfb", tdfxfb_init, tdfxfb_setup },
#endif
#ifdef CONFIG_FB_RADEON
	{ "radeonfb", radeonfb_init, radeonfb_setup },
#endif
#ifdef CONFIG_FB_RADEON_OLD
	{ "radeonfb_old", radeonfb_old_init, radeonfb_old_setup },
#endif
#ifdef CONFIG_FB_CONTROL
	{ "controlfb", control_init, control_setup },
#endif
#ifdef CONFIG_FB_PLATINUM
	{ "platinumfb", platinumfb_init, platinumfb_setup },
#endif
#ifdef CONFIG_FB_VALKYRIE
	{ "valkyriefb", valkyriefb_init, valkyriefb_setup },
#endif
#ifdef CONFIG_FB_CT65550
	{ "chipsfb", chips_init, NULL },
#endif
#ifdef CONFIG_FB_IMSTT
	{ "imsttfb", imsttfb_init, imsttfb_setup },
#endif
#ifdef CONFIG_FB_S3TRIO
	{ "s3triofb", s3triofb_init, NULL },
#endif 
#ifdef CONFIG_FB_FM2
	{ "fm2fb", fm2fb_init, fm2fb_setup },
#endif 
#ifdef CONFIG_FB_SIS
	{ "sisfb", sisfb_init, sisfb_setup },
#endif
#ifdef CONFIG_FB_TRIDENT
	{ "tridentfb", tridentfb_init, tridentfb_setup },
#endif
#ifdef CONFIG_FB_I810
	{ "i810fb", i810fb_init, i810fb_setup },
#endif	
#ifdef CONFIG_FB_STI
	{ "stifb", stifb_init, stifb_setup },
#endif
#ifdef CONFIG_FB_FFB
	{ "ffb", ffb_init, ffb_setup },
#endif
#ifdef CONFIG_FB_CG6
	{ "cg6fb", cg6_init, cg6_setup },
#endif
#ifdef CONFIG_FB_CG3
	{ "cg3fb", cg3_init, cg3_setup },
#endif
#ifdef CONFIG_FB_BW2
	{ "bw2fb", bw2_init, bw2_setup },
#endif
#ifdef CONFIG_FB_CG14
	{ "cg14fb", cg14_init, cg14_setup },
#endif
#ifdef CONFIG_FB_P9100
	{ "p9100fb", p9100_init, p9100_setup },
#endif
#ifdef CONFIG_FB_TCX
	{ "tcxfb", tcx_init, tcx_setup },
#endif
#ifdef CONFIG_FB_LEO
	{ "leofb", leo_init, leo_setup },
#endif

	/*
	 * Generic drivers that are used as fallbacks
	 * 
	 * These depend on resource management and must be initialized
	 * _after_ all other frame buffer devices that use resource
	 * management!
	 */

#ifdef CONFIG_FB_OF
	{ "offb", offb_init, NULL },
#endif
#ifdef CONFIG_FB_VESA
	{ "vesafb", vesafb_init, vesafb_setup },
#endif 

	/*
	 * Chipset specific drivers that don't use resource management (yet)
	 */

#ifdef CONFIG_FB_SGIVW
	{ "sgivwfb", sgivwfb_init, sgivwfb_setup },
#endif
#ifdef CONFIG_FB_ACORN
	{ "acornfb", acornfb_init, acornfb_setup },
#endif
#ifdef CONFIG_FB_ATARI
	{ "atafb", atafb_init, atafb_setup },
#endif
#ifdef CONFIG_FB_MAC
	{ "macfb", macfb_init, macfb_setup },
#endif
#ifdef CONFIG_FB_HGA
	{ "hgafb", hgafb_init, hgafb_setup },
#endif 
#ifdef CONFIG_FB_IGA
	{ "igafb", igafb_init, igafb_setup },
#endif
#ifdef CONFIG_APOLLO
	{ "apollofb", dnfb_init, NULL },
#endif
#ifdef CONFIG_FB_Q40
	{ "q40fb", q40fb_init, NULL },
#endif
#ifdef CONFIG_FB_TGA
	{ "tgafb", tgafb_init, tgafb_setup },
#endif
#ifdef CONFIG_FB_HP300
	{ "hpfb", hpfb_init, NULL },
#endif 
#ifdef CONFIG_FB_G364
	{ "g364fb", g364fb_init, NULL },
#endif
#ifdef CONFIG_FB_SA1100
	{ "sa1100fb", sa1100fb_init, NULL },
#endif
#ifdef CONFIG_FB_SUN3
	{ "sun3fb", sun3fb_init, sun3fb_setup },
#endif
#ifdef CONFIG_FB_HIT
	{ "hitfb", hitfb_init, NULL },
#endif
#ifdef CONFIG_FB_TX3912
	{ "tx3912fb", tx3912fb_init, tx3912fb_setup },
#endif
#ifdef CONFIG_FB_E1355
	{ "e1355fb", e1355fb_init, e1355fb_setup },
#endif
#ifdef CONFIG_FB_PVR2
	{ "pvr2fb", pvr2fb_init, pvr2fb_setup },
#endif
#ifdef CONFIG_FB_PMAG_BA
	{ "pmagbafb", pmagbafb_init, NULL },
#endif          
#ifdef CONFIG_FB_PMAGB_B
	{ "pmagbbfb", pmagbbfb_init, NULL },
#endif
#ifdef CONFIG_FB_MAXINE
	{ "maxinefb", maxinefb_init, NULL },
#endif            
#ifdef CONFIG_FB_VOODOO1
	{ "sstfb", sstfb_init, sstfb_setup },
#endif
#ifdef CONFIG_FB_KYRO
	{ "kyrofb", kyrofb_init, kyrofb_setup },
#endif
#ifdef CONFIG_FB_SM501_KERNEL_2_6_X
  	{ "sm501fb", sm501fb_init, NULL },
#endif

	/*
	 * Generic drivers that don't use resource management (yet)
	 */

#ifdef CONFIG_FB_VGA16
	{ "vga16fb", vga16fb_init, vga16fb_setup },
#endif 

#ifdef CONFIG_GSP_RESOLVER
	/* Not a real frame buffer device... */
	{ "resolverfb", NULL, resolver_video_setup },
#endif

#ifdef CONFIG_FB_VIRTUAL
	/*
	 * Vfb must be last to avoid that it becomes your primary display if
	 * other display devices are present
	 */
	{ "vfb", vfb_init, vfb_setup },
#endif


};

#define NUM_FB_DRIVERS	(sizeof(fb_drivers)/sizeof(*fb_drivers))
#define FBPIXMAPSIZE	16384

extern const char *global_mode_option;

static initcall_t pref_init_funcs[FB_MAX];
static int num_pref_init_funcs __initdata = 0;
static struct notifier_block *fb_notifier_list;
struct fb_info *registered_fb[FB_MAX];
int num_registered_fb;

#ifdef CONFIG_FB_OF
static int ofonly __initdata = 0;
#endif

/*
 * Drawing helpers.
 */
u8 sys_inbuf(struct fb_info *info, u8 *src)
{	
	return *src;
}

void sys_outbuf(struct fb_info *info, u8 *dst, u8 *src, unsigned int size)
{
	memcpy(dst, src, size);
}	

void fb_move_buf_aligned(struct fb_info *info, struct fb_pixmap *buf,
			u8 *dst, u32 d_pitch, u8 *src, u32 s_pitch,
			u32 height)
{
	int i;

	for (i = height; i--; ) {
		buf->outbuf(info, dst, src, s_pitch);
		src += s_pitch;
		dst += d_pitch;
	}
}

void fb_move_buf_unaligned(struct fb_info *info, struct fb_pixmap *buf,
			u8 *dst, u32 d_pitch, u8 *src, u32 idx,
			u32 height, u32 shift_high, u32 shift_low,
			u32 mod)
{
	u8 mask = (u8) (0xfff << shift_high), tmp;
	int i, j;

	for (i = height; i--; ) {
		for (j = 0; j < idx; j++) {
			tmp = buf->inbuf(info, dst+j);
			tmp &= mask;
			tmp |= *src >> shift_low;
			buf->outbuf(info, dst+j, &tmp, 1);
			tmp = *src << shift_high;
			buf->outbuf(info, dst+j+1, &tmp, 1);
			src++;
		}
		tmp = buf->inbuf(info, dst+idx);
		tmp &= mask;
		tmp |= *src >> shift_low;
		buf->outbuf(info, dst+idx, &tmp, 1);
		if (shift_high < mod) {
			tmp = *src << shift_high;
			buf->outbuf(info, dst+idx+1, &tmp, 1);
		}	
		src++;
		dst += d_pitch;
	}
}

/*
 * we need to lock this section since fb_cursor
 * may use fb_imageblit()
 */
char* fb_get_buffer_offset(struct fb_info *info, struct fb_pixmap *buf, u32 size)
{
	u32 align = buf->buf_align - 1, offset;
	char *addr = buf->addr;

	/* If IO mapped, we need to sync before access, no sharing of
	 * the pixmap is done
	 */
	if (buf->flags & FB_PIXMAP_IO) {
		if (info->fbops->fb_sync && (buf->flags & FB_PIXMAP_SYNC))
			info->fbops->fb_sync(info);
		return addr;
	}

	/* See if we fit in the remaining pixmap space */
	offset = buf->offset + align;
	offset &= ~align;
	if (offset + size > buf->size) {
		/* We do not fit. In order to be able to re-use the buffer,
		 * we must ensure no asynchronous DMA'ing or whatever operation
		 * is in progress, we sync for that.
		 */
		if (info->fbops->fb_sync && (buf->flags & FB_PIXMAP_SYNC))
			info->fbops->fb_sync(info);
		offset = 0;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线一区二区三区做爰视频网站| 福利一区二区在线| 国产精品萝li| 亚洲精品一区二区三区蜜桃下载 | 蜜桃av一区二区三区| 亚洲综合偷拍欧美一区色| 亚洲乱码精品一二三四区日韩在线| 国产精品丝袜91| 国产精品美女久久久久久久| 国产日韩精品一区二区三区在线| 国产亚洲精品资源在线26u| 久久免费的精品国产v∧| 国产视频一区在线观看| 国产精品三级在线观看| 亚洲免费观看高清完整版在线观看熊| 亚洲人成7777| 亚洲成人福利片| 激情综合五月婷婷| 国产v综合v亚洲欧| 色综合久久久久网| 欧美精品日韩综合在线| 精品精品欲导航| 欧美国产日韩亚洲一区| 亚洲猫色日本管| 天堂av在线一区| 国产一区二区看久久| 成人ar影院免费观看视频| 欧美日韩在线综合| 欧美精品一区二区三区蜜桃 | 亚洲成人综合网站| 捆绑调教美女网站视频一区| 国产91清纯白嫩初高中在线观看| 在线视频你懂得一区二区三区| 欧美午夜精品一区| 精品欧美一区二区久久| 亚洲毛片av在线| 国产一区二区不卡老阿姨| 在线观看亚洲精品| 久久久一区二区三区捆绑**| 亚洲一区二区高清| 国产成人在线视频网站| 欧美日本一道本在线视频| 国产日产欧美一区二区三区 | 午夜一区二区三区在线观看| 久草这里只有精品视频| 在线观看一区二区视频| 国产欧美日韩久久| 美女网站色91| 在线亚洲免费视频| 国产精品久久久久影院亚瑟| 麻豆精品精品国产自在97香蕉| 9l国产精品久久久久麻豆| 日韩欧美中文字幕公布| 亚洲欧美日韩电影| 国产大片一区二区| 日韩欧美一级精品久久| 亚洲综合激情小说| 99久久精品久久久久久清纯| 337p粉嫩大胆色噜噜噜噜亚洲| 天天综合色天天| 91色porny| 日本一区二区三区dvd视频在线| 日韩av一级片| 欧美体内she精视频| 亚洲品质自拍视频| aaa亚洲精品| 中文字幕欧美激情| 国产a级毛片一区| 欧美电影免费观看高清完整版在 | 亚洲成a天堂v人片| 91亚洲精品久久久蜜桃| 国产视频亚洲色图| 国产一区二区0| 欧美精品一区二区三| 美国毛片一区二区三区| 91精品国产色综合久久不卡蜜臀| 一区二区三区丝袜| 欧美在线视频日韩| 午夜亚洲国产au精品一区二区| 欧美伊人久久久久久午夜久久久久| 亚洲免费观看高清完整版在线观看熊 | 日韩一区二区在线观看| 亚洲sss视频在线视频| 欧美高清视频不卡网| 图片区小说区区亚洲影院| 欧美肥妇bbw| 日本成人在线一区| 337p粉嫩大胆色噜噜噜噜亚洲| 国产毛片精品一区| 国产精品国产精品国产专区不蜜 | 国产a视频精品免费观看| 亚洲国产精品传媒在线观看| 成人黄色国产精品网站大全在线免费观看 | 日本va欧美va欧美va精品| 欧美一区二区三区人| 美女一区二区视频| 国产精品美女久久久久aⅴ国产馆| 丁香婷婷综合激情五月色| 亚洲免费av高清| 91精品国产高清一区二区三区蜜臀| 免费观看日韩av| 欧美国产日韩一二三区| 色综合久久中文综合久久牛| 日日摸夜夜添夜夜添国产精品| 精品欧美乱码久久久久久1区2区| 高清国产午夜精品久久久久久| 亚洲一区二区在线免费看| 欧美一二三四在线| 波多野结衣一区二区三区| 丝袜a∨在线一区二区三区不卡| 久久精品在线观看| 91精品一区二区三区久久久久久| 国内精品久久久久影院薰衣草| 国产精品久99| 欧美一级日韩一级| proumb性欧美在线观看| 日本不卡的三区四区五区| 国产精品国产自产拍高清av王其| 欧美网站大全在线观看| 国产精品99久久久久久有的能看 | 国产一区二区免费在线| 亚洲激情男女视频| 精品国产sm最大网站| 色狠狠av一区二区三区| 国产精品中文字幕日韩精品 | 国产精品乱码一区二三区小蝌蚪| 欧美三级电影网站| 成人久久久精品乱码一区二区三区| 亚洲成av人影院在线观看网| 国产精品视频一二三区| 欧美成人a∨高清免费观看| 色哟哟一区二区| 成人精品一区二区三区中文字幕| 日本人妖一区二区| 亚洲午夜国产一区99re久久| 欧美激情中文字幕| 欧美精品一区二区精品网| 欧美色图激情小说| 91蜜桃在线观看| 成人深夜在线观看| 国产一区二区毛片| 韩国午夜理伦三级不卡影院| 偷拍亚洲欧洲综合| 亚洲va天堂va国产va久| 亚洲综合另类小说| 一区二区三区中文字幕| 亚洲狠狠丁香婷婷综合久久久| 欧美韩国一区二区| 中文字幕欧美日本乱码一线二线| 久久久久国产精品免费免费搜索| 日韩丝袜情趣美女图片| 日韩一区二区麻豆国产| 777亚洲妇女| 日韩一级高清毛片| 91麻豆精品91久久久久久清纯 | 国产高清成人在线| 精东粉嫩av免费一区二区三区| 麻豆国产精品777777在线| 蜜桃视频第一区免费观看| 奇米影视一区二区三区| 蜜桃一区二区三区在线观看| 日韩电影在线一区| 麻豆91在线观看| 国产高清在线观看免费不卡| 国产精品自产自拍| 不卡av在线免费观看| 成人av集中营| 欧美主播一区二区三区| 51久久夜色精品国产麻豆| 日韩精品一区二区三区蜜臀| 精品国产乱码久久久久久图片 | 亚洲资源在线观看| 日韩电影在线看| 国内不卡的二区三区中文字幕| 精品一区二区三区免费观看| 国产精品 日产精品 欧美精品| 成人黄色777网| 欧美日韩第一区日日骚| 精品久久一区二区三区| 国产亚洲精品免费| 亚洲影院久久精品| 青娱乐精品视频在线| 国产风韵犹存在线视精品| 91福利在线观看| 91麻豆精品国产综合久久久久久| 久久久久国产精品麻豆ai换脸 | 日韩欧美一二三区| 国产日韩精品一区二区浪潮av| 亚洲视频香蕉人妖| 蜜臀av在线播放一区二区三区| 国产精品88888| 欧美日韩国产高清一区二区三区 | 亚洲三级在线免费| 日韩国产精品91| 成人久久久精品乱码一区二区三区| 欧美日韩美女一区二区| 中文字幕一区二区视频| 蜜臀精品一区二区三区在线观看 | 亚洲欧美激情视频在线观看一区二区三区 | 在线观看视频91|