Lines Matching +full:mode +full:-

1 // SPDX-License-Identifier: GPL-2.0+
47 & ~RADEON_BUFFER_ALIGN) - 1)
48 #define RADEON_CRT_PITCH(width, bpp) ((((width) * (bpp) + ((bpp) * 8 - 1)) / ((bpp) * 8)) | \
49 ((((width) * (bpp) + ((bpp) * 8 - 1)) / ((bpp) * 8)) << 16))
52 (((((htotal) / 8) - 1) & 0x3ff) | (((((hdisp) / 8) - 1) & 0x1ff) << 16))
56 ((((vtotal) - 1) & 0xffff) | (((vdisp) - 1) << 16))
58 ((((vsync_srtr) - 1) & 0xfff) | (((vsync_wid) & 0x1f) << 16))
110 if ((rinfo->family == CHIP_FAMILY_RS100) || in radeon_identify_vram()
111 (rinfo->family == CHIP_FAMILY_RS200) || in radeon_identify_vram()
112 (rinfo->family == CHIP_FAMILY_RS300)) { in radeon_identify_vram()
114 tmp = ((((tom >> 16) - (tom & 0xffff) + 1) << 6) * 1024); in radeon_identify_vram()
125 if ((rinfo->family == CHIP_FAMILY_RS100) || in radeon_identify_vram()
126 (rinfo->family == CHIP_FAMILY_RS200)) { in radeon_identify_vram()
138 rinfo->video_ram = tmp & CONFIG_MEMSIZE_MASK; in radeon_identify_vram()
144 if (rinfo->video_ram == 0) { in radeon_identify_vram()
145 switch (rinfo->pdev.device) { in radeon_identify_vram()
148 rinfo->video_ram = 8192 * 1024; in radeon_identify_vram()
158 if ((rinfo->family >= CHIP_FAMILY_R300) || in radeon_identify_vram()
160 rinfo->vram_ddr = 1; in radeon_identify_vram()
162 rinfo->vram_ddr = 0; in radeon_identify_vram()
168 case 0: rinfo->vram_width = 64; break; in radeon_identify_vram()
169 case 1: rinfo->vram_width = 128; break; in radeon_identify_vram()
170 case 2: rinfo->vram_width = 256; break; in radeon_identify_vram()
171 default: rinfo->vram_width = 128; break; in radeon_identify_vram()
173 } else if ((rinfo->family == CHIP_FAMILY_RV100) || in radeon_identify_vram()
174 (rinfo->family == CHIP_FAMILY_RS100) || in radeon_identify_vram()
175 (rinfo->family == CHIP_FAMILY_RS200)){ in radeon_identify_vram()
177 rinfo->vram_width = 32; in radeon_identify_vram()
179 rinfo->vram_width = 64; in radeon_identify_vram()
182 rinfo->vram_width = 128; in radeon_identify_vram()
184 rinfo->vram_width = 64; in radeon_identify_vram()
192 rinfo->video_ram / 1024, in radeon_identify_vram()
193 rinfo->vram_ddr ? "DDR" : "SDRAM", in radeon_identify_vram()
194 rinfo->vram_width); in radeon_identify_vram()
198 static void radeon_write_pll_regs(struct radeonfb_info *rinfo, struct radeon_regs *mode) in radeon_write_pll_regs() argument
206 if (rinfo->is_mobility) { in radeon_write_pll_regs()
214 if ((mode->ppll_ref_div == (INPLL(PPLL_REF_DIV) & PPLL_REF_DIV_MASK)) && in radeon_write_pll_regs()
215 (mode->ppll_div_3 == (INPLL(PPLL_DIV_3) & in radeon_write_pll_regs()
221 mode->clk_cntl_index & PPLL_DIV_SEL_MASK, in radeon_write_pll_regs()
229 if(rinfo->pdev.device == PCI_CHIP_RV370_5B60) return; in radeon_write_pll_regs()
241 mode->clk_cntl_index & PPLL_DIV_SEL_MASK, in radeon_write_pll_regs()
245 if (rinfo->family == CHIP_FAMILY_R300 || in radeon_write_pll_regs()
246 rinfo->family == CHIP_FAMILY_RS300 || in radeon_write_pll_regs()
247 rinfo->family == CHIP_FAMILY_R350 || in radeon_write_pll_regs()
248 rinfo->family == CHIP_FAMILY_RV350) { in radeon_write_pll_regs()
249 if (mode->ppll_ref_div & R300_PPLL_REF_DIV_ACC_MASK) { in radeon_write_pll_regs()
250 /* When restoring console mode, use saved PPLL_REF_DIV in radeon_write_pll_regs()
253 OUTPLLP(PPLL_REF_DIV, mode->ppll_ref_div, 0); in radeon_write_pll_regs()
257 (mode->ppll_ref_div << R300_PPLL_REF_DIV_ACC_SHIFT), in radeon_write_pll_regs()
261 OUTPLLP(PPLL_REF_DIV, mode->ppll_ref_div, ~PPLL_REF_DIV_MASK); in radeon_write_pll_regs()
264 OUTPLLP(PPLL_DIV_3, mode->ppll_div_3, ~PPLL_FB3_DIV_MASK); in radeon_write_pll_regs()
265 OUTPLLP(PPLL_DIV_3, mode->ppll_div_3, ~PPLL_POST3_DIV_MASK); in radeon_write_pll_regs()
298 #if 0 /* unused ? -> scheduled for removal */
299 /* these common regs are cleared before mode setting so they do not
318 struct radeon_regs *mode = malloc(sizeof(struct radeon_regs)); in radeon_setmode() local
320 mode->crtc_gen_cntl = 0x03000200; in radeon_setmode()
321 mode->crtc_ext_cntl = 0x00008048; in radeon_setmode()
322 mode->dac_cntl = 0xff002100; in radeon_setmode()
323 mode->crtc_h_total_disp = 0x4f0063; in radeon_setmode()
324 mode->crtc_h_sync_strt_wid = 0x8c02a2; in radeon_setmode()
325 mode->crtc_v_total_disp = 0x01df020c; in radeon_setmode()
326 mode->crtc_v_sync_strt_wid = 0x8201ea; in radeon_setmode()
327 mode->crtc_pitch = 0x00500050; in radeon_setmode()
329 OUTREG(CRTC_GEN_CNTL, mode->crtc_gen_cntl); in radeon_setmode()
330 OUTREGP(CRTC_EXT_CNTL, mode->crtc_ext_cntl, in radeon_setmode()
332 OUTREGP(DAC_CNTL, mode->dac_cntl, DAC_RANGE_CNTL | DAC_BLANKING); in radeon_setmode()
333 OUTREG(CRTC_H_TOTAL_DISP, mode->crtc_h_total_disp); in radeon_setmode()
334 OUTREG(CRTC_H_SYNC_STRT_WID, mode->crtc_h_sync_strt_wid); in radeon_setmode()
335 OUTREG(CRTC_V_TOTAL_DISP, mode->crtc_v_total_disp); in radeon_setmode()
336 OUTREG(CRTC_V_SYNC_STRT_WID, mode->crtc_v_sync_strt_wid); in radeon_setmode()
339 OUTREG(CRTC_PITCH, mode->crtc_pitch); in radeon_setmode()
341 mode->clk_cntl_index = 0x300; in radeon_setmode()
342 mode->ppll_ref_div = 0xc; in radeon_setmode()
343 mode->ppll_div_3 = 0x00030059; in radeon_setmode()
345 radeon_write_pll_regs(rinfo, mode); in radeon_setmode()
361 struct radeon_regs *mode = malloc(sizeof(struct radeon_regs)); in radeon_setmode_9200() local
363 mode->crtc_gen_cntl = CRTC_EN | CRTC_EXT_DISP_EN; in radeon_setmode_9200()
364 mode->crtc_ext_cntl = VGA_ATI_LINEAR | XCRT_CNT_EN | CRTC_CRT_ON; in radeon_setmode_9200()
365 mode->dac_cntl = DAC_MASK_ALL | DAC_VGA_ADR_EN | DAC_8BIT_EN; in radeon_setmode_9200()
366 mode->crtc_offset_cntl = CRTC_OFFSET_CNTL__CRTC_TILE_EN; in radeon_setmode_9200()
370 mode->crtc_gen_cntl |= 0x6 << 8; /* x888 */ in radeon_setmode_9200()
372 mode->surface_cntl = NONSURF_AP0_SWP_32BPP | NONSURF_AP1_SWP_32BPP; in radeon_setmode_9200()
373 mode->surf_info[0] = NONSURF_AP0_SWP_32BPP | NONSURF_AP1_SWP_32BPP; in radeon_setmode_9200()
377 mode->crtc_gen_cntl |= 0x4 << 8; /* 565 */ in radeon_setmode_9200()
379 mode->surface_cntl = NONSURF_AP0_SWP_16BPP | NONSURF_AP1_SWP_16BPP; in radeon_setmode_9200()
380 mode->surf_info[0] = NONSURF_AP0_SWP_16BPP | NONSURF_AP1_SWP_16BPP; in radeon_setmode_9200()
384 mode->crtc_gen_cntl |= 0x2 << 8; /* palette */ in radeon_setmode_9200()
385 mode->surface_cntl = 0x00000000; in radeon_setmode_9200()
391 mode->crtc_h_total_disp = CRTC_H_TOTAL_DISP_VAL(1688,1280); in radeon_setmode_9200()
392 mode->crtc_v_total_disp = CRTC_V_TOTAL_DISP_VAL(1066,1024); in radeon_setmode_9200()
393 mode->crtc_v_sync_strt_wid = CRTC_VSYNC_STRT_WID_VAL(1025,3); in radeon_setmode_9200()
395 mode->crtc_h_sync_strt_wid = CRTC_HSYNC_STRT_WID_VAL(1288,18); in radeon_setmode_9200()
396 mode->ppll_div_3 = 0x00010078; in radeon_setmode_9200()
398 mode->crtc_h_sync_strt_wid = CRTC_HSYNC_STRT_WID_VAL(1320,14); in radeon_setmode_9200()
399 mode->ppll_div_3 = 0x00010060; in radeon_setmode_9200()
402 * for this mode pitch expands to the same value for 32, 16 and 8 bpp, in radeon_setmode_9200()
405 mode->crtc_pitch = RADEON_CRT_PITCH(1280,32); in radeon_setmode_9200()
408 mode->surf_info[0] |= R200_SURF_TILE_COLOR_MACRO | (1280 * 4 / 16); in radeon_setmode_9200()
409 mode->surf_upper_bound[0] = SURF_UPPER_BOUND(1280,1024,32); in radeon_setmode_9200()
412 mode->surf_info[0] |= R200_SURF_TILE_COLOR_MACRO | (1280 * 2 / 16); in radeon_setmode_9200()
413 mode->surf_upper_bound[0] = SURF_UPPER_BOUND(1280,1024,16); in radeon_setmode_9200()
416 mode->surf_info[0] = R200_SURF_TILE_COLOR_MACRO | (1280 * 1 / 16); in radeon_setmode_9200()
417 mode->surf_upper_bound[0] = SURF_UPPER_BOUND(1280,1024,8); in radeon_setmode_9200()
423 mode->crtc_h_total_disp = CRTC_H_TOTAL_DISP_VAL(1312,1024); in radeon_setmode_9200()
424 mode->crtc_h_sync_strt_wid = CRTC_HSYNC_STRT_WID_VAL(1032,12); in radeon_setmode_9200()
425 mode->crtc_v_total_disp = CRTC_V_TOTAL_DISP_VAL(800,768); in radeon_setmode_9200()
426 mode->crtc_v_sync_strt_wid = CRTC_VSYNC_STRT_WID_VAL(769,3); in radeon_setmode_9200()
427 mode->ppll_div_3 = 0x0002008c; in radeon_setmode_9200()
429 mode->crtc_h_total_disp = CRTC_H_TOTAL_DISP_VAL(1344,1024); in radeon_setmode_9200()
430 mode->crtc_h_sync_strt_wid = CRTC_HSYNC_STRT_WID_VAL(1040,17) | CRTC_H_SYNC_POL; in radeon_setmode_9200()
431 mode->crtc_v_total_disp = CRTC_V_TOTAL_DISP_VAL(806,768); in radeon_setmode_9200()
432 mode->crtc_v_sync_strt_wid = CRTC_VSYNC_STRT_WID_VAL(771,6) | CRTC_V_SYNC_POL; in radeon_setmode_9200()
433 mode->ppll_div_3 = 0x00020074; in radeon_setmode_9200()
436 mode->crtc_pitch = RADEON_CRT_PITCH(1024,32); in radeon_setmode_9200()
439 mode->surf_info[0] |= R200_SURF_TILE_COLOR_MACRO | (1024 * 4 / 16); in radeon_setmode_9200()
440 mode->surf_upper_bound[0] = SURF_UPPER_BOUND(1024,768,32); in radeon_setmode_9200()
443 mode->surf_info[0] |= R200_SURF_TILE_COLOR_MACRO | (1024 * 2 / 16); in radeon_setmode_9200()
444 mode->surf_upper_bound[0] = SURF_UPPER_BOUND(1024,768,16); in radeon_setmode_9200()
447 mode->surf_info[0] = R200_SURF_TILE_COLOR_MACRO | (1024 * 1 / 16); in radeon_setmode_9200()
448 mode->surf_upper_bound[0] = SURF_UPPER_BOUND(1024,768,8); in radeon_setmode_9200()
453 mode->crtc_h_total_disp = CRTC_H_TOTAL_DISP_VAL(1056,800); in radeon_setmode_9200()
455 mode->crtc_h_sync_strt_wid = CRTC_HSYNC_STRT_WID_VAL(808,10); in radeon_setmode_9200()
456 mode->crtc_v_total_disp = CRTC_V_TOTAL_DISP_VAL(625,600); in radeon_setmode_9200()
457 mode->crtc_v_sync_strt_wid = CRTC_VSYNC_STRT_WID_VAL(601,3); in radeon_setmode_9200()
458 mode->ppll_div_3 = 0x000300b0; in radeon_setmode_9200()
460 mode->crtc_h_sync_strt_wid = CRTC_HSYNC_STRT_WID_VAL(832,16); in radeon_setmode_9200()
461 mode->crtc_v_total_disp = CRTC_V_TOTAL_DISP_VAL(628,600); in radeon_setmode_9200()
462 mode->crtc_v_sync_strt_wid = CRTC_VSYNC_STRT_WID_VAL(601,4); in radeon_setmode_9200()
463 mode->ppll_div_3 = 0x0003008e; in radeon_setmode_9200()
467 mode->crtc_pitch = RADEON_CRT_PITCH(832,32); in radeon_setmode_9200()
468 mode->surf_info[0] |= R200_SURF_TILE_COLOR_MACRO | (832 * 4 / 16); in radeon_setmode_9200()
469 mode->surf_upper_bound[0] = SURF_UPPER_BOUND(832,600,32); in radeon_setmode_9200()
472 mode->crtc_pitch = RADEON_CRT_PITCH(896,16); in radeon_setmode_9200()
473 mode->surf_info[0] |= R200_SURF_TILE_COLOR_MACRO | (896 * 2 / 16); in radeon_setmode_9200()
474 mode->surf_upper_bound[0] = SURF_UPPER_BOUND(896,600,16); in radeon_setmode_9200()
477 mode->crtc_pitch = RADEON_CRT_PITCH(1024,8); in radeon_setmode_9200()
478 mode->surf_info[0] = R200_SURF_TILE_COLOR_MACRO | (1024 * 1 / 16); in radeon_setmode_9200()
479 mode->surf_upper_bound[0] = SURF_UPPER_BOUND(1024,600,8); in radeon_setmode_9200()
485 mode->crtc_h_total_disp = CRTC_H_TOTAL_DISP_VAL(840,640); in radeon_setmode_9200()
486 mode->crtc_h_sync_strt_wid = CRTC_HSYNC_STRT_WID_VAL(648,8) | CRTC_H_SYNC_POL; in radeon_setmode_9200()
487 mode->crtc_v_total_disp = CRTC_V_TOTAL_DISP_VAL(500,480); in radeon_setmode_9200()
488 mode->crtc_v_sync_strt_wid = CRTC_VSYNC_STRT_WID_VAL(481,3) | CRTC_V_SYNC_POL; in radeon_setmode_9200()
489 mode->ppll_div_3 = 0x00030070; in radeon_setmode_9200()
491 mode->crtc_h_total_disp = CRTC_H_TOTAL_DISP_VAL(800,640); in radeon_setmode_9200()
492 mode->crtc_h_sync_strt_wid = CRTC_HSYNC_STRT_WID_VAL(674,12) | CRTC_H_SYNC_POL; in radeon_setmode_9200()
493 mode->crtc_v_total_disp = CRTC_V_TOTAL_DISP_VAL(525,480); in radeon_setmode_9200()
494 mode->crtc_v_sync_strt_wid = CRTC_VSYNC_STRT_WID_VAL(491,2) | CRTC_V_SYNC_POL; in radeon_setmode_9200()
495 mode->ppll_div_3 = 0x00030059; in radeon_setmode_9200()
498 mode->crtc_pitch = RADEON_CRT_PITCH(640,32); in radeon_setmode_9200()
501 mode->surf_info[0] |= R200_SURF_TILE_COLOR_MACRO | (640 * 4 / 16); in radeon_setmode_9200()
502 mode->surf_upper_bound[0] = SURF_UPPER_BOUND(640,480,32); in radeon_setmode_9200()
505 mode->surf_info[0] |= R200_SURF_TILE_COLOR_MACRO | (640 * 2 / 16); in radeon_setmode_9200()
506 mode->surf_upper_bound[0] = SURF_UPPER_BOUND(640,480,16); in radeon_setmode_9200()
509 mode->crtc_offset_cntl = 0x00000000; in radeon_setmode_9200()
515 OUTREG(CRTC_GEN_CNTL, mode->crtc_gen_cntl | CRTC_DISP_REQ_EN_B); in radeon_setmode_9200()
516 OUTREGP(CRTC_EXT_CNTL, mode->crtc_ext_cntl, in radeon_setmode_9200()
518 OUTREGP(DAC_CNTL, mode->dac_cntl, DAC_RANGE_CNTL | DAC_BLANKING); in radeon_setmode_9200()
519 OUTREG(CRTC_H_TOTAL_DISP, mode->crtc_h_total_disp); in radeon_setmode_9200()
520 OUTREG(CRTC_H_SYNC_STRT_WID, mode->crtc_h_sync_strt_wid); in radeon_setmode_9200()
521 OUTREG(CRTC_V_TOTAL_DISP, mode->crtc_v_total_disp); in radeon_setmode_9200()
522 OUTREG(CRTC_V_SYNC_STRT_WID, mode->crtc_v_sync_strt_wid); in radeon_setmode_9200()
524 OUTREG(CRTC_OFFSET_CNTL, mode->crtc_offset_cntl); in radeon_setmode_9200()
525 OUTREG(CRTC_PITCH, mode->crtc_pitch); in radeon_setmode_9200()
526 OUTREG(CRTC_GEN_CNTL, mode->crtc_gen_cntl); in radeon_setmode_9200()
528 mode->clk_cntl_index = 0x300; in radeon_setmode_9200()
529 mode->ppll_ref_div = 0xc; in radeon_setmode_9200()
531 radeon_write_pll_regs(rinfo, mode); in radeon_setmode_9200()
533 OUTREGP(CRTC_EXT_CNTL, mode->crtc_ext_cntl, in radeon_setmode_9200()
535 OUTREG(SURFACE0_INFO, mode->surf_info[0]); in radeon_setmode_9200()
537 OUTREG(SURFACE0_UPPER_BOUND, mode->surf_upper_bound[0]); in radeon_setmode_9200()
538 OUTREG(SURFACE_CNTL, mode->surface_cntl); in radeon_setmode_9200()
543 free(mode); in radeon_setmode_9200()
555 if (pdev != -1) { in radeon_probe()
561 strcpy(rinfo->name, "ATI Radeon"); in radeon_probe()
562 rinfo->pdev.vendor = PCI_VENDOR_ID_ATI; in radeon_probe()
563 rinfo->pdev.device = did; in radeon_probe()
564 rinfo->family = get_radeon_id_family(rinfo->pdev.device); in radeon_probe()
566 &rinfo->fb_base_bus); in radeon_probe()
568 &rinfo->mmio_base_bus); in radeon_probe()
569 rinfo->fb_base_bus &= 0xfffff000; in radeon_probe()
570 rinfo->mmio_base_bus &= ~0x04; in radeon_probe()
572 rinfo->mmio_base = pci_bus_to_virt(pdev, rinfo->mmio_base_bus, in radeon_probe()
574 DPRINT("rinfo->mmio_base = 0x%p bus=0x%x\n", in radeon_probe()
575 rinfo->mmio_base, rinfo->mmio_base_bus); in radeon_probe()
576 rinfo->fb_local_base = INREG(MC_FB_LOCATION) << 16; in radeon_probe()
577 DPRINT("rinfo->fb_local_base = 0x%x\n",rinfo->fb_local_base); in radeon_probe()
580 return -1; in radeon_probe()
591 rinfo->mapped_vram = min_t(unsigned long, MAX_MAPPED_VRAM, in radeon_probe()
592 rinfo->video_ram); in radeon_probe()
593 rinfo->fb_base = pci_bus_to_virt(pdev, rinfo->fb_base_bus, in radeon_probe()
599 (u32)rinfo->fb_base, rinfo->fb_base_bus, in radeon_probe()
600 (u32)rinfo->mmio_base, rinfo->mmio_base_bus, in radeon_probe()
601 rinfo->fb_local_base); in radeon_probe()
604 return -1; in radeon_probe()
613 #define PATTERN_ADR (pGD->dprBase + CURSOR_SIZE) /* pattern Memory after Cursor Memory */
638 /* get video mode via environment */ in video_hw_init()
657 printf ("no VESA Mode found, switching to mode 0x%x ", CONFIG_SYS_DEFAULT_VIDEO_MODE); in video_hw_init()
669 t1 = (res_mode->left_margin + res_mode->xres + in video_hw_init()
670 res_mode->right_margin + res_mode->hsync_len) / 8; in video_hw_init()
672 t1 *= res_mode->pixclock; in video_hw_init()
675 t1 *= (res_mode->upper_margin + res_mode->yres + in video_hw_init()
676 res_mode->lower_margin + res_mode->vsync_len); in video_hw_init()
681 sprintf (pGD->modeIdent, "%dx%dx%d %ldkHz %ldHz", res_mode->xres, in video_hw_init()
682 res_mode->yres, bits_per_pixel, (hsynch / 1000), in video_hw_init()
684 printf ("%s\n", pGD->modeIdent); in video_hw_init()
685 pGD->winSizeX = res_mode->xres; in video_hw_init()
686 pGD->winSizeY = res_mode->yres; in video_hw_init()
687 pGD->plnSizeX = res_mode->xres; in video_hw_init()
688 pGD->plnSizeY = res_mode->yres; in video_hw_init()
692 pGD->gdfBytesPP = 4; in video_hw_init()
693 pGD->gdfIndex = GDF_32BIT_X888RGB; in video_hw_init()
694 if (res_mode->xres == 800) { in video_hw_init()
695 pGD->winSizeX = 832; in video_hw_init()
696 pGD->plnSizeX = 832; in video_hw_init()
700 pGD->gdfBytesPP = 2; in video_hw_init()
701 pGD->gdfIndex = GDF_16BIT_565RGB; in video_hw_init()
702 if (res_mode->xres == 800) { in video_hw_init()
703 pGD->winSizeX = 896; in video_hw_init()
704 pGD->plnSizeX = 896; in video_hw_init()
708 if (res_mode->xres == 800) { in video_hw_init()
709 pGD->winSizeX = 1024; in video_hw_init()
710 pGD->plnSizeX = 1024; in video_hw_init()
712 pGD->gdfBytesPP = 1; in video_hw_init()
713 pGD->gdfIndex = GDF__8BIT_INDEX; in video_hw_init()
717 pGD->isaBase = CONFIG_SYS_ISA_IO_BASE_ADDRESS; in video_hw_init()
718 pGD->pciBase = (unsigned int)rinfo->fb_base; in video_hw_init()
719 pGD->frameAdrs = (unsigned int)rinfo->fb_base; in video_hw_init()
720 pGD->memSize = 64 * 1024 * 1024; in video_hw_init()
723 pGD->dprBase = (pGD->winSizeX * pGD->winSizeY * pGD->gdfBytesPP) + in video_hw_init()
724 (unsigned int)rinfo->fb_base; in video_hw_init()
725 if ((pGD->dprBase & 0x0fff) != 0) { in video_hw_init()
727 pGD->dprBase &= 0xfffff000; in video_hw_init()
728 pGD->dprBase += 0x00001000; in video_hw_init()
730 DPRINT ("Cursor Start %x Pattern Start %x\n", pGD->dprBase, in video_hw_init()
732 pGD->vprBase = (unsigned int)rinfo->fb_base; /* Dummy */ in video_hw_init()
733 pGD->cprBase = (unsigned int)rinfo->fb_base; /* Dummy */ in video_hw_init()
737 i = pGD->winSizeX * pGD->winSizeY * pGD->gdfBytesPP / 4; in video_hw_init()
738 vm = (unsigned int *) pGD->pciBase; in video_hw_init()
739 while (i--) in video_hw_init()
743 if (rinfo->family == CHIP_FAMILY_RV280) in video_hw_init()