Lines Matching defs:pGeode

85     GeodePtr pGeode = GEODEPTR(pScrni);
87 if (pGeode->useVGA && !pScrni->vtSema)
149 GeodeRec *pGeode = GEODEPTR(pScrni);
151 if (pGeode->tryCompression)
188 GeodeRec *pGeode = GEODEPTR(pScrni);
192 pciVideoPtr pci = xf86GetPciInfoForEntity(pGeode->pEnt->index);
217 pGeode->FBAvail +
225 map_pci_mem(pScrni, 1, pci, 0, pGeode->FBAvail + CIM_CMD_BFR_SZ);
231 cmd_bfr_phys = PCI_REGION_BASE(pci, 0, REGION_MEM) + pGeode->CmdBfrOffset;
232 cim_cmd_base_ptr = cim_fb_ptr + pGeode->CmdBfrOffset;
239 pGeode->FBAvail);
240 gp_set_command_buffer_base(cmd_bfr_phys, 0, pGeode->CmdBfrSize);
256 pGeode->FBBase = cim_fb_ptr;
258 if (!pGeode->NoAccel)
259 pGeode->pExa->memoryBase = pGeode->FBBase;
262 pGeode->FBAvail, pGeode->FBBase);
310 GeodePtr pGeode;
329 pGeode = pScrni->driverPrivate = xnfcalloc(1, sizeof(GeodeRec));
331 if (pGeode == NULL)
334 pGeode->useVGA = LXCheckVGA(pScrni, pEnt);
335 pGeode->VGAActive = FALSE;
336 pGeode->pEnt = pEnt;
338 if (pGeode->useVGA) {
340 pGeode->useVGA = FALSE;
344 pGeode->vesa = calloc(1, sizeof(VESARec));
357 pGeode->Output = OUTPUT_PANEL | OUTPUT_CRT;
405 pGeode->tryHWCursor = TRUE;
406 pGeode->tryCompression = TRUE;
411 pGeode->NoAccel = TRUE;
419 pGeode->NoAccel = FALSE;
422 pGeode->exaBfrSz = DEFAULT_EXA_SCRATCH_BFRSZ;
424 xf86GetOptValBool(GeodeOptions, LX_OPTION_HW_CURSOR, &pGeode->tryHWCursor);
427 (int *) &(pGeode->FBAvail)))
428 pGeode->FBAvail = 0;
433 pGeode->tryHWCursor = FALSE;
436 pGeode->tryCompression = FALSE;
439 pGeode->NoAccel = TRUE;
441 pGeode->rotation = RR_Rotate_0;
446 pGeode->rotation = RR_Rotate_90;
448 pGeode->rotation = RR_Rotate_180;
450 pGeode->rotation = RR_Rotate_270;
456 (int *) &(pGeode->exaBfrSz));
458 if (pGeode->exaBfrSz <= 0)
459 pGeode->exaBfrSz = 0;
461 if (pGeode->Output & OUTPUT_PANEL) {
463 pGeode->Output &= ~OUTPUT_PANEL;
474 pGeode->Output = OUTPUT_PANEL | OUTPUT_DCON;
476 else if (pGeode->Output & OUTPUT_PANEL) {
480 pGeode->panelMode = LXGetManualPanelMode(pmode);
482 if (pGeode->panelMode == NULL)
483 pGeode->panelMode = LXGetLegacyPanelMode(pScrni);
485 if (pGeode->panelMode == NULL)
486 pGeode->Output &= ~OUTPUT_PANEL;
491 if (pGeode->Output & OUTPUT_PANEL)
492 pGeode->Scale = TRUE;
496 pGeode->Output & OUTPUT_CRT ? "YES" : "NO");
499 pGeode->Output & OUTPUT_PANEL ? "YES" : "NO");
502 pGeode->Output & OUTPUT_DCON ? "YES" : "NO");
505 pGeode->useVGA ? "YES" : "NO");
509 if (pGeode->useVGA) {
515 pVesa = pGeode->vesa;
517 if ((pVesa->pInt = xf86InitInt10(pGeode->pEnt->index)) == NULL) {
520 pGeode->useVGA = FALSE;
529 if (pGeode->FBAvail == 0) {
530 if (GeodeGetSizeFromFB(&pGeode->FBAvail)) {
537 pGeode->FBAvail = value << 20;
543 if (pGeode->pEnt->device->videoRam == 0)
544 pScrni->videoRam = pGeode->FBAvail / 1024;
546 pScrni->videoRam = pGeode->pEnt->device->videoRam;
547 pGeode->FBAvail = pScrni->videoRam << 10;
553 if (pGeode->tryCompression && pGeode->FBAvail <= 0x1000000) {
556 pGeode->FBAvail);
559 pGeode->tryCompression = FALSE;
564 pGeode->CmdBfrSize = CIM_CMD_BFR_SZ;
565 pGeode->FBAvail -= CIM_CMD_BFR_SZ;
567 pGeode->CmdBfrOffset = pGeode->FBAvail;
589 pGeode->Pitch = LXCalcPitch(pScrni);
599 if (!pGeode->NoAccel) {
604 if (xf86RegisterResources(pGeode->pEnt->index, NULL, ResExclusive)) {
616 GeodeRec *pGeode = GEODEPTR(pScrni);
618 if (pGeode->useVGA) {
638 GeodeRec *pGeode = GEODEPTR(pScrni);
639 pciVideoPtr pci = xf86GetPciInfoForEntity(pGeode->pEnt->index);
645 unmap_pci_mem(pScrni, pci, cim_fb_ptr, pGeode->FBAvail + CIM_CMD_BFR_SZ);
659 GeodeRec *pGeode = GEODEPTR(pScrni);
663 offset = (y * pGeode->Pitch);
673 GeodeRec *pGeode = GEODEPTR(pScrni);
676 return xf86SetSingleMode(pScrni, pMode, pGeode->rotation);
682 GeodeRec *pGeode = GEODEPTR(pScrni);
689 vg_set_custom_mode(&(pGeode->FBcimdisplaytiming.vgDisplayMode),
690 pGeode->FBcimdisplaytiming.wBpp);
695 if (pGeode->FBCompressionEnable) {
696 vg_configure_compression(&(pGeode->FBCBData));
700 vg_set_display_pitch(pGeode->FBcimdisplaytiming.wPitch);
701 vg_set_display_offset(pGeode->FBDisplayOffset);
704 vg_set_cursor_position(pGeode->FBCursor.cursor_x,
705 pGeode->FBCursor.cursor_y, &panning);
709 if (pGeode->useVGA && pGeode->VGAActive) {
710 pGeode->vesa->pInt->num = 0x10;
711 pGeode->vesa->pInt->ax = 0x0 | pGeode->FBBIOSMode;
712 pGeode->vesa->pInt->bx = 0;
713 xf86ExecX86int10(pGeode->vesa->pInt);
725 GeodeRec *pGeode = GEODEPTR(pScrni);
730 if (pGeode->pExa) {
732 free(pGeode->pExa);
733 pGeode->pExa = NULL;
741 if (pGeode->useVGA)
744 pScrni->PointerMoved = pGeode->PointerMoved;
745 pScrn->CloseScreen = pGeode->CloseScreen;
757 GeodeRec *pGeode = GEODEPTR(pScrni);
759 pGeode->VGAActive = gu3_get_vga_active();
763 vg_get_current_display_mode(&pGeode->FBcimdisplaytiming.vgDisplayMode,
766 pGeode->FBcimdisplaytiming.wBpp = bpp;
767 pGeode->FBcimdisplaytiming.wPitch = vg_get_display_pitch();
769 pGeode->FBDisplayOffset = vg_get_display_offset();
771 if (pGeode->useVGA && pGeode->VGAActive) {
774 pGeode->FBBIOSMode = pvgaHW->readCrtc(pvgaHW, 0x040);
777 pGeode->FBCompressionEnable = vg_get_compression_enable();
778 vg_get_compression_info(&(pGeode->FBCBData));
781 vg_get_cursor_info(&pGeode->FBCursor);
785 if (pGeode->useVGA) {
816 memset(pGeode->FBBase, 0, pGeode->displaySize);
847 GeodeRec *pGeode = GEODEPTR(pScrni);
851 pGeode->starting = TRUE;
855 if (pGeode->useVGA) {
863 if (!pGeode->NoAccel) {
865 pGeode->pExa = exaDriverAlloc();
867 if (pGeode->pExa) {
869 pGeode->pExa->memoryBase = 0;
870 pGeode->pExa->memorySize = 0;
872 pGeode->pExa->pixmapOffsetAlign = 32;
873 pGeode->pExa->pixmapPitchAlign = 32;
874 pGeode->pExa->flags = EXA_OFFSCREEN_PIXMAPS;
875 pGeode->pExa->maxX = LX_MAX_WIDTH - 1;
876 pGeode->pExa->maxY = LX_MAX_HEIGHT - 1;
881 pGeode->NoAccel = TRUE;
927 dwidth = pGeode->Pitch / ((pScrni->bitsPerPixel + 7) / 8);
929 ret = fbScreenInit(pScrn, pGeode->FBBase,
958 if (!pGeode->NoAccel)
959 pGeode->NoAccel = LXExaInit(pScrn) ? FALSE : TRUE;
968 if (pGeode->tryHWCursor) {
993 pGeode->PointerMoved = pScrni->PointerMoved;
996 pGeode->CloseScreen = pScrn->CloseScreen;
1008 pGeode->starting = FALSE;
1030 GeodeRec *pGeode = GEODEPTR(pScrni);
1032 pGeode->PrevDisplayOffset = vg_get_display_offset();