file_receive.rar

  • 茶闵了
    了解作者
  • C/C++
    开发工具
  • 14KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 4
    下载次数
  • 2008-08-04 10:31
    上传日期
s2410 file driver code,it s importtant
file_receive.rar
  • file_receive
  • s3c2410fb-3224.c
    29.5KB
  • file_receive.c
    2.6KB
  • file_receive.exe
    21.3KB
  • www.pudn.com.txt
    218B
内容介绍
#include <linux/config.h> #include <linux/module.h> #include <linux/kernel.h> #include <linux/sched.h> #include <linux/errno.h> #include <linux/string.h> #include <linux/interrupt.h> #include <linux/slab.h> #include <linux/fb.h> #include <linux/delay.h> #include <linux/pm.h> #include <linux/init.h> #include <asm/hardware.h rel='nofollow' onclick='return false;'> #include <asm/io.h rel='nofollow' onclick='return false;'> #include <asm/irq.h rel='nofollow' onclick='return false;'> #include <asm/mach-types.h rel='nofollow' onclick='return false;'> #include <asm/uaccess.h rel='nofollow' onclick='return false;'> #include <video/fbcon.h> #include <video/fbcon-mfb.h> #include <video/fbcon-cfb4.h> #include <video/fbcon-cfb8.h> #include <video/fbcon-cfb16.h> #include "s3c2410fb.h" void (*s3c2410fb_blank_helper)(int blank); EXPORT_SYMBOL(s3c2410fb_blank_helper); /* * CONFIG_FB_S3C2410_EMUL * * 娴兼瑥绻?閻愵噣銈惃瀣挬閼筹拷? : 96*320 娣囧﹪绱︽顓熷船鐠侊拷 * * var.xres = 96 閺嶅繗鍋?缁愬秶绮? * fix.line_length = 240*2 閼诧拷閼煎嫪绺? * app 閸燂拷linux FB spec. 闂冿拷闂囨牞宕橀懠鍕妇閹硷拷瀹糕晛濮忛崯锟界紒婵嬫 瀹稿瓨宕穱锟? * * var.xres_virtual 闂冿拷閻愬吋鎾粣宥囪瘽 鐟欏嫯绻冨锟界粔顖炴▼缁夛拷閺夛拷閼斤拷娑旀劗妲悥锟?spec. 閼荤偟璇?閸犲﹥銆傞懖锟?* app. 閸燂拷閸愯櫕鐥?鎼达箑瀹崇粔锕�鍙?娑擄拷閹搞儳鍩?闁版帟浠鹃幍锟?panning/wrapping 閼伙拷闁劏锟斤拷閸亜螛閸燂拷 * 娑旀劖鐖銊ㄥ仱 绾懎濮忛懠鍕妇. */ //#define CONFIG_S3C2410_SMDK_800480_WHL //#define CONFIG_S3C2410_SMDK_640480 //#define CONFIG_S3C2410_SMDK_320240 //#define CONFIG_S3C2410_SMDK_STN_640480 //#define CONFIG_S3C2410_SMDK_240320 //#define CONFIG_S3C2410_SMDK_800600 #ifdef CONFIG_S3C2410_SMDK_STN_640480 static struct s3c2410fb_rgb rgb_8 = { red: {offset: 5, length: 3, }, green: {offset: 2, length: 3, }, blue: {offset: 0, length: 2, }, transp: {offset: 0, length: 0, }, }; #else static struct s3c2410fb_rgb rgb_8 = { red: {offset: 0, length: 4, }, green: {offset: 0, length: 4, }, blue: {offset: 0, length: 4, }, transp: {offset: 0, length: 0, }, }; #endif static struct s3c2410fb_rgb def_rgb_16 = { red: {offset: 11, length: 5, }, green: {offset: 5, length: 6, }, blue: {offset: 0, length: 5, }, transp: {offset: 0, length: 0, }, }; #if 0 static struct s3c2410fb_rgb xxx_tft_rgb_16 = { red: {offset: 11, length: 5, }, green: {offset: 6, length: 5, }, blue: {offset: 1, length: 5, }, transp: {offset: 0, length: 1, }, }; #else static struct s3c2410fb_rgb xxx_tft_rgb_16 = { red: {offset: 11, length: 5, }, green: {offset: 5, length: 6, }, blue: {offset: 0, length: 5, }, transp: {offset: 0, length: 0, }, }; #endif #if 0 #ifdef CONFIG_S3C2410_SMDK static struct s3c2410fb_mach_info xxx_stn_info __initdata = { pixclock: 174757, bpp: 16, #ifdef CONFIG_FB_S3C2410_EMUL xres: 96, #else xres: 240, #endif yres: 320, hsync_len : 5, vsync_len : 1, left_margin : 7, upper_margin : 1, right_margin: 3, lower_margin : 3, sync: 0, cmap_static: 1, reg : { lcdcon1 : LCD1_BPP_16T | LCD1_PNR_TFT | LCD1_CLKVAL(1) , lcdcon2 : LCD2_VBPD(1) | LCD2_VFPD(2) | LCD2_VSPW(1), lcdcon3 : LCD3_HBPD(6) | LCD3_HFPD(2), lcdcon4 : LCD4_HSPW(4) | LCD4_MVAL(13), lcdcon5 : LCD5_FRM565 | LCD5_INVVLINE | LCD5_INVVFRAME | LCD5_HWSWP | LCD5_PWREN, }, }; #endif #else #ifdef CONFIG_S3C2410_SMDK_640480 static struct s3c2410fb_mach_info xxx_stn_info __initdata = { pixclock: 39721, bpp: 16, #ifdef CONFIG_FB_S3C2410_EMUL xres: 96, #else xres: 640, #endif yres: 480, hsync_len : 96, vsync_len : 2, left_margin : 40, upper_margin : 24, right_margin: 32, lower_margin : 11, sync: 0, cmap_static: 1, reg : { lcdcon1 : LCD1_BPP_16T | LCD1_PNR_TFT | LCD1_CLKVAL(1) , lcdcon2 : LCD2_VBPD(32) | LCD2_VFPD(9) | LCD2_VSPW(1), lcdcon3 : LCD3_HBPD(47) | LCD3_HFPD(15), lcdcon4 : LCD4_HSPW(95) | LCD4_MVAL(13), lcdcon5 : LCD5_FRM565 | LCD5_INVVLINE | LCD5_INVVFRAME | LCD5_HWSWP | LCD5_PWREN, }, }; #endif #ifdef CONFIG_S3C2410_SMDK_800600 static struct s3c2410fb_mach_info xxx_stn_info __initdata = { pixclock: 39721, bpp: 16, #ifdef CONFIG_FB_S3C2410_EMUL xres: 96, #else xres: 800, #endif yres: 600, hsync_len : 96, vsync_len : 2, left_margin : 40, upper_margin : 24, right_margin: 32, lower_margin : 11, sync: 0, cmap_static: 1, reg : { lcdcon1 : LCD1_BPP_16T | LCD1_PNR_TFT | LCD1_CLKVAL(1) , lcdcon2 : LCD2_VBPD(3) | LCD2_VFPD(2) | LCD2_VSPW(2), lcdcon3 : LCD3_HBPD(28) | LCD3_HFPD(50), lcdcon4 : LCD4_HSPW(15) | LCD4_MVAL(13), lcdcon5 : LCD5_FRM565 | LCD5_INVVLINE | LCD5_INVVFRAME | LCD5_HWSWP | LCD5_PWREN, }, }; #endif #ifdef CONFIG_S3C2410_SMDK_800480_WHL static struct s3c2410fb_mach_info xxx_stn_info __initdata = { pixclock: 39721, bpp: 16, #ifdef CONFIG_FB_S3C2410_EMUL xres: 96, #else xres: 800, #endif yres: 480, hsync_len : 96, vsync_len : 2, left_margin : 40, upper_margin : 24, right_margin: 32, lower_margin : 11, sync: 0, cmap_static: 1, reg : { lcdcon1 : LCD1_BPP_16T | LCD1_PNR_TFT | LCD1_CLKVAL(1) , lcdcon2 : LCD2_VBPD(39) | LCD2_VFPD(19) | LCD2_VSPW(3), lcdcon3 : LCD3_HBPD(49) | LCD3_HFPD(19), lcdcon4 : LCD4_HSPW(99) | LCD4_MVAL(13), lcdcon5 : LCD5_FRM565 | LCD5_INVVLINE | LCD5_INVVFRAME | LCD5_HWSWP | LCD5_PWREN, }, }; #endif #ifdef CONFIG_S3C2410_SMDK_320240 static struct s3c2410fb_mach_info xxx_stn_info __initdata = { pixclock: 39721, bpp: 16, #ifdef CONFIG_FB_S3C2410_EMUL xres: 96, #else xres: 320, #endif yres: 240, hsync_len : 5, vsync_len : 1, left_margin : 7, upper_margin : 1, right_margin: 3, lower_margin : 3, sync: 0, cmap_static: 1, reg : { lcdcon1 : LCD1_BPP_16T | LCD1_PNR_TFT | LCD1_CLKVAL(5) , lcdcon2 : LCD2_VBPD(1) | LCD2_VFPD(2) | LCD2_VSPW(1), lcdcon3 : LCD3_HBPD(49) | LCD3_HFPD(15), lcdcon4 : LCD4_HSPW(13) | LCD4_MVAL(13), lcdcon5 : LCD5_FRM565 | LCD5_INVVLINE | LCD5_INVVFRAME | LCD5_HWSWP | LCD5_PWREN, }, }; #endif //SAMSUNG LTV350QV 3.5IN TFT LCD panel #ifdef CONFIG_S3C2410_SMDK_S320240 static struct s3c2410fb_mach_info xxx_stn_info __initdata = { pixclock: 5000, bpp: 16, #ifdef CONFIG_FB_S3C2410_EMUL xres: 96, #else xres: 320, #endif yres: 240, hsync_len : 5, vsync_len : 1, left_margin : 7, upper_margin : 1, right_margin: 3, lower_margin : 3, sync: 0, cmap_static: 1, reg : { lcdcon1 : LCD1_BPP_16T | LCD1_PNR_TFT | LCD1_CLKVAL(10) , lcdcon2 : LCD2_VBPD(3) | LCD2_VFPD(5) | LCD2_VSPW(15), lcdcon3 : LCD3_HBPD(5) | LCD3_HFPD(15), lcdcon4 : LCD4_HSPW(8) | LCD4_MVAL(13), // lcdcon2 : LCD2_VBPD(3) | LCD2_VFPD(10) | LCD2_VSPW(15), // lcdcon3 : LCD3_HBPD(5) | LCD3_HFPD(15), // lcdcon4 : LCD4_HSPW(8) | LCD4_MVAL(13), lcdcon5 : LCD5_FRM565 | LCD5_INVVLINE | LCD5_INVVFRAME | LCD5_HWSWP | LCD5_PWREN, }, }; #endif #ifdef CONFIG_S3C2410_SMDK_240320 static struct s3c2410fb_mach_info xxx_stn_info __initdata = { pixclock: 5000, bpp: 16, #ifdef CONFIG_FB_S3C2410_EMUL xres: 96, #else xres: 320, #endif yres: 240, hsync_len : 5, vsync_len : 1, left_margin : 7, upper_margin : 1, right_margin: 3, lower_margin : 3, sync: 0, cmap_static: 1, reg : { lcdcon1 : LCD1_BPP_16T | LCD1_PNR_TFT | LCD1_CLKVAL(10) , lcdcon2 : LCD2_VBPD(3) | LCD2_VFPD(5) | LCD2_VSPW(15), lcdcon3 : LCD3_HBPD(5) | LCD3_HFPD(15), lcdcon4 : LCD4_HSPW(8) | LCD4_MVAL(13), // lcdcon2 : LCD2_VBPD(3) | LCD2_VFPD(10) | LCD2_VSPW(15), // lcdcon3 : LCD3_HBPD(5) | LCD3_HFPD(15), // lcdcon4 : LCD4_HSPW(8) | LCD4_MVAL(13), lcdcon5 : LCD5_FRM565 | LCD5_INVVLINE | LCD5_INVVFRAME | LCD5_HWSWP | LCD5_PWREN, }, }; #endif /* static struct s3c2410fb_mach_info xxx_stn_info __initdata = { pixclock: 39721, bpp: 16, #ifde
评论
    相关推荐
    • 联想入股汉普进入IT管理咨询业务
      这是整理发布的一款联想入股汉普进入IT管理咨询业务,联想入股汉普进入IT管理咨询业务能给你需...该文档为联想入股汉普进入IT管理咨询业务,是一份很不错的参考资料,具有较高参考价值,感兴趣的可以下载看看
    • IT112Final
      IT112最终版 该存储库用于我的IT 112最终项目。 我的最终项目是一个音乐论坛,允许用户共享歌曲和其他与音乐相关的主题,以及推荐和查看音乐装备。
    • IT项目管理文档模板
      IT项目管理整套文档模板,项目经理的必备工具。总共21个文档大量,覆盖IT管理全生命周期。
    • IT部管理制度(电脑部机房管理制度,IT管理制度,公司网络及计算机应急方案)
      电脑部机房管理制度,IT管理制度,公司网络及计算机应急方案
    • IT管理系统
      IT管理系统
    • itcss-tools
      @ bingumd / itcss-tools 用于的可共享itcss工具。 安装 yarn add @bingumd/itcss-tools 用法 @use ' @bingumd/itcss-tools ' ; 客制化 @use ' @bingumd/itcss-tools ' as tools ; .c-button { font-size : tools ....
    • 最新 21世纪的IT管理-给CIO的建议
      最新 21世纪的IT管理-给CIO的建议最新 21世纪的IT管理-给CIO的建议最新 21世纪的IT管理-给CIO的建议最新 21世纪的IT管理-给CIO的建议
    • markdownit-module
      使用yarn或npm将@nuxtjs/markdownit依赖项添加到您的项目中 将@nuxtjs/markdownit添加到nuxt.config.js modules部分 { modules : [ '@nuxtjs/markdownit' ] , // [optional] markdownit options // See ...
    • IT管理制度-比较完善
      IT管理制度IT管理制度IT管理制度IT管理制度IT管理制度IT管理制度IT管理制度IT管理制度IT管理制度IT管理制度IT管理制度IT管理制度IT管理制度
    • CHECKIT30.ZIP
      Check-It 3.0 for DOS