tag | line | file | source code |
mono_current_par | 1184 | arch/m68k/amiga/amifb.c | } mono_current_par; |
mono_current_par | 1820 | arch/m68k/amiga/amifb.c | ushort diwstrt_v = mono_current_par.diwstrt_v; |
mono_current_par | 1821 | arch/m68k/amiga/amifb.c | ushort diwstop_h = mono_current_par.diwstop_h; |
mono_current_par | 1832 | arch/m68k/amiga/amifb.c | *cop++ = (ushort)((long)mono_current_par.cursor >> 16); |
mono_current_par | 1834 | arch/m68k/amiga/amifb.c | *cop++ = (ushort)((long)mono_current_par.cursor & 0x0000ffff); |
mono_current_par | 1839 | arch/m68k/amiga/amifb.c | *cop++ = (ushort)((long)mono_current_par.dummy >> 16); |
mono_current_par | 1841 | arch/m68k/amiga/amifb.c | *cop++ = (ushort)((long)mono_current_par.dummy & 0x0000ffff); |
mono_current_par | 1856 | arch/m68k/amiga/amifb.c | ushort diwstrt_v = mono_current_par.diwstrt_v; |
mono_current_par | 1857 | arch/m68k/amiga/amifb.c | ushort diwstop_h = mono_current_par.diwstop_h; |
mono_current_par | 1858 | arch/m68k/amiga/amifb.c | ushort y_wrap = mono_current_par.y_wrap; |
mono_current_par | 1859 | arch/m68k/amiga/amifb.c | ulong offset = y_wrap * mono_current_par.bytes_per_row; |
mono_current_par | 1865 | arch/m68k/amiga/amifb.c | for (i = 0 ; i < mono_current_par.scr_depth ; i++) { |
mono_current_par | 1866 | arch/m68k/amiga/amifb.c | scrmem = ((long)mono_current_par.bitplane[i]) + offset; |
mono_current_par | 1869 | arch/m68k/amiga/amifb.c | scrmem += mono_current_par.bytes_per_row; |
mono_current_par | 1882 | arch/m68k/amiga/amifb.c | if (mono_current_par.bplcon0 & BPC0_LACE) |
mono_current_par | 1883 | arch/m68k/amiga/amifb.c | line = diwstrt_v + (mono_current_par.scr_height - y_wrap)/2; |
mono_current_par | 1885 | arch/m68k/amiga/amifb.c | line = diwstrt_v + mono_current_par.scr_height - y_wrap; |
mono_current_par | 1891 | arch/m68k/amiga/amifb.c | if (mono_current_par.bplcon0 & BPC0_SHRES) |
mono_current_par | 1897 | arch/m68k/amiga/amifb.c | *cop++ = 0xff00 | ((mono_current_par.htotal-4) | 1); |
mono_current_par | 1911 | arch/m68k/amiga/amifb.c | if (boot_info.bi_amiga.chipset == CS_ECS && mono_current_par.bplcon0 & BPC0_ECSENA) { |
mono_current_par | 1921 | arch/m68k/amiga/amifb.c | for (i = 0 ; i < mono_current_par.scr_depth ; i++) { |
mono_current_par | 1922 | arch/m68k/amiga/amifb.c | scrmem = (long)mono_current_par.bitplane[i]; |
mono_current_par | 1924 | arch/m68k/amiga/amifb.c | scrmem += mono_current_par.bytes_per_row; |
mono_current_par | 1944 | arch/m68k/amiga/amifb.c | ushort diwstrt_v = mono_current_par.diwstrt_v; |
mono_current_par | 1945 | arch/m68k/amiga/amifb.c | ushort diwstrt_h = mono_current_par.diwstrt_h; |
mono_current_par | 1947 | arch/m68k/amiga/amifb.c | if (mono_current_par.bplcon0 & BPC0_LACE) { |
mono_current_par | 1955 | arch/m68k/amiga/amifb.c | if (mono_current_par.bplcon0 & BPC0_ECSENA) |
mono_current_par | 1964 | arch/m68k/amiga/amifb.c | if (mono_current_par.bplcon0 & BPC0_ECSENA) { |
mono_current_par | 1966 | arch/m68k/amiga/amifb.c | *((ulong *) mono_current_par.cursor) = |
mono_current_par | 1974 | arch/m68k/amiga/amifb.c | *((ulong *) mono_current_par.cursor) = |
mono_current_par | 2059 | arch/m68k/amiga/amifb.c | mono_current_par.fgcol = FG_COLOR_INV; |
mono_current_par | 2060 | arch/m68k/amiga/amifb.c | mono_current_par.bgcol = BG_COLOR_INV; |
mono_current_par | 2061 | arch/m68k/amiga/amifb.c | mono_current_par.crsrcol = CRSR_COLOR_INV; |
mono_current_par | 2063 | arch/m68k/amiga/amifb.c | mono_current_par.fgcol = FG_COLOR; |
mono_current_par | 2064 | arch/m68k/amiga/amifb.c | mono_current_par.bgcol = BG_COLOR; |
mono_current_par | 2065 | arch/m68k/amiga/amifb.c | mono_current_par.crsrcol = CRSR_COLOR; |
mono_current_par | 2070 | arch/m68k/amiga/amifb.c | mono_current_par.scr_max_height = geom->scr_max_height; |
mono_current_par | 2071 | arch/m68k/amiga/amifb.c | mono_current_par.scr_max_width = geom->scr_max_width; |
mono_current_par | 2072 | arch/m68k/amiga/amifb.c | mono_current_par.scr_height = geom->scr_height; |
mono_current_par | 2073 | arch/m68k/amiga/amifb.c | mono_current_par.scr_width = geom->scr_width; |
mono_current_par | 2074 | arch/m68k/amiga/amifb.c | mono_current_par.scr_depth = geom->scr_depth; |
mono_current_par | 2075 | arch/m68k/amiga/amifb.c | mono_current_par.bplcon0 = geom->bplcon0 | BPC0_COLOR; |
mono_current_par | 2076 | arch/m68k/amiga/amifb.c | mono_current_par.htotal = geom->htotal; |
mono_current_par | 2080 | arch/m68k/amiga/amifb.c | if (mono_current_par.scr_depth < 8) |
mono_current_par | 2081 | arch/m68k/amiga/amifb.c | mono_current_par.bplcon0 |= (mono_current_par.scr_depth << 12); |
mono_current_par | 2084 | arch/m68k/amiga/amifb.c | mono_current_par.bplcon0 |= BPC0_BPU3; |
mono_current_par | 2097 | arch/m68k/amiga/amifb.c | mono_current_par.bytes_per_row = ((mono_current_par.scr_width+geom->alignment-1)&~(geom->alignment-1)) >> 3; |
mono_current_par | 2098 | arch/m68k/amiga/amifb.c | mono_current_par.plane_size = mono_current_par.bytes_per_row * mono_current_par.scr_height; |
mono_current_par | 2107 | arch/m68k/amiga/amifb.c | mono_current_par.plane_size = PAGE_ALIGN(mono_current_par.plane_size); |
mono_current_par | 2110 | arch/m68k/amiga/amifb.c | mono_current_par.y_wrap = 0; mono_current_par.scroll_latch = 1; |
mono_current_par | 2111 | arch/m68k/amiga/amifb.c | p->cursor_x = 0; p->cursor_y = 0; mono_current_par.cursor_latch = 1; |
mono_current_par | 2113 | arch/m68k/amiga/amifb.c | if (mono_current_par.bplcon0 & BPC0_LACE) { |
mono_current_par | 2114 | arch/m68k/amiga/amifb.c | bplmod = mono_current_par.bytes_per_row; |
mono_current_par | 2115 | arch/m68k/amiga/amifb.c | diwstrt_v = diw_min_v + (mono_current_par.scr_max_height - mono_current_par.scr_height)/4; |
mono_current_par | 2116 | arch/m68k/amiga/amifb.c | diwstop_v = (diwstrt_v + mono_current_par.scr_height/2); |
mono_current_par | 2119 | arch/m68k/amiga/amifb.c | diwstrt_v = diw_min_v + (mono_current_par.scr_max_height - mono_current_par.scr_height)/2; |
mono_current_par | 2120 | arch/m68k/amiga/amifb.c | diwstop_v = (diwstrt_v + mono_current_par.scr_height); |
mono_current_par | 2123 | arch/m68k/amiga/amifb.c | if (mono_current_par.bplcon0 & BPC0_HIRES) { |
mono_current_par | 2124 | arch/m68k/amiga/amifb.c | diwstrt_h = diw_min_h + (mono_current_par.scr_max_width - mono_current_par.scr_width)/4; |
mono_current_par | 2125 | arch/m68k/amiga/amifb.c | diwstop_h = (diwstrt_h + mono_current_par.scr_width/2); |
mono_current_par | 2127 | arch/m68k/amiga/amifb.c | } else if (mono_current_par.bplcon0 & BPC0_SHRES) { |
mono_current_par | 2128 | arch/m68k/amiga/amifb.c | diwstrt_h = diw_min_h + (mono_current_par.scr_max_width - mono_current_par.scr_width)/8; |
mono_current_par | 2129 | arch/m68k/amiga/amifb.c | diwstop_h = (diwstrt_h + mono_current_par.scr_width/4); |
mono_current_par | 2131 | arch/m68k/amiga/amifb.c | diwstrt_h = diw_min_h + (mono_current_par.scr_max_width - mono_current_par.scr_width)/2; |
mono_current_par | 2132 | arch/m68k/amiga/amifb.c | diwstop_h = (diwstrt_h + mono_current_par.scr_width); |
mono_current_par | 2135 | arch/m68k/amiga/amifb.c | if (mono_current_par.bplcon0 & BPC0_HIRES) { |
mono_current_par | 2137 | arch/m68k/amiga/amifb.c | ddfstop = ddfstrt + (4 * (mono_current_par.bytes_per_row>>1)) - 8; |
mono_current_par | 2138 | arch/m68k/amiga/amifb.c | } else if (mono_current_par.bplcon0 & BPC0_SHRES && boot_info.bi_amiga.chipset == CS_AGA) { |
mono_current_par | 2153 | arch/m68k/amiga/amifb.c | ddfstop = ddfstrt + (2 * (mono_current_par.bytes_per_row>>1)) - 8; |
mono_current_par | 2154 | arch/m68k/amiga/amifb.c | } else if (mono_current_par.bplcon0 & BPC0_SHRES && boot_info.bi_amiga.chipset == CS_ECS){ |
mono_current_par | 2160 | arch/m68k/amiga/amifb.c | ddfstop = ddfstrt + (2 * (mono_current_par.bytes_per_row>>1)) - 8; |
mono_current_par | 2163 | arch/m68k/amiga/amifb.c | ddfstop = ddfstrt + (8 * (mono_current_par.bytes_per_row>>1)) - 8; |
mono_current_par | 2166 | arch/m68k/amiga/amifb.c | if (mono_current_par.bplcon0 & BPC0_LACE) |
mono_current_par | 2177 | arch/m68k/amiga/amifb.c | size = mono_current_par.scr_depth*mono_current_par.plane_size+COP_MEM_REQ+SPR_MEM_REQ+4*(cursorheight-1); |
mono_current_par | 2186 | arch/m68k/amiga/amifb.c | mono_current_par.smem_start = (u_long)chipptr; |
mono_current_par | 2187 | arch/m68k/amiga/amifb.c | mono_current_par.smem_len = mono_current_par.plane_size*mono_current_par.scr_depth; |
mono_current_par | 2188 | arch/m68k/amiga/amifb.c | mono_current_par.geometry = geom; |
mono_current_par | 2190 | arch/m68k/amiga/amifb.c | for (i = 0 ; i < mono_current_par.scr_depth ; i++, chipptr += mono_current_par.plane_size) { |
mono_current_par | 2191 | arch/m68k/amiga/amifb.c | mono_current_par.bitplane[i] = (u_char *) chipptr; |
mono_current_par | 2192 | arch/m68k/amiga/amifb.c | memset ((void *)chipptr, 0, mono_current_par.plane_size); /* and clear */ |
mono_current_par | 2196 | arch/m68k/amiga/amifb.c | mono_current_par.coplist1hdr = (ushort *) chipptr; chipptr += MAX_COP_LIST_ENTS * 4; |
mono_current_par | 2197 | arch/m68k/amiga/amifb.c | mono_current_par.coplist2hdr = (ushort *) chipptr; chipptr += MAX_COP_LIST_ENTS * 4; |
mono_current_par | 2200 | arch/m68k/amiga/amifb.c | mono_current_par.cursor = (ushort *) chipptr; chipptr += 8+4*cursorheight; |
mono_current_par | 2201 | arch/m68k/amiga/amifb.c | mono_current_par.dummy = (ushort *) chipptr; chipptr += 12; |
mono_current_par | 2204 | arch/m68k/amiga/amifb.c | memset((void *)mono_current_par.cursor, 0, 8+4*cursorheight); |
mono_current_par | 2208 | arch/m68k/amiga/amifb.c | if (mono_current_par.bplcon0 & BPC0_ECSENA && boot_info.bi_amiga.chipset == CS_AGA) |
mono_current_par | 2217 | arch/m68k/amiga/amifb.c | mono_current_par.cursor[0] = mono_cursor_data[0]; |
mono_current_par | 2218 | arch/m68k/amiga/amifb.c | mono_current_par.cursor[1] = mono_cursor_data[1]; |
mono_current_par | 2225 | arch/m68k/amiga/amifb.c | mono_current_par.cursor[2+2*i] = cursormask; |
mono_current_par | 2228 | arch/m68k/amiga/amifb.c | memset((void *)mono_current_par.dummy, 0, 12); |
mono_current_par | 2231 | arch/m68k/amiga/amifb.c | mono_current_par.cursor_flash = CRSR_FLASH; |
mono_current_par | 2234 | arch/m68k/amiga/amifb.c | mono_current_par.cursor_visible = 0; |
mono_current_par | 2237 | arch/m68k/amiga/amifb.c | mono_current_par.diwstrt_v = diwstrt_v; |
mono_current_par | 2238 | arch/m68k/amiga/amifb.c | mono_current_par.diwstrt_h = diwstrt_h; |
mono_current_par | 2239 | arch/m68k/amiga/amifb.c | mono_current_par.diwstop_v = diwstop_v; |
mono_current_par | 2240 | arch/m68k/amiga/amifb.c | mono_current_par.diwstop_h = diwstop_h; |
mono_current_par | 2244 | arch/m68k/amiga/amifb.c | custom.bplcon0 = mono_current_par.bplcon0; /* set the display mode */ |
mono_current_par | 2254 | arch/m68k/amiga/amifb.c | custom.color[0] = COLOR_MSB(mono_current_par.bgcol); |
mono_current_par | 2255 | arch/m68k/amiga/amifb.c | custom.color[1] = COLOR_MSB(mono_current_par.fgcol); |
mono_current_par | 2256 | arch/m68k/amiga/amifb.c | custom.color[17] = COLOR_MSB(mono_current_par.crsrcol); /* Sprite 0 color */ |
mono_current_par | 2262 | arch/m68k/amiga/amifb.c | custom.color[0] = COLOR_LSB(mono_current_par.bgcol); |
mono_current_par | 2263 | arch/m68k/amiga/amifb.c | custom.color[1] = COLOR_LSB(mono_current_par.fgcol); |
mono_current_par | 2264 | arch/m68k/amiga/amifb.c | custom.color[17] = COLOR_LSB(mono_current_par.crsrcol); |
mono_current_par | 2268 | arch/m68k/amiga/amifb.c | if (boot_info.bi_amiga.chipset == CS_ECS && mono_current_par.bplcon0 & BPC0_ECSENA) { |
mono_current_par | 2279 | arch/m68k/amiga/amifb.c | mono_build_ecs_colors(COLOR_MSB(mono_current_par.bgcol), COLOR_MSB(mono_current_par.fgcol), |
mono_current_par | 2300 | arch/m68k/amiga/amifb.c | mono_build_ecs_colors(0, COLOR_MSB(mono_current_par.crsrcol), 0, 0, ecs_table); |
mono_current_par | 2350 | arch/m68k/amiga/amifb.c | if (mono_current_par.bplcon0 & BPC0_LACE) { |
mono_current_par | 2351 | arch/m68k/amiga/amifb.c | mono_current_par.coplist1dyn = mono_build_clist_hdr(p,mono_current_par.coplist1hdr, mono_current_par.coplist2hdr), |
mono_current_par | 2352 | arch/m68k/amiga/amifb.c | mono_build_clist_dyn(p, mono_current_par.coplist1dyn, 0); |
mono_current_par | 2354 | arch/m68k/amiga/amifb.c | mono_current_par.coplist2dyn = mono_build_clist_hdr(p,mono_current_par.coplist2hdr, mono_current_par.coplist1hdr), |
mono_current_par | 2355 | arch/m68k/amiga/amifb.c | mono_build_clist_dyn(p, mono_current_par.coplist2dyn, 1); |
mono_current_par | 2357 | arch/m68k/amiga/amifb.c | mono_current_par.coplist1dyn = mono_build_clist_hdr(p,mono_current_par.coplist1hdr, NULL), |
mono_current_par | 2358 | arch/m68k/amiga/amifb.c | mono_build_clist_dyn(p, mono_current_par.coplist1dyn, 0); |
mono_current_par | 2363 | arch/m68k/amiga/amifb.c | custom.cop1lc = mono_current_par.coplist1hdr; |
mono_current_par | 2369 | arch/m68k/amiga/amifb.c | if (mono_current_par.bplcon0 & BPC0_LACE) { |
mono_current_par | 2381 | arch/m68k/amiga/amifb.c | custom.cop1lc = mono_current_par.coplist1hdr; |
mono_current_par | 2400 | arch/m68k/amiga/amifb.c | if (!(mono_current_par.bplcon0 & BPC0_LACE) || (custom.vposr & 0x8000)) { |
mono_current_par | 2401 | arch/m68k/amiga/amifb.c | if (mono_current_par.scroll_latch || mono_current_par.cursor_latch) |
mono_current_par | 2404 | arch/m68k/amiga/amifb.c | if (mono_current_par.scroll_latch) |
mono_current_par | 2405 | arch/m68k/amiga/amifb.c | if (mono_current_par.bplcon0 & BPC0_LACE) { |
mono_current_par | 2406 | arch/m68k/amiga/amifb.c | mono_build_clist_dyn(p, mono_current_par.coplist1dyn, 0); |
mono_current_par | 2407 | arch/m68k/amiga/amifb.c | mono_build_clist_dyn(p, mono_current_par.coplist2dyn, 1); |
mono_current_par | 2409 | arch/m68k/amiga/amifb.c | mono_build_clist_dyn(p, mono_current_par.coplist1dyn, 0); |
mono_current_par | 2410 | arch/m68k/amiga/amifb.c | mono_current_par.scroll_latch = 0; |
mono_current_par | 2411 | arch/m68k/amiga/amifb.c | mono_current_par.cursor_latch = 0; |
mono_current_par | 2417 | arch/m68k/amiga/amifb.c | if (mono_current_par.cursor_visible) { |
mono_current_par | 2418 | arch/m68k/amiga/amifb.c | if (mono_current_par.cursor_flash) { |
mono_current_par | 2446 | arch/m68k/amiga/amifb.c | if (mono_current_par.cursor_visible) |
mono_current_par | 2450 | arch/m68k/amiga/amifb.c | custom.color[0] = COLOR_MSB(mono_current_par.bgcol); |
mono_current_par | 2455 | arch/m68k/amiga/amifb.c | custom.color[0] = COLOR_LSB(mono_current_par.bgcol); |
mono_current_par | 2459 | arch/m68k/amiga/amifb.c | if (boot_info.bi_amiga.chipset == CS_ECS && mono_current_par.bplcon0 & BPC0_ECSENA) { |
mono_current_par | 2473 | arch/m68k/amiga/amifb.c | strcpy(fix->id, mono_current_par.geometry->modename); |
mono_current_par | 2474 | arch/m68k/amiga/amifb.c | fix->smem_start = mono_current_par.smem_start; |
mono_current_par | 2475 | arch/m68k/amiga/amifb.c | fix->smem_len = mono_current_par.smem_len; |
mono_current_par | 2504 | arch/m68k/amiga/amifb.c | var->xres = mono_current_par.geometry->scr_width; |
mono_current_par | 2505 | arch/m68k/amiga/amifb.c | var->yres = mono_current_par.geometry->scr_height; |
mono_current_par | 2511 | arch/m68k/amiga/amifb.c | var->bits_per_pixel = mono_current_par.geometry->scr_depth; |
mono_current_par | 2537 | arch/m68k/amiga/amifb.c | var->left_margin = (mono_current_par.geometry->hbstop-mono_current_par.geometry->hsstrt)*8; |
mono_current_par | 2538 | arch/m68k/amiga/amifb.c | var->right_margin = (mono_current_par.geometry->hsstrt-mono_current_par.geometry->hbstrt)*8; |
mono_current_par | 2539 | arch/m68k/amiga/amifb.c | var->upper_margin = (mono_current_par.geometry->vbstop-mono_current_par.geometry->vsstrt)*8; |
mono_current_par | 2540 | arch/m68k/amiga/amifb.c | var->lower_margin = (mono_current_par.geometry->vsstrt-mono_current_par.geometry->vbstrt)*8; |
mono_current_par | 2541 | arch/m68k/amiga/amifb.c | var->hsync_len = (mono_current_par.geometry->hsstop-mono_current_par.geometry->hsstrt)*8; |
mono_current_par | 2542 | arch/m68k/amiga/amifb.c | var->vsync_len = (mono_current_par.geometry->vsstop-mono_current_par.geometry->vsstrt)*8; |
mono_current_par | 2544 | arch/m68k/amiga/amifb.c | if (mono_current_par.geometry->bplcon0 & BPC0_LACE) |
mono_current_par | 2546 | arch/m68k/amiga/amifb.c | else if ((boot_info.bi_amiga.chipset == CS_AGA) && (mono_current_par.geometry->fmode & FMODE_BSCAN2)) |
mono_current_par | 2702 | arch/m68k/amiga/amifb.c | mono_current_par.y_wrap = disp[con].var.yoffset; |
mono_current_par | 2703 | arch/m68k/amiga/amifb.c | mono_current_par.cursor_latch = 1; |
mono_current_par | 2704 | arch/m68k/amiga/amifb.c | mono_current_par.scroll_latch = 1; |
mono_current_par | 2711 | arch/m68k/amiga/amifb.c | mono_current_par.y_wrap = disp[con].var.yoffset; |
mono_current_par | 2712 | arch/m68k/amiga/amifb.c | mono_current_par.cursor_latch = 1; |
mono_current_par | 2713 | arch/m68k/amiga/amifb.c | mono_current_par.scroll_latch = 1; |