Lines Matching full:riva

2  * linux/drivers/video/riva/fbdev.c - nVidia RIVA 128/TNT/TNT2 fb driver
298 tmp_pmc = NV_RD32(par->riva.PMC, 0x10F0) & 0x0000FFFF; in riva_bl_update_status()
299 tmp_pcrt = NV_RD32(par->riva.PCRTC0, 0x081C) & 0xFFFFFFFC; in riva_bl_update_status()
305 NV_WR32(par->riva.PCRTC0, 0x081C, tmp_pcrt); in riva_bl_update_status()
306 NV_WR32(par->riva.PMC, 0x10F0, tmp_pmc); in riva_bl_update_status()
340 printk(KERN_WARNING "riva: Backlight registration failed\n"); in riva_bl_init()
353 printk("riva: Backlight initialized (%s)\n", name); in riva_bl_init()
366 printk("riva: Backlight unloaded\n"); in riva_bl_exit()
382 VGA_WR08(par->riva.PCIO, 0x3d4, index); in CRTCout()
383 VGA_WR08(par->riva.PCIO, 0x3d5, val); in CRTCout()
389 VGA_WR08(par->riva.PCIO, 0x3d4, index); in CRTCin()
390 return (VGA_RD08(par->riva.PCIO, 0x3d5)); in CRTCin()
396 VGA_WR08(par->riva.PVIO, 0x3ce, index); in GRAout()
397 VGA_WR08(par->riva.PVIO, 0x3cf, val); in GRAout()
403 VGA_WR08(par->riva.PVIO, 0x3ce, index); in GRAin()
404 return (VGA_RD08(par->riva.PVIO, 0x3cf)); in GRAin()
410 VGA_WR08(par->riva.PVIO, 0x3c4, index); in SEQout()
411 VGA_WR08(par->riva.PVIO, 0x3c5, val); in SEQout()
417 VGA_WR08(par->riva.PVIO, 0x3c4, index); in SEQin()
418 return (VGA_RD08(par->riva.PVIO, 0x3c5)); in SEQin()
424 VGA_WR08(par->riva.PCIO, 0x3c0, index); in ATTRout()
425 VGA_WR08(par->riva.PCIO, 0x3c0, val); in ATTRout()
431 VGA_WR08(par->riva.PCIO, 0x3c0, index); in ATTRin()
432 return (VGA_RD08(par->riva.PCIO, 0x3c1)); in ATTRin()
437 VGA_WR08(par->riva.PVIO, 0x3c2, val); in MISCout()
442 return (VGA_RD08(par->riva.PVIO, 0x3cc)); in MISCin()
506 writel(tmp, &par->riva.CURSOR[k++]); in rivafb_load_cursor_image()
569 * @par: pointer to riva_par object containing info for current riva board
584 par->riva.LockUnlock(&par->riva, 0); in riva_save_state()
586 par->riva.UnloadStateExt(&par->riva, &regs->ext); in riva_save_state()
606 * @par: pointer to riva_par object containing info for current riva board
626 par->riva.LockUnlock(&par->riva, 0); in riva_load_state()
628 par->riva.LoadStateExt(&par->riva, state); in riva_load_state()
655 * @info: pointer to fb_info object containing info for current riva board
762 if (par->riva.Architecture >= NV_ARCH_10) in riva_load_video_mode()
763 par->riva.CURSOR = (U032 __iomem *)(info->screen_base + par->riva.CursorStart); in riva_load_video_mode()
774 rc = CalcStateExt(&par->riva, &newmode.ext, par->pdev, bpp, width, in riva_load_video_mode()
779 newmode.ext.scale = NV_RD32(par->riva.PRAMDAC, 0x00000848) & in riva_load_video_mode()
786 newmode.ext.head = NV_RD32(par->riva.PCRTC0, 0x00000860) & in riva_load_video_mode()
788 newmode.ext.head2 = NV_RD32(par->riva.PCRTC0, 0x00002860) | in riva_load_video_mode()
793 } else if (par->riva.twoHeads) { in riva_load_video_mode()
794 newmode.ext.head = NV_RD32(par->riva.PCRTC0, 0x00000860) | in riva_load_video_mode()
796 newmode.ext.head2 = NV_RD32(par->riva.PCRTC0, 0x00002860) & in riva_load_video_mode()
799 newmode.ext.vpll2 = NV_RD32(par->riva.PRAMDAC0, 0x00000520); in riva_load_video_mode()
808 par->riva.LockUnlock(&par->riva, 0); /* important for HW cursor */ in riva_load_video_mode()
840 * @info: pointer to fb_info object containing info for current riva board
944 RIVA_FIFO_FREE(par->riva, Patt, 4); in riva_set_pattern()
945 NV_WR32(&par->riva.Patt->Color0, 0, clr0); in riva_set_pattern()
946 NV_WR32(&par->riva.Patt->Color1, 0, clr1); in riva_set_pattern()
947 NV_WR32(par->riva.Patt->Monochrome, 0, pat0); in riva_set_pattern()
948 NV_WR32(par->riva.Patt->Monochrome, 4, pat1); in riva_set_pattern()
954 while (par->riva.Busy(&par->riva)); in wait_for_idle()
964 RIVA_FIFO_FREE(par->riva, Rop, 1); in riva_set_rop_solid()
965 NV_WR32(&par->riva.Rop->Rop3, 0, rop); in riva_set_rop_solid()
973 RIVA_FIFO_FREE(par->riva, Clip, 2); in riva_setup_accel()
974 NV_WR32(&par->riva.Clip->TopLeft, 0, 0x0); in riva_setup_accel()
975 NV_WR32(&par->riva.Clip->WidthHeight, 0, in riva_setup_accel()
1033 if (par->riva.Architecture == NV_ARCH_03) in rivafb_open()
1037 /* vgaHWunlock() + riva unlock (0x7F) */ in rivafb_open()
1039 par->riva.LockUnlock(&par->riva, 0); in rivafb_open()
1060 par->riva.LockUnlock(&par->riva, 0); in rivafb_release()
1061 par->riva.LoadStateExt(&par->riva, &par->initial_state.ext); in rivafb_release()
1066 par->riva.LockUnlock(&par->riva, 1); in rivafb_release()
1098 if (par->riva.Architecture == NV_ARCH_03) in rivafb_check_var()
1188 /* vgaHWunlock() + riva unlock (0x7F) */ in rivafb_set_par()
1190 par->riva.LockUnlock(&par->riva, 0); in rivafb_set_par()
1215 * @info: pointer to fb_info object containing info for current riva board
1232 par->riva.SetStartAddress(&par->riva, base); in rivafb_pan_display()
1280 * @info: pointer to fb_info object containing info for current riva board
1297 RIVA_HW_INST *chip = &par->riva; in rivafb_setcolreg()
1318 if (par->riva.Architecture == NV_ARCH_03) { in rivafb_setcolreg()
1396 if (par->riva.Architecture != NV_ARCH_03) in rivafb_fillrect()
1414 RIVA_FIFO_FREE(par->riva, Bitmap, 1); in rivafb_fillrect()
1415 NV_WR32(&par->riva.Bitmap->Color1A, 0, color); in rivafb_fillrect()
1417 RIVA_FIFO_FREE(par->riva, Bitmap, 2); in rivafb_fillrect()
1418 NV_WR32(&par->riva.Bitmap->UnclippedRectangle[0].TopLeft, 0, in rivafb_fillrect()
1421 NV_WR32(&par->riva.Bitmap->UnclippedRectangle[0].WidthHeight, 0, in rivafb_fillrect()
1448 RIVA_FIFO_FREE(par->riva, Blt, 3); in rivafb_copyarea()
1449 NV_WR32(&par->riva.Blt->TopLeftSrc, 0, in rivafb_copyarea()
1451 NV_WR32(&par->riva.Blt->TopLeftDst, 0, in rivafb_copyarea()
1454 NV_WR32(&par->riva.Blt->WidthHeight, 0, in rivafb_copyarea()
1505 if (par->riva.Architecture != NV_ARCH_03) { in rivafb_imageblit()
1517 RIVA_FIFO_FREE(par->riva, Bitmap, 7); in rivafb_imageblit()
1518 NV_WR32(&par->riva.Bitmap->ClipE.TopLeft, 0, in rivafb_imageblit()
1520 NV_WR32(&par->riva.Bitmap->ClipE.BottomRight, 0, in rivafb_imageblit()
1523 NV_WR32(&par->riva.Bitmap->Color0E, 0, bgx); in rivafb_imageblit()
1524 NV_WR32(&par->riva.Bitmap->Color1E, 0, fgx); in rivafb_imageblit()
1525 NV_WR32(&par->riva.Bitmap->WidthHeightInE, 0, in rivafb_imageblit()
1527 NV_WR32(&par->riva.Bitmap->WidthHeightOutE, 0, in rivafb_imageblit()
1529 NV_WR32(&par->riva.Bitmap->PointE, 0, in rivafb_imageblit()
1532 d = &par->riva.Bitmap->MonochromeData01E; in rivafb_imageblit()
1537 RIVA_FIFO_FREE(par->riva, Bitmap, 16); in rivafb_imageblit()
1547 RIVA_FIFO_FREE(par->riva, Bitmap, size); in rivafb_imageblit()
1580 par->riva.ShowHideCursor(&par->riva, 0); in rivafb_cursor()
1588 memset_io(par->riva.CURSOR, 0, MAX_CURS * MAX_CURS * 2); in rivafb_cursor()
1598 NV_WR32(par->riva.PRAMDAC, 0x0000300, temp); in rivafb_cursor()
1639 par->riva.LockUnlock(&par->riva, 0); in rivafb_cursor()
1649 par->riva.ShowHideCursor(&par->riva, 1); in rivafb_cursor()
1698 if ((par->riva.Architecture == NV_ARCH_30) || noaccel) { in riva_set_fbinfo()
1760 par->riva.LockUnlock(&par->riva, 0); in riva_get_EDID_i2c()
1926 default_par->riva.Architecture = riva_get_arch(pd); in rivafb_probe()
1931 if(default_par->riva.Architecture == 0) { in rivafb_probe()
1936 if(default_par->riva.Architecture == NV_ARCH_10 || in rivafb_probe()
1937 default_par->riva.Architecture == NV_ARCH_20 || in rivafb_probe()
1938 default_par->riva.Architecture == NV_ARCH_30) { in rivafb_probe()
1941 sprintf(rivafb_fix.id, "NV%x", default_par->riva.Architecture); in rivafb_probe()
1972 switch (default_par->riva.Architecture) { in rivafb_probe()
1978 default_par->riva.PRAMIN = ioremap(rivafb_fix.smem_start + 0x00C00000, 0x00008000); in rivafb_probe()
1979 if (!default_par->riva.PRAMIN) { in rivafb_probe()
1989 default_par->riva.PCRTC0 = in rivafb_probe()
1991 default_par->riva.PRAMIN = in rivafb_probe()
1997 if (default_par->riva.Architecture == NV_ARCH_03) { in rivafb_probe()
1998 default_par->riva.PCRTC = default_par->riva.PCRTC0 in rivafb_probe()
1999 = default_par->riva.PGRAPH; in rivafb_probe()
2036 "error registering riva framebuffer\n"); in rivafb_probe()
2059 if (default_par->riva.Architecture == NV_ARCH_03) in rivafb_probe()
2060 iounmap(default_par->riva.PRAMIN); in rivafb_probe()
2092 if (par->riva.Architecture == NV_ARCH_03) in rivafb_remove()
2093 iounmap(par->riva.PRAMIN); in rivafb_remove()
2196 MODULE_DESCRIPTION("Framebuffer driver for nVidia Riva 128, TNT, TNT2, and the GeForce series");