linux/drivers/video/carminefb.c
<<
="v2/op/spa.4. /op/form4. /opa ="v2/o href="../linux+v31" 2/drivers/video/carminefb.c">="v2/opimg src="../.static/gfx/right.png" alt=">>">="p/spa.4.="pspa. class="lxr_search">="v2="v2/opinput typ="v2/opinput typ="v2/opbutt> typSearch 4. /op/form4. p/spa.4.="pspa. class="lxr_prefs"4. /opa href="+prefs?return=drivers/video/carminefb.c"="v2/o onclick="return ajax_prefs();">="v2/oPrefs. /op/a>="p/spa.4.v2/o op/div4.v2/o opform ac v3.="ajax+*" method="post" onsubmit="return false;">="pinput typ=v2/o op/form4.=v2/o opdiv class="headingbott>m">. pdiv idopfile_contents"4
o o1p/a>pspa. class="comment">/*p/spa.4.o o2p/a>pspa. class="comment"> * Fram< buffer driver for the Carmine GPU.p/spa.4.o o3p/a>pspa. class="comment"> *p/spa.4.o o4p/a>pspa. class="comment"> * The driver configures the GPU as followsp/spa.4.o o5p/a>pspa. class="comment"> * - FB0 is display 0 with unique memory areap/spa.4.o o6p/a>pspa. class="comment"> * - FB1 is display 1 with unique memory areap/spa.4.o o7p/a>pspa. class="comment"> * - both display use 32 bit colorsp/spa.4.o o8p/a>pspa. class="comment"> */p/spa.4.o o9p/a>#include <linux/delay.hp/a>>.o 	  >a>#include <linux/errno.hp/a>>.o 11 >a>#include <linux/fb.hp/a>>.o 12 >a>#include <linux/interrupt.hp/a>>.o 13 >a>#include <linux/pci.hp/a>>.o 14 >a>#include <linux/slab.hp/a>>.o 15 >a>#include <linux/module.hp/a>>.o 16p/a>.o 17 >a>#include "carminefb.hp/a>".o 18 >a>#include "carminefb_regs.hp/a>".o 19p/a>.o 2  >a>#if !pa href="+code=defined" class="sref">defined >a>(pa href="+code=__LITTLE_ENDIAN" class="sref">__LITTLE_ENDIAN >a>) && !pa href="+code=defined" class="sref">defined >a>(pa href="+code=__BIG_ENDIAN" class="sref">__BIG_ENDIAN >a>).o 21 >a>#error  pspa. class="string">"The endianness of the target host has not been defined."o 22 >a>#endif.o 23p/a>.o 24p/a>pspa. class="comment">/*p/spa.4.o 25p/a>pspa. class="comment"> * The initial video mode ca. be supplied via two different ways:p/spa.4.o 26p/a>pspa. class="comment"> * - as a string that is passed to fb_find_mode() (module tion>
 fb_mode_str)p/spa.4.o 27p/a>pspa. class="comment"> * - as an integer that picks the video mode from carmine_modedb[] (modulep/spa.4.o 28p/a>pspa. class="comment"> */o oion>
 fb_mode)p/spa.4.o 29p/a>pspa. class="comment"> *p/spa.4.o 30p/a>pspa. class="comment"> */If nothing is used tha. the initial video mode will be thep/spa.4.o 31p/a>pspa. class="comment"> */CARMINEFB_DEFAULT_VIDEO_MODE member of the carmine_modedb[].p/spa.4.o 32p/a>pspa. class="comment"> */p/spa.4.o 33 >a>#define pa href="+code=CARMINEFB_DEFAULT_VIDEO_MODE" class="sref">CARMINEFB_DEFAULT_VIDEO_MODE >a>/o o1.o 34p/a>.o 35p/a>static unsigned int pa href="+code=fb_mode" class="sref">fb_mode >a>/= pa href="+code=CARMINEFB_DEFAULT_VIDEO_MODE" class="sref">CARMINEFB_DEFAULT_VIDEO_MODE >a>;.o 36p/a>pa href="+code=module_param" class="sref">module_param >a>(pa href="+code=fb_mode" class="sref">fb_mode >a>, pa href="+code=uint" class="sref">uint >a>, 0444);.o 37p/a>pa href="+code=MODULE_PARM_DESC" class="sref">MODULE_PARM_DESC >a>(pa href="+code=fb_mode" class="sref">fb_mode >a>, pspa. class="string">"Initial video mode as integer."o 38p/a>.o 39p/a>static char *pa href="+code=fb_mode_str" class="sref">fb_mode_str >a>;.o 40p/a>pa href="+code=module_param" class="sref">module_param >a>(pa href="+code=fb_mode_str" class="sref">fb_mode_str >a>, pa href="+code=charp" class="sref">charp >a>, 0444);.o 41p/a>pa href="+code=MODULE_PARM_DESC" class="sref">MODULE_PARM_DESC >a>(pa href="+code=fb_mode_str" class="sref">fb_mode_str >a>, pspa. class="string">"Initial video mode in characters."o 42p/a>.o 43p/a>pspa. class="comment">/*p/spa.4.o 44p/a>pspa. class="comment"> * Carminefb displays:p/spa.4.o 45p/a>pspa. class="comment"> * 0b000 Nonep/spa.4.o 46p/a>pspa. class="comment"> * 0b001 Display 0p/spa.4.o 47p/a>pspa. class="comment"> * 0b010 Display 1p/spa.4.o 48p/a>pspa. class="comment"> */p/spa.4.o 49p/a>static int pa href="+code=fb_displays" class="sref">fb_displays >a>/= pa href="+code=CARMINE_USE_DISPLAY0" class="sref">CARMINE_USE_DISPLAY0 >a>/| pa href="+code=CARMINE_USE_DISPLAY1" class="sref">CARMINE_USE_DISPLAY1 >a>;.o 50p/a>pa href="+code=module_param" class="sref">module_param >a>(pa href="+code=fb_displays" class="sref">fb_displays >a>, int, 0444);.o 51p/a>pa href="+code=MODULE_PARM_DESC" class="sref">MODULE_PARM_DESC >a>(pa href="+code=fb_displays" class="sref">fb_displays >a>, pspa. class="string">"Bit mode, which displays are used"o 52p/a>.o 53p/a>struct pa href="+code=carmine_hw" class="sref">carmine_hw >a>/{.o 54 >a>/o ooooovoid pa href="+code=__iomem" class="sref">__iomem >a>/*pa href="+code=v_regs" class="sref">v_regs >a>;.o 55 >a>/o ooooovoid pa href="+code=__iomem" class="sref">__iomem >a>/*pa href="+code=screen_mem" class="sref">screen_mem >a>;.o 56 >a>/o ooooostruct pa href="+code=fb_info" class="sref">fb_info >a>/*pa href="+code=fb" class="sref">fb >a>[pa href="+code=MAX_DISPLAY" class="sref">MAX_DISPLAY >a>];.o 57p/a>};.o 58p/a>.o 59p/a>struct pa href="+code=carmine_resoluon>
" class="sref">carmine_resoluon>
 >a>/{.o 60 >a>/o ooooopa href="+code=u32" class="sref">u32p/a>opa href="+code=htp" class="sref">htp >a>;.o 61 >a>/o ooooopa href="+code=u32" class="sref">u32p/a>opa href="+code=hsp" class="sref">hsp >a>;.o 62 >a>/o ooooopa href="+code=u32" class="sref">u32p/a>opa href="+code=hsw" class="sref">hsw >a>;.o 63 >a>/o ooooopa href="+code=u32" class="sref">u32p/a>opa href="+code=hdp" class="sref">hdp >a>;.o 64 >a>/o ooooopa href="+code=u32" class="sref">u32p/a>opa href="+code=vtr" class="sref">vtr >a>;.o 65 >a>/o ooooopa href="+code=u32" class="sref">u32p/a>opa href="+code=vsp" class="sref">vsp >a>;.o 66 >a>/o ooooopa href="+code=u32" class="sref">u32p/a>opa href="+code=vsw" class="sref">vsw >a>;.o 67 >a>/o ooooopa href="+code=u32" class="sref">u32p/a>opa href="+code=vdp" class="sref">vdp >a>;.o 68 >a>/o ooooopa href="+code=u32" class="sref">u32p/a>opa href="+code=disp_mode" class="sref">disp_mode >a>;.o 69p/a>};.o 70p/a>.o 71p/a>struct pa href="+code=carmine_fb" class="sref">carmine_fb >a>/{.o 72 >a>/o ooooovoid pa href="+code=__iomem" class="sref">__iomem >a>/*pa href="+code=display_reg" class="sref">display_reg >a>;.o 73 >a>/o ooooovoid pa href="+code=__iomem" class="sref">__iomem >a>/*pa href="+code=screen_base" class="sref">screen_base >a>;.o 74 >a>/o ooooopa href="+code=u32" class="sref">u32p/a>opa href="+code=smem_offset" class="sref">smem_offset >a>;.o 75 >a>/o ooooopa href="+code=u32" class="sref">u32p/a>opa href="+code=cur_mode" class="sref">cur_mode >a>;.o 76 >a>/o ooooopa href="+code=u32" class="sref">u32p/a>opa href="+code=new_mode" class="sref">new_mode >a>;.o 77 >a>/o ooooostruct pa href="+code=carmine_resoluon>
" class="sref">carmine_resoluon>
 >a>/*pa href="+code=res" class="sref">res >a>;.o 78 >a>/o ooooopa href="+code=u32" class="sref">u32p/a>opa href="+code=pseudo_palette" class="sref">pseudo_palette >a>[16];.o 79p/a>};.o 80p/a>.o 81p/a>static struct pa href="+code=fb_fix_screeninfo" class="sref">fb_fix_screeninfop/a>opa href="+code=carminefb_fix" class="sref">carminefb_fixp/a>opa href="+code=__devinitdata" class="sref">__devinitdata >a>/= {.o 82 >a>/o ooooo.pa href="+code=id" class="sref">id >a>/= pspa. class="string">"Carmine"o 83 >a>/o ooooo.pa href="+code=typ<" class="sref">typ< >a>/= pa href="+code=FB_TYPE_PACKED_PIXELS" class="sref">FB_TYPE_PACKED_PIXELS >a>,.o 84 >a>/o ooooo.pa href="+code=visual" class="sref">visual >a>/= pa href="+code=FB_VISUAL_TRUECOLOR" class="sref">FB_VISUAL_TRUECOLOR >a>,.o 85 >a>/o ooooo.pa href="+code=accel" class="sref">accel >a>/= pa href="+code=FB_ACCEL_NONE" class="sref">FB_ACCEL_NONE >a>,.o 86p/a>};.o 87p/a>.o 88p/a>static const struct pa href="+code=fb_videomode" class="sref">fb_videomodep/a>opa href="+code=carmine_modedb" class="sref">carmine_modedb >a>[]/= {.o 89 >a>/o ooooo{.o 90 >a>/o ooooo/o ooooo.pa href="+code=nam<" class="sref">nam< >a>/o ooooo/o = pspa. class="string">"640x480"o 91 >a>/o ooooo/o ooooo.pa href="+code=xres" class="sref">xres >a>/o ooooo/o = 640,.o 92 >a>/o ooooo/o ooooo.pa href="+code=yres" class="sref">yres >a>/o ooooo/o = 480,.o 93 >a>/o ooooo},o{.o 94 >a>/o ooooo/o ooooo.pa href="+code=nam<" class="sref">nam< >a>/o ooooo/o = pspa. class="string">"800x600"o 95 >a>/o ooooo/o ooooo.pa href="+code=xres" class="sref">xres >a>/o ooooo/o = 800,.o 96 >a>/o ooooo/o ooooo.pa href="+code=yres" class="sref">yres >a>/o ooooo/o = 600,.o 97 >a>/o ooooo},.o 98p/a>};.o 99p/a>.o100p/a>static struct pa href="+code=carmine_resoluon>
" class="sref">carmine_resoluon>
 >a>/pa href="+code=car_modes" class="sref">car_modes >a>[]/= {.o101 >a>/o ooooo{.o102 >a>/o ooooo/o ooooopspa. class="comment">/* 640x480 */p/spa.4.o103 >a>/o ooooo/o ooooo.pa href="+code=htp" class="sref">htp >a> = 800,.o104 >a>/o ooooo/o ooooo.pa href="+code=hsp" class="sref">hsp >a> = 672,.o105 >a>/o ooooo/o ooooo.pa href="+code=hsw" class="sref">hsw >a> = 96,.o106 >a>/o ooooo/o ooooo.pa href="+code=hdp" class="sref">hdp >a> = 640,.o107 >a>/o ooooo/o ooooo.pa href="+code=vtr" class="sref">vtr >a> = 525,.o108 >a>/o ooooo/o ooooo.pa href="+code=vsp" class="sref">vsp >a> = 490,.o109 >a>/o ooooo/o ooooo.pa href="+code=vsw" class="sref">vsw >a> = 2,.o110 >a>/o ooooo/o ooooo.pa href="+code=vdp" class="sref">vdp >a> = 480,.o111 >a>/o ooooo/o ooooo.pa href="+code=disp_mode" class="sref">disp_mode >a> = 0x1400,.o112 >a>/o ooooo},.o113 >a>/o ooooo{.o114 >a>/o ooooo/o ooooopspa. class="comment">/* 800x600 */p/spa.4.o115 >a>/o ooooo/o ooooo.pa href="+code=htp" class="sref">htp >a> = 1060,.o116 >a>/o ooooo/o ooooo.pa href="+code=hsp" class="sref">hsp >a> = 864,.o117 >a>/o ooooo/o ooooo.pa href="+code=hsw" class="sref">hsw >a> = 72,.o118 >a>/o ooooo/o ooooo.pa href="+code=hdp" class="sref">hdp >a> = 800,.o119 >a>/o ooooo/o ooooo.pa href="+code=vtr" class="sref">vtr >a> = 628,.o120 >a>/o ooooo/o ooooo.pa href="+code=vsp" class="sref">vsp >a> = 601,.o121 >a>/o ooooo/o ooooo.pa href="+code=vsw" class="sref">vsw >a> = 2,.o122 >a>/o ooooo/o ooooo.pa href="+code=vdp" class="sref">vdp >a> = 600,.o123 >a>/o ooooo/o ooooo.pa href="+code=disp_mode" class="sref">disp_mode >a> = 0x0d00,.o124 >a>/o ooooo}.o125p/a>};.o126p/a>.o127p/a>static int pa href="+code=carmine_find_mode" class="sref">carmine_find_modep/a>(const struct pa href="+code=fb_var_screeninfo" class="sref">fb_var_screeninfo >a>/*pa href="+code=var" class="sref">var >a>).o128p/a>{.o129 >a>/o oooooint pa href="+code=i" class="sref">i >a>;.o130p/a>.o131 >a>/o ooooofor (pa href="+code=i" class="sref">i >a> = 0; pa href="+code=i" class="sref">i >a> < pa href="+code=ARRAY_SIZE" class="sref">ARRAY_SIZEp/a>(pa href="+code=car_modes" class="sref">car_modes >a>); pa href="+code=i" class="sref">i >a>++).o132 >a>/o ooooo/o oooooif (pa href="+code=car_modes" class="sref">car_modes >a>[pa href="+code=i" class="sref">i >a>].pa href="+code=hdp" class="sref">hdp >a> == pa href="+code=var" class="sref">var >a>->pa href="+code=xres" class="sref">xres >a>/&&.o133 >a>/o ooooo/o ooooooooopa href="+code=car_modes" class="sref">car_modes >a>[pa href="+code=i" class="sref">i >a>].pa href="+code=vdp" class="sref">vdp >a> == pa href="+code=var" class="sref">var >a>->pa href="+code=yres" class="sref">yres >a>).o134 >a>/o ooooo/o oooooooooooooreturn pa href="+code=i" class="sref">i >a>;.o135 >a>/o oooooreturn -pa href="+code=EINVAL" class="sref">EINVAL >a>;.o136p/a>}.o137p/a>.o138p/a>static void pa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(const struct pa href="+code=carmine_fb" class="sref">carmine_fb >a>/*pa href="+code=par" class="sref">par >a>,.o139 >a>/o ooooo/o ooooopa href="+code=u32" class="sref">u32p/a>opa href="+code=offset" class="sref">offset >a>, pa href="+code=u32" class="sref">u32p/a>opa href="+code=val" class="sref">val >a>).o140p/a>{.o141 >a>/o ooooopa href="+code=writel" class="sref">writelp/a>(pa href="+code=val" class="sref">val >a>, pa href="+code=par" class="sref">par >a>->pa href="+code=display_reg" class="sref">display_reg >a> +opa href="+code=offset" class="sref">offset >a>);.o142p/a>}.o143p/a>.o144p/a>static pa href="+code=u32" class="sref">u32p/a>opa href="+code=c_get_disp_reg" class="sref">c_get_disp_regp/a>(const struct pa href="+code=carmine_fb" class="sref">carmine_fb >a>/*pa href="+code=par" class="sref">par >a>,.o145 >a>/o ooooo/o ooooopa href="+code=u32" class="sref">u32p/a>opa href="+code=offset" class="sref">offset >a>).o146p/a>{.o147 >a>/o oooooreturn pa href="+code=readl" class="sref">readlp/a>(pa href="+code=par" class="sref">par >a>->pa href="+code=display_reg" class="sref">display_reg >a> +opa href="+code=offset" class="sref">offset >a>);.o148p/a>}.o149p/a>.o150p/a>static void pa href="+code=c_set_hw_reg" class="sref">c_set_hw_regp/a>(const struct pa href="+code=carmine_hw" class="sref">carmine_hw >a>/*pa href="+code=hw" class="sref">hw >a>,.o151 >a>/o ooooo/o ooooopa href="+code=u32" class="sref">u32p/a>opa href="+code=offset" class="sref">offset >a>, pa href="+code=u32" class="sref">u32p/a>opa href="+code=val" class="sref">val >a>).o152p/a>{.o153 >a>/o ooooopa href="+code=writel" class="sref">writelp/a>(pa href="+code=val" class="sref">val >a>, pa href="+code=hw" class="sref">hw >a>->pa href="+code=v_regs" class="sref">v_regs >a> +opa href="+code=offset" class="sref">offset >a>);.o154 >a>}.o155 >a>.o156 >a>static pa href="+code=u32" class="sref">u32p/a>opa href="+code=c_get_hw_reg" class="sref">c_get_hw_regp/a>(const struct pa href="+code=carmine_hw" class="sref">carmine_hw >a>/*pa href="+code=hw" class="sref">hw >a>,.o157 >a>/o ooooo/o ooooopa href="+code=u32" class="sref">u32p/a>opa href="+code=offset" class="sref">offset >a>).o158p/a>{.o159 >a>/o oooooreturn pa href="+code=readl" class="sref">readlp/a>(pa href="+code=hw" class="sref">hw >a>->pa href="+code=v_regs" class="sref">v_regs >a> +opa href="+code=offset" class="sref">offset >a>);.o160 >a>}.o161 >a>.o162 >a>static int pa href="+code=carmine_setcolreg" class="sref">carmine_setcolregp/a>(unsigned pa href="+code=regno" class="sref">regno >a>, unsigned pa href="+code=red" class="sref">red >a>, unsigned pa href="+code=green" class="sref">green >a>,.o163 >a>/o ooooo/o ooooounsigned pa href="+code=blue" class="sref">blue >a>, unsigned pa href="+code=transp" class="sref">transp >a>, struct pa href="+code=fb_info" class="sref">fb_info >a>/*pa href="+code=info" class="sref">info >a>).o164 >a>{.o165 >a>/o oooooif (pa href="+code=regno" class="sref">regno >a> >=o16).o166 >a>/o ooooo/o oooooreturn 1;.o167p/a>.o168 >a>/o ooooopa href="+code=red" class="sref">red >a> >>= 8;.o169 >a>/o ooooopa href="+code=green" class="sref">green >a> >>= 8;.o170 >a>/o ooooopa href="+code=blue" class="sref">blue >a> >>= 8;.o171 >a>/o ooooopa href="+code=transp" class="sref">transp >a> >>= 8;.o172p/a>.o173 >a>/o ooooo((pa href="+code=__be32" class="sref">__be32 >a>/*)pa href="+code=info" class="sref">info >a>->pa href="+code=pseudo_palette" class="sref">pseudo_palette >a>)[pa href="+code=regno" class="sref">regno >a>]/= pa href="+code=cpu_to_be32" class="sref">cpu_to_be32p/a>(pa href="+code=transp" class="sref">transp >a> << 24 |.o174 >a>/o ooooo/o ooooopa href="+code=red" class="sref">red >a> << 0/| pa href="+code=green" class="sref">green >a> << 8/| pa href="+code=blue" class="sref">blue >a> << 16);.o175 >a>/o oooooreturn 0;.o176p/a>}.o177p/a>.o178p/a>static int pa href="+code=carmine_check_var" class="sref">carmine_check_varp/a>(struct pa href="+code=fb_var_screeninfo" class="sref">fb_var_screeninfo >a>/*pa href="+code=var" class="sref">var >a>,.o179 >a>/o ooooo/o ooooostruct pa href="+code=fb_info" class="sref">fb_info >a>/*pa href="+code=info" class="sref">info >a>).o180p/a>{.o181 >a>/o oooooint pa href="+code=ret" class="sref">ret >a>;.o182p/a>.o183 >a>/o ooooopa href="+code=ret" class="sref">ret >a>/= pa href="+code=carmine_find_mode" class="sref">carmine_find_modep/a>(pa href="+code=var" class="sref">var >a>);.o184 >a>/o oooooif (pa href="+code=ret" class="sref">ret >a>/< 0).o185 >a>/o ooooo/o oooooreturn pa href="+code=ret" class="sref">ret >a>;.o186p/a>.o187 >a>/o oooooif (pa href="+code=var" class="sref">var >a>->pa href="+code=grayscale" class="sref">grayscale >a>/|| pa href="+code=var" class="sref">var >a>->pa href="+code=rotate" class="sref">rotate >a>/|| pa href="+code=var" class="sref">var >a>->pa href="+code=nonstd" class="sref">nonstd >a>).o188 >a>/o ooooo/o oooooreturn -pa href="+code=EINVAL" class="sref">EINVAL >a>;.o189p/a>.o190 >a>/o ooooopa href="+code=var" class="sref">var >a>->pa href="+code=xres_virtual" class="sref">xres_virtual >a>/= pa href="+code=var" class="sref">var >a>->pa href="+code=xres" class="sref">xres >a>;.o191 >a>/o ooooopa href="+code=var" class="sref">var >a>->pa href="+code=yres_virtual" class="sref">yres_virtual >a>/= pa href="+code=var" class="sref">var >a>->pa href="+code=yres" class="sref">yres >a>;.o192p/a>.o193 >a>/o ooooopa href="+code=var" class="sref">var >a>->pa href="+code=bits_per_pixel" class="sref">bits_per_pixel >a>/= 32;.o194p/a>.o195 >a>#ifdefopa href="+code=__BIG_ENDIAN" class="sref">__BIG_ENDIAN >a>.o196 >a>/o ooooopa href="+code=var" class="sref">var >a>->pa href="+code=transp" class="sref">transp >a>.pa href="+code=offset" class="sref">offset >a> = 24;.o197 >a>/o ooooopa href="+code=var" class="sref">var >a>->pa href="+code=red" class="sref">red >a>.pa href="+code=offset" class="sref">offset >a> = 0;.o198 >a>/o ooooopa href="+code=var" class="sref">var >a>->pa href="+code=green" class="sref">green >a>.pa href="+code=offset" class="sref">offset >a> = 8;.o199 >a>/o ooooopa href="+code=var" class="sref">var >a>->pa href="+code=blue" class="sref">blue >a>.pa href="+code=offset" class="sref">offset >a> = 16;.o200p/a>#else.o201 >a>/o ooooopa href="+code=var" class="sref">var >a>->pa href="+code=transp" class="sref">transp >a>.pa href="+code=offset" class="sref">offset >a> = 24;.o202 >a>/o ooooopa href="+code=var" class="sref">var >a>->pa href="+code=red" class="sref">red >a>.pa href="+code=offset" class="sref">offset >a> = 16;.o203 >a>/o ooooopa href="+code=var" class="sref">var >a>->pa href="+code=green" class="sref">green >a>.pa href="+code=offset" class="sref">offset >a> = 8;.o204 >a>/o ooooopa href="+code=var" class="sref">var >a>->pa href="+code=blue" class="sref">blue >a>.pa href="+code=offset" class="sref">offset >a> = 0;.o205 >a>#endif.o206p/a>.o207 >a>/o ooooopa href="+code=var" class="sref">var >a>->pa href="+code=red" class="sref">red >a>.pa href="+code=length" class="sref">length >a> = 8;.o208 >a>/o ooooopa href="+code=var" class="sref">var >a>->pa href="+code=green" class="sref">green >a>.pa href="+code=length" class="sref">length >a> = 8;.o209 >a>/o ooooopa href="+code=var" class="sref">var >a>->pa href="+code=blue" class="sref">blue >a>.pa href="+code=length" class="sref">length >a> = 8;.o210 >a>/o ooooopa href="+code=var" class="sref">var >a>->pa href="+code=transp" class="sref">transp >a>.pa href="+code=length" class="sref">length >a> = 8;.o211 >a>.o212 >a>/o ooooopa href="+code=var" class="sref">var >a>->pa href="+code=red" class="sref">red >a>.pa href="+code=msb_right" class="sref">msb_right >a> = 0;.o213 >a>/o ooooopa href="+code=var" class="sref">var >a>->pa href="+code=green" class="sref">green >a>.pa href="+code=msb_right" class="sref">msb_right >a> = 0;.o214 >a>/o ooooopa href="+code=var" class="sref">var >a>->pa href="+code=blue" class="sref">blue >a>.pa href="+code=msb_right" class="sref">msb_right >a> = 0;.o215 >a>/o ooooopa href="+code=var" class="sref">var >a>->pa href="+code=transp" class="sref">transp >a>.pa href="+code=msb_right" class="sref">msb_right >a> = 0;.o216 >a>/o oooooreturn 0;.o217 >a>}.o218p/a>.o219p/a>static void pa href="+code=carmine_init_display_param" class="sref">carmine_init_display_paramp/a>(struct pa href="+code=carmine_fb" class="sref">carmine_fb >a>/*pa href="+code=par" class="sref">par >a>).o220p/a>{.o221 >a>/o ooooopa href="+code=u32" class="sref">u32p/a>opa href="+code=width" class="sref">width >a>;.o222 >a>/o ooooopa href="+code=u32" class="sref">u32p/a>opa href="+code=height" class="sref">height >a>;.o223 >a>/o ooooopa href="+code=u32" class="sref">u32p/a>opa href="+code=param" class="sref">paramp/a>;.o224 >a>/o ooooopa href="+code=u32" class="sref">u32p/a>opa href="+code=window_size" class="sref">window_sizep/a>;.o225 >a>/o ooooopa href="+code=u32" class="sref">u32p/a>opa href="+code=soffset" class="sref">soffset >a> = pa href="+code=par" class="sref">par >a>->pa href="+code=smem_offset" class="sref">smem_offset >a>;.o226p/a>.o227 >a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG_C_TRANS" class="sref">CARMINE_DISP_REG_C_TRANS >a>, 0);.o228 >a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG_MLMR_TRANS" class="sref">CARMINE_DISP_REG_MLMR_TRANS >a>, 0);.o229 >a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG_CURSOR_MODE" class="sref">CARMINE_DISP_REG_CURSOR_MODE >a>,.o230 >a>/o ooooo/o ooooo/o ooooopa href="+code=CARMINE_CURSOR0_PRIORITY_MASK" class="sref">CARMINE_CURSOR0_PRIORITY_MASK >a>/|.o231 >a>/o ooooo/o ooooo/o ooooopa href="+code=CARMINE_CURSOR1_PRIORITY_MASK" class="sref">CARMINE_CURSOR1_PRIORITY_MASK >a>/|.o232 >a>/o ooooo/o ooooo/o ooooopa href="+code=CARMINE_CURSOR_CUTZ_MASK" class="sref">CARMINE_CURSOR_CUTZ_MASK >a>);.o233p/a>.o234 >a>/o ooooopspa. class="comment">/* Set default cursor posion>
 */p/spa.4.o235 >a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG_CUR1_POS" class="sref">CARMINE_DISP_REG_CUR1_POS >a>, 0 << 16 | 0);.o236 >a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG_CUR2_POS" class="sref">CARMINE_DISP_REG_CUR2_POS >a>, 0 << 16 | 0);.o237p/a>.o238 >a>/o ooooopspa. class="comment">/* Set default display mode */p/spa.4.o239 >a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG_L0_EXT_MODE" class="sref">CARMINE_DISP_REG_L0_EXT_MODE >a>, pa href="+code=CARMINE_WINDOW_MODE" class="sref">CARMINE_WINDOW_MODE >a>/|.o240 >a>/o ooooo/o ooooo/o ooooopa href="+code=CARMINE_EXT_CMODE_DIRECT24_RGBA" class="sref">CARMINE_EXT_CMODE_DIRECT24_RGBA >a>);.o241 >a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG_L1_EXT_MODE" class="sref">CARMINE_DISP_REG_L1_EXT_MODE >a>,.o242 >a>/o ooooo/o ooooo/o ooooopa href="+code=CARMINE_EXT_CMODE_DIRECT24_RGBA" class="sref">CARMINE_EXT_CMODE_DIRECT24_RGBA >a>);.o243 >a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG_L2_EXT_MODE" class="sref">CARMINE_DISP_REG_L2_EXT_MODE >a>, pa href="+code=CARMINE_EXTEND_MODE" class="sref">CARMINE_EXTEND_MODE >a>/|.o244 >a>/o ooooo/o ooooooooooooopa href="+code=CARMINE_EXT_CMODE_DIRECT24_RGBA" class="sref">CARMINE_EXT_CMODE_DIRECT24_RGBA >a>);.o245 >a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG_L3_EXT_MODE" class="sref">CARMINE_DISP_REG_L3_EXT_MODE >a>, pa href="+code=CARMINE_EXTEND_MODE" class="sref">CARMINE_EXTEND_MODE >a>/|.o246 >a>/o ooooo/o ooooooooooooopa href="+code=CARMINE_EXT_CMODE_DIRECT24_RGBA" class="sref">CARMINE_EXT_CMODE_DIRECT24_RGBA >a>);.o247 >a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG_L4_EXT_MODE" class="sref">CARMINE_DISP_REG_L4_EXT_MODE >a>, pa href="+code=CARMINE_EXTEND_MODE" class="sref">CARMINE_EXTEND_MODE >a>/|.o248 >a>/o ooooo/o ooooooooooooopa href="+code=CARMINE_EXT_CMODE_DIRECT24_RGBA" class="sref">CARMINE_EXT_CMODE_DIRECT24_RGBA >a>);.o249 >a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG_L5_EXT_MODE" class="sref">CARMINE_DISP_REG_L5_EXT_MODE >a>, pa href="+code=CARMINE_EXTEND_MODE" class="sref">CARMINE_EXTEND_MODE >a>/|.o250 >a>/o ooooo/o ooooo/o ooooopa href="+code=CARMINE_EXT_CMODE_DIRECT24_RGBA" class="sref">CARMINE_EXT_CMODE_DIRECT24_RGBA >a>);.o251 >a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG_L6_EXT_MODE" class="sref">CARMINE_DISP_REG_L6_EXT_MODE >a>, pa href="+code=CARMINE_EXTEND_MODE" class="sref">CARMINE_EXTEND_MODE >a>/|.o252 >a>/o ooooo/o ooooo/o ooooopa href="+code=CARMINE_EXT_CMODE_DIRECT24_RGBA" class="sref">CARMINE_EXT_CMODE_DIRECT24_RGBA >a>);.o253 >a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG_L7_EXT_MODE" class="sref">CARMINE_DISP_REG_L7_EXT_MODE >a>, pa href="+code=CARMINE_EXTEND_MODE" class="sref">CARMINE_EXTEND_MODE >a>/|.o254 >a>/o ooooo/o ooooooooooooopa href="+code=CARMINE_EXT_CMODE_DIRECT24_RGBA" class="sref">CARMINE_EXT_CMODE_DIRECT24_RGBA >a>);.o255 >a>.o256 >a>/o ooooopspa. class="comment">/* Set default fram< size to layer mode register */p/spa.4.o257 >a>/o ooooopa href="+code=width" class="sref">width >a> = pa href="+code=par" class="sref">par >a>->pa href="+code=res" class="sref">res >a>->pa href="+code=hdp" class="sref">hdp >a> * 4 / pa href="+code=CARMINE_DISWImT
_UNITDE" class="sref">CARMINE_DISWImT
_UNITet >a>;.a>/o ooooopa href="+code=width" class="sref">width >a> = pa href="+code=width" class="sref">width >a0 <</ pa href="+code=CARMINE_DISWImT
_SHIFTDE" class="sref">CARMINE_DISWImT
_SHIFTet >a>;..a>/o ooooopa href="+code=height" class="sref">height >a> = pa href="+code=par" class="sref">par >a>->pa href="+code=res" class="sref">res >a>->pa href="+code=vdp" class="sref">vdp >a-rn 1;.a>/o ooooopa href="+code=param" class="sref">paramp/a> = pa href="+code=width" class="sref">width >a/|| pa href="+code=height" class="sref">height >a>;..a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG0ND_MO_W_HDE" class="sref">CARMINE_DISP_REG_LD_MO_W_Har >a>, pa href="+code=param" class="sref">paramp/a>);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG_LWImT
DE" class="sref">CARMINE_DISP_REG_LWImT
ar >a>, pa href="+code=width" class="sref">width >a>);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG2ND_MO_W_HDE" class="sref">CARMINE_DISP_REG2LD_MO_W_Har >a>, pa href="+code=param" class="sref">paramp/a>);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REL3ND_MO_W_HDE" class="sref">CARMINE_DISP_REG3LD_MO_W_Har >a>, pa href="+code=param" class="sref">paramp/a>);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG_LD_MO_W_HDE" class="sref">CARMINE_DISP_REG4LD_MO_W_Har >a>, pa href="+code=param" class="sref">paramp/a>);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG_LD_MO_W_HDE" class="sref">CARMINE_DISP_REG5LD_MO_W_Har >a>, pa href="+code=param" class="sref">paramp/a>);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG_LD_MO_W_HDE" class="sref">CARMINE_DISP_REG6LD_MO_W_Har >a>, pa href="+code=param" class="sref">paramp/a>);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG_LD_MO_W_HDE" class="sref">CARMINE_DISP_REG7LD_MO_W_Har >a>, pa href="+code=param" class="sref">paramp/a>);.a>.a>/o ooooopspa. class="comment">/* Set defaulpos andm< sizr */p/spa.4.a>/o ooooopa href="+code=window_size" class="sref">window_sizep/a> a>(pa href="+code=par" class="sref">par >a>->pa href="+code=res" class="sref">res >a>->pa href="+code=vdp" class="sref">vdp >a-rn)a0 <</ pa href="+code=CARMINE_DISWIN_
_SHIFTDE" class="sref">CARMINE_DISWIN_
_SHIFTht >a>;.a>/o ooooopa href="+code=window_size" class="sref">window_sizep/a|> = pa href="+code=par" class="sref">par >a>->pa href="+code=res" class="sref">res >a>->pa href="+code=hdp" class="sref">hdp >a>;.a>.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REL0SWIN_2_POS" class="sref">CARMINE_DISP_REL0SWIN_2_Par >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG0SWIN_Y_SIZE" class="srefe=CARMINE_DISP_REG0SWIN_Y_SIar >a>, pa href="+code=window_size" class="sref">window_sizep/ 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG1SWIN_2_POS" class="sref">CARMINE_DISP_REL1SWIN_2_Par >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG1SWIN_Y_SIZE" class="srefe=CARMINE_DISP_REG1SWIN_Y_SIar >a>, pa href="+code=window_size" class="sref">window_sizep/ 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG2SWIN_2_POS" class="sref">CARMINE_DISP_REL2SWIN_2_Par >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG2SWIN_Y_SIZE" class="srefe=CARMINE_DISP_REG2SWIN_Y_SIar >a>, pa href="+code=window_size" class="sref">window_sizep/ 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REL3NWIN_2_POS" class="sref">CARMINE_DISP_REL3SWIN_2_Par >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REL3NWIN_Y_SIZE" class="srefe=CARMINE_DISP_REG3SWIN_Y_SIar >a>, pa href="+code=window_size" class="sref">window_sizep/ 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG4NWIN_2_POS" class="sref">CARMINE_DISP_REL4SWIN_2_Par >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG4NWIN_Y_SIZE" class="srefe=CARMINE_DISP_REG4SWIN_Y_SIar >a>, pa href="+code=window_size" class="sref">window_sizep/ 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REL5NWIN_2_POS" class="sref">CARMINE_DISP_REL5SWIN_2_Par >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG5NWIN_Y_SIZE" class="srefe=CARMINE_DISP_REG5SWIN_Y_SIar >a>, pa href="+code=window_size" class="sref">window_sizep/ 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG6NWIN_2_POS" class="sref">CARMINE_DISP_REL6SWIN_2_Par >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG6NWIN_Y_SIZE" class="srefe=CARMINE_DISP_REG6SWIN_Y_SIar >a>, pa href="+code=window_size" class="sref">window_sizep/ 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG_LWIN_2_POS" class="sref">CARMINE_DISP_REL7SWIN_2_Par >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG_LWIN_Y_SIZE" class="srefe=CARMINE_DISP_REG7SWIN_Y_SIar >a>, pa href="+code=window_size" class="sref">window_sizep/ 0);..a>/o ooooopspa. class="comment">/* Set defaulorigin addresszr */p/spa.4.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG0_ORG_ADRZE" class="srefe=CARMINE_DISP_REG0SORG_ADRar >a>, pa href="+code=soffset" class="sref">soffset > 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG1_ORG_ADRZE" class="srefe=CARMINE_DISP_REG1SORG_ADRar >a>, pa href="+code=soffset" class="sref">soffset > 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG2SORG_ADR1ZE" class="srefe=CARMINE_DISP_REG2SORG_ADR1ar >a>, pa href="+code=soffset" class="sref">soffset > 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REL3NORG_ADR1ZE" class="srefe=CARMINE_DISP_REG3SORG_ADR1ar >a>, pa href="+code=soffset" class="sref">soffset > 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG4NORG_ADR1ZE" class="srefe=CARMINE_DISP_REG4SORG_ADR1ar >a>, pa href="+code=soffset" class="sref">soffset > 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG5NORG_ADR1ZE" class="srefe=CARMINE_DISP_REG5SORG_ADR1ar >a>, pa href="+code=soffset" class="sref">soffset > 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG6NORG_ADR1ZE" class="srefe=CARMINE_DISP_REG6SORG_ADR1ar >a>, pa href="+code=soffset" class="sref">soffset > 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG_LORG_ADR1ZE" class="srefe=CARMINE_DISP_REG7SORG_ADR1ar >a>, pa href="+code=soffset" class="sref">soffset > 0);..a>/o ooooopspa. class="comment">/* Set default displaaddresszr */p/spa.4.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG0_E_DISADRZE" class="srefe=CARMINE_DISP_REG0SE_DISADRar >a>, pa href="+code=soffset" class="sref">soffset > 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG2SE_DISADR1ZE" class="srefe=CARMINE_DISP_REG2SE_DISADR1ar >a>, pa href="+code=soffset" class="sref">soffset > 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG3SE_DISADR1ZE" class="srefe=CARMINE_DISP_REG3SE_DISADR1ar >a>, pa href="+code=soffset" class="sref">soffset > 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG4NE_DISADR1ZE" class="srefe=CARMINE_DISP_REG4SE_DISADR1ar >a>, pa href="+code=soffset" class="sref">soffset > 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG5NE_DISADR1ZE" class="srefe=CARMINE_DISP_REG5SE_DISADR1ar >a>, pa href="+code=soffset" class="sref">soffset > 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG6NE_DISADR0ZE" class="srefe=CARMINE_DISP_REG6NE_DISADR0ar >a>, pa href="+code=soffset" class="sref">soffset > 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG_LE_DISADR0ZE" class="srefe=CARMINE_DISP_REG7NE_DISADR0ar >a>, pa href="+code=soffset" class="sref">soffset > 0);.a>.a>/o ooooopspa. class="comment">/* Set default displar posion>
 */p/spa.4.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG0_E_DIS2_POS" class="sref">CARMINE_DISP_REL0SE_DIS2_Par >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG2SE_DIS2_POS" class="sref">CARMINE_DISP_REL2SE_DIS2_Par >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG3SE_DIS2_POS" class="sref">CARMINE_DISP_REL3SE_DIS2_Par >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG4SE_DIS2_POS" class="sref">CARMINE_DISP_REL4SE_DIS2_Par >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG5SE_DIS2_POS" class="sref">CARMINE_DISP_REL5SE_DIS2_Par >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG6SE_DIS2_POS" class="sref">CARMINE_DISP_REL6SE_DIS2_Par >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG7SE_DIS2_POS" class="sref">CARMINE_DISP_REL7SE_DIS2_Par >a>| 0);.a>/o ooooopspa. class="comment">/* Set defaulblenday mode */p/spa.4.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REBLXTEND_MOEL0OS" class="sref">CARMINE_DISP_REBLXTEND_MOEL0ar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REBLXTEND_MOEL1ZE" class="srefe=CARMINE_DISP_REBLXTEND_MOEL1ar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REBLXTEND_MOELu32" class="srefe=CARMINE_DISP_REBLXTEND_MOELuar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REBLXTEND_MOEL332" class="srefe=CARMINE_DISP_REBLXTEND_MOEL3ar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REBLXTEND_MOEL432" class="srefe=CARMINE_DISP_REBLXTEND_MOEL4ar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REBLXTEND_MOEL532" class="srefe=CARMINE_DISP_REBLXTEND_MOEL5ar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REBLXTEND_MOEL632" class="srefe=CARMINE_DISP_REBLXTEND_MOEL6ar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REBLXTEND_MOEL732" class="srefe=CARMINE_DISP_REBLXTEND_MOEL7ar >a>| 0);.a>/o ooooopspa. class="comment">/t defaul">tranarenclay mode */p/spa.4.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REL0MR_TRANS" class="sref">CARMINE_DISP_REL0MR_TRAar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REL1MR_TRANS" class="sref">CARMINE_DISP_REL1MR_TRAar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REL2MR_TRANS" class="sref">CARMINE_DISP_REL2MR_TRAar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REL3MR_TRANS" class="sref">CARMINE_DISP_REL3MR_TRAar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REL4MR_TRANS" class="sref">CARMINE_DISP_REL4MR_TRAar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REL5MR_TRANS" class="sref">CARMINE_DISP_REL5MR_TRAar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REL6MR_TRANS" class="sref">CARMINE_DISP_REL6MR_TRAar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG7MR_TRANS" class="sref">CARMINE_DISP_REL7MR_TRAar >a>| 0);.a>/o ooooopspa. class="comment">/* Set defaulread skip ">pareister */p/spa.4.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REL0RMNS" class="sref">CARMINE_DISP_REL0RMar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG_RMNS" class="sref">CARMINE_DISP_REL2RMar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REL3RMNS" class="sref">CARMINE_DISP_REL3RMar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG4RMNS" class="sref">CARMINE_DISP_REL4RMar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REL5RMNS" class="sref">CARMINE_DISP_REL5RMar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG6RMNS" class="sref">CARMINE_DISP_REL6RMar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REL7RMNS" class="sref">CARMINE_DISP_REL7RMar >a>| 0);..a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG0PXNS" class="sref">CARMINE_DISP_REL0PXar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG2PXNS" class="sref">CARMINE_DISP_REL2PXar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REL3PXNS" class="sref">CARMINE_DISP_REL3PXar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG4PXNS" class="sref">CARMINE_DISP_REL4PXar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REL5PXNS" class="sref">CARMINE_DISP_REL5PXar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG6PXNS" class="sref">CARMINE_DISP_REL6PXar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REL7PXNS" class="sref">CARMINE_DISP_REL7PXar >a>| 0);..a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG0PYNS" class="sref">CARMINE_DISP_REL0PYar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG2PYNS" class="sref">CARMINE_DISP_REL2PYar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REL3PYNS" class="sref">CARMINE_DISP_REL3PYar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG4PYNS" class="sref">CARMINE_DISP_REL4PYar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REL5PYNS" class="sref">CARMINE_DISP_REL5PYar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG6PYNS" class="sref">CARMINE_DISP_REL6PYar >a>| 0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REG7PYNS" class="sref">CARMINE_DISP_REL7PYar >a>| 0);.});.);.static void>, pa href="+code_set_dilay_">pareistres" class="srefe_set_dilay_">pareistregp/astructooopa href="+code/carmi_fbeg" class="sref"/carmi_fb24 >a*>(pa href="+code=par" class="sref">par >));.{);.a>/o ooooopa href="+coduL232" class="srefu3222 >aoopa href="+cody mo32" class="srefy mo22 >0);.a>/o ooooopa href="+coduL232" class="srefu3222 >aoopa href="+code=hdp" class="sref">hdp >a>, pa href="+code=vdp" class="sref">vdp >a>, pa href="+codhthdp" class="sref"tvdp >a>, pa href="+codhshdp" class="sref"svdp >a>, pa href="+codhswdp" class="sref"swdp >a>, pa href="+codetpar" class="srefetpdp >a>, pa href="+codeshdp" class="srefvsvdp >a>, pa href="+codvswdp" class="srefvswdp >0);.a>.a>/o ooooopspa. class="comment">*/p/spa.4.oopspa. class="commenta>/o ooo *lt displatiarmg. P>pareistr are decreased by one because hardware*/p/spa.4.oopspa. class="commenta>/o ooo *lspec is 0ze t(na-rn)*/p/spa.4.oopspa. class="commenta>/o ooo *lr */p/spa.4.a>/o ooooopa href="+code=hdp" class="sref">hdp >a> = pa href="+code=par" class="sref">par >a>->pa href="+code=res" class="sref">res >a>->pa href="+code=hdp" class="sref">hdp >a-rn 1;.a>/o ooooopa href="+code=vdp" class="sref">vdp >a> = pa href="+code=par" class="sref">par >a>->pa href="+code=res" class="sref">res >a>->pa href="+code=vdp" class="sref">vdp >a-rn 1;.a>/o ooooopa href="+codhthdp" class="sref"tvdp >a> = pa href="+code=par" class="sref">par >a>->pa href="+code=res" class="sref">res >a>->pa href="+codethdp" class="sref"tvdp >a-rn 1;.a>/o ooooopa href="+codhshdp" class="sref"svdp >a> = pa href="+code=par" class="sref">par >a>->pa href="+code=res" class="sref">res >a>->pa href="+codeshdp" class="sref"svdp >a-rn 1;.a>/o ooooopa href="+codhswdp" class="sref"swdp >a> = pa href="+code=par" class="sref">par >a>->pa href="+code=res" class="sref">res >a>->pa href="+codeswdp" class="sref"swdp >a-rn 1;.a>/o ooooopa href="+codetpar" class="srefetpdp >a> = pa href="+code=par" class="sref">par >a>->pa href="+code=res" class="sref">res >a>->pa href="+codetpar" class="srefetpdp >a-rn 1;.a>/o ooooopa href="+codeshdp" class="srefvsvdp >a> = pa href="+code=par" class="sref">par >a>->pa href="+code=res" class="sref">res >a>->pa href="+codeshdp" class="srefvsvdp >a-rn 1;.a>/o ooooopa href="+codvswdp" class="srefvswdp >a> = pa href="+code=par" class="sref">par >a>->pa href="+code=res" class="sref">res >a>->pa href="+codeswdp" class="srefvswdp >a-rn 1;.1;.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REH_TOTALNS" class="sref">CARMINE_DISP_REH_TOTALar >a1;.a>/o ooooooooooooooooooot;pa href="+codethdp" class="sref"tvdp >a0 <</ pa href="+code=CARMINE_DISHTP_SHIFTDE" class="sref">CARMINE_DISHTP_SHIFTar >) 1;.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REH_PERIODNS" class="sref">CARMINE_DISP_REH_PERIODar >a1;.a>/o oooooooooooooooooooa>(pa href="+code=hdp" class="sref">hdp >a0 <</ pa href="+code=CARMINE_DISHDB_SHIFTDE" class="sref">CARMINE_DISHDB_SHIFTar >) |ooopa href="+code=hdp" class="sref">hdp >) 1;.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REVEH_WEH_P_POS" class="sref">CARMINE_DISP_REVEH_WEH_P_Par >a1;.a>/o oooooooooooooooooooa>(pa href="+codeswdp" class="srefvswdp >a0 <</ pa href="+code=CARMINE_DISVSW_SHIFTDE" class="sref">CARMINE_DISVSW_SHIFTar >) |1;.a>/o oooooooooooooooooooa>(pa href="+codeswdp" class="sref"swdp >a0 <</ pa href="+code=CARMINE_DISHSW_SHIFTDE" class="sref">CARMINE_DISHSW_SHIFTar >) |1;.a>/o oooooooooooooooooooa>(pa href="+codeshdp" class="sref"svdp >)) 1;.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REV_TOTALNS" class="sref">CARMINE_DISP_REV_TOTALar >a1;.a>/o ooooooooooooooooooot;pa href="+codetpar" class="srefetpdp >a0 <</ pa href="+code=CARMINE_DISVTR_SHIFTDE" class="sref">CARMINE_DISVTR_SHIFTdp >) 1;.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REV_PERIOD_P_POS" class="sref">CARMINE_DISP_REVEPERIOD_P_Par >a1;.a>/o oooooooooooooooooooa>(pa href="+code=vdp" class="sref">vdp >a0 <</ pa href="+code=CARMINE_DISVDP_SHIFTDE" class="sref">CARMINE_DISVDP_SHIFTar >) |ooopa href="+codeshdp" class="srefvsvdp >) 1;..a>/o ooooopspa. class="comment">/clocklr */p/spa.4.a>/o ooooopa href="+cody mo32" class="srefy mo22 >a> = pa href="+codc_g_set_disp_reg" class="sref">g_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REDCM1ZE" class="srefe=CARMINE_DISP_REDCM1dp >) 1;.a>/o ooooopa href="+cody mo32" class="srefy mo22 >a> a>(pa href="+cody mo32" class="srefy mo22 >a& ~, pa href="+code=CARMINE_DISDCM_MASKZE" class="srefe=CARMINE_DISDCM_MASKar >) |1;.a>/o oooooooooooa>(pa href="+code=par" class="sref">par >a>->pa href="+code=res" class="sref">res >a>->pa href="+codt_disy mo32" class="sreft_disy mo22 >a& , pa href="+code=CARMINE_DISDCM_MASKZE" class="srefe=CARMINE_DISDCM_MASKar >) 1;.a>/o ooooopspa. class="comment">/enable s/vid output and layer 0lr */p/spa.4.a>/o ooooopa href="+cody mo32" class="srefy mo22 >a|> = pa href="+code=CARMINEENZE" class="srefe=CARMINEEN22 >a| = pa href="+code=CARMINL0EZE" class="srefe=CARMINL0Edp >0);.a>/o ooooopa href="+code=c_set_disp_reg" class="sref">c_set_disp_regp/a>(pa href="+code=par" class="sref">par >a>, pa href="+code=CARMINE_DISP_REDCM1ZE" class="srefe=CARMINE_DISP_REDCM1dp >a>, pa href="+cody mo32" class="srefy mo22 >) 1;.});.);.static intooopa href="+code/carmi_c_see=par" class="srefe/carmi_c_see=pegp/astructooopa href="+codfb_infoar" class="sreffb_info04 >a*>(pa href="+codinfoar" class="srefinfo04 >));.{);.a>/o ooostructooopa href="+code/carmi_fbeg" class="sref"/carmi_fb24 >a*>(pa href="+code=par" class="sref">par >a> = pa href="+codinfoar" class="srefinfo04 >a>->pa href="+code=par" class="sref">par > 1;.a>/o ooointooopa href="+codrfset" class="srefrfset > 1;.a>.a>/o ooooopa href="+codrfset" class="srefrfset >a> = pa href="+codc/carmi_findsy mo32" class="srefc/carmi_findsy moegp/a&= pa href="+codinfoar" class="srefinfo04 >a>->pa href="+codv=par" class="srefv>par >) 1;.a>/o oooifoa>(pa href="+codrfset" class="srefrfset >at;<0));.a>/o ooooooooooorfsurnooopa href="+codrfset" class="srefrfset > 1;.1;.a>/o ooooopa href="+code=par" class="sref">par >a>->pa href="+codnewsy mo32" class="srefnewsy moet >a> = pa href="+codrfset" class="srefrfset > 1;.a>/o oooifoa>(pa href="+code=par" class="sref">par >a>->pa href="+codcursy mo32" class="srefcursy mo07 >a!> = pa href="+code=par" class="sref">par >a>->pa href="+codnewsy mo32" class="srefnewsy moet >) {);.);.a>/o oooa>/o ooooopa href="+code=par" class="sref">par >a>->pa href="+codcursy mo32" class="srefcursy mo07 >a> = pa href="+code=par" class="sref">par >a>->pa href="+codnewsy mo32" class="srefnewsy moet > 1;.a>/o ooooooooooo>(pa href="+code=par" class="sref">par >a>->pa href="+code=res" class="sref">res >a> &= pa href="+codo/csy mores" class="srefo/csy mores >[= pa href="+code=par" class="sref">par >a>->pa href="+codnewsy mo32" class="srefnewsy moet >] 1;.a>.a>/o ooooooooooo= pa href="+codc/carmi_iniset_dilay_">par32" class="srefc/carmi_iniset_dilay_">paregp/a>(pa href="+code=par" class="sref">par >) 1;.a>/o ooooooooooo= pa href="+code_set_dilay_">pareistres" class="srefe_set_dilay_">pareistregp/a>(pa href="+code=par" class="sref">par >) 1;.a>/o ooo});.1;.a>/o ooooopa href="+codinfoar" class="srefinfo04 >a>->pa href="+codfixar" class="sreffix04 >.t;pa href="+cod="li_lengthar" class="sref="li_lengthar >a> = pa href="+codinfoar" class="srefinfo04 >a>->pa href="+codv=par" class="srefv>par >.t;pa href="+codxe=res" class="srefx">res >a* = pa href="+codinfoar" class="srefinfo04 >a>->pa href="+codv=par" class="srefv>par >.t;pa href="+codbits_per_pixelar" class="srefbits_per_pixeles >a/ 8 1;.a>/o ooorfsurno0 1;.});..{);.a>/o ooooopa href="+coduL232" class="srefu3222 >aoopa href="+codflagres" class="srefflagret > 1;.a>/o ooooopa href="+coduL232" class="srefu3222 >aoopa href="+codloopres" class="srefloopret > 1;.a>/o ooooopa href="+coduL232" class="srefu3222 >aoopa href="+codrfset" class="srefrfset > 1;.1;.a>/o ooooopspa. class="comment">/Inisialize C/carmilr */p/spa.4.a>/o ooooopspa. class="comment">/* Ss internal/clocklr */p/spa.4.a>/o ooooopa href="+code=c_sehwsp_reg" class="sref">c_sehwsp_regp/a>(pa href="+codhwdp" class="srefhw24 >a>, pa href="+code=CARMINCTLSP_RZE" class="srefe=CARMINCTLSP_R28 >a+>, pa href="+code=CARMINCTLSP_R_CLOCK_ENABLEZE" class="srefe=CARMINCTLSP_R_CLOCK_ENABLEar >a1;.a>/o oooa>/o oooa>/o ooooopa href="+code=CARMINEFLT_IP_CLOCK_ENABLEZE" class="srefe=CARMINEFLT_IP_CLOCK_ENABLEar >) 1;.a>/o ooooopspa. class="comment">/V/vid signal/output is surned offlr */p/spa.4.a>/o ooooopa href="+code=c_sehwsp_reg" class="sref">c_sehwsp_regp/a>(pa href="+codhwdp" class="srefhw24 >a>, pa href="+code=CARMINE_DI0SP_RZE" class="srefe=CARMINE_DI0SP_R28 >a+>, pa href="+code=CARMINE_DISP_REDCM1ZE" class="srefe=CARMINE_DISP_REDCM1dp >a>| 0);.a>/o ooooopa href="+code=c_sehwsp_reg" class="sref">c_sehwsp_regp/a>(pa href="+codhwdp" class="srefhw24 >a>, pa href="+code=CARMINE_DI1SP_RZE" class="srefe=CARMINE_DI1SP_R28 >a+>, pa href="+code=CARMINE_DISP_REDCM1ZE" class="srefe=CARMINE_DISP_REDCM1dp >a>| 0);.1;.a>/o ooooopspa. class="comment">/*oftwareorfc_slr */p/spa.4.a>/o ooooopa href="+code=c_sehwsp_reg" class="sref">c_sehwsp_regp/a>(pa href="+codhwdp" class="srefhw24 >a>, pa href="+code=CARMINCTLSP_RZE" class="srefe=CARMINCTLSP_R28 >a+>, pa href="+code=CARMINCTLSP_R_SOFTWARESP_SETDE" class="sref">CARMINCTLSP_R_SOFTWARESP_SET24 >a>1 0);.a>/o ooooopa href="+code=c_sehwsp_reg" class="sref">c_sehwsp_regp/a>(pa href="+codhwdp" class="srefhw24 >a>, pa href="+code=CARMINCTLSP_RZE" class="srefe=CARMINCTLSP_R28 >a+>, pa href="+code=CARMINCTLSP_R_SOFTWARESP_SETDE" class="sref">CARMINCTLSP_R_SOFTWARESP_SET24 >a>| 0);.);.a>/o ooooopspa. class="comment">/I/Oay modc_stingslr */p/spa.4.a>/o ooooopa href="+codflagres" class="srefflagret >a> = pa href="+code=CARMINEFLT_IP_DCTLSIO_CONT1ZE" class="srefe=CARMINEFLT_IP_DCTLSIO_CONT1et >at;<<16 |1;.a>/o ooooooooooo= pa href="+code=CARMINEFLT_IP_DCTLSIO_CONT0OS" class="sref">CARMINEFLT_IP_DCTLSIO_CONT0et > 1;.a>/o ooooopa href="+code=c_sehwsp_reg" class="sref">c_sehwsp_regp/a>(pa href="+codhwdp" class="srefhw24 >a>, pa href="+code=CARMINECTLSP_RZE" class="srefe=CARMINDCTLSP_R28 >a+>, pa href="+code=CARMINDCTLSP_RSIOCONT1SIOCONT0OS" class="sref">CARMINECTLSP_RSIOCONT1SIOCONT0ar >a1;.a>/o oooooooooooa>/o ooooopa href="+codflagres" class="srefflagret > 0);.1;.a>/o ooooopspa. class="comment">/DRAM inisialdc_quencilr */p/spa.4.a>/o ooooopa href="+codflagres" class="srefflagret >a> = pa href="+code=CARMINEFLT_IP_DCTLSD_MOOS" class="sref">CARMINEFLT_IP_DCTLSD_MOet >at;<<16 | = pa href="+code=CARMINEFLT_IP_DCTLSADDNS" class="sref">CARMINEFLT_IP_DCTLSADDet > 1;.a>/o ooooopa href="+code=c_sehwsp_reg" class="sref">c_sehwsp_regp/a>(pa href="+codhwdp" class="srefhw24 >a>, pa href="+code=CARMINECTLSP_RZE" class="srefe=CARMINDCTLSP_R28 >a+>, pa href="+code=CARMINDCTLSP_RSD_MOEADDNS" class="sref">CARMINECTLSP_RSD_MOEADDar >a1;.a>/o ooooooooooooooooooooopa href="+codflagres" class="srefflagret > 0);..a>/o ooooopa href="+codflagres" class="srefflagret >a> = pa href="+code=CARMINEFLT_IP_DCTLSSET_TIME1ZE" class="srefe=CARMINEFLT_IP_DCTLSSET_TIME1et >at;<<16 |1;.a>/o ooooooooooo= pa href="+code=CARMINEFLT_IP_DCTLSED_MOOS" class="sref">CARMINEFLT_IP_DCTLSED_MOet >0);.a>/o ooooopa href="+code=c_sehwsp_reg" class="sref">c_sehwsp_regp/a>(pa href="+codhwdp" class="srefhw24 >a>, pa href="+code=CARMINECTLSP_RZE" class="srefe=CARMINDCTLSP_R28 >a+>, pa href="+code=CARMINDCTLSP_RSSETTIME1SED_MOOS" class="sref">CARMINECTLSP_RSSETTIME1SED_MOar >a1;.a>/o oooooooooooa>/o ooooopa href="+codflagres" class="srefflagret > 0);.1;.a>/o ooooopa href="+codflagres" class="srefflagret >a> = pa href="+code=CARMINEFLT_IP_DCTLSREFP_SHOS" class="sref">CARMINEFLT_IP_DCTLSREFP_SHet >at;<<16 |1;.a>/o ooooooooooo= pa href="+code=CARMINEFLT_IP_DCTLSSET_TIMEu32" class="srefe=CARMINEFLT_IP_DCTLSSET_TIMEuet >0);.a>/o ooooopa href="+code=c_sehwsp_reg" class="sref">c_sehwsp_regp/a>(pa href="+codhwdp" class="srefhw24 >a>, pa href="+code=CARMINECTLSP_RZE" class="srefe=CARMINDCTLSP_R28 >a+>, pa href="+code=CARMINDCTLSP_RSREFP_SHSSETTIMEu32" class="srefe=CARMINECTLSP_RSREFP_SHSSETTIMEuar >a1;.a>/o ooooooooooooooooooooopa href="+codflagres" class="srefflagret > 0);..a>/o ooooopa href="+codflagres" class="srefflagret >a> = pa href="+code=CARMINEFLT_IP_DCTLSRESERVEu32" class="srefe=CARMINEFLT_IP_DCTLSRESERVEuet >at;<<16 |1;.a>/o ooooooooooo= pa href="+code=CARMINEFLT_IP_DCTLSFIFO_DEPTHOS" class="sref">CARMINEFLT_IP_DCTLSFIFO_DEPTHet >0);.a>/o ooooopa href="+code=c_sehwsp_reg" class="sref">c_sehwsp_regp/a>(pa href="+codhwdp" class="srefhw24 >a>, pa href="+code=CARMINECTLSP_RZE" class="srefe=CARMINDCTLSP_R28 >a+>, pa href="+code=CARMINDCTLSP_RSRSV2SRSV1ZE" class="srefe=CARMINECTLSP_RSRSV2SRSV124 >a>, pa href="+codflagres" class="srefflagret > 0);.);.a>/o ooooopa href="+codflagres" class="srefflagret >a> = pa href="+code=CARMINEFLT_IP_DCTLSDDRIFu32" class="srefe=CARMINEFLT_IP_DCTLSDDRIFuet >at;<<16 | = pa href="+code=CARMINEFLT_IP_DCTLSDDRIF1ZE" class="srefe=CARMINEFLT_IP_DCTLSDDRIF1et >0);.a>/o ooooopa href="+code=c_sehwsp_reg" class="sref">c_sehwsp_regp/a>(pa href="+codhwdp" class="srefhw24 >a>, pa href="+code=CARMINECTLSP_RZE" class="srefe=CARMINDCTLSP_R28 >a+>, pa href="+code=CARMINDCTLSP_RSDDRIFuSDDRIF1ZE" class="srefe=CARMINECTLSP_RSDDRIFuSDDRIF1ar >a1;.a>/o ooooooooooooooooooot;pa href="+codflagres" class="srefflagret > 0);..a>/o ooooopa href="+codflagres" class="srefflagret >a> = pa href="+code=CARMINEFLT_IP_DCTLSRESERVE0OS" class="sref">CARMINEFLT_IP_DCTLSRESERVE0et >at;<<16 |1;.a>/o oooa>/o ooooopa href="+code=CARMINEFLT_IP_DCTLSSTATEPOS" class="sref">CARMINEFLT_IP_DCTLSSTATEPet >0);.a>/o ooooopa href="+code=c_sehwsp_reg" class="sref">c_sehwsp_regp/a>(pa href="+codhwdp" class="srefhw24 >a>, pa href="+code=CARMINECTLSP_RZE" class="srefe=CARMINDCTLSP_R28 >a+>, pa href="+code=CARMINDCTLSP_RSRSV0SSTATEPOS" class="sref">CARMINECTLSP_RSRSV0SSTATEPar >a1;.a>/o ooooooooooooooooooot;pa href="+codflagres" class="srefflagret > 0);.);.a>/o ooooopspa. class="comment">/Executes DLLorfc_slr */p/spa.4.a>/o oooifoa>(pa href="+cod">CARMINECTLSDLLSP_SETDE" class="sref">CARMINECTLSDLLSP_SETet >  {);.a>/o oooooooooooforoa>(pa href="+codloopres" class="srefloopret >a> 0; , pa href="+codloopres" class="srefloopret >at;</ pa href="+code=CARMINECTLSINIT_WAIT_LIMITDE" class="sref">CARMINECTLSINIT_WAIT_LIMITet >0 , pa href="+codloopres" class="srefloopret >++  {);.);.a>/o ooooooooooooooooooot;pa href="+codrfset" class="srefrfset >a> = pa href="+codc>g_sehwsp_reg" class="sref">g_sehwsp_regp/a>(pa href="+codhwdp" class="srefhw24 >a>, pa href="+code=CARMINECTLSP_RZE" class="srefe=CARMINDCTLSP_R28 >a+);.a>/o oooooooooooooooooooa>/o oooa>/o ooooopa href="+code=CARMINECTLSP_RSRSV0SSTATEPOS" class="sref">CARMINECTLSP_RSRSV0SSTATEPar > 0);.a>/o oooa>/o oooa>/o ooooopa href="+codrfset" class="srefrfset >atamp;> = pa href="+code=CARMINECTLSP_RSSTATEP_MASKZE" class="srefe=CARMINECTLSP_RSSTATEP_MASKet >0);.a>/o oooooooooooooooooooifoa!oopa href="+codrfset" class="srefrfset >));.a>/o ooooooooooooooooooooooooooobreak0);.);.a>/o oooooooooooa>/o ooooopa href="+codmdelayet" class="srefmdelayegp/a>(pa href="+cod">CARMINECTLSINIT_WAIT_INTERVALNS" class="sref">CARMINECTLSINIT_WAIT_INTERVALar > 0);.a>/o ooooooooooo});.1;.a>/o oooooooooooifoa>(pa href="+codloopres" class="srefloopret >atgt;> = pa href="+code=CARMINECTLSINIT_WAIT_LIMITDE" class="sref">CARMINECTLSINIT_WAIT_LIMITet >  {);.a>/o ooooooooooooooooooot;pa href="+codprintkDE" class="srefprintkegp/a>(pa href="+codKERN_ERRDE" class="srefKERN_ERR47 >aoopspa. classstring">"DRAM inis failed\n"*/p/spa 0);.a>/o ooooooooooooooooooorfsurno->(pa href="+codEIODE" class="srefEIOet >0);.a>/o oooa>/o ooo});.a>/o ooo});.a>.a>/o ooooopa href="+codflagres" class="srefflagret >a> = pa href="+code=CARMINEFLT_IP_DCTLSD_MO_AFTSRSTDE" class="sref">CARMINEFLT_IP_DCTLSD_MO_AFTSRSTet >at;<<16 |1;.a>/o ooooooooooo= pa href="+code=CARMINEFLT_IP_DCTLSADDNS" class="sref">CARMINEFLT_IP_DCTLSADDet > 1;.a>/o ooooopa href="+code=c_sehwsp_reg" class="sref">c_sehwsp_regp/a>(pa href="+codhwdp" class="srefhw24 >a>, pa href="+code=CARMINECTLSP_RZE" class="srefe=CARMINDCTLSP_R28 >a+>, pa href="+code=CARMINDCTLSP_RSD_MOEADDNS" class="sref">CARMINECTLSP_RSD_MOEADDar >aot;pa href="+codflagres" class="srefflagret > 0);.1;.a>/o ooooopa href="+codflagres" class="srefflagret >a> = pa href="+code=CARMINEFLT_IP_DCTLSRESERVE0OS" class="sref">CARMINEFLT_IP_DCTLSRESERVE0et >at;<<16 |1;.a>/o ooooooooooooopa href="+code=CARMINEFLT_IP_DCTLSSTATEP_AFTSRSTDE" class="sref">CARMINEFLT_IP_DCTLSSTATEP_AFTSRSTet > 1;.a>/o ooooopa href="+code=c_sehwsp_reg" class="sref">c_sehwsp_regp/a>(pa href="+codhwdp" class="srefhw24 >a>, pa href="+code=CARMINECTLSP_RZE" class="srefe=CARMINDCTLSP_R28 >a+>, pa href="+code=CARMINDCTLSP_RSRSV0SSTATEPOS" class="sref">CARMINECTLSP_RSRSV0SSTATEPar >a1;.a>/o oooa>/o oooa>/o ooooopa href="+codflagres" class="srefflagret > 0);.a>/o ooooopspa. class="comment">/Inisialize the write backorfgisterlr */p/spa.4.a>/o ooooopa href="+code=c_sehwsp_reg" class="sref">c_sehwsp_regp/a>(pa href="+codhwdp" class="srefhw24 >a>, pa href="+code=CARMINWBSP_RZE" class="srefe=CARMINWBSP_R28 >a+>, pa href="+code=CARMINWBSP_RNWBMZE" class="srefe=CARMINWBSP_RNWBMar >a1;.a>/o oooooooooooa>/o ooooopa href="+code=CARMINWBSP_RNWBM_DEFAULTDE" class="sref">CARMINWBSP_RNWBM_DEFAULTet > 0);.1;.a>/o ooooopspa. class="comment">/Inisialize the Kottosorfgisterslr */p/spa.4.a>/o ooooopa href="+code=c_sehwsp_reg" class="sref">c_sehwsp_regp/a>(pa href="+codhwdp" class="srefhw24 >a>, pa href="+code=CARMINGRAPHSP_RZE" class="srefe=CARMINGRAPHSP_R28 >a+>, pa href="+code=CARMINGRAPHSP_R_VRINTMZE" class="srefe=CARMINGRAPHSP_R_VRINTM24 >a>| 0);.a>/o ooooopa href="+code=c_sehwsp_reg" class="sref">c_sehwsp_regp/a>(pa href="+codhwdp" class="srefhw24 >a>, pa href="+code=CARMINGRAPHSP_RZE" class="srefe=CARMINGRAPHSP_R28 >a+>, pa href="+code=CARMINGRAPHSP_R_VRERRMZE" class="srefe=CARMINGRAPHSP_R_VRERRM24 >a>| 0);.);.a>/o ooooopspa. class="comment">/Set DC offs Ss r */p/spa.4.a>/o ooooopa href="+code=c_sehwsp_reg" class="sref">c_sehwsp_regp/a>(pa href="+codhwdp" class="srefhw24 >a>, pa href="+code=CARMINGRAPHSP_RZE" class="srefe=CARMINGRAPHSP_R28 >a+>, pa href="+code=CARMINGRAPHSP_R_DC_OFFSET_PXZE" class="srefe=CARMINGRAPHSP_R_DC_OFFSET_PX24 >a>| 0);.a>/o ooooopa href="+code=c_sehwsp_reg" class="sref">c_sehwsp_regp/a>(pa href="+codhwdp" class="srefhw24 >a>, pa href="+code=CARMINGRAPHSP_RZE" class="srefe=CARMINGRAPHSP_R28 >a+>, pa href="+code=CARMINGRAPHSP_R_DC_OFFSET_PYNS" class="sref">CARMINGRAPHSP_R_DC_OFFSET_PY24 >a>| 0);.a>/o ooooopa href="+code=c_sehwsp_reg" class="sref">c_sehwsp_regp/a>(pa href="+codhwdp" class="srefhw24 >a>, pa href="+code=CARMINGRAPHSP_RZE" class="srefe=CARMINGRAPHSP_R28 >a+>, pa href="+code=CARMINGRAPHSP_R_DC_OFFSET_LXZE" class="srefe=CARMINGRAPHSP_R_DC_OFFSET_LX24 >a>| 0);.a>/o ooooopa href="+code=c_sehwsp_reg" class="sref">c_sehwsp_regp/a>(pa href="+codhwdp" class="srefhw24 >a>, pa href="+code=CARMINGRAPHSP_RZE" class="srefe=CARMINGRAPHSP_R28 >a+>, pa href="+code=CARMINGRAPHSP_R_DC_OFFSET_LYNS" class="sref">CARMINGRAPHSP_R_DC_OFFSET_LY24 >a>| 0);.a>/o ooooopa href="+code=c_sehwsp_reg" class="sref">c_sehwsp_regp/a>(pa href="+codhwdp" class="srefhw24 >a>, pa href="+code=CARMINGRAPHSP_RZE" class="srefe=CARMINGRAPHSP_R28 >a+>, pa href="+code=CARMINGRAPHSP_R_DC_OFFSET_TXZE" class="srefe=CARMINGRAPHSP_R_DC_OFFSET_TX24 >a>| 0);.a>/o ooooopa href="+code=c_sehwsp_reg" class="sref">c_sehwsp_regp/a>(pa href="+codhwdp" class="srefhw24 >a>, pa href="+code=CARMINGRAPHSP_RZE" class="srefe=CARMINGRAPHSP_R28 >a+>, pa href="+code=CARMINGRAPHSP_R_DC_OFFSET_TYNS" class="sref">CARMINGRAPHSP_R_DC_OFFSET_TY24 >a>| 0);.a>/o ooorfsurno0 1;.});.);.a>/o ooo.t;pa href="+codownepar" class="srefownep23 >a>/o ooooo> = pa href="+codTHISSD_MULEZE" class="srefTHISSD_MULEar >a1;.a>/o ooo.t;pa href="+codne_fillrecset" class="srefne_fillrecs70 >a>/o> = pa href="+codcne_fillrecset" class="srefcne_fillrecs70 >a1;.a>/o ooo.t;pa href="+codne_copyareaet" class="srefne_copyarea70 >a>/o> = pa href="+codcne_copyareaet" class="srefcne_copyarea70 >a1;.a>/o ooo.t;pa href="+codne_imagebliset" class="srefne_imageblis23 >a>/> = pa href="+codcne_imagebliset" class="srefcne_imageblis23 >a1;.1;.a>/o ooo.t;pa href="+codne_check_v=par" class="srefne_check_v=p23 >a>/> = pa href="+codc/carmi_check_v=par" class="srefc/carmi_check_v=p23 >a1;.a>/o ooo.t;pa href="+codne_c_see=par" class="srefne_c_see=p36 >a>/o > = pa href="+codc/carmi_c_see=par" class="srefe/carmi_c_see=pegp/a1;.a>/o ooo.t;pa href="+codne_c_scolp_reg" class="srefne_c_scolp_r23 >a>/> = pa href="+codc/carmi_c_scolp_reg" class="srefc/carmi_c_scolp_regp/a1;.} 1;..gret >, voidooopa href="+cod__iomer32" class="sref__iomer47 >a*>(pa href="+codsmer_base32" class="srefsmer_baseegp/a1;.a>/o ooooooooooointooopa href="+codsmer_offs S32" class="srefsmer_offs Set >, structooopa href="+coddevice32" class="srefdevice47 >a*>(pa href="+coddevice32" class="srefdevice47 >, structooopa href="+codfb_infoar" class="sreffb_info04 >a**>(pa href="+codpinfoar" class="srefrinfo04 >));.{);.a>/o ooointooopa href="+codrfset" class="srefrfset > 1;.a>/o ooostructooopa href="+codfb_infoar" class="sreffb_info04 >a*>(pa href="+codinfoar" class="srefinfo04 > 1;.a>/o ooostructooopa href="+code/carmi_fbeg" class="sref"/carmi_fb24 >a*>(pa href="+code=par" class="sref">par > 1;.);.a>/o ooooopa href="+codinfoar" class="srefinfo04 >/> = pa href="+codfparebuffer_allocar" class="sreffparebuffer_allocegp/asizeofa*>(pa href="+code=par" class="sref">par >a>, pa href="+coddevice32" class="srefdevice47 > 0);.a>/o oooifoa!oopa href="+codinfoar" class="srefinfo04 >));.a>/o oooa>/o ooorfsurno->(pa href="+codENOMEMZE" class="srefENOMEMar > 1;.a>/o ooooopa href="+code=par" class="sref">par >a> = pa href="+codinfoar" class="srefinfo04 >a>->pa href="+code=par" class="sref">par > 1;.a>/o ooooopa href="+code=par" class="sref">par >a>->pa href="+codt_dilay_p_reg" class="sreft_dilay_p_rar >a> = pa href="+codp_rres" class="sref">gret > 1;.a>/o ooooopa href="+code=par" class="sref">par >a>->pa href="+codsmer_offs S32" class="srefsmer_offs Set >a> = pa href="+codsmer_offs S32" class="srefsmer_offs Set > 1;.1;.a>/o ooooopa href="+codinfoar" class="srefinfo04 >a>->pa href="+codscreen_base32" class="srefscreen_baseet >a> = pa href="+codsmer_base32" class="srefsmer_baseegp/a+>, pa href="+codsmer_offs S32" class="srefsmer_offs Set > 1;.a>/o ooooopa href="+codinfoar" class="srefinfo04 >a>->pa href="+codscreen_size32" class="srefscreen_sizeet >a> = pa href="+cod">CARMINEISPLAY_MEMZE" class="sref">CARMINEISPLAY_MEMet > 1;.a>/o ooooopa href="+codinfoar" class="srefinfo04 >a>->pa href="+codfbopres" class="sreffbopret >a> &= pa href="+codo/carmine_opres" class="srefe/carmine_opret > 1;.);.a>/o ooooopa href="+codinfoar" class="srefinfo04 >a>->pa href="+codfixar" class="sreffix04 >/> = pa href="+codc/carmine_fixar" class="srefc/carmine_fixet > 1;.a>/o ooooopa href="+codinfoar" class="srefinfo04 >a>->pa href="+codeseudo_palette32" class="srefeseudo_palette04 >/> = pa href="+code=par" class="sref">par >a>->pa href="+codeseudo_palette32" class="srefeseudo_palette04 > 1;.a>/o ooooopa href="+codinfoar" class="srefinfo04 >a>->pa href="+codflagres" class="srefflagret >a> = pa href="+codFBINFO_DEFAULTDE" class="srefFBINFO_DEFAULT04 > 1;.);.a>/o ooooopa href="+codrfset" class="srefrfset >a> = pa href="+codne_alloc_cmapar" class="sreffb_alloc_cmapegp/a&= pa href="+codinfoar" class="srefinfo04 >a>->pa href="+codcmapar" class="srefcmapegp/, 256a>1 0);.a>/o oooifoa>(pa href="+codrfset" class="srefrfset >at;<0));.a>/o ooooooooooogoto = pa href="+coderr_free_fbeg" class="sreferr_free_fb04 > 1;.);.a>/o oooifoa>(pa href="+codfb_y mo32" class="sreffb_y moet >atgt;> = pa href="+codARRAY_SIZEZE" class="srefARRAY_SIZEegp/a>(pa href="+cod"/carmi_y modbeg" class="sref"/carmi_y modb04 >)));.a>/o ooooooooooo>(pa href="+codfb_y mo32" class="sreffb_y moet >a> = pa href="+cod">CARMIFB_DEFAULT_VIDEOSD_MOOS" class="sref">CARMIFB_DEFAULT_VIDEOSD_MO04 > 1;..a>/o ooooopa href="+code=par" class="sref">par >a>->pa href="+codcursy mo32" class="srefcursy mo07 >a> = pa href="+code=par" class="sref">par >a>->pa href="+codnewsy mo32" class="srefnewsy moet >a> ~0 1;.a>.a>/o ooooopa href="+codrfset" class="srefrfset >a> = pa href="+codne_findsy mo32" class="srefne_findsy moegp/a&= pa href="+codinfoar" class="srefinfo04 >a>->pa href="+codv=par" class="srefv>par >a>, pa href="+codinfoar" class="srefinfo04 >aot;pa href="+codfb_y mo_stpar" class="srefne_y mo_stp04 >aot;pa href="+cod"/carmi_y modbeg" class="sref"/carmi_y modb04 >a1;.a>/o oooooooooooa>/o ooooopa href="+codARRAY_SIZEZE" class="srefARRAY_SIZEegp/a>(pa href="+cod"/carmi_y modbeg" class="sref"/carmi_y modb04 >)a1;.a>/o ooooooooooooooooooo&= pa href="+codo/carmi_y modbeg" class="sref"/carmi_y modb04 >[= pa href="+codfb_y mo32" class="sreffb_y moet >], 32 0);.a>/o oooifoa!oopa href="+codrfset" class="srefrfset > || = pa href="+codrfset" class="srefrfset >a>= 4  {);.a>/o ooooooooooooopa href="+codrfset" class="srefrfset >a> ->(pa href="+codEINVALNS" class="srefEINVAL04 > 1;.a>/o ooooooooooogoto = pa href="+coderr_dealloc_cmapar" class="sreferr_dealloc_cmap04 > 1;.a>/o ooo});..a>/o ooooopa href="+codfb_s/vidy mo_to_y molisset" class="srefne_s/vidy mo_to_y molissegp/a>(pa href="+cod"/carmi_y modbeg" class="sref"/carmi_y modb04 >aot;pa href="+codARRAY_SIZEZE" class="srefARRAY_SIZEegp/a>(pa href="+cod"/carmi_y modbeg" class="sref"/carmi_y modb04 >)a1;.a>/o ooooooooooooooooooo&= pa href="+codinfoar" class="srefinfo04 >a>->pa href="+cody molisset" class="srefy molissegp/ 0);.);.a>/o ooooopa href="+codrfset" class="srefrfset >a> = pa href="+codrfgister_fparebufferes" class="sref">gister_fparebufferegp/a>(pa href="+codinfoar" class="srefinfo04 >)0);.a>/o oooifoa>(pa href="+codrfset" class="srefrfset >at;<0));.a>/o ooooooooooogoto = pa href="+coderr_dealloc_cmapar" class="sreferr_dealloc_cmap04 > 1;.);.a>/o ooooopa href="+codprintkDE" class="srefprintkegp/a>(pa href="+codKERN_INFODE" class="srefKERN_INFO47 >aoopspa. classstring">"fb%d: %s fpare buffer device\n"*/p/spaa>, pa href="+codinfoar" class="srefinfo04 >a>->pa href="+codn mo32" class="srefn moet >a1;.a>/o ooooooooooooooooooooopa href="+codinfoar" class="srefinfo04 >a>->pa href="+codfixar" class="sreffix04 >.t;pa href="+codidar" class="srefid04 >)0);..a>/o ooo*>(pa href="+codpinfoar" class="srefrinfo04 >a> = pa href="+codinfoar" class="srefinfo04 >0);.a>/o ooorfsurno0 1;.);.= pa href="+coderr_dealloc_cmapar" class="sreferr_dealloc_cmap04 >:);.a>/o ooooopa href="+codne_dealloc_cmapar" class="srefne_dealloc_cmapegp/a&= pa href="+codinfoar" class="srefinfo04 >a>->pa href="+codcmapar" class="srefcmapegp/)0);.= pa href="+coderr_free_fbeg" class="sreferr_free_fb04 >:);.a>/o ooooopa href="+codfparebuffer_release32" class="sreffparebuffer_releaseegp/a>(pa href="+codinfoar" class="srefinfo04 >)0);.a>/o ooorfsurno>(pa href="+codrfset" class="srefrfset >0);.});..{);.a>/o oooifoa>(pa href="+codinfoar" class="srefinfo04 >) {);.a>/o ooooooooooo= pa href="+codunrfgister_fparebufferes" class="srefunrfgister_fparebufferegp/a>(pa href="+codinfoar" class="srefinfo04 >)0);.a>/o ooooooooooooopa href="+codne_dealloc_cmapar" class="srefne_dealloc_cmapegp/a&= pa href="+codinfoar" class="srefinfo04 >a>->pa href="+codcmapar" class="srefcmapegp/)0);.a>/o ooooooooooooopa href="+codfparebuffer_release32" class="sreffparebuffer_releaseegp/a>(pa href="+codinfoar" class="srefinfo04 >)0);.a>/o ooo});.});.);.a>/o oooooooooooconstostructooopa href="+codpci_device_idar" class="srefpci_device_id04 >a*>(pa href="+codmmeng" class="srefenset >));.{);.a>/o ooostructooopa href="+code/carmi_hwdp" class="srefe/carmi_hw04 >a*>(pa href="+codhwdp" class="srefhw24 >0);.a>/o ooostructooopa href="+coddevice32" class="srefdevice47 >a*>(pa href="+coddevice32" class="srefdevice47 >a> &= pa href="+coddevDE" class="srefdev04 >a>->pa href="+codtevDE" class="srefdev04 >0);.a>/o ooostructooopa href="+codfb_infoar" class="sreffb_info04 >a*>(pa href="+codinfoar" class="srefinfo04 > 1;.a>/o ooointooopa href="+codrfset" class="srefrfset > 1;.);.a>/o ooooopa href="+codrfset" class="srefrfset >a> = pa href="+codpci_enable_device32" class="srefpci_enable_deviceegp/a>(pa href="+codtevDE" class="srefdev04 >)0);.a>/o oooifoaoopa href="+codrfset" class="srefrfset >));.a>/o oooa>/o ooorfsurnooopa href="+codrfset" class="srefrfset > 1;.a>/o ooooopa href="+codrfset" class="srefrfset >a> ->(pa href="+codENOMEMZE" class="srefENOMEMar > 1;.a>/o ooooopa href="+codhwdp" class="srefhw24 >a> = pa href="+codkzallocar" class="srefkzallocegp/asizeofa*>(pa href="+codhwdp" class="srefhw24 >a>, pa href="+codGFP_KERNELNS" class="srefGFP_KERNEL04 >)0);.a>/o oooifoa!oopa href="+codhwdp" class="srefhw24 >));.a>/o ooooooooooogoto = pa href="+coderr_enable_pcieg" class="sreferr_enable_pciar > 1;.1;.a>/o ooooopa href="+code/carmine_fixar" class="srefc/carmine_fixet >.t;pa href="+codmmio_starset" class="srefymio_starset >a> = pa href="+codpci_resource_starset" class="srefpci_resource_starsegp/a>(pa href="+codtevDE" class="srefdev04 >a>, pa href="+code=CARMINCONFIG_BARDE" class="srefe=CARMINCONFIG_BAR04 >)0);.a>/o ooooopa href="+code/carmine_fixar" class="srefc/carmine_fixet >.t;pa href="+codmmio_lenet" class="srefymio_lenet >a> = pa href="+codpci_resource_lenet" class="srefpci_resource_lenegp/a>(pa href="+codtevDE" class="srefdev04 >a>, pa href="+code=CARMINCONFIG_BARDE" class="srefe=CARMINCONFIG_BAR04 >)0);.);.a>/o oooifoa!oopa href="+codrequest_mer_rfgionet" class="srefrequest_mer_rfgionegp/a>(pa href="+cod"/carmine_fixar" class="srefc/carmine_fixet >.t;pa href="+codmmio_starset" class="srefymio_starset >a1;.a>/o oooooooooooooooooooa>/o ooooopa href="+code/carmine_fixar" class="srefc/carmine_fixet >.t;pa href="+codmmio_lenet" class="srefymio_lenet >a1;.a>/o ooooooooooooooooooooooooooooopspa. classstring">"o/carmineorfgbase"*/p/spa ) {);.a>/o oooa>/o ooooopa href="+codprintkDE" class="srefprintkegp/a>(pa href="+codKERN_ERRDE" class="srefKERN_ERR47 >aoopspa. classstring">"o/carmine: Can'torfc_rveorfgbase.\n"*/p/spa 0);.a>/o ooooooooooo= pa href="+codrfset" class="srefrfset >a> ->(pa href="+codEBUSYNS" class="srefEBUSYar > 1;.a>/o ooooooooooogoto = pa href="+coderr_free_hwdp" class="sreferr_free_hwar > 1;.a>/o ooo});.a>/o ooooopa href="+codhwdp" class="srefhw24 >a>->pa href="+codv_p_rres" class="srefv_p_rr04 >a> = pa href="+codioremap_nocache32" class="srefioremap_nocacheegp/a>(pa href="+cod"/carmine_fixar" class="srefc/carmine_fixet >.t;pa href="+codmmio_starset" class="srefymio_starset >a1;.a>/o oooooooooooa>/o ooooopa href="+code/carmine_fixar" class="srefc/carmine_fixet >.t;pa href="+codmmio_lenet" class="srefymio_lenet > 0);.a>/o oooifoa!oopa href="+codhwdp" class="srefhw24 >a>->pa href="+codv_p_rres" class="srefv_p_rr04 >) {);.a>/o oooa>/o ooooopa href="+codprintkDE" class="srefprintkegp/a>(pa href="+codKERN_ERRDE" class="srefKERN_ERR47 >aoopspa. classstring">"o/carmine: Can'torfmap %s rfgister.\n"*/p/spaa1;.a>/o oooooooooooooooooooa>/o ooooopa href="+code/carmine_fixar" class="srefc/carmine_fixet >.t;pa href="+codidar" class="srefid04 >)0);.a>/o ooooooooooogoto = pa href="+coderr_free_rfg_ymiodp" class="sreferr_free_rfg_ymioar > 1;.a>/o ooo});.);.a>/o ooooopa href="+code/carmine_fixar" class="srefc/carmine_fixet >.t;pa href="+codsmer_starset" class="srefsmer_starset >a> = pa href="+codpci_resource_starset" class="srefpci_resource_starsegp/a>(pa href="+codtevDE" class="srefdev04 >a>, pa href="+code=CARMINMEMORY_BARDE" class="srefe=CARMINMEMORY_BAR04 >)0);.a>/o ooooopa href="+code/carmine_fixar" class="srefc/carmine_fixet >.t;pa href="+codsmer_lenet" class="srefsmer_lenet >a> = pa href="+codpci_resource_lenet" class="srefpci_resource_lenegp/a>(pa href="+codtevDE" class="srefdev04 >a>, pa href="+code=CARMINMEMORY_BARDE" class="srefe=CARMINMEMORY_BAR04 >)0);.);.a>/o ooooopspa. class="comment">/The merory area tends to be rivy large (256 MiB). Rfmap only what*/p/spa.4.oopspa. class="commentooooooooo* is rfquiredoforothat largestorfcolution to avoidorfmaps at run*/p/spa.4.oopspa. class="commentooooooooo* time*/p/spa.4.a>/o oooifoaoopa href="+code/carmine_fixar" class="srefc/carmine_fixet >.t;pa href="+codsmer_lenet" class="srefsmer_lenet >a>-&g>, pa href="+code=CARMINTOTAL_DIPLAY_MEMZE" class="sref">CARMINTOTAL_DIPLAY_MEM24 >));.a>/o oooa>/o ooooopa href="+code/carmine_fixar" class="srefc/carmine_fixet >.t;pa href="+codsmer_lenet" class="srefsmer_lenet >a> = pa href="+code=CARMINTOTAL_DIPLAY_MEMZE" class="sref">CARMINTOTAL_DIPLAY_MEM24 >0);.);.a>/o oooelseoifoaoopa href="+code/carmine_fixar" class="srefc/carmine_fixet >.t;pa href="+codsmer_lenet" class="srefsmer_lenet >a>l&g>, pa href="+code=CARMINTOTAL_DIPLAY_MEMZE" class="sref">CARMINTOTAL_DIPLAY_MEM24 >) {);.a>/o ooooooooooooopa href="+codprintkDE" class="srefprintkegp/a>(pa href="+codKERN_ERRDE" class="srefKERN_ERR47 >aoopspa. classstring">"o/carmine: Merory bar is only %d bytes, %d "*/p/spa);.a>/o oooooooooooa>/o ooooooooooooopspa. classstring">"are rfquired."*/p/spaa>, pa href="+code/carmine_fixar" class="srefc/carmine_fixet >.t;pa href="+codsmer_lenet" class="srefsmer_lenet >a1;.a>/o oooooooooooa>/o ooooooooooooopa href="+code=CARMINTOTAL_DIPLAY_MEMZE" class="sref">CARMINTOTAL_DIPLAY_MEM24 >)0);.a>/o ooooooooooogoto = pa href="+coderr_unmap_vp_rres" class="sreferr_unmap_vp_rr24 >0);.a>/o ooo});.a>/o oooifoa!oopa href="+codrequest_mer_rfgionet" class="srefrequest_mer_rfgionegp/a>(pa href="+cod"/carmine_fixar" class="srefc/carmine_fixet >.t;pa href="+codsmer_starset" class="srefsmer_starset >a1;.a>/o oooa>/o oooa>/o ooooooooooooopa href="+code/carmine_fixar" class="srefc/carmine_fixet >.t;pa href="+codsmer_lenet" class="srefsmer_lenet >aooopspa. classstring">"o/carmineosmer"*/p/spa ) {);.a>/o ooooooooooo= pa href="+codprintkDE" class="srefprintkegp/a>(pa href="+codKERN_ERRDE" class="srefKERN_ERR47 >aoopspa. classstring">"o/carmine: Can'torfc_rveosmer.\n"*/p/spa 0);.a>/o ooooooooooogoto = pa href="+coderr_unmap_vp_rres" class="sreferr_unmap_vp_rr24 >0);.a>/o ooo});.);.a>/o ooooopa href="+codhwdp" class="srefhw24 >a>->pa href="+codscreen_mer32" class="srefscreen_mer04 >a> = pa href="+codioremap_nocache32" class="srefioremap_nocacheegp/a>(pa href="+cod"/carmine_fixar" class="srefc/carmine_fixet >.t;pa href="+codsmer_starset" class="srefsmer_starset >a1;.a>/o ooooooooooooooooooooopa href="+code/carmine_fixar" class="srefc/carmine_fixet >.t;pa href="+codsmer_lenet" class="srefsmer_lenet > 0);.a>/o oooifoa!oopa href="+codhwdp" class="srefhw24 >a>->pa href="+codscreen_mer32" class="srefscreen_mer04 >) {);.a>/o ooooooooooo= pa href="+codprintkDE" class="srefprintkegp/a>(pa href="+codKERN_ERRDE" class="srefKERN_ERR47 >aoopspa. classstring">"o/carmi: Can'toioremaposmer area.\n"*/p/spa 0);.a>/o ooooooooooogoto = pa href="+coderr_rfg_smer32" class="sreferr_rfg_smer24 >0);.a>/o ooo});.);.a>/o ooooopa href="+codrfset" class="srefrfset >a> = pa href="+codinis_hardware32" class="srefinis_hardwareegp/a>(pa href="+codhwdp" class="srefhw24 >)0);.a>/o oooifoaoopa href="+codrfset" class="srefrfset >));.a>/o ooooooooooogoto = pa href="+coderr_unmap_screenes" class="sreferr_unmap_screen24 >0);.);.a>/o ooo= pa href="+codinfoar" class="srefinfo04 >/> = pa href="+codNULLNS" class="srefNULL24 >0);.a>/o oooifoa= pa href="+codne_d_dilayres" class="sreffb_d_dilayret >a>amp;ooopa href="+code=CARMINUSINEISPLAY0es" class="srefe=CARMINUSINEISPLAY004 >) {);.a>/o ooooooooooo= pa href="+codrfset" class="srefrfset >a> = pa href="+codalloc_c/carmi_fbeg" class="srefalloc_c/carmi_fbegp/aoopa href="+codhwdp" class="srefhw24 >a>->pa href="+codv_p_rres" class="srefv_p_rr04 >a+>, pa href="+code=CARMINEISP0SP_RZE" class="srefe=CARMINEISP0SP_Ret >a1;.a>/o ooooooooooooooooooooooooooo= pa href="+codhwdp" class="srefhw24 >a>->pa href="+codscreen_mer32" class="srefscreen_mer04 >a>, pa href="+code=CARMINEISPLAY_MEMZE" class="sref">CARMINEISPLAY_MEMet > * 0a1;.a>/o oooa>/o oooa>/o ooooooooooooopa href="+coddevice32" class="srefdevice47 >, &= pa href="+codinfoar" class="srefinfo04 >)0);.a>/o oooooooooooifoaoopa href="+codrfset" class="srefrfset >));.a>/o ooooooooooooooooooogoto = pa href="+coderr_deinis_hwdp" class="sreferr_deinis_hw24 >0);.a>/o ooo});.);.a>/o ooooopa href="+codhwdp" class="srefhw24 >a>->pa href="+codfbeg" class="sreffbegp/[0]a> = pa href="+codinfoar" class="srefinfo04 >0);.);.a>/o ooooopa href="+codinfoar" class="srefinfo04 >/> = pa href="+codNULLNS" class="srefNULL24 >0);.a>/o oooifoa= pa href="+codne_d_dilayres" class="sreffb_d_dilayret >a>amp;ooopa href="+code=CARMINUSINEISPLAY1es" class="srefe=CARMINUSINEISPLAY104 >) {);.a>/o ooooooooooo= pa href="+codrfset" class="srefrfset >a> = pa href="+codalloc_c/carmi_fbeg" class="srefalloc_c/carmi_fbegp/aoopa href="+codhwdp" class="srefhw24 >a>->pa href="+codv_p_rres" class="srefv_p_rr04 >a+>, pa href="+code=CARMINEISP1SP_RZE" class="srefe=CARMINEISP1SP_Ret >a1;.a>/o oooa>/o oooa>/o ooooooooooooopa href="+codhwdp" class="srefhw24 >a>->pa href="+codscreen_mer32" class="srefscreen_mer04 >a>, pa href="+code=CARMINEISPLAY_MEMZE" class="sref">CARMINEISPLAY_MEMet > * 1a1;.a>/o oooooooooooa>/o ooooooooooooopa href="+coddevice32" class="srefdevice47 >, &= pa href="+codinfoar" class="srefinfo04 >)0);.a>/o oooooooooooifoaoopa href="+codrfset" class="srefrfset >));.a>/o ooooooooooooooooooogoto = pa href="+coderr_cleanup_ne0es" class="sreferr_cleanup_ne024 >0);.a>/o ooo});.);.a>/o ooo= pa href="+codhwdp" class="srefhw24 >a>->pa href="+codfbeg" class="sreffbegp/[1]a> = pa href="+codinfoar" class="srefinfo04 >0);.a>/o ooooopa href="+codinfoar" class="srefinfo04 >/> = pa href="+codNULLNS" class="srefNULL24 >0);.a>/o ooooopa href="+codeci_c_sedrvdataet" class="srefeci_c_sedrvdataegp/aoopa href="+codtevDE" class="srefdev04 >a>, pa href="+codhwdp" class="srefhw24 >)0);.a>/o ooorfsurno0 1;.);.= pa href="+coderr_cleanup_ne0es" class="sreferr_cleanup_ne024 >:);.a>/o ooooopa href="+codeleanup_ne_device32" class="srefcleanup_ne_deviceegp/aoopa href="+codhwdp" class="srefhw24 >a>->pa href="+codfbeg" class="sreffbegp/[0])0);.= pa href="+coderr_deinis_hwdp" class="sreferr_deinis_hw24 >:);.a>/o ooooopspa. class="comment">/d_dablea. ock, etco* */p/spa.4.a>/o ooo= pa href="+codc_c_sehw_p_reg" class="srefc_c_sehw_p_regp/aoopa href="+codhwdp" class="srefhw24 >a>, pa href="+code=CARMINCTLSP_RZE" class="srefe=CARMINCTLSP_R04 >a+>, pa href="+code=CARMINCTLSP_R_CLOCK_ENABLEZE" class="srefe=CARMINCTLSP_R_CLOCK_ENABLE24 >a>0)0);.a>/o ooooopa href="+codiounmap32" class="srefiounmapegp/aoopa href="+codhwdp" class="srefhw24 >a>->pa href="+codscreen_mer32" class="srefscreen_mer04 >)0);.= pa href="+coderr_rfg_smer32" class="sreferr_rfg_smer24 >:);.a>/o ooooopa href="+codrelease_mer_rfgionet" class="srefrelease_mer_rfgionegp/a>(pa href="+cod"/carmine_fixar" class="srefc/carmine_fixet >.t;pa href="+codsmer_starset" class="srefsmer_starset >aooopa href="+code/carmine_fixar" class="srefc/carmine_fixet >.t;pa href="+codsmer_lenet" class="srefsmer_lenet > 0);.= pa href="+coderr_unmap_vp_rres" class="sreferr_unmap_vp_rr24 >:);.a>/o ooooopa href="+codiounmap32" class="srefiounmapegp/aoopa href="+codhwdp" class="srefhw24 >a>->pa href="+codv_p_rres" class="srefv_p_rr04 >)0);.= pa href="+coderr_free_rfg_ymiodp" class="sreferr_free_rfg_ymioar >:);.a>/o ooooopa href="+codrelease_mer_rfgionet" class="srefrelease_mer_rfgionegp/a>(pa href="+cod"/carmine_fixar" class="srefc/carmine_fixet >.t;pa href="+codmmio_starset" class="srefymio_starset >aooopa href="+code/carmine_fixar" class="srefc/carmine_fixet >.t;pa href="+codmmio_lenet" class="srefymio_lenet > 0);.= pa href="+coderr_free_hwdp" class="sreferr_free_hwar >:);.a>/o ooo= pa href="+codkfreedp" class="srefkfreeegp/a>(pa href="+codhwdp" class="srefhw24 >)0);.a>/o ooooopa href="+codeci_d_dable_device32" class="srefeci_d_dable_deviceegp/aoopa href="+codtevDE" class="srefdev04 >)0);.a>/o ooorfsurnooopa href="+codrfset" class="srefrfset >0);.});.);.static voidooopa href="+cod__devexiseg" class="sref__devexis91 >aoopa href="+code/carmine_remove32" class="srefc/carmine_removeegp/astructooopa href="+codpci_devDE" class="srefpci_dev04 >a*>(pa href="+coddevDE" class="srefdev04 >));.{);.a>/o ooostructooopa href="+code/carmi_hwdp" class="srefe/carmi_hw04 >a*>(pa href="+codhwdp" class="srefhw24 >a> = pa href="+codpci_g_sedrvdataet" class="srefeci_g_sedrvdataegp/aoopa href="+codtevDE" class="srefdev04 >)0);.a>/o ooostructooopa href="+codfb_fix_screeninfoar" class="sreffb_fix_screeninfo91 >aoopa href="+codfixar" class="sreffix04 >0);.a>/o ooointooopa href="+codieg" class="srefiar > 1;..a>/o ooooopspa. class="comment">/ipa.ase we use only fb1 and not fb1 * */p/spa.4.a>/o oooifoaoopa href="+codhwdp" class="srefhw24 >a>->pa href="+codfbeg" class="sreffbegp/[0]).4.a>/o oooa>/o ooooopa href="+codfixar" class="sreffix04 >a> = pa href="+codhwdp" class="srefhw24 >a>->pa href="+codfbeg" class="sreffbegp/[0]a>->pa href="+codfixar" class="sreffix04 > 1;.a>/o oooelse1;.a>/o ooooooooooooopa href="+codfixar" class="sreffix04 >a> = pa href="+codhwdp" class="srefhw24 >a>->pa href="+codfbeg" class="sreffbegp/[1]a>->pa href="+codfixar" class="sreffix04 > 1;.1;.a>/o ooooopspa. class="comment">/deactivate d_dilay(s) and switcha. ocks * */p/spa.4.a>/o ooooopa href="+codc_c_sehw_p_reg" class="srefc_c_sehw_p_regp/aoopa href="+codhwdp" class="srefhw24 >a>, pa href="+code=CARMINEISP0SP_RZE" class="srefe=CARMINEISP0SP_Ret >a+>, pa href="+code=CARMINEISPSP_R_DCM1es" class="srefe=CARMINEISPSP_R_DCM124 >a>0)0);.a>/o ooo= pa href="+codc_c_sehw_p_reg" class="srefc_c_sehw_p_regp/aoopa href="+codhwdp" class="srefhw24 >a>, pa href="+code=CARMINEISP1SP_RZE" class="srefe=CARMINEISP1SP_Ret >a+>, pa href="+code=CARMINEISPSP_R_DCM1es" class="srefe=CARMINEISPSP_R_DCM124 >a>0)0);.a>/o ooooopa href="+codc_c_sehw_p_reg" class="srefc_c_sehw_p_regp/aoopa href="+codhwdp" class="srefhw24 >a>, pa href="+code=CARMINCTLSP_RZE" class="srefe=CARMINCTLSP_R04 >a+>, pa href="+code=CARMINCTLSP_R_CLOCK_ENABLEZE" class="srefe=CARMINCTLSP_R_CLOCK_ENABLE24 >a>0)0);.a>/o oooforoa>(pa href="+codieg" class="srefiar >a> 0;ooopa href="+codieg" class="srefiar >a>l&g>, pa href="+codMAXNEISPLAYeg" class="srefMAXNEISPLAY04 > ooopa href="+codieg" class="srefiar >++).4.a>/o oooa>/o ooooopa href="+codeleanup_ne_device32" class="srefcleanup_ne_deviceegp/aoopa href="+codhwdp" class="srefhw24 >a>->pa href="+codfbeg" class="sreffbegp/[oopa href="+codieg" class="srefiar >])0);.);.a>/o ooooopa href="+codiounmap32" class="srefiounmapegp/aoopa href="+codhwdp" class="srefhw24 >a>->pa href="+codscreen_mer32" class="srefscreen_mer04 >)0);.a>/o ooooopa href="+codrelease_mer_rfgionet" class="srefrelease_mer_rfgionegp/a>(pa href="+codfixar" class="sreffix04 >.t;pa href="+codsmer_starset" class="srefsmer_starset >aooopa href="+codfixar" class="sreffix04 >.t;pa href="+codsmer_lenet" class="srefsmer_lenet > 0);.a>/o ooooopa href="+codiounmap32" class="srefiounmapegp/aoopa href="+codhwdp" class="srefhw24 >a>->pa href="+codv_p_rres" class="srefv_p_rr04 >)0);.a>/o ooooopa href="+codrelease_mer_rfgionet" class="srefrelease_mer_rfgionegp/a>(pa href="+codfixar" class="sreffix04 >.t;pa href="+codmmio_starset" class="srefymio_starset >aooopa href="+codfixar" class="sreffix04 >.t;pa href="+codmmio_lenet" class="srefymio_lenet > 0);.);.a>/o ooooopa href="+codeci_c_sedrvdataet" class="srefeci_c_sedrvdataegp/aoopa href="+codtevDE" class="srefdev04 >a>, pa href="+codNULLNS" class="srefNULL24 > 0);.a>/o ooooopa href="+codeci_d_dable_device32" class="srefeci_d_dable_deviceegp/aoopa href="+codtevDE" class="srefdev04 >)0);.a>/o ooooopa href="+codkfreedp" class="srefkfreeegp/a>(pa href="+codhwdp" class="srefhw24 >)0);.});.);.#def"liooopa href="+codPCI_VENDOR_ID_FUJITU_LIMITEDdp" class="srefPCI_VENDOR_ID_FUJITU_LIMITED51 >a0x10cf);.static structooopa href="+codpci_device_idar" class="srefpci_device_id04 >aoopa href="+code/carmi_deviceres" class="srefe/carmi_deviceregp/[]ooopa href="+cod__devinisdataet" class="sref__devinisdataar >a> {);.{);.a>/o ooooopa href="+codPCI_DEVICEZE" class="srefPCI_DEVICEegp/a>(pa href="+codPCI_VENDOR_ID_FUJITU_LIMITEDdp" class="srefPCI_VENDOR_ID_FUJITU_LIMITED51 >a>0x202b)}a1;.a>/o ooo{0a>0a>0a>0a>0a>0a>0});.}0);.= pa href="+codMODULE_DEVICE_TABLEZE" class="srefMODULE_DEVICE_TABLEegp/a>(pa href="+codpcieg" class="srefpciar >aooopa href="+code/carmi_deviceres" class="srefe/carmi_deviceregp/)0);.);.static structooopa href="+codpci_d"drivar" class="srefpci_d"driv04 >aoopa href="+code/carmi_pci_d"drivar" class="srefe/carmi_pci_d"drivar >a> {);.a>/o ooo.t;pa href="+cod" naar" class="sref" na22 >a>/o oooa>/=aoopspa. classstring">"o/carmine"*/p/spaa1;.a>/o ooo.t;pa href="+codid_table32" class="srefid_table22 >a>/o oo> = pa href="+code/carmi_deviceres" class="srefe/carmi_deviceregp/a1;.a>/o ooo.t;pa href="+codprobe32" class="srefprobeegp/>/o oooa>/=aoopa href="+code/carmine_probe32" class="srefc/carmine_probeegp/a1;.a>/o ooo.t;pa href="+codremove32" class="srefremoveegp//o oooa>/=aoopa href="+cod__devexis_p32" class="sref__devexis_pegp/a>(pa href="+code/carmine_remove32" class="srefc/carmine_removeegp/)a1;.}0);..static intooopa href="+cod__iniseg" class="sref__inis47 >aoopa href="+codc/carmine_iniseg" class="srefc/carmine_inisegp/avoid).4.{);.a>/o oooifoa!a= pa href="+codne_d_dilayres" class="sreffb_d_dilayret >a>amp;);.a>/o oooooooooooa= pa href="+code=CARMINUSINEISPLAY0es" class="srefe=CARMINUSINEISPLAY004 > |ooopa href="+code=CARMINUSINEISPLAY1es" class="srefe=CARMINUSINEISPLAY104 >) ) {);.a>/o ooooooooooooopa href="+codprintkDE" class="srefprintkegp/a>(pa href="+codKERN_ERRDE" class="srefKERN_ERR47 >aoopspa. classstring">"If you/d_dableaboth d_dilaysothan you/don'to"*/p/spa);.a>/o ooooooooooooooooooooooooooooopspa. classstring">"needothe ="driv at all\n"*/p/spa 0);.a>/o ooooooooooorfsurno->(pa href="+codEINVALNS" class="srefEINVAL04 > 1;.a>/o ooo});.a>/o ooorfsurnooopa href="+codpci_register_d"drivar" class="srefpci_register_d"drivegp/a&= pa href="+code/carmi_pci_d"drivar" class="srefe/carmi_pci_d"drivar > 0);.});.t;pa href="+codmodule_iniseg" class="srefmodule_inisegp/a>(pa href="+code/carmine_iniseg" class="srefc/carmine_inisegp/ 0);.);.static voidooopa href="+cod__exiseg" class="sref__exis91 >aoopa href="+code/carmine_cleanupeg" class="srefc/carmine_cleanupegp/avoid).4.{);.a>/o ooooopa href="+codpci_unregister_d"drivar" class="srefpci_unregister_d"drivegp/a&= pa href="+code/carmi_pci_d"drivar" class="srefe/carmi_pci_d"drivar > 0);.});.= pa href="+codmodule_exiseg" class="srefmodule_exisegp/a>(pa href="+code/carmine_cleanupeg" class="srefc/carmine_cleanupegp/ 0);.);.= pa href="+codMODULE_AUTHORDE" class="srefMODULE_AUTHORegp/a>opspa. classstring">"SebastispaSiewiora>l&gbigeasy@="lutronix.de>-&g"*/p/spa 0);."Fr nabuffiv ="driv foroFujitsu C/carmi based devicer"*/p/spa 0);.t;pa href="+codMODULE_LICENSEZE" class="srefMODULE_LICENSEegp/a>opspa. classstring">"GPL v2"*/p/spa 0);.
The original LXR software byothe ;.LXR ="counisyar >aothis experiommeal riveion byo;.lxr@="lux.no04 >. lxr.="lux.no kindly hosted byo;.Redpill L"lpro ASar >aopros/vir of L"lux ="nsulting and operations c_rvicer since 1995.