Lines Matching refs:pSiS

208 #define CmdQueLen (*(pSiS->cmdQueueLenPtr))
212 while( (SIS_MMIO_IN16(pSiS->IOBase, Q_STATUS+2) & 0x0400) != 0x0400) {}; \
213 while( (SIS_MMIO_IN16(pSiS->IOBase, Q_STATUS+2) & 0x0400) != 0x0400) {}; \
216 #define SiSResetCmd pSiS->CommandReg = 0;
218 #define SiSSetupCMDFlag(flags) pSiS->CommandReg |= (flags);
222 #define SiSGetSwWP() (CARD32)(*(pSiS->cmdQ_SharedWritePort))
223 #define SiSGetHwRP() (CARD32)(SIS_MMIO_IN32(pSiS->IOBase, Q_READ_PTR))
226 if(pSiS->NeedFlush) { \
227 CARD32 ttt = ((SiSGetSwWP()) - 4) & pSiS->cmdQueueSizeMask; \
228 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
234 SIS_MMIO_OUT32(pSiS->IOBase, Q_WRITE_PTR, (CARD32)(*(pSiS->cmdQ_SharedWritePort)));
237 *(pSiS->cmdQ_SharedWritePort) = (p); \
238 SIS_MMIO_OUT32(pSiS->IOBase, Q_WRITE_PTR, (p));
240 #define SiSSetSwWP(p) *(pSiS->cmdQ_SharedWritePort) = (p);
247 if((ttt + amount) >= pSiS->cmdQueueSize) { \
249 mcurrent = SIS_MMIO_IN32(pSiS->IOBase, Q_READ_PTR); \
251 } while((mcurrent > ttt) || (mcurrent < ((ttt + amount) & pSiS->cmdQueueSizeMask))); \
254 mcurrent = SIS_MMIO_IN32(pSiS->IOBase, Q_READ_PTR); \
264 ttt &= pSiS->cmdQueueSizeMask; \
266 while(SIS_MMIO_IN32(pSiS->IOBase, Q_READ_PTR) < pSiS->cmdQueueSize_div4) {} \
267 } else if(ttt == pSiS->cmdQueueSize_div4) { \
270 temppp = SIS_MMIO_IN32(pSiS->IOBase, Q_READ_PTR); \
271 } while(temppp >= ttt && temppp <= pSiS->cmdQueueSize_div2); \
272 } else if(ttt == pSiS->cmdQueueSize_div2) { \
275 temppp = SIS_MMIO_IN32(pSiS->IOBase, Q_READ_PTR); \
276 } while(temppp >= ttt && temppp <= pSiS->cmdQueueSize_4_3); \
277 } else if(ttt == pSiS->cmdQueueSize_4_3) { \
278 while(SIS_MMIO_IN32(pSiS->IOBase, Q_READ_PTR) > ttt) {} \
292 while( (SIS_MMIO_IN16(pSiS->IOBase, Q_STATUS+2) & 0x8000) != 0x8000) {}; \
293 while( (SIS_MMIO_IN16(pSiS->IOBase, Q_STATUS+2) & 0x8000) != 0x8000) {}; \
294 while( (SIS_MMIO_IN16(pSiS->IOBase, Q_STATUS+2) & 0x8000) != 0x8000) {}; \
295 while( (SIS_MMIO_IN16(pSiS->IOBase, Q_STATUS+2) & 0x8000) != 0x8000) {}; \
301 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
313 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
325 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
337 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
349 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
358 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
367 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
376 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
385 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
394 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
403 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
413 pSiS->CommandReg = (((CARD32)(bpp)) & (GENMASK(17:16)));
418 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
430 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
442 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
454 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
463 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
472 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
481 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
490 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
499 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
511 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
523 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
535 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
547 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
551 SIS_WQINDEX(3) = (CARD32)(pSiS->CommandReg); \
552 if(pSiS->NeedFlush) dummybuf = SIS_RQINDEX(3); \
560 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
564 SIS_WQINDEX(3) = (CARD32)(pSiS->CommandReg); \
565 if(pSiS->NeedFlush) dummybuf = SIS_RQINDEX(3); \
571 pSiS->CommandReg |= (rop) << 8;
576 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
578 SIS_WQINDEX(1) = (CARD32)(pSiS->CommandReg); \
581 if(pSiS->NeedFlush) dummybuf = SIS_RQINDEX(3); \
589 CARD32 _tmp = SIS_MMIO_IN32(pSiS->IOBase, FIRE_TRIGGER) & ~(1 << 10); \
590 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
595 if(pSiS->NeedFlush) dummybuf = SIS_RQINDEX(3); \
605 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
617 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
626 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
635 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
644 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
658 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
671 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
683 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
697 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
706 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
715 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
758 pointer tt = (char *)pSiS->cmdQueueBase + ttt; \
786 if(pSiS->ChipFlags & SiSCF_Integrated) { \
791 while( (SIS_MMIO_IN16(pSiS->IOBase, Q_STATUS+2) & 0x8000) != 0x8000) {}; \
792 while( (SIS_MMIO_IN16(pSiS->IOBase, Q_STATUS+2) & 0x8000) != 0x8000) {}; \
797 SIS_MMIO_OUT32(pSiS->IOBase, SRC_ADDR, base); \
802 SIS_MMIO_OUT16(pSiS->IOBase, SRC_PITCH, pitch); \
807 SIS_MMIO_OUT32(pSiS->IOBase, SRC_Y, (x)<<16 | (y) );\
812 SIS_MMIO_OUT32(pSiS->IOBase, DST_ADDR, base);\
817 SIS_MMIO_OUT32(pSiS->IOBase, DST_Y, (x)<<16 | (y) );\
822 SIS_MMIO_OUT32(pSiS->IOBase, DST_PITCH, (y)<<16 | (x) );\
827 SIS_MMIO_OUT16(pSiS->IOBase, AGP_BASE, bpp);\
832 SIS_MMIO_OUT32(pSiS->IOBase, RECT_WIDTH, (h)<<16 | (w) );\
837 SIS_MMIO_OUT32(pSiS->IOBase, PAT_FGCOLOR, color);\
842 SIS_MMIO_OUT32(pSiS->IOBase, PAT_BGCOLOR, color);\
847 SIS_MMIO_OUT32(pSiS->IOBase, SRC_FGCOLOR, color);\
852 SIS_MMIO_OUT32(pSiS->IOBase, SRC_BGCOLOR, color); \
857 SIS_MMIO_OUT32(pSiS->IOBase, TRANS_SRC_KEY_HIGH, color);\
858 SIS_MMIO_OUT32(pSiS->IOBase, TRANS_SRC_KEY_LOW, color);\
863 SIS_MMIO_OUT32(pSiS->IOBase, TRANS_DST_KEY_HIGH, color); \
864 SIS_MMIO_OUT32(pSiS->IOBase, TRANS_DST_KEY_LOW, color); \
869 SIS_MMIO_OUT32(pSiS->IOBase, MONO_MASK, p0);\
870 SIS_MMIO_OUT32(pSiS->IOBase, MONO_MASK+4, p1);\
875 SIS_MMIO_OUT32(pSiS->IOBase, LEFT_CLIP, ((left) & 0xFFFF) | (top)<<16); \
880 SIS_MMIO_OUT32(pSiS->IOBase, RIGHT_CLIP, ((right) & 0xFFFF) | (bottom)<<16); \
884 pSiS->CommandReg = (rop) << 8;
888 SIS_MMIO_OUT32(pSiS->IOBase, COMMAND_READY, pSiS->CommandReg); \
889 SIS_MMIO_OUT32(pSiS->IOBase, FIRE_TRIGGER, 0); \
896 SIS_MMIO_OUT32(pSiS->IOBase, LINE_X0, (y)<<16 | (x) );\
901 SIS_MMIO_OUT32(pSiS->IOBase, LINE_X1, (y)<<16 | (x) );\
906 SIS_MMIO_OUT16(pSiS->IOBase, LINE_COUNT, c);\
911 SIS_MMIO_OUT16(pSiS->IOBase, LINE_STYLE_PERIOD, p);\
916 SIS_MMIO_OUT32(pSiS->IOBase, LINE_STYLE_0, ls);\
921 SIS_MMIO_OUT32(pSiS->IOBase, LINE_STYLE_1, ls);\
928 SIS_MMIO_OUT32(pSiS->IOBase, TRAP_YH, (y)<<16 | (h) );\
933 SIS_MMIO_OUT32(pSiS->IOBase, TRAP_LR, (right)<<16 | (left) );\
938 SIS_MMIO_OUT32(pSiS->IOBase, TRAP_DL, (dyL)<<16 | (dxL) );\
943 SIS_MMIO_OUT32(pSiS->IOBase, TRAP_DR, (dyR)<<16 | (dxR) );\
948 SIS_MMIO_OUT32(pSiS->IOBase, TRAP_EL, eL);\
953 SIS_MMIO_OUT32(pSiS->IOBase, TRAP_ER, eR);\
960 SIS_MMIO_OUT32(pSiS->IOBase, ALPHA_ALPHA, alpha);\
967 SIS_MMIO_OUT32(pSiS->IOBase, (PATTERN_REG + (num * 4)), value); \