Lines Matching refs:deviceInfo

80 static device_info_t deviceInfo;  variable
306 StopVTG(deviceInfo.pSTGReg); in kyro_dev_video_mode_set()
307 DisableRamdacOutput(deviceInfo.pSTGReg); in kyro_dev_video_mode_set()
310 DisableVGA(deviceInfo.pSTGReg); in kyro_dev_video_mode_set()
312 if (InitialiseRamdac(deviceInfo.pSTGReg, in kyro_dev_video_mode_set()
318 SetupVTG(deviceInfo.pSTGReg, par); in kyro_dev_video_mode_set()
320 ResetOverlayRegisters(deviceInfo.pSTGReg); in kyro_dev_video_mode_set()
323 EnableRamdacOutput(deviceInfo.pSTGReg); in kyro_dev_video_mode_set()
324 StartVTG(deviceInfo.pSTGReg); in kyro_dev_video_mode_set()
326 deviceInfo.ulNextFreeVidMem = info->var.xres * info->var.yres * in kyro_dev_video_mode_set()
328 deviceInfo.ulOverlayOffset = 0; in kyro_dev_video_mode_set()
339 if (deviceInfo.ulOverlayOffset != 0) in kyro_dev_overlay_create()
346 ResetOverlayRegisters(deviceInfo.pSTGReg); in kyro_dev_overlay_create()
351 offset = deviceInfo.ulNextFreeVidMem; in kyro_dev_overlay_create()
356 if (CreateOverlaySurface(deviceInfo.pSTGReg, ulWidth, ulHeight, in kyro_dev_overlay_create()
360 deviceInfo.ulOverlayOffset = offset; in kyro_dev_overlay_create()
361 deviceInfo.ulOverlayStride = stride; in kyro_dev_overlay_create()
362 deviceInfo.ulOverlayUVStride = uvStride; in kyro_dev_overlay_create()
363 deviceInfo.ulNextFreeVidMem = offset + (ulHeight * stride) + (ulHeight * 2 * uvStride); in kyro_dev_overlay_create()
365 SetOverlayBlendMode(deviceInfo.pSTGReg, GLOBAL_ALPHA, 0xf, 0x0); in kyro_dev_overlay_create()
372 if (deviceInfo.ulOverlayOffset == 0) in kyro_dev_overlay_viewport_set()
382 DisableRamdacOutput(deviceInfo.pSTGReg); in kyro_dev_overlay_viewport_set()
384 SetOverlayViewPort(deviceInfo.pSTGReg, in kyro_dev_overlay_viewport_set()
387 EnableOverlayPlane(deviceInfo.pSTGReg); in kyro_dev_overlay_viewport_set()
389 EnableRamdacOutput(deviceInfo.pSTGReg); in kyro_dev_overlay_viewport_set()
631 if (copy_to_user(argp, &deviceInfo.ulOverlayUVStride, sizeof(deviceInfo.ulOverlayUVStride))) in kyrofb_ioctl()
635 if (copy_to_user(argp, &deviceInfo.ulOverlayStride, sizeof(deviceInfo.ulOverlayStride))) in kyrofb_ioctl()
639 if (copy_to_user(argp, &deviceInfo.ulOverlayOffset, sizeof(deviceInfo.ulOverlayOffset))) in kyrofb_ioctl()
698 currentpar->regbase = deviceInfo.pSTGReg = in kyrofb_probe()
718 SetCoreClockPLL(deviceInfo.pSTGReg, pdev); in kyrofb_probe()
720 deviceInfo.ulNextFreeVidMem = 0; in kyrofb_probe()
721 deviceInfo.ulOverlayOffset = 0; in kyrofb_probe()
767 StopVTG(deviceInfo.pSTGReg); in kyrofb_remove()
768 DisableRamdacOutput(deviceInfo.pSTGReg); in kyrofb_remove()
771 SetCoreClockPLL(deviceInfo.pSTGReg, pdev); in kyrofb_remove()
773 deviceInfo.ulNextFreeVidMem = 0; in kyrofb_remove()
774 deviceInfo.ulOverlayOffset = 0; in kyrofb_remove()