ivideo 140 drivers/video/fbdev/sis/sis.h #define SISSR ivideo->SiS_Pr.SiS_P3c4 ivideo 141 drivers/video/fbdev/sis/sis.h #define SISCR ivideo->SiS_Pr.SiS_P3d4 ivideo 142 drivers/video/fbdev/sis/sis.h #define SISDACA ivideo->SiS_Pr.SiS_P3c8 ivideo 143 drivers/video/fbdev/sis/sis.h #define SISDACD ivideo->SiS_Pr.SiS_P3c9 ivideo 144 drivers/video/fbdev/sis/sis.h #define SISPART1 ivideo->SiS_Pr.SiS_Part1Port ivideo 145 drivers/video/fbdev/sis/sis.h #define SISPART2 ivideo->SiS_Pr.SiS_Part2Port ivideo 146 drivers/video/fbdev/sis/sis.h #define SISPART3 ivideo->SiS_Pr.SiS_Part3Port ivideo 147 drivers/video/fbdev/sis/sis.h #define SISPART4 ivideo->SiS_Pr.SiS_Part4Port ivideo 148 drivers/video/fbdev/sis/sis.h #define SISPART5 ivideo->SiS_Pr.SiS_Part5Port ivideo 151 drivers/video/fbdev/sis/sis.h #define SISMISCR (ivideo->SiS_Pr.RelIO + 0x1c) ivideo 152 drivers/video/fbdev/sis/sis.h #define SISMISCW ivideo->SiS_Pr.SiS_P3c2 ivideo 153 drivers/video/fbdev/sis/sis.h #define SISINPSTAT (ivideo->SiS_Pr.RelIO + 0x2a) ivideo 154 drivers/video/fbdev/sis/sis.h #define SISPEL ivideo->SiS_Pr.SiS_P3c6 ivideo 155 drivers/video/fbdev/sis/sis.h #define SISVGAENABLE (ivideo->SiS_Pr.RelIO + 0x13) ivideo 156 drivers/video/fbdev/sis/sis.h #define SISVID (ivideo->SiS_Pr.RelIO + 0x02 - 0x30) ivideo 157 drivers/video/fbdev/sis/sis.h #define SISCAP (ivideo->SiS_Pr.RelIO + 0x00 - 0x30) ivideo 661 drivers/video/fbdev/sis/sis.h extern int sisfb_initaccel(struct sis_video_info *ivideo); ivideo 662 drivers/video/fbdev/sis/sis.h extern void sisfb_syncaccel(struct sis_video_info *ivideo); ivideo 75 drivers/video/fbdev/sis/sis_accel.c SiS300Sync(struct sis_video_info *ivideo) ivideo 81 drivers/video/fbdev/sis/sis_accel.c SiS300SetupForScreenToScreenCopy(struct sis_video_info *ivideo, int xdir, int ydir, ivideo 84 drivers/video/fbdev/sis/sis_accel.c SiS300SetupDSTColorDepth(ivideo->DstColor); ivideo 85 drivers/video/fbdev/sis/sis_accel.c SiS300SetupSRCPitch(ivideo->video_linelength) ivideo 86 drivers/video/fbdev/sis/sis_accel.c SiS300SetupDSTRect(ivideo->video_linelength, 0xffff) ivideo 104 drivers/video/fbdev/sis/sis_accel.c SiS300SubsequentScreenToScreenCopy(struct sis_video_info *ivideo, int src_x, ivideo 110 drivers/video/fbdev/sis/sis_accel.c srcbase = ivideo->video_linelength * src_y; ivideo 114 drivers/video/fbdev/sis/sis_accel.c dstbase = ivideo->video_linelength * dst_y; ivideo 121 drivers/video/fbdev/sis/sis_accel.c if(!(ivideo->CommandReg & X_INC)) { ivideo 125 drivers/video/fbdev/sis/sis_accel.c if(!(ivideo->CommandReg & Y_INC)) { ivideo 136 drivers/video/fbdev/sis/sis_accel.c SiS300SetupForSolidFill(struct sis_video_info *ivideo, u32 color, int rop) ivideo 139 drivers/video/fbdev/sis/sis_accel.c SiS300SetupDSTRect(ivideo->video_linelength, 0xffff) ivideo 140 drivers/video/fbdev/sis/sis_accel.c SiS300SetupDSTColorDepth(ivideo->DstColor); ivideo 146 drivers/video/fbdev/sis/sis_accel.c SiS300SubsequentSolidFillRect(struct sis_video_info *ivideo, int x, int y, int w, int h) ivideo 151 drivers/video/fbdev/sis/sis_accel.c dstbase = ivideo->video_linelength * y; ivideo 166 drivers/video/fbdev/sis/sis_accel.c SiS310Sync(struct sis_video_info *ivideo) ivideo 172 drivers/video/fbdev/sis/sis_accel.c SiS310SetupForScreenToScreenCopy(struct sis_video_info *ivideo, int rop, int trans_color) ivideo 174 drivers/video/fbdev/sis/sis_accel.c SiS310SetupDSTColorDepth(ivideo->DstColor); ivideo 175 drivers/video/fbdev/sis/sis_accel.c SiS310SetupSRCPitch(ivideo->video_linelength) ivideo 176 drivers/video/fbdev/sis/sis_accel.c SiS310SetupDSTRect(ivideo->video_linelength, 0x0fff) ivideo 186 drivers/video/fbdev/sis/sis_accel.c SiS310SetupCMDFlag(ivideo->SiS310_AccelDepth) ivideo 191 drivers/video/fbdev/sis/sis_accel.c SiS310SubsequentScreenToScreenCopy(struct sis_video_info *ivideo, int src_x, int src_y, ivideo 210 drivers/video/fbdev/sis/sis_accel.c srcbase = ivideo->video_linelength * mymin; ivideo 211 drivers/video/fbdev/sis/sis_accel.c dstbase = ivideo->video_linelength * mymin; ivideo 217 drivers/video/fbdev/sis/sis_accel.c srcbase = ivideo->video_linelength * src_y; ivideo 221 drivers/video/fbdev/sis/sis_accel.c dstbase = ivideo->video_linelength * dst_y; ivideo 226 drivers/video/fbdev/sis/sis_accel.c srcbase += ivideo->video_offset; ivideo 227 drivers/video/fbdev/sis/sis_accel.c dstbase += ivideo->video_offset; ivideo 238 drivers/video/fbdev/sis/sis_accel.c SiS310SetupForSolidFill(struct sis_video_info *ivideo, u32 color, int rop) ivideo 241 drivers/video/fbdev/sis/sis_accel.c SiS310SetupDSTRect(ivideo->video_linelength, 0x0fff) ivideo 242 drivers/video/fbdev/sis/sis_accel.c SiS310SetupDSTColorDepth(ivideo->DstColor); ivideo 244 drivers/video/fbdev/sis/sis_accel.c SiS310SetupCMDFlag(PATFG | ivideo->SiS310_AccelDepth) ivideo 248 drivers/video/fbdev/sis/sis_accel.c SiS310SubsequentSolidFillRect(struct sis_video_info *ivideo, int x, int y, int w, int h) ivideo 253 drivers/video/fbdev/sis/sis_accel.c dstbase = ivideo->video_linelength * y; ivideo 256 drivers/video/fbdev/sis/sis_accel.c dstbase += ivideo->video_offset; ivideo 269 drivers/video/fbdev/sis/sis_accel.c int sisfb_initaccel(struct sis_video_info *ivideo) ivideo 272 drivers/video/fbdev/sis/sis_accel.c spin_lock_init(&ivideo->lockaccel); ivideo 277 drivers/video/fbdev/sis/sis_accel.c void sisfb_syncaccel(struct sis_video_info *ivideo) ivideo 279 drivers/video/fbdev/sis/sis_accel.c if(ivideo->sisvga_engine == SIS_300_VGA) { ivideo 281 drivers/video/fbdev/sis/sis_accel.c SiS300Sync(ivideo); ivideo 285 drivers/video/fbdev/sis/sis_accel.c SiS310Sync(ivideo); ivideo 292 drivers/video/fbdev/sis/sis_accel.c struct sis_video_info *ivideo = (struct sis_video_info *)info->par; ivideo 295 drivers/video/fbdev/sis/sis_accel.c if((!ivideo->accel) || (!ivideo->engineok)) ivideo 299 drivers/video/fbdev/sis/sis_accel.c sisfb_syncaccel(ivideo); ivideo 307 drivers/video/fbdev/sis/sis_accel.c struct sis_video_info *ivideo = (struct sis_video_info *)info->par; ivideo 317 drivers/video/fbdev/sis/sis_accel.c if((!ivideo->accel) || (!ivideo->engineok)) { ivideo 337 drivers/video/fbdev/sis/sis_accel.c if(ivideo->sisvga_engine == SIS_300_VGA) { ivideo 340 drivers/video/fbdev/sis/sis_accel.c SiS300SetupForSolidFill(ivideo, col, myrops[rect->rop]); ivideo 341 drivers/video/fbdev/sis/sis_accel.c SiS300SubsequentSolidFillRect(ivideo, rect->dx, rect->dy, width, height); ivideo 347 drivers/video/fbdev/sis/sis_accel.c SiS310SetupForSolidFill(ivideo, col, myrops[rect->rop]); ivideo 348 drivers/video/fbdev/sis/sis_accel.c SiS310SubsequentSolidFillRect(ivideo, rect->dx, rect->dy, width, height); ivideo 353 drivers/video/fbdev/sis/sis_accel.c sisfb_syncaccel(ivideo); ivideo 358 drivers/video/fbdev/sis/sis_accel.c struct sis_video_info *ivideo = (struct sis_video_info *)info->par; ivideo 368 drivers/video/fbdev/sis/sis_accel.c if((!ivideo->accel) || (!ivideo->engineok)) { ivideo 384 drivers/video/fbdev/sis/sis_accel.c if(ivideo->sisvga_engine == SIS_300_VGA) { ivideo 394 drivers/video/fbdev/sis/sis_accel.c SiS300SetupForScreenToScreenCopy(ivideo, xdir, ydir, 3, -1); ivideo 395 drivers/video/fbdev/sis/sis_accel.c SiS300SubsequentScreenToScreenCopy(ivideo, area->sx, area->sy, ivideo 402 drivers/video/fbdev/sis/sis_accel.c SiS310SetupForScreenToScreenCopy(ivideo, 3, -1); ivideo 403 drivers/video/fbdev/sis/sis_accel.c SiS310SubsequentScreenToScreenCopy(ivideo, area->sx, area->sy, ivideo 409 drivers/video/fbdev/sis/sis_accel.c sisfb_syncaccel(ivideo); ivideo 28 drivers/video/fbdev/sis/sis_accel.h #define CRITBEGIN spin_lock_irqsave(&ivideo->lockaccel, critflags); ivideo 29 drivers/video/fbdev/sis/sis_accel.h #define CRITEND spin_unlock_irqrestore(&ivideo->lockaccel, critflags); ivideo 127 drivers/video/fbdev/sis/sis_accel.h #define CmdQueLen ivideo->cmdqueuelength ivideo 143 drivers/video/fbdev/sis/sis_accel.h while((MMIO_IN16(ivideo->mmio_vbase, BR(16)+2) & 0xE000) != 0xE000){}; \ ivideo 144 drivers/video/fbdev/sis/sis_accel.h while((MMIO_IN16(ivideo->mmio_vbase, BR(16)+2) & 0xE000) != 0xE000){}; \ ivideo 145 drivers/video/fbdev/sis/sis_accel.h while((MMIO_IN16(ivideo->mmio_vbase, BR(16)+2) & 0xE000) != 0xE000){}; \ ivideo 146 drivers/video/fbdev/sis/sis_accel.h CmdQueLen = MMIO_IN16(ivideo->mmio_vbase, 0x8240); \ ivideo 152 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, BR(0), base);\ ivideo 157 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT16(ivideo->mmio_vbase, BR(1), pitch);\ ivideo 162 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, BR(2), (x)<<16 | (y) );\ ivideo 167 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, BR(4), base);\ ivideo 172 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, BR(3), (x)<<16 | (y) );\ ivideo 177 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, BR(5), (y)<<16 | (x) );\ ivideo 182 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT16(ivideo->mmio_vbase, BR(1)+2, bpp);\ ivideo 187 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, BR(6), (h)<<16 | (w) );\ ivideo 192 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, BR(7), color);\ ivideo 197 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, BR(8), color);\ ivideo 202 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, BR(9), color);\ ivideo 207 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, BR(10), color);\ ivideo 216 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, 0x8224, color);\ ivideo 217 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, 0x8228, color);\ ivideo 222 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, 0x821C, color); \ ivideo 223 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, 0x8220, color); \ ivideo 228 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, BR(11), p0);\ ivideo 229 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, BR(12), p1);\ ivideo 234 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, BR(13), ((left) & 0xFFFF) | (top)<<16 );\ ivideo 239 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, BR(14), ((right) & 0xFFFF) | (bottom)<<16 );\ ivideo 244 drivers/video/fbdev/sis/sis_accel.h ivideo->CommandReg = (rop) << 8; ivideo 247 drivers/video/fbdev/sis/sis_accel.h ivideo->CommandReg |= (flags); ivideo 251 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, BR(15), ivideo->CommandReg); \ ivideo 252 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, BR(16), 0);\ ivideo 273 drivers/video/fbdev/sis/sis_accel.h while( (MMIO_IN16(ivideo->mmio_vbase, Q_STATUS+2) & 0x8000) != 0x8000){}; \ ivideo 274 drivers/video/fbdev/sis/sis_accel.h while( (MMIO_IN16(ivideo->mmio_vbase, Q_STATUS+2) & 0x8000) != 0x8000){}; \ ivideo 275 drivers/video/fbdev/sis/sis_accel.h while( (MMIO_IN16(ivideo->mmio_vbase, Q_STATUS+2) & 0x8000) != 0x8000){}; \ ivideo 276 drivers/video/fbdev/sis/sis_accel.h while( (MMIO_IN16(ivideo->mmio_vbase, Q_STATUS+2) & 0x8000) != 0x8000){}; \ ivideo 282 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, SRC_ADDR, base);\ ivideo 287 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT16(ivideo->mmio_vbase, SRC_PITCH, pitch);\ ivideo 292 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, SRC_Y, (x)<<16 | (y) );\ ivideo 297 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, DST_ADDR, base);\ ivideo 302 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, DST_Y, (x)<<16 | (y) );\ ivideo 307 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, DST_PITCH, (y)<<16 | (x) );\ ivideo 312 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT16(ivideo->mmio_vbase, AGP_BASE, bpp);\ ivideo 317 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, RECT_WIDTH, (h)<<16 | (w) );\ ivideo 322 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, PAT_FGCOLOR, color);\ ivideo 327 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, PAT_BGCOLOR, color);\ ivideo 332 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, SRC_FGCOLOR, color);\ ivideo 337 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, SRC_BGCOLOR, color);\ ivideo 342 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, TRANS_SRC_KEY_HIGH, color);\ ivideo 343 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, TRANS_SRC_KEY_LOW, color);\ ivideo 348 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, TRANS_DST_KEY_HIGH, color); \ ivideo 349 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, TRANS_DST_KEY_LOW, color); \ ivideo 354 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, MONO_MASK, p0);\ ivideo 355 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, MONO_MASK+4, p1);\ ivideo 360 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, LEFT_CLIP, ((left) & 0xFFFF) | (top)<<16 );\ ivideo 365 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, RIGHT_CLIP, ((right) & 0xFFFF) | (bottom)<<16 );\ ivideo 369 drivers/video/fbdev/sis/sis_accel.h ivideo->CommandReg = (rop) << 8; ivideo 372 drivers/video/fbdev/sis/sis_accel.h ivideo->CommandReg |= (flags); ivideo 376 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, COMMAND_READY, ivideo->CommandReg); \ ivideo 377 drivers/video/fbdev/sis/sis_accel.h MMIO_OUT32(ivideo->mmio_vbase, FIRE_TRIGGER, 0); \ ivideo 380 drivers/video/fbdev/sis/sis_accel.h int sisfb_initaccel(struct sis_video_info *ivideo); ivideo 381 drivers/video/fbdev/sis/sis_accel.h void sisfb_syncaccel(struct sis_video_info *ivideo); ivideo 72 drivers/video/fbdev/sis/sis_main.c static void sisfb_handle_command(struct sis_video_info *ivideo, ivideo 76 drivers/video/fbdev/sis/sis_main.c static int sisfb_validate_mode(struct sis_video_info *ivideo, int modeindex, u32 vbflags); ivideo 77 drivers/video/fbdev/sis/sis_main.c static u8 sisfb_search_refresh_rate(struct sis_video_info *ivideo, unsigned int rate, ivideo 84 drivers/video/fbdev/sis/sis_main.c static void sisfb_pre_setmode(struct sis_video_info *ivideo); ivideo 85 drivers/video/fbdev/sis/sis_main.c static void sisfb_post_setmode(struct sis_video_info *ivideo); ivideo 86 drivers/video/fbdev/sis/sis_main.c static bool sisfb_CheckVBRetrace(struct sis_video_info *ivideo); ivideo 87 drivers/video/fbdev/sis/sis_main.c static bool sisfbcheckvretracecrt2(struct sis_video_info *ivideo); ivideo 88 drivers/video/fbdev/sis/sis_main.c static bool sisfbcheckvretracecrt1(struct sis_video_info *ivideo); ivideo 89 drivers/video/fbdev/sis/sis_main.c static bool sisfb_bridgeisslave(struct sis_video_info *ivideo); ivideo 90 drivers/video/fbdev/sis/sis_main.c static void sisfb_detect_VB_connect(struct sis_video_info *ivideo); ivideo 91 drivers/video/fbdev/sis/sis_main.c static void sisfb_get_VB_type(struct sis_video_info *ivideo); ivideo 92 drivers/video/fbdev/sis/sis_main.c static void sisfb_set_TVxposoffset(struct sis_video_info *ivideo, int val); ivideo 93 drivers/video/fbdev/sis/sis_main.c static void sisfb_set_TVyposoffset(struct sis_video_info *ivideo, int val); ivideo 96 drivers/video/fbdev/sis/sis_main.c static int sisfb_heap_init(struct sis_video_info *ivideo); ivideo 379 drivers/video/fbdev/sis/sis_main.c static void sisfb_detect_custom_timing(struct sis_video_info *ivideo) ivideo 387 drivers/video/fbdev/sis/sis_main.c if(ivideo->SiS_Pr.UseROM) { ivideo 388 drivers/video/fbdev/sis/sis_main.c biosver = ivideo->SiS_Pr.VirtualRomBase + 0x06; ivideo 389 drivers/video/fbdev/sis/sis_main.c biosdate = ivideo->SiS_Pr.VirtualRomBase + 0x2c; ivideo 391 drivers/video/fbdev/sis/sis_main.c chksum += ivideo->SiS_Pr.VirtualRomBase[i]; ivideo 396 drivers/video/fbdev/sis/sis_main.c if( (mycustomttable[i].chipID == ivideo->chip) && ivideo 398 drivers/video/fbdev/sis/sis_main.c (ivideo->SiS_Pr.UseROM && ivideo 402 drivers/video/fbdev/sis/sis_main.c (ivideo->SiS_Pr.UseROM && ivideo 406 drivers/video/fbdev/sis/sis_main.c (ivideo->SiS_Pr.UseROM && ivideo 408 drivers/video/fbdev/sis/sis_main.c (mycustomttable[i].pcisubsysvendor == ivideo->subsysvendor) && ivideo 409 drivers/video/fbdev/sis/sis_main.c (mycustomttable[i].pcisubsyscard == ivideo->subsysdevice) ) { ivideo 413 drivers/video/fbdev/sis/sis_main.c if(ivideo->SiS_Pr.UseROM) { ivideo 414 drivers/video/fbdev/sis/sis_main.c if(ivideo->SiS_Pr.VirtualRomBase[mycustomttable[i].biosFootprintAddr[j]] != ivideo 423 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_CustomT = mycustomttable[i].SpecialID; ivideo 537 drivers/video/fbdev/sis/sis_main.c static void sisfb_handle_ddc(struct sis_video_info *ivideo, ivideo 546 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags & CRT2_LCD) realcrtno = 1; ivideo 547 drivers/video/fbdev/sis/sis_main.c else if(ivideo->vbflags & CRT2_VGA) realcrtno = 2; ivideo 551 drivers/video/fbdev/sis/sis_main.c if((ivideo->sisfb_crt1off) && (!crtno)) ivideo 554 drivers/video/fbdev/sis/sis_main.c temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, ivideo->sisvga_engine, ivideo 555 drivers/video/fbdev/sis/sis_main.c realcrtno, 0, &buffer[0], ivideo->vbflags2); ivideo 570 drivers/video/fbdev/sis/sis_main.c temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, ivideo->sisvga_engine, ivideo 571 drivers/video/fbdev/sis/sis_main.c realcrtno, 1, &buffer[0], ivideo->vbflags2); ivideo 593 drivers/video/fbdev/sis/sis_main.c sisfb_verify_rate(struct sis_video_info *ivideo, struct sisfb_monitor *monitor, ivideo 606 drivers/video/fbdev/sis/sis_main.c switch(sisbios_mode[mode_idx].mode_no[ivideo->mni]) { ivideo 620 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_315_VGA) return true; ivideo 629 drivers/video/fbdev/sis/sis_main.c if(sisfb_gettotalfrommode(&ivideo->SiS_Pr, ivideo 630 drivers/video/fbdev/sis/sis_main.c sisbios_mode[mode_idx].mode_no[ivideo->mni], ivideo 647 drivers/video/fbdev/sis/sis_main.c sisfb_validate_mode(struct sis_video_info *ivideo, int myindex, u32 vbflags) ivideo 652 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_300_VGA) { ivideo 658 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_315_VGA) { ivideo 669 drivers/video/fbdev/sis/sis_main.c xres = ivideo->lcdxres; yres = ivideo->lcdyres; ivideo 671 drivers/video/fbdev/sis/sis_main.c if((ivideo->SiS_Pr.SiS_CustomT != CUT_PANEL848) && ivideo 672 drivers/video/fbdev/sis/sis_main.c (ivideo->SiS_Pr.SiS_CustomT != CUT_PANEL856)) { ivideo 679 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisfb_fstn) { ivideo 691 drivers/video/fbdev/sis/sis_main.c if(SiS_GetModeID_LCD(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, ivideo 692 drivers/video/fbdev/sis/sis_main.c sisbios_mode[myindex].yres, 0, ivideo->sisfb_fstn, ivideo 693 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_CustomT, xres, yres, ivideo->vbflags2) < 0x14) { ivideo 699 drivers/video/fbdev/sis/sis_main.c if(SiS_GetModeID_TV(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, ivideo 700 drivers/video/fbdev/sis/sis_main.c sisbios_mode[myindex].yres, 0, ivideo->vbflags2) < 0x14) { ivideo 706 drivers/video/fbdev/sis/sis_main.c if(SiS_GetModeID_VGA2(ivideo->sisvga_engine, vbflags, sisbios_mode[myindex].xres, ivideo 707 drivers/video/fbdev/sis/sis_main.c sisbios_mode[myindex].yres, 0, ivideo->vbflags2) < 0x14) { ivideo 717 drivers/video/fbdev/sis/sis_main.c sisfb_search_refresh_rate(struct sis_video_info *ivideo, unsigned int rate, int mode_idx) ivideo 723 drivers/video/fbdev/sis/sis_main.c ivideo->rate_idx = 0; ivideo 727 drivers/video/fbdev/sis/sis_main.c ivideo->rate_idx = sisfb_vrate[i].idx; ivideo 733 drivers/video/fbdev/sis/sis_main.c ivideo->rate_idx = sisfb_vrate[i].idx; ivideo 734 drivers/video/fbdev/sis/sis_main.c ivideo->refresh_rate = sisfb_vrate[i].refresh; ivideo 739 drivers/video/fbdev/sis/sis_main.c ivideo->rate_idx = sisfb_vrate[i-1].idx; ivideo 740 drivers/video/fbdev/sis/sis_main.c ivideo->refresh_rate = sisfb_vrate[i-1].refresh; ivideo 746 drivers/video/fbdev/sis/sis_main.c ivideo->rate_idx = sisfb_vrate[i].idx; ivideo 752 drivers/video/fbdev/sis/sis_main.c if(ivideo->rate_idx > 0) { ivideo 753 drivers/video/fbdev/sis/sis_main.c return ivideo->rate_idx; ivideo 762 drivers/video/fbdev/sis/sis_main.c sisfb_bridgeisslave(struct sis_video_info *ivideo) ivideo 766 drivers/video/fbdev/sis/sis_main.c if(!(ivideo->vbflags2 & VB2_VIDEOBRIDGE)) ivideo 770 drivers/video/fbdev/sis/sis_main.c if( ((ivideo->sisvga_engine == SIS_300_VGA) && (P1_00 & 0xa0) == 0x20) || ivideo 771 drivers/video/fbdev/sis/sis_main.c ((ivideo->sisvga_engine == SIS_315_VGA) && (P1_00 & 0x50) == 0x10) ) { ivideo 779 drivers/video/fbdev/sis/sis_main.c sisfballowretracecrt1(struct sis_video_info *ivideo) ivideo 795 drivers/video/fbdev/sis/sis_main.c sisfbcheckvretracecrt1(struct sis_video_info *ivideo) ivideo 797 drivers/video/fbdev/sis/sis_main.c if(!sisfballowretracecrt1(ivideo)) ivideo 807 drivers/video/fbdev/sis/sis_main.c sisfbwaitretracecrt1(struct sis_video_info *ivideo) ivideo 811 drivers/video/fbdev/sis/sis_main.c if(!sisfballowretracecrt1(ivideo)) ivideo 821 drivers/video/fbdev/sis/sis_main.c sisfbcheckvretracecrt2(struct sis_video_info *ivideo) ivideo 825 drivers/video/fbdev/sis/sis_main.c switch(ivideo->sisvga_engine) { ivideo 839 drivers/video/fbdev/sis/sis_main.c sisfb_CheckVBRetrace(struct sis_video_info *ivideo) ivideo 841 drivers/video/fbdev/sis/sis_main.c if(ivideo->currentvbflags & VB_DISPTYPE_DISP2) { ivideo 842 drivers/video/fbdev/sis/sis_main.c if(!sisfb_bridgeisslave(ivideo)) { ivideo 843 drivers/video/fbdev/sis/sis_main.c return sisfbcheckvretracecrt2(ivideo); ivideo 846 drivers/video/fbdev/sis/sis_main.c return sisfbcheckvretracecrt1(ivideo); ivideo 850 drivers/video/fbdev/sis/sis_main.c sisfb_setupvbblankflags(struct sis_video_info *ivideo, u32 *vcount, u32 *hcount) ivideo 857 drivers/video/fbdev/sis/sis_main.c if((ivideo->currentvbflags & VB_DISPTYPE_DISP2) && (!(sisfb_bridgeisslave(ivideo)))) { ivideo 864 drivers/video/fbdev/sis/sis_main.c switch(ivideo->sisvga_engine) { ivideo 879 drivers/video/fbdev/sis/sis_main.c } else if(sisfballowretracecrt1(ivideo)) { ivideo 900 drivers/video/fbdev/sis/sis_main.c sisfb_myblank(struct sis_video_info *ivideo, int blank) ivideo 955 drivers/video/fbdev/sis/sis_main.c if(ivideo->currentvbflags & VB_DISPTYPE_CRT1) { ivideo 957 drivers/video/fbdev/sis/sis_main.c if( (!ivideo->sisfb_thismonitor.datavalid) || ivideo 958 drivers/video/fbdev/sis/sis_main.c ((ivideo->sisfb_thismonitor.datavalid) && ivideo 959 drivers/video/fbdev/sis/sis_main.c (ivideo->sisfb_thismonitor.feature & 0xe0))) { ivideo 961 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_315_VGA) { ivideo 962 drivers/video/fbdev/sis/sis_main.c SiS_SetRegANDOR(SISCR, ivideo->SiS_Pr.SiS_MyCR63, 0xbf, cr63); ivideo 965 drivers/video/fbdev/sis/sis_main.c if(!(sisfb_bridgeisslave(ivideo))) { ivideo 973 drivers/video/fbdev/sis/sis_main.c if(ivideo->currentvbflags & CRT2_LCD) { ivideo 975 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags2 & VB2_SISLVDSBRIDGE) { ivideo 977 drivers/video/fbdev/sis/sis_main.c SiS_SiS30xBLOn(&ivideo->SiS_Pr); ivideo 979 drivers/video/fbdev/sis/sis_main.c SiS_SiS30xBLOff(&ivideo->SiS_Pr); ivideo 981 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->sisvga_engine == SIS_315_VGA) { ivideo 983 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags2 & VB2_CHRONTEL) { ivideo 985 drivers/video/fbdev/sis/sis_main.c SiS_Chrontel701xBLOn(&ivideo->SiS_Pr); ivideo 987 drivers/video/fbdev/sis/sis_main.c SiS_Chrontel701xBLOff(&ivideo->SiS_Pr); ivideo 993 drivers/video/fbdev/sis/sis_main.c if(((ivideo->sisvga_engine == SIS_300_VGA) && ivideo 994 drivers/video/fbdev/sis/sis_main.c (ivideo->vbflags2 & (VB2_301|VB2_30xBDH|VB2_LVDS))) || ivideo 995 drivers/video/fbdev/sis/sis_main.c ((ivideo->sisvga_engine == SIS_315_VGA) && ivideo 996 drivers/video/fbdev/sis/sis_main.c ((ivideo->vbflags2 & (VB2_LVDS | VB2_CHRONTEL)) == VB2_LVDS))) { ivideo 1000 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_300_VGA) { ivideo 1001 drivers/video/fbdev/sis/sis_main.c if((ivideo->vbflags2 & VB2_30xB) && ivideo 1002 drivers/video/fbdev/sis/sis_main.c (!(ivideo->vbflags2 & VB2_30xBDH))) { ivideo 1005 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->sisvga_engine == SIS_315_VGA) { ivideo 1006 drivers/video/fbdev/sis/sis_main.c if((ivideo->vbflags2 & VB2_30xB) && ivideo 1007 drivers/video/fbdev/sis/sis_main.c (!(ivideo->vbflags2 & VB2_30xBDH))) { ivideo 1012 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->currentvbflags & CRT2_VGA) { ivideo 1014 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags2 & VB2_30xB) { ivideo 1029 drivers/video/fbdev/sis/sis_main.c struct sis_video_info *ivideo = (struct sis_video_info *)SiS_Pr->ivideo; ivideo 1032 drivers/video/fbdev/sis/sis_main.c pci_read_config_dword(ivideo->nbridge, reg, &val); ivideo 1039 drivers/video/fbdev/sis/sis_main.c struct sis_video_info *ivideo = (struct sis_video_info *)SiS_Pr->ivideo; ivideo 1041 drivers/video/fbdev/sis/sis_main.c pci_write_config_dword(ivideo->nbridge, reg, (u32)val); ivideo 1047 drivers/video/fbdev/sis/sis_main.c struct sis_video_info *ivideo = (struct sis_video_info *)SiS_Pr->ivideo; ivideo 1050 drivers/video/fbdev/sis/sis_main.c if(!ivideo->lpcdev) return 0; ivideo 1052 drivers/video/fbdev/sis/sis_main.c pci_read_config_dword(ivideo->lpcdev, reg, &val); ivideo 1061 drivers/video/fbdev/sis/sis_main.c struct sis_video_info *ivideo = (struct sis_video_info *)SiS_Pr->ivideo; ivideo 1063 drivers/video/fbdev/sis/sis_main.c pci_write_config_byte(ivideo->nbridge, reg, (u8)val); ivideo 1069 drivers/video/fbdev/sis/sis_main.c struct sis_video_info *ivideo = (struct sis_video_info *)SiS_Pr->ivideo; ivideo 1072 drivers/video/fbdev/sis/sis_main.c if(!ivideo->lpcdev) return 0; ivideo 1074 drivers/video/fbdev/sis/sis_main.c pci_read_config_word(ivideo->lpcdev, reg, &val); ivideo 1088 drivers/video/fbdev/sis/sis_main.c sisfb_set_vparms(struct sis_video_info *ivideo) ivideo 1090 drivers/video/fbdev/sis/sis_main.c switch(ivideo->video_bpp) { ivideo 1092 drivers/video/fbdev/sis/sis_main.c ivideo->DstColor = 0x0000; ivideo 1093 drivers/video/fbdev/sis/sis_main.c ivideo->SiS310_AccelDepth = 0x00000000; ivideo 1094 drivers/video/fbdev/sis/sis_main.c ivideo->video_cmap_len = 256; ivideo 1097 drivers/video/fbdev/sis/sis_main.c ivideo->DstColor = 0x8000; ivideo 1098 drivers/video/fbdev/sis/sis_main.c ivideo->SiS310_AccelDepth = 0x00010000; ivideo 1099 drivers/video/fbdev/sis/sis_main.c ivideo->video_cmap_len = 16; ivideo 1102 drivers/video/fbdev/sis/sis_main.c ivideo->DstColor = 0xC000; ivideo 1103 drivers/video/fbdev/sis/sis_main.c ivideo->SiS310_AccelDepth = 0x00020000; ivideo 1104 drivers/video/fbdev/sis/sis_main.c ivideo->video_cmap_len = 16; ivideo 1107 drivers/video/fbdev/sis/sis_main.c ivideo->video_cmap_len = 16; ivideo 1108 drivers/video/fbdev/sis/sis_main.c printk(KERN_ERR "sisfb: Unsupported depth %d", ivideo->video_bpp); ivideo 1109 drivers/video/fbdev/sis/sis_main.c ivideo->accel = 0; ivideo 1114 drivers/video/fbdev/sis/sis_main.c sisfb_calc_maxyres(struct sis_video_info *ivideo, struct fb_var_screeninfo *var) ivideo 1116 drivers/video/fbdev/sis/sis_main.c int maxyres = ivideo->sisfb_mem / (var->xres_virtual * (var->bits_per_pixel >> 3)); ivideo 1124 drivers/video/fbdev/sis/sis_main.c sisfb_calc_pitch(struct sis_video_info *ivideo, struct fb_var_screeninfo *var) ivideo 1126 drivers/video/fbdev/sis/sis_main.c ivideo->video_linelength = var->xres_virtual * (var->bits_per_pixel >> 3); ivideo 1127 drivers/video/fbdev/sis/sis_main.c ivideo->scrnpitchCRT1 = ivideo->video_linelength; ivideo 1128 drivers/video/fbdev/sis/sis_main.c if(!(ivideo->currentvbflags & CRT1_LCDA)) { ivideo 1130 drivers/video/fbdev/sis/sis_main.c ivideo->scrnpitchCRT1 <<= 1; ivideo 1136 drivers/video/fbdev/sis/sis_main.c sisfb_set_pitch(struct sis_video_info *ivideo) ivideo 1139 drivers/video/fbdev/sis/sis_main.c unsigned short HDisplay1 = ivideo->scrnpitchCRT1 >> 3; ivideo 1140 drivers/video/fbdev/sis/sis_main.c unsigned short HDisplay2 = ivideo->video_linelength >> 3; ivideo 1142 drivers/video/fbdev/sis/sis_main.c if(sisfb_bridgeisslave(ivideo)) isslavemode = true; ivideo 1145 drivers/video/fbdev/sis/sis_main.c if((ivideo->currentvbflags & VB_DISPTYPE_DISP1) || (isslavemode)) { ivideo 1151 drivers/video/fbdev/sis/sis_main.c if((ivideo->currentvbflags & VB_DISPTYPE_DISP2) && (!isslavemode)) { ivideo 1152 drivers/video/fbdev/sis/sis_main.c SiS_SetRegOR(SISPART1, ivideo->CRT2_write_enable, 0x01); ivideo 1159 drivers/video/fbdev/sis/sis_main.c sisfb_bpp_to_var(struct sis_video_info *ivideo, struct fb_var_screeninfo *var) ivideo 1161 drivers/video/fbdev/sis/sis_main.c ivideo->video_cmap_len = sisfb_get_cmap_len(var); ivideo 1192 drivers/video/fbdev/sis/sis_main.c sisfb_set_mode(struct sis_video_info *ivideo, int clrscrn) ivideo 1194 drivers/video/fbdev/sis/sis_main.c unsigned short modeno = ivideo->mode_no; ivideo 1201 drivers/video/fbdev/sis/sis_main.c sisfb_pre_setmode(ivideo); ivideo 1203 drivers/video/fbdev/sis/sis_main.c if(!SiSSetMode(&ivideo->SiS_Pr, modeno)) { ivideo 1204 drivers/video/fbdev/sis/sis_main.c printk(KERN_ERR "sisfb: Setting mode[0x%x] failed\n", ivideo->mode_no); ivideo 1210 drivers/video/fbdev/sis/sis_main.c sisfb_post_setmode(ivideo); ivideo 1219 drivers/video/fbdev/sis/sis_main.c struct sis_video_info *ivideo = (struct sis_video_info *)info->par; ivideo 1251 drivers/video/fbdev/sis/sis_main.c ivideo->refresh_rate = (unsigned int) (hrate * 2 / vtotal); ivideo 1253 drivers/video/fbdev/sis/sis_main.c ivideo->refresh_rate = 60; ivideo 1256 drivers/video/fbdev/sis/sis_main.c old_mode = ivideo->sisfb_mode_idx; ivideo 1257 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_mode_idx = 0; ivideo 1259 drivers/video/fbdev/sis/sis_main.c while( (sisbios_mode[ivideo->sisfb_mode_idx].mode_no[0] != 0) && ivideo 1260 drivers/video/fbdev/sis/sis_main.c (sisbios_mode[ivideo->sisfb_mode_idx].xres <= var->xres) ) { ivideo 1261 drivers/video/fbdev/sis/sis_main.c if( (sisbios_mode[ivideo->sisfb_mode_idx].xres == var->xres) && ivideo 1262 drivers/video/fbdev/sis/sis_main.c (sisbios_mode[ivideo->sisfb_mode_idx].yres == var->yres) && ivideo 1263 drivers/video/fbdev/sis/sis_main.c (sisbios_mode[ivideo->sisfb_mode_idx].bpp == var->bits_per_pixel)) { ivideo 1264 drivers/video/fbdev/sis/sis_main.c ivideo->mode_no = sisbios_mode[ivideo->sisfb_mode_idx].mode_no[ivideo->mni]; ivideo 1268 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_mode_idx++; ivideo 1272 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_mode_idx = sisfb_validate_mode(ivideo, ivideo 1273 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_mode_idx, ivideo->currentvbflags); ivideo 1275 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_mode_idx = -1; ivideo 1278 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisfb_mode_idx < 0) { ivideo 1281 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_mode_idx = old_mode; ivideo 1285 drivers/video/fbdev/sis/sis_main.c ivideo->mode_no = sisbios_mode[ivideo->sisfb_mode_idx].mode_no[ivideo->mni]; ivideo 1287 drivers/video/fbdev/sis/sis_main.c if(sisfb_search_refresh_rate(ivideo, ivideo->refresh_rate, ivideo->sisfb_mode_idx) == 0) { ivideo 1288 drivers/video/fbdev/sis/sis_main.c ivideo->rate_idx = sisbios_mode[ivideo->sisfb_mode_idx].rate_idx; ivideo 1289 drivers/video/fbdev/sis/sis_main.c ivideo->refresh_rate = 60; ivideo 1296 drivers/video/fbdev/sis/sis_main.c ivideo->accel = 0; ivideo 1305 drivers/video/fbdev/sis/sis_main.c if(!(info->flags & FBINFO_HWACCEL_DISABLED)) ivideo->accel = -1; ivideo 1307 drivers/video/fbdev/sis/sis_main.c if(var->accel_flags & FB_ACCELF_TEXT) ivideo->accel = -1; ivideo 1310 drivers/video/fbdev/sis/sis_main.c if((ret = sisfb_set_mode(ivideo, 1))) { ivideo 1314 drivers/video/fbdev/sis/sis_main.c ivideo->video_bpp = sisbios_mode[ivideo->sisfb_mode_idx].bpp; ivideo 1315 drivers/video/fbdev/sis/sis_main.c ivideo->video_width = sisbios_mode[ivideo->sisfb_mode_idx].xres; ivideo 1316 drivers/video/fbdev/sis/sis_main.c ivideo->video_height = sisbios_mode[ivideo->sisfb_mode_idx].yres; ivideo 1318 drivers/video/fbdev/sis/sis_main.c sisfb_calc_pitch(ivideo, var); ivideo 1319 drivers/video/fbdev/sis/sis_main.c sisfb_set_pitch(ivideo); ivideo 1321 drivers/video/fbdev/sis/sis_main.c sisfb_set_vparms(ivideo); ivideo 1323 drivers/video/fbdev/sis/sis_main.c ivideo->current_width = ivideo->video_width; ivideo 1324 drivers/video/fbdev/sis/sis_main.c ivideo->current_height = ivideo->video_height; ivideo 1325 drivers/video/fbdev/sis/sis_main.c ivideo->current_bpp = ivideo->video_bpp; ivideo 1326 drivers/video/fbdev/sis/sis_main.c ivideo->current_htotal = htotal; ivideo 1327 drivers/video/fbdev/sis/sis_main.c ivideo->current_vtotal = vtotal; ivideo 1328 drivers/video/fbdev/sis/sis_main.c ivideo->current_linelength = ivideo->video_linelength; ivideo 1329 drivers/video/fbdev/sis/sis_main.c ivideo->current_pixclock = var->pixclock; ivideo 1330 drivers/video/fbdev/sis/sis_main.c ivideo->current_refresh_rate = ivideo->refresh_rate; ivideo 1331 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_lastrates[ivideo->mode_no] = ivideo->refresh_rate; ivideo 1338 drivers/video/fbdev/sis/sis_main.c sisfb_set_base_CRT1(struct sis_video_info *ivideo, unsigned int base) ivideo 1345 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_315_VGA) { ivideo 1351 drivers/video/fbdev/sis/sis_main.c sisfb_set_base_CRT2(struct sis_video_info *ivideo, unsigned int base) ivideo 1353 drivers/video/fbdev/sis/sis_main.c if(ivideo->currentvbflags & VB_DISPTYPE_DISP2) { ivideo 1354 drivers/video/fbdev/sis/sis_main.c SiS_SetRegOR(SISPART1, ivideo->CRT2_write_enable, 0x01); ivideo 1358 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_315_VGA) { ivideo 1365 drivers/video/fbdev/sis/sis_main.c sisfb_pan_var(struct sis_video_info *ivideo, struct fb_info *info, ivideo 1368 drivers/video/fbdev/sis/sis_main.c ivideo->current_base = var->yoffset * info->var.xres_virtual ivideo 1376 drivers/video/fbdev/sis/sis_main.c ivideo->current_base >>= 1; ivideo 1380 drivers/video/fbdev/sis/sis_main.c ivideo->current_base >>= 2; ivideo 1384 drivers/video/fbdev/sis/sis_main.c ivideo->current_base += (ivideo->video_offset >> 2); ivideo 1386 drivers/video/fbdev/sis/sis_main.c sisfb_set_base_CRT1(ivideo, ivideo->current_base); ivideo 1387 drivers/video/fbdev/sis/sis_main.c sisfb_set_base_CRT2(ivideo, ivideo->current_base); ivideo 1408 drivers/video/fbdev/sis/sis_main.c struct sis_video_info *ivideo = (struct sis_video_info *)info->par; ivideo 1419 drivers/video/fbdev/sis/sis_main.c if(ivideo->currentvbflags & VB_DISPTYPE_DISP2) { ivideo 1465 drivers/video/fbdev/sis/sis_main.c struct sis_video_info *ivideo = (struct sis_video_info *)info->par; ivideo 1501 drivers/video/fbdev/sis/sis_main.c if((tidx = sisfb_validate_mode(ivideo, search_idx, ivideo 1502 drivers/video/fbdev/sis/sis_main.c ivideo->currentvbflags)) > 0) { ivideo 1517 drivers/video/fbdev/sis/sis_main.c if((tidx = sisfb_validate_mode(ivideo,search_idx, ivideo 1518 drivers/video/fbdev/sis/sis_main.c ivideo->currentvbflags)) > 0) { ivideo 1543 drivers/video/fbdev/sis/sis_main.c if( ((ivideo->vbflags2 & VB2_LVDS) || ivideo 1544 drivers/video/fbdev/sis/sis_main.c ((ivideo->vbflags2 & VB2_30xBDH) && (ivideo->currentvbflags & CRT2_LCD))) && ivideo 1549 drivers/video/fbdev/sis/sis_main.c } else if( (ivideo->current_htotal == htotal) && ivideo 1550 drivers/video/fbdev/sis/sis_main.c (ivideo->current_vtotal == vtotal) && ivideo 1551 drivers/video/fbdev/sis/sis_main.c (ivideo->current_pixclock == pixclock) ) { ivideo 1556 drivers/video/fbdev/sis/sis_main.c } else if( ( (ivideo->current_htotal != htotal) || ivideo 1557 drivers/video/fbdev/sis/sis_main.c (ivideo->current_vtotal != vtotal) ) && ivideo 1558 drivers/video/fbdev/sis/sis_main.c (ivideo->current_pixclock == var->pixclock) ) { ivideo 1560 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisfb_lastrates[sisbios_mode[search_idx].mode_no[ivideo->mni]]) { ivideo 1562 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_lastrates[sisbios_mode[search_idx].mode_no[ivideo->mni]]; ivideo 1563 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->sisfb_parm_rate != -1) { ivideo 1565 drivers/video/fbdev/sis/sis_main.c refresh_rate = ivideo->sisfb_parm_rate; ivideo 1574 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->current_refresh_rate) { ivideo 1575 drivers/video/fbdev/sis/sis_main.c refresh_rate = ivideo->current_refresh_rate; ivideo 1582 drivers/video/fbdev/sis/sis_main.c myrateindex = sisfb_search_refresh_rate(ivideo, refresh_rate, search_idx); ivideo 1587 drivers/video/fbdev/sis/sis_main.c var->pixclock = (u32) (1000000000 / sisfb_mode_rate_to_dclock(&ivideo->SiS_Pr, ivideo 1588 drivers/video/fbdev/sis/sis_main.c sisbios_mode[search_idx].mode_no[ivideo->mni], ivideo 1590 drivers/video/fbdev/sis/sis_main.c sisfb_mode_rate_to_ddata(&ivideo->SiS_Pr, ivideo 1591 drivers/video/fbdev/sis/sis_main.c sisbios_mode[search_idx].mode_no[ivideo->mni], ivideo 1598 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisfb_thismonitor.datavalid) { ivideo 1599 drivers/video/fbdev/sis/sis_main.c if(!sisfb_verify_rate(ivideo, &ivideo->sisfb_thismonitor, search_idx, ivideo 1607 drivers/video/fbdev/sis/sis_main.c sisfb_bpp_to_var(ivideo, var); ivideo 1612 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisfb_ypan) { ivideo 1613 drivers/video/fbdev/sis/sis_main.c maxyres = sisfb_calc_maxyres(ivideo, var); ivideo 1614 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisfb_max) { ivideo 1655 drivers/video/fbdev/sis/sis_main.c struct sis_video_info *ivideo = (struct sis_video_info *)info->par; ivideo 1665 drivers/video/fbdev/sis/sis_main.c err = sisfb_pan_var(ivideo, info, var); ivideo 1678 drivers/video/fbdev/sis/sis_main.c struct sis_video_info *ivideo = (struct sis_video_info *)info->par; ivideo 1680 drivers/video/fbdev/sis/sis_main.c return sisfb_myblank(ivideo, blank); ivideo 1688 drivers/video/fbdev/sis/sis_main.c struct sis_video_info *ivideo = (struct sis_video_info *)info->par; ivideo 1728 drivers/video/fbdev/sis/sis_main.c sisvbblank.flags = sisfb_setupvbblankflags(ivideo, &sisvbblank.vcount, &sisvbblank.hcount); ivideo 1739 drivers/video/fbdev/sis/sis_main.c if(ivideo->warncount++ < 10) ivideo 1744 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_id = SISFB_ID; ivideo 1745 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_version = VER_MAJOR; ivideo 1746 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_revision = VER_MINOR; ivideo 1747 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_patchlevel = VER_LEVEL; ivideo 1748 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.chip_id = ivideo->chip_id; ivideo 1749 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_pci_vendor = ivideo->chip_vendor; ivideo 1750 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.memory = ivideo->video_size / 1024; ivideo 1751 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.heapstart = ivideo->heapstart / 1024; ivideo 1752 drivers/video/fbdev/sis/sis_main.c if(ivideo->modechanged) { ivideo 1753 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.fbvidmode = ivideo->mode_no; ivideo 1755 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.fbvidmode = ivideo->modeprechange; ivideo 1757 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_caps = ivideo->caps; ivideo 1758 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_tqlen = ivideo->cmdQueueSize / 1024; ivideo 1759 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_pcibus = ivideo->pcibus; ivideo 1760 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_pcislot = ivideo->pcislot; ivideo 1761 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_pcifunc = ivideo->pcifunc; ivideo 1762 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_lcdpdc = ivideo->detectedpdc; ivideo 1763 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_lcdpdca = ivideo->detectedpdca; ivideo 1764 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_lcda = ivideo->detectedlcda; ivideo 1765 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_vbflags = ivideo->vbflags; ivideo 1766 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_currentvbflags = ivideo->currentvbflags; ivideo 1767 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_scalelcd = ivideo->SiS_Pr.UsePanelScaler; ivideo 1768 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_specialtiming = ivideo->SiS_Pr.SiS_CustomT; ivideo 1769 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_haveemi = ivideo->SiS_Pr.HaveEMI ? 1 : 0; ivideo 1770 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_haveemilcd = ivideo->SiS_Pr.HaveEMILCD ? 1 : 0; ivideo 1771 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_emi30 = ivideo->SiS_Pr.EMI_30; ivideo 1772 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_emi31 = ivideo->SiS_Pr.EMI_31; ivideo 1773 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_emi32 = ivideo->SiS_Pr.EMI_32; ivideo 1774 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_emi33 = ivideo->SiS_Pr.EMI_33; ivideo 1775 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_tvxpos = (u16)(ivideo->tvxpos + 32); ivideo 1776 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_tvypos = (u16)(ivideo->tvypos + 32); ivideo 1777 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_heapsize = ivideo->sisfb_heap_size / 1024; ivideo 1778 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_videooffset = ivideo->video_offset; ivideo 1779 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_curfstn = ivideo->curFSTN; ivideo 1780 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_curdstn = ivideo->curDSTN; ivideo 1781 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_vbflags2 = ivideo->vbflags2; ivideo 1782 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_can_post = ivideo->sisfb_can_post ? 1 : 0; ivideo 1783 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_card_posted = ivideo->sisfb_card_posted ? 1 : 0; ivideo 1784 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_infoblock.sisfb_was_boot_device = ivideo->sisfb_was_boot_device ? 1 : 0; ivideo 1786 drivers/video/fbdev/sis/sis_main.c if(copy_to_user((void __user *)arg, &ivideo->sisfb_infoblock, ivideo 1787 drivers/video/fbdev/sis/sis_main.c sizeof(ivideo->sisfb_infoblock))) ivideo 1793 drivers/video/fbdev/sis/sis_main.c if(ivideo->warncount++ < 10) ivideo 1798 drivers/video/fbdev/sis/sis_main.c if(sisfb_CheckVBRetrace(ivideo)) ivideo 1804 drivers/video/fbdev/sis/sis_main.c if(ivideo->warncount++ < 10) ivideo 1809 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisfb_max) ivideo 1815 drivers/video/fbdev/sis/sis_main.c if(ivideo->warncount++ < 10) ivideo 1823 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_max = (gpu32) ? 1 : 0; ivideo 1830 drivers/video/fbdev/sis/sis_main.c sisfb_set_TVxposoffset(ivideo, ((int)(gpu32 >> 16)) - 32); ivideo 1831 drivers/video/fbdev/sis/sis_main.c sisfb_set_TVyposoffset(ivideo, ((int)(gpu32 & 0xffff)) - 32); ivideo 1835 drivers/video/fbdev/sis/sis_main.c return put_user((u32)(((ivideo->tvxpos+32)<<16)|((ivideo->tvypos+32)&0xffff)), ivideo 1839 drivers/video/fbdev/sis/sis_main.c if(copy_from_user(&ivideo->sisfb_command, (void __user *)arg, ivideo 1843 drivers/video/fbdev/sis/sis_main.c sisfb_handle_command(ivideo, &ivideo->sisfb_command); ivideo 1845 drivers/video/fbdev/sis/sis_main.c if(copy_to_user((void __user *)arg, &ivideo->sisfb_command, ivideo 1855 drivers/video/fbdev/sis/sis_main.c ivideo->sisfblocked = (gpu32) ? 1 : 0; ivideo 1871 drivers/video/fbdev/sis/sis_main.c struct sis_video_info *ivideo = (struct sis_video_info *)info->par; ivideo 1875 drivers/video/fbdev/sis/sis_main.c strlcpy(fix->id, ivideo->myid, sizeof(fix->id)); ivideo 1878 drivers/video/fbdev/sis/sis_main.c fix->smem_start = ivideo->video_base + ivideo->video_offset; ivideo 1879 drivers/video/fbdev/sis/sis_main.c fix->smem_len = ivideo->sisfb_mem; ivideo 1883 drivers/video/fbdev/sis/sis_main.c fix->visual = (ivideo->video_bpp == 8) ? FB_VISUAL_PSEUDOCOLOR : FB_VISUAL_TRUECOLOR; ivideo 1885 drivers/video/fbdev/sis/sis_main.c fix->ypanstep = (ivideo->sisfb_ypan) ? 1 : 0; ivideo 1887 drivers/video/fbdev/sis/sis_main.c fix->line_length = ivideo->video_linelength; ivideo 1888 drivers/video/fbdev/sis/sis_main.c fix->mmio_start = ivideo->mmio_base; ivideo 1889 drivers/video/fbdev/sis/sis_main.c fix->mmio_len = ivideo->mmio_size; ivideo 1890 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_300_VGA) { ivideo 1892 drivers/video/fbdev/sis/sis_main.c } else if((ivideo->chip == SIS_330) || ivideo 1893 drivers/video/fbdev/sis/sis_main.c (ivideo->chip == SIS_760) || ivideo 1894 drivers/video/fbdev/sis/sis_main.c (ivideo->chip == SIS_761)) { ivideo 1896 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->chip == XGI_20) { ivideo 1898 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->chip >= XGI_40) { ivideo 1969 drivers/video/fbdev/sis/sis_main.c static int sisfb_get_dram_size(struct sis_video_info *ivideo) ivideo 1975 drivers/video/fbdev/sis/sis_main.c ivideo->video_size = 0; ivideo 1976 drivers/video/fbdev/sis/sis_main.c ivideo->UMAsize = ivideo->LFBsize = 0; ivideo 1978 drivers/video/fbdev/sis/sis_main.c switch(ivideo->chip) { ivideo 1982 drivers/video/fbdev/sis/sis_main.c ivideo->video_size = ((reg & 0x3F) + 1) << 20; ivideo 1987 drivers/video/fbdev/sis/sis_main.c if(!ivideo->nbridge) ivideo 1989 drivers/video/fbdev/sis/sis_main.c pci_read_config_byte(ivideo->nbridge, 0x63, ®); ivideo 1990 drivers/video/fbdev/sis/sis_main.c ivideo->video_size = 1 << (((reg & 0x70) >> 4) + 21); ivideo 1998 drivers/video/fbdev/sis/sis_main.c ivideo->video_size = (1 << ((reg & 0xf0) >> 4)) << 20; ivideo 2002 drivers/video/fbdev/sis/sis_main.c ivideo->video_size <<= 1; ivideo 2005 drivers/video/fbdev/sis/sis_main.c ivideo->video_size += (ivideo->video_size/2); ivideo 2010 drivers/video/fbdev/sis/sis_main.c ivideo->video_size = (1 << ((reg & 0xf0) >> 4)) << 20; ivideo 2011 drivers/video/fbdev/sis/sis_main.c if(reg & 0x0c) ivideo->video_size <<= 1; ivideo 2017 drivers/video/fbdev/sis/sis_main.c ivideo->video_size = (((reg & 0x3f) + 1) << 2) << 20; ivideo 2022 drivers/video/fbdev/sis/sis_main.c ivideo->video_size = (1 << ((reg & 0xf0) >> 4)) << 20; ivideo 2030 drivers/video/fbdev/sis/sis_main.c ivideo->video_size = (1 << reg) << 20; ivideo 2031 drivers/video/fbdev/sis/sis_main.c ivideo->UMAsize = ivideo->video_size; ivideo 2037 drivers/video/fbdev/sis/sis_main.c ivideo->LFBsize = (32 << 20); ivideo 2039 drivers/video/fbdev/sis/sis_main.c ivideo->LFBsize = (64 << 20); ivideo 2041 drivers/video/fbdev/sis/sis_main.c ivideo->video_size += ivideo->LFBsize; ivideo 2048 drivers/video/fbdev/sis/sis_main.c ivideo->video_size = (1 << ((reg & 0xf0) >> 4)) << 20; ivideo 2049 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip != XGI_20) { ivideo 2051 drivers/video/fbdev/sis/sis_main.c if(ivideo->revision_id == 2) { ivideo 2055 drivers/video/fbdev/sis/sis_main.c if(reg == 0x02) ivideo->video_size <<= 1; ivideo 2056 drivers/video/fbdev/sis/sis_main.c else if(reg == 0x03) ivideo->video_size <<= 2; ivideo 2068 drivers/video/fbdev/sis/sis_main.c static void sisfb_detect_VB_connect(struct sis_video_info *ivideo) ivideo 2073 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip == XGI_20) { ivideo 2074 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_crt1off = 0; ivideo 2079 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_300_VGA) { ivideo 2081 drivers/video/fbdev/sis/sis_main.c if((temp & 0x0F) && (ivideo->chip != SIS_300)) { ivideo 2083 drivers/video/fbdev/sis/sis_main.c if(!(ivideo->vbflags & (TV_PAL | TV_NTSC | TV_PALM | TV_PALN))) { ivideo 2086 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags |= TV_PAL; ivideo 2088 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags |= TV_NTSC; ivideo 2097 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_crt1off = 0; ivideo 2099 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_crt1off = (cr32 & 0xDF) ? 1 : 0; ivideo 2102 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags &= ~(CRT2_TV | CRT2_LCD | CRT2_VGA); ivideo 2104 drivers/video/fbdev/sis/sis_main.c if(cr32 & SIS_VB_TV) ivideo->vbflags |= CRT2_TV; ivideo 2105 drivers/video/fbdev/sis/sis_main.c if(cr32 & SIS_VB_LCD) ivideo->vbflags |= CRT2_LCD; ivideo 2106 drivers/video/fbdev/sis/sis_main.c if(cr32 & SIS_VB_CRT2) ivideo->vbflags |= CRT2_VGA; ivideo 2113 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip != SIS_550) { ivideo 2114 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_dstn = ivideo->sisfb_fstn = 0; ivideo 2117 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisfb_tvplug != -1) { ivideo 2118 drivers/video/fbdev/sis/sis_main.c if( (ivideo->sisvga_engine != SIS_315_VGA) || ivideo 2119 drivers/video/fbdev/sis/sis_main.c (!(ivideo->vbflags2 & VB2_SISYPBPRBRIDGE)) ) { ivideo 2120 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisfb_tvplug & TV_YPBPR) { ivideo 2121 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_tvplug = -1; ivideo 2126 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisfb_tvplug != -1) { ivideo 2127 drivers/video/fbdev/sis/sis_main.c if( (ivideo->sisvga_engine != SIS_315_VGA) || ivideo 2128 drivers/video/fbdev/sis/sis_main.c (!(ivideo->vbflags2 & VB2_SISHIVISIONBRIDGE)) ) { ivideo 2129 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisfb_tvplug & TV_HIVISION) { ivideo 2130 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_tvplug = -1; ivideo 2135 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisfb_tvstd != -1) { ivideo 2136 drivers/video/fbdev/sis/sis_main.c if( (!(ivideo->vbflags2 & VB2_SISBRIDGE)) && ivideo 2137 drivers/video/fbdev/sis/sis_main.c (!((ivideo->sisvga_engine == SIS_315_VGA) && ivideo 2138 drivers/video/fbdev/sis/sis_main.c (ivideo->vbflags2 & VB2_CHRONTEL))) ) { ivideo 2139 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisfb_tvstd & (TV_PALM | TV_PALN | TV_NTSCJ)) { ivideo 2140 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_tvstd = -1; ivideo 2147 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisfb_tvplug != -1) { ivideo 2148 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags |= ivideo->sisfb_tvplug; ivideo 2150 drivers/video/fbdev/sis/sis_main.c if(cr32 & SIS_VB_YPBPR) ivideo->vbflags |= (TV_YPBPR|TV_YPBPR525I); /* default: 480i */ ivideo 2151 drivers/video/fbdev/sis/sis_main.c else if(cr32 & SIS_VB_HIVISION) ivideo->vbflags |= TV_HIVISION; ivideo 2152 drivers/video/fbdev/sis/sis_main.c else if(cr32 & SIS_VB_SCART) ivideo->vbflags |= TV_SCART; ivideo 2154 drivers/video/fbdev/sis/sis_main.c if(cr32 & SIS_VB_SVIDEO) ivideo->vbflags |= TV_SVIDEO; ivideo 2155 drivers/video/fbdev/sis/sis_main.c if(cr32 & SIS_VB_COMPOSITE) ivideo->vbflags |= TV_AVIDEO; ivideo 2159 drivers/video/fbdev/sis/sis_main.c if(!(ivideo->vbflags & (TV_YPBPR | TV_HIVISION))) { ivideo 2160 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisfb_tvstd != -1) { ivideo 2161 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags &= ~(TV_NTSC | TV_PAL | TV_PALM | TV_PALN | TV_NTSCJ); ivideo 2162 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags |= ivideo->sisfb_tvstd; ivideo 2164 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags & TV_SCART) { ivideo 2165 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags &= ~(TV_NTSC | TV_PALM | TV_PALN | TV_NTSCJ); ivideo 2166 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags |= TV_PAL; ivideo 2168 drivers/video/fbdev/sis/sis_main.c if(!(ivideo->vbflags & (TV_PAL | TV_NTSC | TV_PALM | TV_PALN | TV_NTSCJ))) { ivideo 2169 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_300_VGA) { ivideo 2171 drivers/video/fbdev/sis/sis_main.c if(temp & 0x01) ivideo->vbflags |= TV_PAL; ivideo 2172 drivers/video/fbdev/sis/sis_main.c else ivideo->vbflags |= TV_NTSC; ivideo 2173 drivers/video/fbdev/sis/sis_main.c } else if((ivideo->chip <= SIS_315PRO) || (ivideo->chip >= SIS_330)) { ivideo 2175 drivers/video/fbdev/sis/sis_main.c if(temp & 0x01) ivideo->vbflags |= TV_PAL; ivideo 2176 drivers/video/fbdev/sis/sis_main.c else ivideo->vbflags |= TV_NTSC; ivideo 2179 drivers/video/fbdev/sis/sis_main.c if(temp & 0x20) ivideo->vbflags |= TV_PAL; ivideo 2180 drivers/video/fbdev/sis/sis_main.c else ivideo->vbflags |= TV_NTSC; ivideo 2186 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisfb_forcecrt1 != -1) { ivideo 2187 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_crt1off = (ivideo->sisfb_forcecrt1) ? 0 : 1; ivideo 2193 drivers/video/fbdev/sis/sis_main.c static bool sisfb_test_DDC1(struct sis_video_info *ivideo) ivideo 2198 drivers/video/fbdev/sis/sis_main.c old = SiS_ReadDDC1Bit(&ivideo->SiS_Pr); ivideo 2200 drivers/video/fbdev/sis/sis_main.c if(old != SiS_ReadDDC1Bit(&ivideo->SiS_Pr)) break; ivideo 2205 drivers/video/fbdev/sis/sis_main.c static void sisfb_sense_crt1(struct sis_video_info *ivideo) ivideo 2221 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_315_VGA) { ivideo 2222 drivers/video/fbdev/sis/sis_main.c cr63 = SiS_GetReg(SISCR, ivideo->SiS_Pr.SiS_MyCR63); ivideo 2224 drivers/video/fbdev/sis/sis_main.c SiS_SetRegAND(SISCR, ivideo->SiS_Pr.SiS_MyCR63, 0xBF); ivideo 2238 drivers/video/fbdev/sis/sis_main.c for(i=0; i < 10; i++) sisfbwaitretracecrt1(ivideo); ivideo 2242 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip >= SIS_330) { ivideo 2244 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip >= SIS_340) { ivideo 2261 drivers/video/fbdev/sis/sis_main.c temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, ivideo 2262 drivers/video/fbdev/sis/sis_main.c ivideo->sisvga_engine, 0, 0, NULL, ivideo->vbflags2); ivideo 2266 drivers/video/fbdev/sis/sis_main.c if(sisfb_test_DDC1(ivideo)) temp = 1; ivideo 2275 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_315_VGA) { ivideo 2276 drivers/video/fbdev/sis/sis_main.c SiS_SetRegANDOR(SISCR, ivideo->SiS_Pr.SiS_MyCR63, 0xBF, cr63); ivideo 2286 drivers/video/fbdev/sis/sis_main.c static void SiS_SenseLCD(struct sis_video_info *ivideo) ivideo 2293 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.PanelSelfDetected = false; ivideo 2296 drivers/video/fbdev/sis/sis_main.c if(!(ivideo->vbflags2 & VB2_SISTMDSBRIDGE)) ivideo 2298 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags2 & VB2_30xBDH) ivideo 2307 drivers/video/fbdev/sis/sis_main.c if(ivideo->SiS_Pr.DDCPortMixup) ivideo 2311 drivers/video/fbdev/sis/sis_main.c temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, ivideo->sisvga_engine, ivideo 2312 drivers/video/fbdev/sis/sis_main.c realcrtno, 0, &buffer[0], ivideo->vbflags2); ivideo 2320 drivers/video/fbdev/sis/sis_main.c temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, ivideo 2321 drivers/video/fbdev/sis/sis_main.c ivideo->sisvga_engine, realcrtno, 1, ivideo 2322 drivers/video/fbdev/sis/sis_main.c &buffer[0], ivideo->vbflags2); ivideo 2349 drivers/video/fbdev/sis/sis_main.c if((yres == 1200) && (ivideo->vbflags2 & VB2_30xC)) ivideo 2370 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.PanelSelfDetected = true; ivideo 2373 drivers/video/fbdev/sis/sis_main.c static int SISDoSense(struct sis_video_info *ivideo, u16 type, u16 test) ivideo 2384 drivers/video/fbdev/sis/sis_main.c SiS_DDC2Delay(&ivideo->SiS_Pr, 0x1500); ivideo 2394 drivers/video/fbdev/sis/sis_main.c SiS_DDC2Delay(&ivideo->SiS_Pr, 0x1000); ivideo 2402 drivers/video/fbdev/sis/sis_main.c static void SiS_Sense30x(struct sis_video_info *ivideo) ivideo 2412 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags2 & VB2_301) { ivideo 2418 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->vbflags2 & (VB2_301B | VB2_302B)) { ivideo 2420 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->vbflags2 & (VB2_301LV | VB2_302LV)) { ivideo 2422 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->vbflags2 & (VB2_301C | VB2_302ELV | VB2_307T | VB2_307LV)) { ivideo 2428 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags & (VB2_301LV|VB2_302LV|VB2_302ELV|VB2_307LV)) { ivideo 2433 drivers/video/fbdev/sis/sis_main.c if(ivideo->haveXGIROM) { ivideo 2434 drivers/video/fbdev/sis/sis_main.c biosflag = ivideo->bios_abase[0x58] & 0x03; ivideo 2435 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->newrom) { ivideo 2436 drivers/video/fbdev/sis/sis_main.c if(ivideo->bios_abase[0x5d] & 0x04) biosflag |= 0x01; ivideo 2437 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->sisvga_engine == SIS_300_VGA) { ivideo 2438 drivers/video/fbdev/sis/sis_main.c if(ivideo->bios_abase) { ivideo 2439 drivers/video/fbdev/sis/sis_main.c biosflag = ivideo->bios_abase[0xfe] & 0x03; ivideo 2443 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip == SIS_300) { ivideo 2448 drivers/video/fbdev/sis/sis_main.c if(!(ivideo->vbflags2 & VB2_SISVGA2BRIDGE)) { ivideo 2456 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags2 & VB2_30xC) { ivideo 2461 drivers/video/fbdev/sis/sis_main.c SiS_DDC2Delay(&ivideo->SiS_Pr, 0x2000); ivideo 2467 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags2 & VB2_SISYPBPRBRIDGE) { ivideo 2471 drivers/video/fbdev/sis/sis_main.c if(!(ivideo->vbflags2 & VB2_30xCLV)) { ivideo 2472 drivers/video/fbdev/sis/sis_main.c SISDoSense(ivideo, 0, 0); ivideo 2478 drivers/video/fbdev/sis/sis_main.c if(SISDoSense(ivideo, vga2, vga2_c)) { ivideo 2491 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags2 & VB2_30xCLV) { ivideo 2495 drivers/video/fbdev/sis/sis_main.c if((ivideo->sisvga_engine == SIS_315_VGA) && (ivideo->vbflags2 & VB2_SISYPBPRBRIDGE)) { ivideo 2497 drivers/video/fbdev/sis/sis_main.c SiS_DDC2Delay(&ivideo->SiS_Pr, 0x2000); ivideo 2498 drivers/video/fbdev/sis/sis_main.c if((result = SISDoSense(ivideo, svhs, 0x0604))) { ivideo 2499 drivers/video/fbdev/sis/sis_main.c if((result = SISDoSense(ivideo, cvbs, 0x0804))) { ivideo 2509 drivers/video/fbdev/sis/sis_main.c if(!(ivideo->vbflags & TV_YPBPR)) { ivideo 2510 drivers/video/fbdev/sis/sis_main.c if((result = SISDoSense(ivideo, svhs, svhs_c))) { ivideo 2515 drivers/video/fbdev/sis/sis_main.c if(SISDoSense(ivideo, cvbs, cvbs_c)) { ivideo 2522 drivers/video/fbdev/sis/sis_main.c SISDoSense(ivideo, 0, 0); ivideo 2528 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags2 & VB2_30xCLV) { ivideo 2542 drivers/video/fbdev/sis/sis_main.c static void SiS_SenseCh(struct sis_video_info *ivideo) ivideo 2553 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip < SIS_315H) { ivideo 2556 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_IF_DEF_CH70xx = 1; /* Chrontel 700x */ ivideo 2557 drivers/video/fbdev/sis/sis_main.c SiS_SetChrontelGPIO(&ivideo->SiS_Pr, 0x9c); /* Set general purpose IO for Chrontel communication */ ivideo 2558 drivers/video/fbdev/sis/sis_main.c SiS_DDC2Delay(&ivideo->SiS_Pr, 1000); ivideo 2559 drivers/video/fbdev/sis/sis_main.c temp1 = SiS_GetCH700x(&ivideo->SiS_Pr, 0x25); ivideo 2561 drivers/video/fbdev/sis/sis_main.c temp2 = SiS_GetCH700x(&ivideo->SiS_Pr, 0x0e); ivideo 2563 drivers/video/fbdev/sis/sis_main.c SiS_SetCH700x(&ivideo->SiS_Pr, 0x0e, 0x0b); ivideo 2564 drivers/video/fbdev/sis/sis_main.c SiS_DDC2Delay(&ivideo->SiS_Pr, 300); ivideo 2566 drivers/video/fbdev/sis/sis_main.c temp2 = SiS_GetCH700x(&ivideo->SiS_Pr, 0x25); ivideo 2571 drivers/video/fbdev/sis/sis_main.c temp1 = SiS_GetCH700x(&ivideo->SiS_Pr, 0x0e); ivideo 2574 drivers/video/fbdev/sis/sis_main.c SiS_SetCH700x(&ivideo->SiS_Pr, 0x0e,0x0b); ivideo 2575 drivers/video/fbdev/sis/sis_main.c SiS_DDC2Delay(&ivideo->SiS_Pr, 300); ivideo 2579 drivers/video/fbdev/sis/sis_main.c SiS_SetCH700x(&ivideo->SiS_Pr, 0x10, 0x01); ivideo 2580 drivers/video/fbdev/sis/sis_main.c SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); ivideo 2581 drivers/video/fbdev/sis/sis_main.c SiS_SetCH700x(&ivideo->SiS_Pr, 0x10, 0x00); ivideo 2582 drivers/video/fbdev/sis/sis_main.c SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); ivideo 2583 drivers/video/fbdev/sis/sis_main.c temp1 = SiS_GetCH700x(&ivideo->SiS_Pr, 0x10); ivideo 2587 drivers/video/fbdev/sis/sis_main.c SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); ivideo 2600 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags |= TV_SVIDEO; ivideo 2605 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags |= TV_AVIDEO; ivideo 2609 drivers/video/fbdev/sis/sis_main.c SiS_SetCH70xxANDOR(&ivideo->SiS_Pr, 0x0e, 0x01, 0xF8); ivideo 2613 drivers/video/fbdev/sis/sis_main.c SiS_SetCH70xxANDOR(&ivideo->SiS_Pr, 0x0e, 0x01, 0xF8); ivideo 2617 drivers/video/fbdev/sis/sis_main.c SiS_SetChrontelGPIO(&ivideo->SiS_Pr, 0x00); ivideo 2623 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_IF_DEF_CH70xx = 2; /* Chrontel 7019 */ ivideo 2624 drivers/video/fbdev/sis/sis_main.c temp1 = SiS_GetCH701x(&ivideo->SiS_Pr, 0x49); ivideo 2625 drivers/video/fbdev/sis/sis_main.c SiS_SetCH701x(&ivideo->SiS_Pr, 0x49, 0x20); ivideo 2626 drivers/video/fbdev/sis/sis_main.c SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); ivideo 2627 drivers/video/fbdev/sis/sis_main.c temp2 = SiS_GetCH701x(&ivideo->SiS_Pr, 0x20); ivideo 2629 drivers/video/fbdev/sis/sis_main.c SiS_SetCH701x(&ivideo->SiS_Pr, 0x20, temp2); ivideo 2630 drivers/video/fbdev/sis/sis_main.c SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); ivideo 2632 drivers/video/fbdev/sis/sis_main.c SiS_SetCH701x(&ivideo->SiS_Pr, 0x20, temp2); ivideo 2633 drivers/video/fbdev/sis/sis_main.c SiS_DDC2Delay(&ivideo->SiS_Pr, 0x96); ivideo 2634 drivers/video/fbdev/sis/sis_main.c temp2 = SiS_GetCH701x(&ivideo->SiS_Pr, 0x20); ivideo 2635 drivers/video/fbdev/sis/sis_main.c SiS_SetCH701x(&ivideo->SiS_Pr, 0x49, temp1); ivideo 2644 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags |= TV_AVIDEO; ivideo 2650 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags |= TV_SVIDEO; ivideo 2666 drivers/video/fbdev/sis/sis_main.c static void sisfb_get_VB_type(struct sis_video_info *ivideo) ivideo 2674 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip == XGI_20) ivideo 2682 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags |= VB_301; /* Deprecated */ ivideo 2683 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags2 |= VB2_301; ivideo 2686 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags |= VB_301B; /* Deprecated */ ivideo 2687 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags2 |= VB2_301B; ivideo 2690 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags |= VB_30xBDH; /* Deprecated */ ivideo 2691 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags2 |= VB2_30xBDH; ivideo 2697 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags |= VB_301C; /* Deprecated */ ivideo 2698 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags2 |= VB2_301C; ivideo 2701 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags |= VB_301LV; /* Deprecated */ ivideo 2702 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags2 |= VB2_301LV; ivideo 2707 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags |= VB_302LV; /* Deprecated */ ivideo 2708 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags2 |= VB2_302LV; ivideo 2711 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags |= VB_301C; /* Deprecated */ ivideo 2712 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags2 |= VB2_301C; ivideo 2715 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags |= VB_302ELV; /* Deprecated */ ivideo 2716 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags2 |= VB2_302ELV; ivideo 2723 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags |= VB_302B; /* Deprecated */ ivideo 2724 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags2 |= VB2_302B; ivideo 2729 drivers/video/fbdev/sis/sis_main.c if((!(ivideo->vbflags2 & VB2_VIDEOBRIDGE)) && (ivideo->chip != SIS_300)) { ivideo 2733 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_300_VGA) { ivideo 2737 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags |= VB_LVDS; /* Deprecated */ ivideo 2738 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags2 |= VB2_LVDS; ivideo 2741 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags |= (VB_LVDS | VB_TRUMPION); /* Deprecated */ ivideo 2742 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags2 |= (VB2_LVDS | VB2_TRUMPION); ivideo 2745 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags |= VB_CHRONTEL; /* Deprecated */ ivideo 2746 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags2 |= VB2_CHRONTEL; ivideo 2749 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags |= (VB_LVDS | VB_CHRONTEL); /* Deprecated */ ivideo 2750 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags2 |= (VB2_LVDS | VB2_CHRONTEL); ivideo 2753 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags2 & VB2_CHRONTEL) ivideo->chronteltype = 1; ivideo 2755 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->chip < SIS_661) { ivideo 2759 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags |= VB_LVDS; /* Deprecated */ ivideo 2760 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags2 |= VB2_LVDS; ivideo 2763 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags |= (VB_LVDS | VB_CHRONTEL); /* Deprecated */ ivideo 2764 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags2 |= (VB2_LVDS | VB2_CHRONTEL); ivideo 2767 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags2 & VB2_CHRONTEL) ivideo->chronteltype = 2; ivideo 2769 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->chip >= SIS_661) { ivideo 2775 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags |= VB_LVDS; /* Deprecated */ ivideo 2776 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags2 |= VB2_LVDS; ivideo 2779 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags |= (VB_LVDS | VB_CHRONTEL); /* Deprecated */ ivideo 2780 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags2 |= (VB2_LVDS | VB2_CHRONTEL); ivideo 2783 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags |= (VB_LVDS | VB_CONEXANT); /* Deprecated */ ivideo 2784 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags2 |= (VB2_LVDS | VB2_CONEXANT); ivideo 2787 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags2 & VB2_CHRONTEL) ivideo->chronteltype = 2; ivideo 2790 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags2 & VB2_LVDS) { ivideo 2793 drivers/video/fbdev/sis/sis_main.c if((ivideo->sisvga_engine == SIS_300_VGA) && (ivideo->vbflags2 & VB2_TRUMPION)) { ivideo 2796 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags2 & VB2_CHRONTEL) { ivideo 2799 drivers/video/fbdev/sis/sis_main.c if((ivideo->chip >= SIS_661) && (ivideo->vbflags2 & VB2_CONEXANT)) { ivideo 2804 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags2 & VB2_SISBRIDGE) { ivideo 2805 drivers/video/fbdev/sis/sis_main.c SiS_SenseLCD(ivideo); ivideo 2806 drivers/video/fbdev/sis/sis_main.c SiS_Sense30x(ivideo); ivideo 2807 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->vbflags2 & VB2_CHRONTEL) { ivideo 2808 drivers/video/fbdev/sis/sis_main.c SiS_SenseCh(ivideo); ivideo 2815 drivers/video/fbdev/sis/sis_main.c sisfb_engine_init(struct sis_video_info *ivideo) ivideo 2822 drivers/video/fbdev/sis/sis_main.c ivideo->caps &= ~(TURBO_QUEUE_CAP | ivideo 2828 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_300_VGA) { ivideo 2832 drivers/video/fbdev/sis/sis_main.c tqueue_pos = (ivideo->video_size - ivideo->cmdQueueSize) / (64 * 1024); ivideo 2842 drivers/video/fbdev/sis/sis_main.c ivideo->caps |= TURBO_QUEUE_CAP; ivideo 2847 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_315_VGA) { ivideo 2851 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip == XGI_20) { ivideo 2852 drivers/video/fbdev/sis/sis_main.c switch(ivideo->cmdQueueSize) { ivideo 2861 drivers/video/fbdev/sis/sis_main.c switch(ivideo->cmdQueueSize) { ivideo 2880 drivers/video/fbdev/sis/sis_main.c if((ivideo->chip >= XGI_40) && ivideo->modechanged) { ivideo 2886 drivers/video/fbdev/sis/sis_main.c if(!((templ = MMIO_IN32(ivideo->mmio_vbase, 0x8240)) & (1 << 10))) { ivideo 2888 drivers/video/fbdev/sis/sis_main.c MMIO_OUT32(ivideo->mmio_vbase, Q_WRITE_PTR, 0); ivideo 2892 drivers/video/fbdev/sis/sis_main.c tempq = MMIO_IN32(ivideo->mmio_vbase, Q_READ_PTR); ivideo 2893 drivers/video/fbdev/sis/sis_main.c MMIO_OUT32(ivideo->mmio_vbase, Q_WRITE_PTR, tempq); ivideo 2895 drivers/video/fbdev/sis/sis_main.c tempq = (u32)(ivideo->video_size - ivideo->cmdQueueSize); ivideo 2896 drivers/video/fbdev/sis/sis_main.c MMIO_OUT32(ivideo->mmio_vbase, Q_BASE_ADDR, tempq); ivideo 2898 drivers/video/fbdev/sis/sis_main.c writel(0x16800000 + 0x8240, ivideo->video_vbase + tempq); ivideo 2899 drivers/video/fbdev/sis/sis_main.c writel(templ | (1 << 10), ivideo->video_vbase + tempq + 4); ivideo 2900 drivers/video/fbdev/sis/sis_main.c writel(0x168F0000, ivideo->video_vbase + tempq + 8); ivideo 2901 drivers/video/fbdev/sis/sis_main.c writel(0x168F0000, ivideo->video_vbase + tempq + 12); ivideo 2903 drivers/video/fbdev/sis/sis_main.c MMIO_OUT32(ivideo->mmio_vbase, Q_WRITE_PTR, (tempq + 16)); ivideo 2905 drivers/video/fbdev/sis/sis_main.c sisfb_syncaccel(ivideo); ivideo 2912 drivers/video/fbdev/sis/sis_main.c tempq = MMIO_IN32(ivideo->mmio_vbase, MMIO_QUEUE_READPORT); ivideo 2913 drivers/video/fbdev/sis/sis_main.c MMIO_OUT32(ivideo->mmio_vbase, MMIO_QUEUE_WRITEPORT, tempq); ivideo 2918 drivers/video/fbdev/sis/sis_main.c tempq = (u32)(ivideo->video_size - ivideo->cmdQueueSize); ivideo 2919 drivers/video/fbdev/sis/sis_main.c MMIO_OUT32(ivideo->mmio_vbase, MMIO_QUEUE_PHYBASE, tempq); ivideo 2921 drivers/video/fbdev/sis/sis_main.c ivideo->caps |= MMIO_CMD_QUEUE_CAP; ivideo 2925 drivers/video/fbdev/sis/sis_main.c ivideo->engineok = 1; ivideo 2928 drivers/video/fbdev/sis/sis_main.c static void sisfb_detect_lcd_type(struct sis_video_info *ivideo) ivideo 2935 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_300_VGA) { ivideo 2936 drivers/video/fbdev/sis/sis_main.c ivideo->CRT2LCDType = sis300paneltype[reg]; ivideo 2937 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->chip >= SIS_661) { ivideo 2938 drivers/video/fbdev/sis/sis_main.c ivideo->CRT2LCDType = sis661paneltype[reg]; ivideo 2940 drivers/video/fbdev/sis/sis_main.c ivideo->CRT2LCDType = sis310paneltype[reg]; ivideo 2941 drivers/video/fbdev/sis/sis_main.c if((ivideo->chip == SIS_550) && (sisfb_fstn)) { ivideo 2942 drivers/video/fbdev/sis/sis_main.c if((ivideo->CRT2LCDType != LCD_320x240_2) && ivideo 2943 drivers/video/fbdev/sis/sis_main.c (ivideo->CRT2LCDType != LCD_320x240_3)) { ivideo 2944 drivers/video/fbdev/sis/sis_main.c ivideo->CRT2LCDType = LCD_320x240; ivideo 2949 drivers/video/fbdev/sis/sis_main.c if(ivideo->CRT2LCDType == LCD_UNKNOWN) { ivideo 2951 drivers/video/fbdev/sis/sis_main.c ivideo->CRT2LCDType = LCD_1024x768; ivideo 2958 drivers/video/fbdev/sis/sis_main.c if(ivideo->CRT2LCDType == sis_lcd_data[i].lcdtype) { ivideo 2959 drivers/video/fbdev/sis/sis_main.c ivideo->lcdxres = sis_lcd_data[i].xres; ivideo 2960 drivers/video/fbdev/sis/sis_main.c ivideo->lcdyres = sis_lcd_data[i].yres; ivideo 2961 drivers/video/fbdev/sis/sis_main.c ivideo->lcddefmodeidx = sis_lcd_data[i].default_mode_idx; ivideo 2967 drivers/video/fbdev/sis/sis_main.c if(ivideo->SiS_Pr.SiS_CustomT == CUT_BARCO1366) { ivideo 2968 drivers/video/fbdev/sis/sis_main.c ivideo->lcdxres = 1360; ivideo->lcdyres = 1024; ivideo 2969 drivers/video/fbdev/sis/sis_main.c ivideo->lcddefmodeidx = DEFAULT_MODE_1360; ivideo 2970 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->SiS_Pr.SiS_CustomT == CUT_PANEL848) { ivideo 2971 drivers/video/fbdev/sis/sis_main.c ivideo->lcdxres = 848; ivideo->lcdyres = 480; ivideo 2972 drivers/video/fbdev/sis/sis_main.c ivideo->lcddefmodeidx = DEFAULT_MODE_848; ivideo 2973 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->SiS_Pr.SiS_CustomT == CUT_PANEL856) { ivideo 2974 drivers/video/fbdev/sis/sis_main.c ivideo->lcdxres = 856; ivideo->lcdyres = 480; ivideo 2975 drivers/video/fbdev/sis/sis_main.c ivideo->lcddefmodeidx = DEFAULT_MODE_856; ivideo 2980 drivers/video/fbdev/sis/sis_main.c ivideo->lcdxres, ivideo->lcdyres); ivideo 2983 drivers/video/fbdev/sis/sis_main.c static void sisfb_save_pdc_emi(struct sis_video_info *ivideo) ivideo 2987 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_300_VGA) { ivideo 2988 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags2 & (VB2_LVDS | VB2_30xBDH)) { ivideo 2993 drivers/video/fbdev/sis/sis_main.c ivideo->detectedpdc = SiS_GetReg(SISPART1, 0x13); ivideo 2994 drivers/video/fbdev/sis/sis_main.c ivideo->detectedpdc &= 0x3c; ivideo 2995 drivers/video/fbdev/sis/sis_main.c if(ivideo->SiS_Pr.PDC == -1) { ivideo 2997 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.PDC = ivideo->detectedpdc; ivideo 3000 drivers/video/fbdev/sis/sis_main.c ivideo->detectedpdc); ivideo 3002 drivers/video/fbdev/sis/sis_main.c if((ivideo->SiS_Pr.PDC != -1) && ivideo 3003 drivers/video/fbdev/sis/sis_main.c (ivideo->SiS_Pr.PDC != ivideo->detectedpdc)) { ivideo 3005 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.PDC); ivideo 3012 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_315_VGA) { ivideo 3015 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags2 & VB2_SISLCDABRIDGE) { ivideo 3019 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_UseLCDA = true; ivideo 3020 drivers/video/fbdev/sis/sis_main.c ivideo->detectedlcda = 0x03; ivideo 3025 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags2 & VB2_SISLVDSBRIDGE) { ivideo 3028 drivers/video/fbdev/sis/sis_main.c if((tmp & 0x20) || (ivideo->detectedlcda != 0xff)) { ivideo 3032 drivers/video/fbdev/sis/sis_main.c ivideo->detectedpdc = (pdc & 0x0f) << 1; ivideo 3033 drivers/video/fbdev/sis/sis_main.c ivideo->detectedpdca = (pdc & 0xf0) >> 3; ivideo 3035 drivers/video/fbdev/sis/sis_main.c ivideo->detectedpdc |= ((pdc >> 7) & 0x01); ivideo 3037 drivers/video/fbdev/sis/sis_main.c ivideo->detectedpdca |= ((pdc >> 6) & 0x01); ivideo 3038 drivers/video/fbdev/sis/sis_main.c if(ivideo->newrom) { ivideo 3040 drivers/video/fbdev/sis/sis_main.c if(ivideo->detectedlcda != 0xff) { ivideo 3041 drivers/video/fbdev/sis/sis_main.c ivideo->detectedpdc = 0xff; ivideo 3043 drivers/video/fbdev/sis/sis_main.c ivideo->detectedpdca = 0xff; ivideo 3046 drivers/video/fbdev/sis/sis_main.c if(ivideo->SiS_Pr.PDC == -1) { ivideo 3047 drivers/video/fbdev/sis/sis_main.c if(ivideo->detectedpdc != 0xff) { ivideo 3048 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.PDC = ivideo->detectedpdc; ivideo 3051 drivers/video/fbdev/sis/sis_main.c if(ivideo->SiS_Pr.PDCA == -1) { ivideo 3052 drivers/video/fbdev/sis/sis_main.c if(ivideo->detectedpdca != 0xff) { ivideo 3053 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.PDCA = ivideo->detectedpdca; ivideo 3056 drivers/video/fbdev/sis/sis_main.c if(ivideo->detectedpdc != 0xff) { ivideo 3059 drivers/video/fbdev/sis/sis_main.c ivideo->detectedpdc); ivideo 3061 drivers/video/fbdev/sis/sis_main.c if(ivideo->detectedpdca != 0xff) { ivideo 3064 drivers/video/fbdev/sis/sis_main.c ivideo->detectedpdca); ivideo 3069 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags2 & VB2_SISEMIBRIDGE) { ivideo 3070 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.EMI_30 = SiS_GetReg(SISPART4, 0x30); ivideo 3071 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.EMI_31 = SiS_GetReg(SISPART4, 0x31); ivideo 3072 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.EMI_32 = SiS_GetReg(SISPART4, 0x32); ivideo 3073 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.EMI_33 = SiS_GetReg(SISPART4, 0x33); ivideo 3074 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.HaveEMI = true; ivideo 3075 drivers/video/fbdev/sis/sis_main.c if((tmp & 0x20) || (ivideo->detectedlcda != 0xff)) { ivideo 3076 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.HaveEMILCD = true; ivideo 3082 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags2 & VB2_30xBLV) { ivideo 3083 drivers/video/fbdev/sis/sis_main.c if((ivideo->SiS_Pr.PDC != -1) && ivideo 3084 drivers/video/fbdev/sis/sis_main.c (ivideo->SiS_Pr.PDC != ivideo->detectedpdc)) { ivideo 3086 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.PDC); ivideo 3088 drivers/video/fbdev/sis/sis_main.c if((ivideo->SiS_Pr.PDCA != -1) && ivideo 3089 drivers/video/fbdev/sis/sis_main.c (ivideo->SiS_Pr.PDCA != ivideo->detectedpdca)) { ivideo 3091 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.PDCA); ivideo 3101 drivers/video/fbdev/sis/sis_main.c static u32 sisfb_getheapstart(struct sis_video_info *ivideo) ivideo 3103 drivers/video/fbdev/sis/sis_main.c u32 ret = ivideo->sisfb_parm_mem * 1024; ivideo 3104 drivers/video/fbdev/sis/sis_main.c u32 maxoffs = ivideo->video_size - ivideo->hwcursor_size - ivideo->cmdQueueSize; ivideo 3126 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_300_VGA) { ivideo 3127 drivers/video/fbdev/sis/sis_main.c if(ivideo->video_size > 0x1000000) { ivideo 3129 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->video_size > 0x800000) { ivideo 3134 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->UMAsize && ivideo->LFBsize) { ivideo 3141 drivers/video/fbdev/sis/sis_main.c if((!ret) || (ret > maxoffs) || (ivideo->cardnumber != 0)) ivideo 3147 drivers/video/fbdev/sis/sis_main.c static u32 sisfb_getheapsize(struct sis_video_info *ivideo) ivideo 3149 drivers/video/fbdev/sis/sis_main.c u32 max = ivideo->video_size - ivideo->hwcursor_size - ivideo->cmdQueueSize; ivideo 3152 drivers/video/fbdev/sis/sis_main.c if(ivideo->UMAsize && ivideo->LFBsize) { ivideo 3153 drivers/video/fbdev/sis/sis_main.c if( (!ivideo->sisfb_parm_mem) || ivideo 3154 drivers/video/fbdev/sis/sis_main.c ((ivideo->sisfb_parm_mem * 1024) > max) || ivideo 3155 drivers/video/fbdev/sis/sis_main.c ((max - (ivideo->sisfb_parm_mem * 1024)) < ivideo->UMAsize) ) { ivideo 3156 drivers/video/fbdev/sis/sis_main.c ret = ivideo->UMAsize; ivideo 3157 drivers/video/fbdev/sis/sis_main.c max -= ivideo->UMAsize; ivideo 3159 drivers/video/fbdev/sis/sis_main.c ret = max - (ivideo->sisfb_parm_mem * 1024); ivideo 3160 drivers/video/fbdev/sis/sis_main.c max = ivideo->sisfb_parm_mem * 1024; ivideo 3162 drivers/video/fbdev/sis/sis_main.c ivideo->video_offset = ret; ivideo 3163 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_mem = max; ivideo 3165 drivers/video/fbdev/sis/sis_main.c ret = max - ivideo->heapstart; ivideo 3166 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_mem = ivideo->heapstart; ivideo 3172 drivers/video/fbdev/sis/sis_main.c static int sisfb_heap_init(struct sis_video_info *ivideo) ivideo 3176 drivers/video/fbdev/sis/sis_main.c ivideo->video_offset = 0; ivideo 3177 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisfb_parm_mem) { ivideo 3178 drivers/video/fbdev/sis/sis_main.c if( (ivideo->sisfb_parm_mem < (2 * 1024 * 1024)) || ivideo 3179 drivers/video/fbdev/sis/sis_main.c (ivideo->sisfb_parm_mem > ivideo->video_size) ) { ivideo 3180 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_parm_mem = 0; ivideo 3184 drivers/video/fbdev/sis/sis_main.c ivideo->heapstart = sisfb_getheapstart(ivideo); ivideo 3185 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_heap_size = sisfb_getheapsize(ivideo); ivideo 3187 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_heap_start = ivideo->video_vbase + ivideo->heapstart; ivideo 3188 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_heap_end = ivideo->sisfb_heap_start + ivideo->sisfb_heap_size; ivideo 3191 drivers/video/fbdev/sis/sis_main.c (int)(ivideo->heapstart / 1024), (int)(ivideo->sisfb_heap_size / 1024)); ivideo 3193 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_heap.vinfo = ivideo; ivideo 3195 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_heap.poha_chain = NULL; ivideo 3196 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_heap.poh_freelist = NULL; ivideo 3198 drivers/video/fbdev/sis/sis_main.c poh = sisfb_poh_new_node(&ivideo->sisfb_heap); ivideo 3202 drivers/video/fbdev/sis/sis_main.c poh->poh_next = &ivideo->sisfb_heap.oh_free; ivideo 3203 drivers/video/fbdev/sis/sis_main.c poh->poh_prev = &ivideo->sisfb_heap.oh_free; ivideo 3204 drivers/video/fbdev/sis/sis_main.c poh->size = ivideo->sisfb_heap_size; ivideo 3205 drivers/video/fbdev/sis/sis_main.c poh->offset = ivideo->heapstart; ivideo 3207 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_heap.oh_free.poh_next = poh; ivideo 3208 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_heap.oh_free.poh_prev = poh; ivideo 3209 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_heap.oh_free.size = 0; ivideo 3210 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_heap.max_freesize = poh->size; ivideo 3212 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_heap.oh_used.poh_next = &ivideo->sisfb_heap.oh_used; ivideo 3213 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_heap.oh_used.poh_prev = &ivideo->sisfb_heap.oh_used; ivideo 3214 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_heap.oh_used.size = SENTINEL; ivideo 3216 drivers/video/fbdev/sis/sis_main.c if(ivideo->cardnumber == 0) { ivideo 3220 drivers/video/fbdev/sis/sis_main.c sisfb_heap = &ivideo->sisfb_heap; ivideo 3412 drivers/video/fbdev/sis/sis_main.c sis_int_malloc(struct sis_video_info *ivideo, struct sis_memreq *req) ivideo 3416 drivers/video/fbdev/sis/sis_main.c if((ivideo) && (ivideo->sisfb_id == SISFB_ID) && (!ivideo->havenoheap)) ivideo 3417 drivers/video/fbdev/sis/sis_main.c poh = sisfb_poh_allocate(&ivideo->sisfb_heap, (u32)req->size); ivideo 3426 drivers/video/fbdev/sis/sis_main.c (poh->offset + ivideo->video_vbase)); ivideo 3433 drivers/video/fbdev/sis/sis_main.c struct sis_video_info *ivideo = sisfb_heap->vinfo; ivideo 3435 drivers/video/fbdev/sis/sis_main.c if(&ivideo->sisfb_heap == sisfb_heap) ivideo 3436 drivers/video/fbdev/sis/sis_main.c sis_int_malloc(ivideo, req); ivideo 3444 drivers/video/fbdev/sis/sis_main.c struct sis_video_info *ivideo = pci_get_drvdata(pdev); ivideo 3446 drivers/video/fbdev/sis/sis_main.c sis_int_malloc(ivideo, req); ivideo 3452 drivers/video/fbdev/sis/sis_main.c sis_int_free(struct sis_video_info *ivideo, u32 base) ivideo 3456 drivers/video/fbdev/sis/sis_main.c if((!ivideo) || (ivideo->sisfb_id != SISFB_ID) || (ivideo->havenoheap)) ivideo 3459 drivers/video/fbdev/sis/sis_main.c poh = sisfb_poh_free(&ivideo->sisfb_heap, base); ivideo 3470 drivers/video/fbdev/sis/sis_main.c struct sis_video_info *ivideo = sisfb_heap->vinfo; ivideo 3472 drivers/video/fbdev/sis/sis_main.c sis_int_free(ivideo, base); ivideo 3478 drivers/video/fbdev/sis/sis_main.c struct sis_video_info *ivideo = pci_get_drvdata(pdev); ivideo 3480 drivers/video/fbdev/sis/sis_main.c sis_int_free(ivideo, base); ivideo 3486 drivers/video/fbdev/sis/sis_main.c sisfb_check_engine_and_sync(struct sis_video_info *ivideo) ivideo 3500 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_300_VGA) { ivideo 3505 drivers/video/fbdev/sis/sis_main.c sisfb_syncaccel(ivideo); ivideo 3509 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_315_VGA) { ivideo 3516 drivers/video/fbdev/sis/sis_main.c sisfb_syncaccel(ivideo); ivideo 3524 drivers/video/fbdev/sis/sis_main.c sisfb_pre_setmode(struct sis_video_info *ivideo) ivideo 3529 drivers/video/fbdev/sis/sis_main.c ivideo->currentvbflags &= (VB_VIDEOBRIDGE | VB_DISPTYPE_DISP2); ivideo 3537 drivers/video/fbdev/sis/sis_main.c cr33 = ivideo->rate_idx & 0x0F; ivideo 3540 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_315_VGA) { ivideo 3541 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip >= SIS_661) { ivideo 3552 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_300_VGA) { ivideo 3558 drivers/video/fbdev/sis/sis_main.c SiS_SetEnableDstn(&ivideo->SiS_Pr, false); ivideo 3559 drivers/video/fbdev/sis/sis_main.c SiS_SetEnableFstn(&ivideo->SiS_Pr, false); ivideo 3560 drivers/video/fbdev/sis/sis_main.c ivideo->curFSTN = ivideo->curDSTN = 0; ivideo 3562 drivers/video/fbdev/sis/sis_main.c switch(ivideo->currentvbflags & VB_DISPTYPE_DISP2) { ivideo 3566 drivers/video/fbdev/sis/sis_main.c if((ivideo->vbflags & TV_YPBPR) && (ivideo->vbflags2 & VB2_SISYPBPRBRIDGE)) { ivideo 3568 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip >= SIS_661) { ivideo 3570 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags & TV_YPBPR525P) cr35 |= 0x20; ivideo 3571 drivers/video/fbdev/sis/sis_main.c else if(ivideo->vbflags & TV_YPBPR750P) cr35 |= 0x40; ivideo 3572 drivers/video/fbdev/sis/sis_main.c else if(ivideo->vbflags & TV_YPBPR1080I) cr35 |= 0x60; ivideo 3575 drivers/video/fbdev/sis/sis_main.c ivideo->currentvbflags |= (TV_YPBPR | (ivideo->vbflags & TV_YPBPRALL)); ivideo 3576 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->sisvga_engine == SIS_315_VGA) { ivideo 3579 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags & TV_YPBPR525P) cr38 |= 0x10; ivideo 3580 drivers/video/fbdev/sis/sis_main.c else if(ivideo->vbflags & TV_YPBPR750P) cr38 |= 0x20; ivideo 3581 drivers/video/fbdev/sis/sis_main.c else if(ivideo->vbflags & TV_YPBPR1080I) cr38 |= 0x30; ivideo 3583 drivers/video/fbdev/sis/sis_main.c ivideo->currentvbflags |= (TV_YPBPR | (ivideo->vbflags & TV_YPBPRALL)); ivideo 3586 drivers/video/fbdev/sis/sis_main.c } else if((ivideo->vbflags & TV_HIVISION) && ivideo 3587 drivers/video/fbdev/sis/sis_main.c (ivideo->vbflags2 & VB2_SISHIVISIONBRIDGE)) { ivideo 3588 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip >= SIS_661) { ivideo 3597 drivers/video/fbdev/sis/sis_main.c ivideo->currentvbflags |= TV_HIVISION; ivideo 3598 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->vbflags & TV_SCART) { ivideo 3602 drivers/video/fbdev/sis/sis_main.c ivideo->currentvbflags |= TV_SCART; ivideo 3604 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags & TV_SVIDEO) { ivideo 3606 drivers/video/fbdev/sis/sis_main.c ivideo->currentvbflags |= TV_SVIDEO; ivideo 3608 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags & TV_AVIDEO) { ivideo 3610 drivers/video/fbdev/sis/sis_main.c ivideo->currentvbflags |= TV_AVIDEO; ivideo 3615 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags & (TV_AVIDEO | TV_SVIDEO)) { ivideo 3616 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags & TV_PAL) { ivideo 3618 drivers/video/fbdev/sis/sis_main.c ivideo->currentvbflags |= TV_PAL; ivideo 3619 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags & TV_PALM) { ivideo 3621 drivers/video/fbdev/sis/sis_main.c ivideo->currentvbflags |= TV_PALM; ivideo 3622 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->vbflags & TV_PALN) { ivideo 3624 drivers/video/fbdev/sis/sis_main.c ivideo->currentvbflags |= TV_PALN; ivideo 3628 drivers/video/fbdev/sis/sis_main.c ivideo->currentvbflags |= TV_NTSC; ivideo 3629 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags & TV_NTSCJ) { ivideo 3631 drivers/video/fbdev/sis/sis_main.c ivideo->currentvbflags |= TV_NTSCJ; ivideo 3640 drivers/video/fbdev/sis/sis_main.c SiS_SetEnableDstn(&ivideo->SiS_Pr, ivideo->sisfb_dstn); ivideo 3641 drivers/video/fbdev/sis/sis_main.c SiS_SetEnableFstn(&ivideo->SiS_Pr, ivideo->sisfb_fstn); ivideo 3642 drivers/video/fbdev/sis/sis_main.c ivideo->curFSTN = ivideo->sisfb_fstn; ivideo 3643 drivers/video/fbdev/sis/sis_main.c ivideo->curDSTN = ivideo->sisfb_dstn; ivideo 3649 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisfb_nocrt2rate) { ivideo 3650 drivers/video/fbdev/sis/sis_main.c cr33 |= (sisbios_mode[ivideo->sisfb_mode_idx].rate_idx << 4); ivideo 3652 drivers/video/fbdev/sis/sis_main.c cr33 |= ((ivideo->rate_idx & 0x0F) << 4); ivideo 3664 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip >= SIS_661) { ivideo 3671 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->chip != SIS_300) { ivideo 3676 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_UseOEM = ivideo->sisfb_useoem; ivideo 3678 drivers/video/fbdev/sis/sis_main.c sisfb_check_engine_and_sync(ivideo); ivideo 3684 drivers/video/fbdev/sis/sis_main.c sisfb_fixup_SR11(struct sis_video_info *ivideo) ivideo 3688 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip >= SIS_661) { ivideo 3704 drivers/video/fbdev/sis/sis_main.c sisfb_set_TVxposoffset(struct sis_video_info *ivideo, int val) ivideo 3708 drivers/video/fbdev/sis/sis_main.c ivideo->tvxpos = val; ivideo 3710 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisfblocked) return; ivideo 3711 drivers/video/fbdev/sis/sis_main.c if(!ivideo->modechanged) return; ivideo 3713 drivers/video/fbdev/sis/sis_main.c if(ivideo->currentvbflags & CRT2_TV) { ivideo 3715 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags2 & VB2_CHRONTEL) { ivideo 3717 drivers/video/fbdev/sis/sis_main.c int x = ivideo->tvx; ivideo 3719 drivers/video/fbdev/sis/sis_main.c switch(ivideo->chronteltype) { ivideo 3724 drivers/video/fbdev/sis/sis_main.c SiS_SetCH700x(&ivideo->SiS_Pr, 0x0a, (x & 0xff)); ivideo 3725 drivers/video/fbdev/sis/sis_main.c SiS_SetCH70xxANDOR(&ivideo->SiS_Pr, 0x08, ((x & 0x0100) >> 7), 0xFD); ivideo 3732 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->vbflags2 & VB2_SISBRIDGE) { ivideo 3737 drivers/video/fbdev/sis/sis_main.c p2_1f = ivideo->p2_1f; ivideo 3738 drivers/video/fbdev/sis/sis_main.c p2_20 = ivideo->p2_20; ivideo 3739 drivers/video/fbdev/sis/sis_main.c p2_2b = ivideo->p2_2b; ivideo 3740 drivers/video/fbdev/sis/sis_main.c p2_42 = ivideo->p2_42; ivideo 3741 drivers/video/fbdev/sis/sis_main.c p2_43 = ivideo->p2_43; ivideo 3762 drivers/video/fbdev/sis/sis_main.c sisfb_set_TVyposoffset(struct sis_video_info *ivideo, int val) ivideo 3766 drivers/video/fbdev/sis/sis_main.c ivideo->tvypos = val; ivideo 3768 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisfblocked) return; ivideo 3769 drivers/video/fbdev/sis/sis_main.c if(!ivideo->modechanged) return; ivideo 3771 drivers/video/fbdev/sis/sis_main.c if(ivideo->currentvbflags & CRT2_TV) { ivideo 3773 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags2 & VB2_CHRONTEL) { ivideo 3775 drivers/video/fbdev/sis/sis_main.c int y = ivideo->tvy; ivideo 3777 drivers/video/fbdev/sis/sis_main.c switch(ivideo->chronteltype) { ivideo 3782 drivers/video/fbdev/sis/sis_main.c SiS_SetCH700x(&ivideo->SiS_Pr, 0x0b, (y & 0xff)); ivideo 3783 drivers/video/fbdev/sis/sis_main.c SiS_SetCH70xxANDOR(&ivideo->SiS_Pr, 0x08, ((y & 0x0100) >> 8), 0xFE); ivideo 3790 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->vbflags2 & VB2_SISBRIDGE) { ivideo 3794 drivers/video/fbdev/sis/sis_main.c p2_01 = ivideo->p2_01; ivideo 3795 drivers/video/fbdev/sis/sis_main.c p2_02 = ivideo->p2_02; ivideo 3799 drivers/video/fbdev/sis/sis_main.c if(!(ivideo->currentvbflags & (TV_HIVISION | TV_YPBPR))) { ivideo 3812 drivers/video/fbdev/sis/sis_main.c sisfb_post_setmode(struct sis_video_info *ivideo) ivideo 3826 drivers/video/fbdev/sis/sis_main.c sisfb_fixup_SR11(ivideo); ivideo 3830 drivers/video/fbdev/sis/sis_main.c ivideo->modechanged = 1; ivideo 3833 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags2 & VB2_VIDEOBRIDGE) { ivideo 3834 drivers/video/fbdev/sis/sis_main.c if(sisfb_bridgeisslave(ivideo)) doit = false; ivideo 3836 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_crt1off = 0; ivideo 3839 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_300_VGA) { ivideo 3840 drivers/video/fbdev/sis/sis_main.c if((ivideo->sisfb_crt1off) && (doit)) { ivideo 3851 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_315_VGA) { ivideo 3852 drivers/video/fbdev/sis/sis_main.c if((ivideo->sisfb_crt1off) && (doit)) { ivideo 3861 drivers/video/fbdev/sis/sis_main.c SiS_SetRegANDOR(SISCR, ivideo->SiS_Pr.SiS_MyCR63, ~0x40, reg); ivideo 3867 drivers/video/fbdev/sis/sis_main.c ivideo->currentvbflags &= ~VB_DISPTYPE_CRT1; ivideo 3868 drivers/video/fbdev/sis/sis_main.c ivideo->currentvbflags |= VB_SINGLE_MODE; ivideo 3870 drivers/video/fbdev/sis/sis_main.c ivideo->currentvbflags |= VB_DISPTYPE_CRT1; ivideo 3871 drivers/video/fbdev/sis/sis_main.c if(ivideo->currentvbflags & VB_DISPTYPE_CRT2) { ivideo 3872 drivers/video/fbdev/sis/sis_main.c ivideo->currentvbflags |= VB_MIRROR_MODE; ivideo 3874 drivers/video/fbdev/sis/sis_main.c ivideo->currentvbflags |= VB_SINGLE_MODE; ivideo 3880 drivers/video/fbdev/sis/sis_main.c if(ivideo->currentvbflags & CRT2_TV) { ivideo 3881 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags2 & VB2_SISBRIDGE) { ivideo 3882 drivers/video/fbdev/sis/sis_main.c ivideo->p2_1f = SiS_GetReg(SISPART2, 0x1f); ivideo 3883 drivers/video/fbdev/sis/sis_main.c ivideo->p2_20 = SiS_GetReg(SISPART2, 0x20); ivideo 3884 drivers/video/fbdev/sis/sis_main.c ivideo->p2_2b = SiS_GetReg(SISPART2, 0x2b); ivideo 3885 drivers/video/fbdev/sis/sis_main.c ivideo->p2_42 = SiS_GetReg(SISPART2, 0x42); ivideo 3886 drivers/video/fbdev/sis/sis_main.c ivideo->p2_43 = SiS_GetReg(SISPART2, 0x43); ivideo 3887 drivers/video/fbdev/sis/sis_main.c ivideo->p2_01 = SiS_GetReg(SISPART2, 0x01); ivideo 3888 drivers/video/fbdev/sis/sis_main.c ivideo->p2_02 = SiS_GetReg(SISPART2, 0x02); ivideo 3889 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->vbflags2 & VB2_CHRONTEL) { ivideo 3890 drivers/video/fbdev/sis/sis_main.c if(ivideo->chronteltype == 1) { ivideo 3891 drivers/video/fbdev/sis/sis_main.c ivideo->tvx = SiS_GetCH700x(&ivideo->SiS_Pr, 0x0a); ivideo 3892 drivers/video/fbdev/sis/sis_main.c ivideo->tvx |= (((SiS_GetCH700x(&ivideo->SiS_Pr, 0x08) & 0x02) >> 1) << 8); ivideo 3893 drivers/video/fbdev/sis/sis_main.c ivideo->tvy = SiS_GetCH700x(&ivideo->SiS_Pr, 0x0b); ivideo 3894 drivers/video/fbdev/sis/sis_main.c ivideo->tvy |= ((SiS_GetCH700x(&ivideo->SiS_Pr, 0x08) & 0x01) << 8); ivideo 3899 drivers/video/fbdev/sis/sis_main.c if(ivideo->tvxpos) { ivideo 3900 drivers/video/fbdev/sis/sis_main.c sisfb_set_TVxposoffset(ivideo, ivideo->tvxpos); ivideo 3902 drivers/video/fbdev/sis/sis_main.c if(ivideo->tvypos) { ivideo 3903 drivers/video/fbdev/sis/sis_main.c sisfb_set_TVyposoffset(ivideo, ivideo->tvypos); ivideo 3907 drivers/video/fbdev/sis/sis_main.c sisfb_check_engine_and_sync(ivideo); ivideo 3910 drivers/video/fbdev/sis/sis_main.c if(ivideo->accel) { ivideo 3911 drivers/video/fbdev/sis/sis_main.c sisfb_engine_init(ivideo); ivideo 3913 drivers/video/fbdev/sis/sis_main.c ivideo->engineok = 0; ivideo 3918 drivers/video/fbdev/sis/sis_main.c sisfb_reset_mode(struct sis_video_info *ivideo) ivideo 3920 drivers/video/fbdev/sis/sis_main.c if(sisfb_set_mode(ivideo, 0)) ivideo 3923 drivers/video/fbdev/sis/sis_main.c sisfb_set_pitch(ivideo); ivideo 3924 drivers/video/fbdev/sis/sis_main.c sisfb_set_base_CRT1(ivideo, ivideo->current_base); ivideo 3925 drivers/video/fbdev/sis/sis_main.c sisfb_set_base_CRT2(ivideo, ivideo->current_base); ivideo 3931 drivers/video/fbdev/sis/sis_main.c sisfb_handle_command(struct sis_video_info *ivideo, struct sisfb_cmd *sisfb_command) ivideo 3937 drivers/video/fbdev/sis/sis_main.c if(!ivideo->modechanged) { ivideo 3941 drivers/video/fbdev/sis/sis_main.c sisfb_command->sisfb_result[1] = ivideo->currentvbflags; ivideo 3942 drivers/video/fbdev/sis/sis_main.c sisfb_command->sisfb_result[2] = ivideo->vbflags2; ivideo 3947 drivers/video/fbdev/sis/sis_main.c if(!ivideo->modechanged) { ivideo 3951 drivers/video/fbdev/sis/sis_main.c sisfb_command->sisfb_result[1] = ivideo->sisfb_crt1off ? 0 : 1; ivideo 3953 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->sisfblocked) { ivideo 3955 drivers/video/fbdev/sis/sis_main.c } else if((!(ivideo->currentvbflags & CRT2_ENABLE)) && ivideo 3961 drivers/video/fbdev/sis/sis_main.c if( ((ivideo->currentvbflags & VB_DISPTYPE_CRT1) && mycrt1off) || ivideo 3962 drivers/video/fbdev/sis/sis_main.c ((!(ivideo->currentvbflags & VB_DISPTYPE_CRT1)) && !mycrt1off) ) { ivideo 3963 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_crt1off = mycrt1off; ivideo 3964 drivers/video/fbdev/sis/sis_main.c if(sisfb_reset_mode(ivideo)) { ivideo 3968 drivers/video/fbdev/sis/sis_main.c sisfb_command->sisfb_result[1] = ivideo->sisfb_crt1off ? 0 : 1; ivideo 4079 drivers/video/fbdev/sis/sis_main.c struct sis_video_info *ivideo) ivideo 4097 drivers/video/fbdev/sis/sis_main.c if((readb(rom + 4) | (readb(rom + 5) << 8)) != ivideo->chip_vendor) ivideo 4100 drivers/video/fbdev/sis/sis_main.c if((readb(rom + 6) | (readb(rom + 7) << 8)) != ivideo->chip_id) ivideo 4108 drivers/video/fbdev/sis/sis_main.c struct sis_video_info *ivideo = pci_get_drvdata(pdev); ivideo 4117 drivers/video/fbdev/sis/sis_main.c if(!ivideo->nbridge) { ivideo 4121 drivers/video/fbdev/sis/sis_main.c if(sisfb_check_rom(rom_base, ivideo)) { ivideo 4146 drivers/video/fbdev/sis/sis_main.c if (!sisfb_check_rom(rom_base, ivideo)) { ivideo 4165 drivers/video/fbdev/sis/sis_main.c static void sisfb_post_map_vram(struct sis_video_info *ivideo, ivideo 4171 drivers/video/fbdev/sis/sis_main.c ivideo->video_vbase = ioremap_wc(ivideo->video_base, (*mapsize)); ivideo 4173 drivers/video/fbdev/sis/sis_main.c if(!ivideo->video_vbase) { ivideo 4177 drivers/video/fbdev/sis/sis_main.c while((!(ivideo->video_vbase = ioremap_wc(ivideo->video_base, (*mapsize))))) { ivideo 4182 drivers/video/fbdev/sis/sis_main.c if(ivideo->video_vbase) { ivideo 4191 drivers/video/fbdev/sis/sis_main.c static int sisfb_post_300_buswidth(struct sis_video_info *ivideo) ivideo 4193 drivers/video/fbdev/sis/sis_main.c void __iomem *FBAddress = ivideo->video_vbase; ivideo 4256 drivers/video/fbdev/sis/sis_main.c static int sisfb_post_300_rwtest(struct sis_video_info *ivideo, int iteration, ivideo 4260 drivers/video/fbdev/sis/sis_main.c void __iomem *FBAddr = ivideo->video_vbase; ivideo 4324 drivers/video/fbdev/sis/sis_main.c struct sis_video_info *ivideo = pci_get_drvdata(pdev); ivideo 4328 drivers/video/fbdev/sis/sis_main.c buswidth = sisfb_post_300_buswidth(ivideo); ivideo 4335 drivers/video/fbdev/sis/sis_main.c if(sisfb_post_300_rwtest(ivideo, ivideo 4349 drivers/video/fbdev/sis/sis_main.c struct sis_video_info *ivideo = pci_get_drvdata(pdev); ivideo 4350 drivers/video/fbdev/sis/sis_main.c unsigned char *bios = ivideo->SiS_Pr.VirtualRomBase; ivideo 4355 drivers/video/fbdev/sis/sis_main.c if(!ivideo->SiS_Pr.UseROM) ivideo 4370 drivers/video/fbdev/sis/sis_main.c if(ivideo->revision_id <= 0x13) { ivideo 4415 drivers/video/fbdev/sis/sis_main.c if(ivideo->revision_id >= 0x80) ivideo 4433 drivers/video/fbdev/sis/sis_main.c if(ivideo->revision_id >= 0x80) ivideo 4458 drivers/video/fbdev/sis/sis_main.c if(ivideo->revision_id >= 0x80) ivideo 4466 drivers/video/fbdev/sis/sis_main.c if(ivideo->SiS_Pr.UseROM) { ivideo 4501 drivers/video/fbdev/sis/sis_main.c mapsize = ivideo->video_size; ivideo 4502 drivers/video/fbdev/sis/sis_main.c sisfb_post_map_vram(ivideo, &mapsize, 4); ivideo 4504 drivers/video/fbdev/sis/sis_main.c if(ivideo->video_vbase) { ivideo 4506 drivers/video/fbdev/sis/sis_main.c iounmap(ivideo->video_vbase); ivideo 4533 drivers/video/fbdev/sis/sis_main.c sisfb_sense_crt1(ivideo); ivideo 4536 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_UseOEM = false; ivideo 4537 drivers/video/fbdev/sis/sis_main.c SiS_SetEnableDstn(&ivideo->SiS_Pr, false); ivideo 4538 drivers/video/fbdev/sis/sis_main.c SiS_SetEnableFstn(&ivideo->SiS_Pr, false); ivideo 4539 drivers/video/fbdev/sis/sis_main.c ivideo->curFSTN = ivideo->curDSTN = 0; ivideo 4540 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.VideoMemorySize = 8 << 20; ivideo 4541 drivers/video/fbdev/sis/sis_main.c SiSSetMode(&ivideo->SiS_Pr, 0x2e | 0x80); ivideo 4552 drivers/video/fbdev/sis/sis_main.c ivideo->modeprechange = 0x2e; ivideo 4564 drivers/video/fbdev/sis/sis_main.c static inline int sisfb_xgi_is21(struct sis_video_info *ivideo) ivideo 4566 drivers/video/fbdev/sis/sis_main.c return ivideo->chip_real_id == XGI_21; ivideo 4569 drivers/video/fbdev/sis/sis_main.c static void sisfb_post_xgi_delay(struct sis_video_info *ivideo, int delay) ivideo 4580 drivers/video/fbdev/sis/sis_main.c static int sisfb_find_host_bridge(struct sis_video_info *ivideo, ivideo 4600 drivers/video/fbdev/sis/sis_main.c static int sisfb_post_xgi_rwtest(struct sis_video_info *ivideo, int starta, ivideo 4606 drivers/video/fbdev/sis/sis_main.c writel(0, ivideo->video_vbase); ivideo 4611 drivers/video/fbdev/sis/sis_main.c writel(pos, ivideo->video_vbase + pos); ivideo 4614 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 150); ivideo 4616 drivers/video/fbdev/sis/sis_main.c if(readl(ivideo->video_vbase) != 0) ivideo 4622 drivers/video/fbdev/sis/sis_main.c if(readl(ivideo->video_vbase + pos) != pos) ivideo 4631 drivers/video/fbdev/sis/sis_main.c static int sisfb_post_xgi_ramsize(struct sis_video_info *ivideo) ivideo 4668 drivers/video/fbdev/sis/sis_main.c mapsize = ivideo->video_size; ivideo 4669 drivers/video/fbdev/sis/sis_main.c sisfb_post_map_vram(ivideo, &mapsize, 32); ivideo 4671 drivers/video/fbdev/sis/sis_main.c if(!ivideo->video_vbase) { ivideo 4684 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip == XGI_20) { ivideo 4692 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 1); ivideo 4694 drivers/video/fbdev/sis/sis_main.c if(sisfb_post_xgi_rwtest(ivideo, 23, 24, mapsize)) ivideo 4699 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 1); ivideo 4700 drivers/video/fbdev/sis/sis_main.c if(sisfb_post_xgi_rwtest(ivideo, 23, 23, mapsize)) ivideo 4706 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 1); ivideo 4708 drivers/video/fbdev/sis/sis_main.c if(sisfb_post_xgi_rwtest(ivideo, 22, 23, mapsize)) ivideo 4716 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 1); ivideo 4718 drivers/video/fbdev/sis/sis_main.c if(sisfb_post_xgi_rwtest(ivideo, 22, 23, mapsize)) ivideo 4723 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 1); ivideo 4724 drivers/video/fbdev/sis/sis_main.c if(sisfb_post_xgi_rwtest(ivideo, 22, 22, mapsize)) ivideo 4730 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 1); ivideo 4732 drivers/video/fbdev/sis/sis_main.c if(sisfb_post_xgi_rwtest(ivideo, 21, 22, mapsize)) ivideo 4748 drivers/video/fbdev/sis/sis_main.c if(ivideo->revision_id == 2) { ivideo 4753 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 1); ivideo 4754 drivers/video/fbdev/sis/sis_main.c if(sisfb_post_xgi_rwtest(ivideo, 23, 24, mapsize)) ivideo 4759 drivers/video/fbdev/sis/sis_main.c if(sisfb_post_xgi_rwtest(ivideo, 22, 23, mapsize)) ivideo 4766 drivers/video/fbdev/sis/sis_main.c if(sisfb_post_xgi_rwtest(ivideo, 22, 23, mapsize)) ivideo 4776 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 1); ivideo 4777 drivers/video/fbdev/sis/sis_main.c if(sisfb_post_xgi_rwtest(ivideo, 23, 25, mapsize)) ivideo 4782 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 1); ivideo 4784 drivers/video/fbdev/sis/sis_main.c if(sisfb_post_xgi_rwtest(ivideo, 23, 24, mapsize)) ivideo 4791 drivers/video/fbdev/sis/sis_main.c if(sisfb_post_xgi_rwtest(ivideo, 23, 24, mapsize)) { ivideo 4799 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 1); ivideo 4804 drivers/video/fbdev/sis/sis_main.c if(ivideo->revision_id == 2) { ivideo 4808 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 1); ivideo 4810 drivers/video/fbdev/sis/sis_main.c if(sisfb_post_xgi_rwtest(ivideo, 23, 24, mapsize)) ivideo 4819 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 1); ivideo 4821 drivers/video/fbdev/sis/sis_main.c if(sisfb_post_xgi_rwtest(ivideo, 24, 25, mapsize)) ivideo 4827 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 1); ivideo 4834 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 1); ivideo 4836 drivers/video/fbdev/sis/sis_main.c j = (ivideo->chip == XGI_20) ? 5 : 9; ivideo 4837 drivers/video/fbdev/sis/sis_main.c k = (ivideo->chip == XGI_20) ? 12 : 4; ivideo 4842 drivers/video/fbdev/sis/sis_main.c reg = (ivideo->chip == XGI_20) ? ivideo 4845 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 50); ivideo 4847 drivers/video/fbdev/sis/sis_main.c ranksize = (ivideo->chip == XGI_20) ? ivideo 4853 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip == XGI_20) { ivideo 4870 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 1); ivideo 4872 drivers/video/fbdev/sis/sis_main.c if (sisfb_post_xgi_rwtest(ivideo, j, ((reg >> 4) + channelab - 2 + 20), mapsize)) { ivideo 4878 drivers/video/fbdev/sis/sis_main.c iounmap(ivideo->video_vbase); ivideo 4883 drivers/video/fbdev/sis/sis_main.c static void sisfb_post_xgi_setclocks(struct sis_video_info *ivideo, u8 regb) ivideo 4912 drivers/video/fbdev/sis/sis_main.c if(ivideo->haveXGIROM) { ivideo 4913 drivers/video/fbdev/sis/sis_main.c v1 = ivideo->bios_abase[0x90 + index]; ivideo 4914 drivers/video/fbdev/sis/sis_main.c v2 = ivideo->bios_abase[0x90 + index + 1]; ivideo 4915 drivers/video/fbdev/sis/sis_main.c v3 = ivideo->bios_abase[0x90 + index + 2]; ivideo 4920 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 0x43); ivideo 4921 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 0x43); ivideo 4922 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 0x43); ivideo 4925 drivers/video/fbdev/sis/sis_main.c if(ivideo->haveXGIROM) { ivideo 4926 drivers/video/fbdev/sis/sis_main.c v1 = ivideo->bios_abase[0xb8 + index]; ivideo 4927 drivers/video/fbdev/sis/sis_main.c v2 = ivideo->bios_abase[0xb8 + index + 1]; ivideo 4928 drivers/video/fbdev/sis/sis_main.c v3 = ivideo->bios_abase[0xb8 + index + 2]; ivideo 4933 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 0x43); ivideo 4934 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 0x43); ivideo 4935 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 0x43); ivideo 4938 drivers/video/fbdev/sis/sis_main.c static void sisfb_post_xgi_ddr2_mrs_default(struct sis_video_info *ivideo, ivideo 4941 drivers/video/fbdev/sis/sis_main.c unsigned char *bios = ivideo->bios_abase; ivideo 4946 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 15); ivideo 4955 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 1); ivideo 4957 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_setclocks(ivideo, regb); ivideo 4958 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 0x46); ivideo 4963 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 1); ivideo 4965 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 1); ivideo 4967 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 1); ivideo 4969 drivers/video/fbdev/sis/sis_main.c if (ivideo->haveXGIROM) { ivideo 4976 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 1); ivideo 4979 drivers/video/fbdev/sis/sis_main.c static void sisfb_post_xgi_ddr2_mrs_xg21(struct sis_video_info *ivideo) ivideo 4981 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_setclocks(ivideo, 1); ivideo 4984 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 0x46); ivideo 5005 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 1); ivideo 5008 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 1); ivideo 5011 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 1); ivideo 5017 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 1); ivideo 5020 drivers/video/fbdev/sis/sis_main.c static void sisfb_post_xgi_ddr2(struct sis_video_info *ivideo, u8 regb) ivideo 5022 drivers/video/fbdev/sis/sis_main.c unsigned char *bios = ivideo->bios_abase; ivideo 5044 drivers/video/fbdev/sis/sis_main.c if (ivideo->haveXGIROM) { ivideo 5059 drivers/video/fbdev/sis/sis_main.c if (sisfb_xgi_is21(ivideo)) ivideo 5060 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_ddr2_mrs_xg21(ivideo); ivideo 5062 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_ddr2_mrs_default(ivideo, regb); ivideo 5065 drivers/video/fbdev/sis/sis_main.c static u8 sisfb_post_xgi_ramtype(struct sis_video_info *ivideo) ivideo 5067 drivers/video/fbdev/sis/sis_main.c unsigned char *bios = ivideo->bios_abase; ivideo 5073 drivers/video/fbdev/sis/sis_main.c if (ivideo->haveXGIROM) { ivideo 5078 drivers/video/fbdev/sis/sis_main.c if (sisfb_xgi_is21(ivideo)) { ivideo 5084 drivers/video/fbdev/sis/sis_main.c } else if (ivideo->chip == XGI_20) { ivideo 5106 drivers/video/fbdev/sis/sis_main.c struct sis_video_info *ivideo = pci_get_drvdata(pdev); ivideo 5107 drivers/video/fbdev/sis/sis_main.c unsigned char *bios = ivideo->bios_abase; ivideo 5196 drivers/video/fbdev/sis/sis_main.c if(ivideo->haveXGIROM) { ivideo 5204 drivers/video/fbdev/sis/sis_main.c if(ivideo->haveXGIROM) { ivideo 5212 drivers/video/fbdev/sis/sis_main.c if(ivideo->haveXGIROM) { ivideo 5224 drivers/video/fbdev/sis/sis_main.c if(ivideo->haveXGIROM) { ivideo 5231 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip == XGI_40) { ivideo 5232 drivers/video/fbdev/sis/sis_main.c if(ivideo->revision_id == 2) { ivideo 5238 drivers/video/fbdev/sis/sis_main.c if(ivideo->revision_id == 0) { /* 40 *and* 20? */ ivideo 5246 drivers/video/fbdev/sis/sis_main.c reg = (ivideo->chip == XGI_40) ? 0x20 : 0x00; ivideo 5249 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip == XGI_20) { ivideo 5314 drivers/video/fbdev/sis/sis_main.c } else if(sisfb_find_host_bridge(ivideo, pdev, PCI_VENDOR_ID_SI)) { ivideo 5316 drivers/video/fbdev/sis/sis_main.c } else if(sisfb_find_host_bridge(ivideo, pdev, 0x1106) || ivideo 5317 drivers/video/fbdev/sis/sis_main.c sisfb_find_host_bridge(ivideo, pdev, 0x1022) || ivideo 5318 drivers/video/fbdev/sis/sis_main.c sisfb_find_host_bridge(ivideo, pdev, 0x700e) || ivideo 5319 drivers/video/fbdev/sis/sis_main.c sisfb_find_host_bridge(ivideo, pdev, 0x10de)) { ivideo 5329 drivers/video/fbdev/sis/sis_main.c if(ivideo->revision_id == 2) { ivideo 5393 drivers/video/fbdev/sis/sis_main.c ramtype = sisfb_post_xgi_ramtype(ivideo); ivideo 5394 drivers/video/fbdev/sis/sis_main.c if (!sisfb_xgi_is21(ivideo) && ramtype) { ivideo 5404 drivers/video/fbdev/sis/sis_main.c if(ivideo->haveXGIROM) { ivideo 5410 drivers/video/fbdev/sis/sis_main.c if(ivideo->haveXGIROM) { ivideo 5419 drivers/video/fbdev/sis/sis_main.c if(ivideo->haveXGIROM) { ivideo 5420 drivers/video/fbdev/sis/sis_main.c index = (ivideo->chip == XGI_20) ? 0x31a : 0x3a6; ivideo 5448 drivers/video/fbdev/sis/sis_main.c if(ivideo->haveXGIROM) { ivideo 5449 drivers/video/fbdev/sis/sis_main.c index = (ivideo->chip == XGI_20) ? 0x35a : 0x3e6; ivideo 5476 drivers/video/fbdev/sis/sis_main.c if(ivideo->haveXGIROM) { ivideo 5486 drivers/video/fbdev/sis/sis_main.c if(ivideo->haveXGIROM) { ivideo 5487 drivers/video/fbdev/sis/sis_main.c index = (ivideo->chip == XGI_20) ? 0x45a : 0x4e6; ivideo 5504 drivers/video/fbdev/sis/sis_main.c if(ivideo->haveXGIROM) { ivideo 5516 drivers/video/fbdev/sis/sis_main.c if(ivideo->haveXGIROM) { ivideo 5526 drivers/video/fbdev/sis/sis_main.c if(ivideo->haveXGIROM) { ivideo 5534 drivers/video/fbdev/sis/sis_main.c if(ivideo->haveXGIROM) { ivideo 5546 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip == XGI_40) { ivideo 5547 drivers/video/fbdev/sis/sis_main.c if( (ivideo->revision_id == 1) || ivideo 5548 drivers/video/fbdev/sis/sis_main.c (ivideo->revision_id == 2) ) { ivideo 5559 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip == XGI_20) { ivideo 5566 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_setclocks(ivideo, regb); ivideo 5567 drivers/video/fbdev/sis/sis_main.c if((ivideo->chip == XGI_20) || ivideo 5568 drivers/video/fbdev/sis/sis_main.c (ivideo->revision_id == 1) || ivideo 5569 drivers/video/fbdev/sis/sis_main.c (ivideo->revision_id == 2)) { ivideo 5571 drivers/video/fbdev/sis/sis_main.c if(ivideo->haveXGIROM) { ivideo 5594 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip == XGI_40) { ivideo 5601 drivers/video/fbdev/sis/sis_main.c if((ivideo->chip == XGI_20) || ivideo 5602 drivers/video/fbdev/sis/sis_main.c (ivideo->revision_id == 2)) { ivideo 5609 drivers/video/fbdev/sis/sis_main.c if((ivideo->chip == XGI_20) || (bios[0x1cb] != 0x0c)) { ivideo 5610 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 0x43); ivideo 5611 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 0x43); ivideo 5612 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 0x43); ivideo 5614 drivers/video/fbdev/sis/sis_main.c if((ivideo->chip == XGI_20) || ivideo 5615 drivers/video/fbdev/sis/sis_main.c (ivideo->revision_id == 2)) { ivideo 5620 drivers/video/fbdev/sis/sis_main.c } else if((ivideo->chip == XGI_40) && (bios[0x1cb] == 0x0c)) { ivideo 5625 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 4); ivideo 5627 drivers/video/fbdev/sis/sis_main.c if(ivideo->haveXGIROM) { ivideo 5629 drivers/video/fbdev/sis/sis_main.c index = (ivideo->chip == XGI_20) ? 0x4b2 : 0x53e; ivideo 5636 drivers/video/fbdev/sis/sis_main.c SiS_SetReg(SISSR, 0x19, ((ivideo->chip == XGI_20) ? 0x02 : 0x01)); ivideo 5639 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 0x43); ivideo 5641 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 0x22); ivideo 5649 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_ddr2(ivideo, regb); ivideo 5652 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_setclocks(ivideo, regb); ivideo 5653 drivers/video/fbdev/sis/sis_main.c if((ivideo->chip == XGI_40) && ivideo 5654 drivers/video/fbdev/sis/sis_main.c ((ivideo->revision_id == 1) || ivideo 5655 drivers/video/fbdev/sis/sis_main.c (ivideo->revision_id == 2))) { ivideo 5670 drivers/video/fbdev/sis/sis_main.c if(ivideo->haveXGIROM) { ivideo 5677 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip == XGI_40) { ivideo 5680 drivers/video/fbdev/sis/sis_main.c if((ivideo->chip == XGI_40) && (ivideo->revision_id == 2)) { ivideo 5687 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip == XGI_40) { ivideo 5695 drivers/video/fbdev/sis/sis_main.c if((ivideo->chip == XGI_40) && (bios[0x1cb] != 0x0c)) { ivideo 5696 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 0x43); ivideo 5697 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 0x43); ivideo 5698 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 0x43); ivideo 5704 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 4); ivideo 5706 drivers/video/fbdev/sis/sis_main.c if(ivideo->haveXGIROM) { ivideo 5711 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip == XGI_40) { ivideo 5718 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 0x43); ivideo 5719 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip == XGI_40) { ivideo 5724 drivers/video/fbdev/sis/sis_main.c sisfb_post_xgi_delay(ivideo, 0x22); ivideo 5727 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip == XGI_40) { ivideo 5739 drivers/video/fbdev/sis/sis_main.c if(ivideo->haveXGIROM) { ivideo 5746 drivers/video/fbdev/sis/sis_main.c if(ivideo->haveXGIROM) { ivideo 5752 drivers/video/fbdev/sis/sis_main.c if((v1 & 0x40) && (v2 & regd) && ivideo->haveXGIROM) { ivideo 5761 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_UseOEM = false; ivideo 5762 drivers/video/fbdev/sis/sis_main.c SiS_SetEnableDstn(&ivideo->SiS_Pr, false); ivideo 5763 drivers/video/fbdev/sis/sis_main.c SiS_SetEnableFstn(&ivideo->SiS_Pr, false); ivideo 5764 drivers/video/fbdev/sis/sis_main.c ivideo->curFSTN = ivideo->curDSTN = 0; ivideo 5765 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.VideoMemorySize = 8 << 20; ivideo 5766 drivers/video/fbdev/sis/sis_main.c SiSSetMode(&ivideo->SiS_Pr, 0x2e | 0x80); ivideo 5772 drivers/video/fbdev/sis/sis_main.c err = sisfb_post_xgi_ramsize(ivideo); ivideo 5798 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip == XGI_20) { ivideo 5803 drivers/video/fbdev/sis/sis_main.c sisfb_sense_crt1(ivideo); ivideo 5810 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_UseOEM = false; ivideo 5811 drivers/video/fbdev/sis/sis_main.c SiS_SetEnableDstn(&ivideo->SiS_Pr, false); ivideo 5812 drivers/video/fbdev/sis/sis_main.c SiS_SetEnableFstn(&ivideo->SiS_Pr, false); ivideo 5813 drivers/video/fbdev/sis/sis_main.c ivideo->curFSTN = ivideo->curDSTN = 0; ivideo 5814 drivers/video/fbdev/sis/sis_main.c SiSSetMode(&ivideo->SiS_Pr, 0x2e | 0x80); ivideo 5825 drivers/video/fbdev/sis/sis_main.c ivideo->modeprechange = 0x2e; ivideo 5827 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip == XGI_40) { ivideo 5844 drivers/video/fbdev/sis/sis_main.c struct sis_video_info *ivideo = NULL; ivideo 5853 drivers/video/fbdev/sis/sis_main.c sis_fb_info = framebuffer_alloc(sizeof(*ivideo), &pdev->dev); ivideo 5857 drivers/video/fbdev/sis/sis_main.c ivideo = (struct sis_video_info *)sis_fb_info->par; ivideo 5858 drivers/video/fbdev/sis/sis_main.c ivideo->memyselfandi = sis_fb_info; ivideo 5860 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_id = SISFB_ID; ivideo 5863 drivers/video/fbdev/sis/sis_main.c ivideo->cardnumber = 0; ivideo 5866 drivers/video/fbdev/sis/sis_main.c ivideo->cardnumber = 1; ivideo 5868 drivers/video/fbdev/sis/sis_main.c ivideo->cardnumber++; ivideo 5871 drivers/video/fbdev/sis/sis_main.c strlcpy(ivideo->myid, chipinfo->chip_name, sizeof(ivideo->myid)); ivideo 5873 drivers/video/fbdev/sis/sis_main.c ivideo->warncount = 0; ivideo 5874 drivers/video/fbdev/sis/sis_main.c ivideo->chip_id = pdev->device; ivideo 5875 drivers/video/fbdev/sis/sis_main.c ivideo->chip_vendor = pdev->vendor; ivideo 5876 drivers/video/fbdev/sis/sis_main.c ivideo->revision_id = pdev->revision; ivideo 5877 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.ChipRevision = ivideo->revision_id; ivideo 5879 drivers/video/fbdev/sis/sis_main.c ivideo->sisvga_enabled = reg16 & 0x01; ivideo 5880 drivers/video/fbdev/sis/sis_main.c ivideo->pcibus = pdev->bus->number; ivideo 5881 drivers/video/fbdev/sis/sis_main.c ivideo->pcislot = PCI_SLOT(pdev->devfn); ivideo 5882 drivers/video/fbdev/sis/sis_main.c ivideo->pcifunc = PCI_FUNC(pdev->devfn); ivideo 5883 drivers/video/fbdev/sis/sis_main.c ivideo->subsysvendor = pdev->subsystem_vendor; ivideo 5884 drivers/video/fbdev/sis/sis_main.c ivideo->subsysdevice = pdev->subsystem_device; ivideo 5892 drivers/video/fbdev/sis/sis_main.c ivideo->chip = chipinfo->chip; ivideo 5893 drivers/video/fbdev/sis/sis_main.c ivideo->chip_real_id = chipinfo->chip; ivideo 5894 drivers/video/fbdev/sis/sis_main.c ivideo->sisvga_engine = chipinfo->vgaengine; ivideo 5895 drivers/video/fbdev/sis/sis_main.c ivideo->hwcursor_size = chipinfo->hwcursor_size; ivideo 5896 drivers/video/fbdev/sis/sis_main.c ivideo->CRT2_write_enable = chipinfo->CRT2_write_enable; ivideo 5897 drivers/video/fbdev/sis/sis_main.c ivideo->mni = chipinfo->mni; ivideo 5899 drivers/video/fbdev/sis/sis_main.c ivideo->detectedpdc = 0xff; ivideo 5900 drivers/video/fbdev/sis/sis_main.c ivideo->detectedpdca = 0xff; ivideo 5901 drivers/video/fbdev/sis/sis_main.c ivideo->detectedlcda = 0xff; ivideo 5903 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_thismonitor.datavalid = false; ivideo 5905 drivers/video/fbdev/sis/sis_main.c ivideo->current_base = 0; ivideo 5907 drivers/video/fbdev/sis/sis_main.c ivideo->engineok = 0; ivideo 5909 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_was_boot_device = 0; ivideo 5912 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_enabled) ivideo 5913 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_was_boot_device = 1; ivideo 5922 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_parm_mem = sisfb_parm_mem; ivideo 5923 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_accel = sisfb_accel; ivideo 5924 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_ypan = sisfb_ypan; ivideo 5925 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_max = sisfb_max; ivideo 5926 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_userom = sisfb_userom; ivideo 5927 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_useoem = sisfb_useoem; ivideo 5928 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_mode_idx = sisfb_mode_idx; ivideo 5929 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_parm_rate = sisfb_parm_rate; ivideo 5930 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_crt1off = sisfb_crt1off; ivideo 5931 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_forcecrt1 = sisfb_forcecrt1; ivideo 5932 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_crt2type = sisfb_crt2type; ivideo 5933 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_crt2flags = sisfb_crt2flags; ivideo 5935 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_dstn = sisfb_dstn; ivideo 5936 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_fstn = sisfb_fstn; ivideo 5937 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_tvplug = sisfb_tvplug; ivideo 5938 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_tvstd = sisfb_tvstd; ivideo 5939 drivers/video/fbdev/sis/sis_main.c ivideo->tvxpos = sisfb_tvxposoffset; ivideo 5940 drivers/video/fbdev/sis/sis_main.c ivideo->tvypos = sisfb_tvyposoffset; ivideo 5941 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_nocrt2rate = sisfb_nocrt2rate; ivideo 5942 drivers/video/fbdev/sis/sis_main.c ivideo->refresh_rate = 0; ivideo 5943 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisfb_parm_rate != -1) { ivideo 5944 drivers/video/fbdev/sis/sis_main.c ivideo->refresh_rate = ivideo->sisfb_parm_rate; ivideo 5947 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.UsePanelScaler = sisfb_scalelcd; ivideo 5948 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.CenterScreen = -1; ivideo 5949 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_CustomT = sisfb_specialtiming; ivideo 5950 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.LVDSHL = sisfb_lvdshl; ivideo 5952 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_Backup70xx = 0xff; ivideo 5953 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_CHOverScan = -1; ivideo 5954 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_ChSW = false; ivideo 5955 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_UseLCDA = false; ivideo 5956 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.HaveEMI = false; ivideo 5957 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.HaveEMILCD = false; ivideo 5958 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.OverruleEMI = false; ivideo 5959 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_SensibleSR11 = false; ivideo 5960 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_MyCR63 = 0x63; ivideo 5961 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.PDC = -1; ivideo 5962 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.PDCA = -1; ivideo 5963 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.DDCPortMixup = false; ivideo 5965 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip >= SIS_330) { ivideo 5966 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_MyCR63 = 0x53; ivideo 5967 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip >= SIS_661) { ivideo 5968 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_SensibleSR11 = true; ivideo 5973 drivers/video/fbdev/sis/sis_main.c memcpy(&ivideo->default_var, &my_default_var, sizeof(my_default_var)); ivideo 5975 drivers/video/fbdev/sis/sis_main.c pci_set_drvdata(pdev, ivideo); ivideo 5978 drivers/video/fbdev/sis/sis_main.c if((ivideo->nbridge = sisfb_get_northbridge(ivideo->chip))) { ivideo 5979 drivers/video/fbdev/sis/sis_main.c switch(ivideo->nbridge->device) { ivideo 5982 drivers/video/fbdev/sis/sis_main.c ivideo->chip = SIS_730; ivideo 5983 drivers/video/fbdev/sis/sis_main.c strcpy(ivideo->myid, "SiS 730"); ivideo 5989 drivers/video/fbdev/sis/sis_main.c strcpy(ivideo->myid, "SiS 651"); ivideo 5992 drivers/video/fbdev/sis/sis_main.c ivideo->chip = SIS_740; ivideo 5993 drivers/video/fbdev/sis/sis_main.c strcpy(ivideo->myid, "SiS 740"); ivideo 5996 drivers/video/fbdev/sis/sis_main.c ivideo->chip = SIS_661; ivideo 5997 drivers/video/fbdev/sis/sis_main.c strcpy(ivideo->myid, "SiS 661"); ivideo 6000 drivers/video/fbdev/sis/sis_main.c ivideo->chip = SIS_741; ivideo 6001 drivers/video/fbdev/sis/sis_main.c strcpy(ivideo->myid, "SiS 741"); ivideo 6004 drivers/video/fbdev/sis/sis_main.c ivideo->chip = SIS_760; ivideo 6005 drivers/video/fbdev/sis/sis_main.c strcpy(ivideo->myid, "SiS 760"); ivideo 6008 drivers/video/fbdev/sis/sis_main.c ivideo->chip = SIS_761; ivideo 6009 drivers/video/fbdev/sis/sis_main.c strcpy(ivideo->myid, "SiS 761"); ivideo 6017 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.ChipType = ivideo->chip; ivideo 6019 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.ivideo = (void *)ivideo; ivideo 6022 drivers/video/fbdev/sis/sis_main.c if((ivideo->SiS_Pr.ChipType == SIS_315PRO) || ivideo 6023 drivers/video/fbdev/sis/sis_main.c (ivideo->SiS_Pr.ChipType == SIS_315)) { ivideo 6024 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.ChipType = SIS_315H; ivideo 6028 drivers/video/fbdev/sis/sis_main.c if(!ivideo->sisvga_enabled) { ivideo 6030 drivers/video/fbdev/sis/sis_main.c pci_dev_put(ivideo->nbridge); ivideo 6036 drivers/video/fbdev/sis/sis_main.c ivideo->video_base = pci_resource_start(pdev, 0); ivideo 6037 drivers/video/fbdev/sis/sis_main.c ivideo->video_size = pci_resource_len(pdev, 0); ivideo 6038 drivers/video/fbdev/sis/sis_main.c ivideo->mmio_base = pci_resource_start(pdev, 1); ivideo 6039 drivers/video/fbdev/sis/sis_main.c ivideo->mmio_size = pci_resource_len(pdev, 1); ivideo 6040 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.RelIO = pci_resource_start(pdev, 2) + 0x30; ivideo 6041 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.IOAddress = ivideo->vga_base = ivideo->SiS_Pr.RelIO; ivideo 6043 drivers/video/fbdev/sis/sis_main.c SiSRegInit(&ivideo->SiS_Pr, ivideo->SiS_Pr.IOAddress); ivideo 6047 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip == SIS_630) { ivideo 6050 drivers/video/fbdev/sis/sis_main.c if(mychswtable[i].subsysVendor == ivideo->subsysvendor && ivideo 6051 drivers/video/fbdev/sis/sis_main.c mychswtable[i].subsysCard == ivideo->subsysdevice) { ivideo 6052 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.SiS_ChSW = true; ivideo 6057 drivers/video/fbdev/sis/sis_main.c ivideo->lpcdev = pci_get_device(PCI_VENDOR_ID_SI, 0x0008, NULL); ivideo 6066 drivers/video/fbdev/sis/sis_main.c if((ivideo->chip == SIS_760) && (ivideo->nbridge)) { ivideo 6067 drivers/video/fbdev/sis/sis_main.c ivideo->lpcdev = pci_get_slot(ivideo->nbridge->bus, (2 << 3)); ivideo 6073 drivers/video/fbdev/sis/sis_main.c if( (!ivideo->sisvga_enabled) ivideo 6084 drivers/video/fbdev/sis/sis_main.c ivideo->modeprechange = 0x03; ivideo 6087 drivers/video/fbdev/sis/sis_main.c ivideo->modeprechange = reg & 0x7f; ivideo 6088 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->sisvga_enabled) { ivideo 6092 drivers/video/fbdev/sis/sis_main.c ivideo->modeprechange = readb(tt + 0x49); ivideo 6099 drivers/video/fbdev/sis/sis_main.c ivideo->bios_abase = NULL; ivideo 6100 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.VirtualRomBase = NULL; ivideo 6101 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.UseROM = false; ivideo 6102 drivers/video/fbdev/sis/sis_main.c ivideo->haveXGIROM = ivideo->SiS_Pr.SiS_XGIROM = false; ivideo 6103 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisfb_userom) { ivideo 6104 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.VirtualRomBase = sisfb_find_rom(pdev); ivideo 6105 drivers/video/fbdev/sis/sis_main.c ivideo->bios_abase = ivideo->SiS_Pr.VirtualRomBase; ivideo 6106 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.UseROM = (bool)(ivideo->SiS_Pr.VirtualRomBase); ivideo 6108 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.UseROM ? "" : "not "); ivideo 6109 drivers/video/fbdev/sis/sis_main.c if((ivideo->SiS_Pr.UseROM) && (ivideo->chip >= XGI_20)) { ivideo 6110 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.UseROM = false; ivideo 6111 drivers/video/fbdev/sis/sis_main.c ivideo->haveXGIROM = ivideo->SiS_Pr.SiS_XGIROM = true; ivideo 6112 drivers/video/fbdev/sis/sis_main.c if( (ivideo->revision_id == 2) && ivideo 6113 drivers/video/fbdev/sis/sis_main.c (!(ivideo->bios_abase[0x1d1] & 0x01)) ) { ivideo 6114 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.DDCPortMixup = true; ivideo 6122 drivers/video/fbdev/sis/sis_main.c if(ivideo->SiS_Pr.SiS_CustomT == CUT_NONE) { ivideo 6123 drivers/video/fbdev/sis/sis_main.c sisfb_detect_custom_timing(ivideo); ivideo 6127 drivers/video/fbdev/sis/sis_main.c if (ivideo->chip == XGI_20) { ivideo 6132 drivers/video/fbdev/sis/sis_main.c ivideo->chip_real_id = XGI_21; ivideo 6139 drivers/video/fbdev/sis/sis_main.c if( (!ivideo->sisvga_enabled) ivideo 6145 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_300_VGA) { ivideo 6146 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip == SIS_300) { ivideo 6148 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_can_post = 1; ivideo 6154 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_315_VGA) { ivideo 6161 drivers/video/fbdev/sis/sis_main.c } else */ if(ivideo->chip == XGI_20) { ivideo 6163 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_can_post = 1; ivideo 6164 drivers/video/fbdev/sis/sis_main.c } else if((ivideo->chip == XGI_40) && ivideo->haveXGIROM) { ivideo 6166 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_can_post = 1; ivideo 6180 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_card_posted = 1; ivideo 6183 drivers/video/fbdev/sis/sis_main.c if(sisfb_get_dram_size(ivideo)) { ivideo 6191 drivers/video/fbdev/sis/sis_main.c if((ivideo->sisfb_mode_idx < 0) || ivideo 6192 drivers/video/fbdev/sis/sis_main.c ((sisbios_mode[ivideo->sisfb_mode_idx].mode_no[ivideo->mni]) != 0xFF)) { ivideo 6200 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_300_VGA) ivideo 6204 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.PDC = sisfb_pdc; ivideo 6207 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_315_VGA) { ivideo 6209 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.PDCA = sisfb_pdca & 0x1f; ivideo 6213 drivers/video/fbdev/sis/sis_main.c if(!request_mem_region(ivideo->video_base, ivideo->video_size, "sisfb FB")) { ivideo 6215 drivers/video/fbdev/sis/sis_main.c (int)(ivideo->video_size >> 20)); ivideo 6221 drivers/video/fbdev/sis/sis_main.c if(!request_mem_region(ivideo->mmio_base, ivideo->mmio_size, "sisfb MMIO")) { ivideo 6227 drivers/video/fbdev/sis/sis_main.c ivideo->video_vbase = ioremap_wc(ivideo->video_base, ivideo->video_size); ivideo 6228 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.VideoMemoryAddress = ivideo->video_vbase; ivideo 6229 drivers/video/fbdev/sis/sis_main.c if(!ivideo->video_vbase) { ivideo 6235 drivers/video/fbdev/sis/sis_main.c ivideo->mmio_vbase = ioremap(ivideo->mmio_base, ivideo->mmio_size); ivideo 6236 drivers/video/fbdev/sis/sis_main.c if(!ivideo->mmio_vbase) { ivideo 6239 drivers/video/fbdev/sis/sis_main.c error_0: iounmap(ivideo->video_vbase); ivideo 6240 drivers/video/fbdev/sis/sis_main.c error_1: release_mem_region(ivideo->video_base, ivideo->video_size); ivideo 6241 drivers/video/fbdev/sis/sis_main.c error_2: release_mem_region(ivideo->mmio_base, ivideo->mmio_size); ivideo 6242 drivers/video/fbdev/sis/sis_main.c error_3: vfree(ivideo->bios_abase); ivideo 6243 drivers/video/fbdev/sis/sis_main.c pci_dev_put(ivideo->lpcdev); ivideo 6244 drivers/video/fbdev/sis/sis_main.c pci_dev_put(ivideo->nbridge); ivideo 6245 drivers/video/fbdev/sis/sis_main.c if(!ivideo->sisvga_enabled) ivideo 6252 drivers/video/fbdev/sis/sis_main.c ivideo->video_base, (unsigned long)ivideo->video_vbase, ivideo->video_size / 1024); ivideo 6254 drivers/video/fbdev/sis/sis_main.c if(ivideo->video_offset) { ivideo 6256 drivers/video/fbdev/sis/sis_main.c ivideo->video_offset / 1024); ivideo 6260 drivers/video/fbdev/sis/sis_main.c ivideo->mmio_base, (unsigned long)ivideo->mmio_vbase, ivideo->mmio_size / 1024); ivideo 6264 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisvga_engine == SIS_300_VGA) { ivideo 6265 drivers/video/fbdev/sis/sis_main.c ivideo->cmdQueueSize = TURBO_QUEUE_AREA_SIZE; ivideo 6267 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip == XGI_20) { ivideo 6268 drivers/video/fbdev/sis/sis_main.c ivideo->cmdQueueSize = COMMAND_QUEUE_AREA_SIZE_Z7; ivideo 6270 drivers/video/fbdev/sis/sis_main.c ivideo->cmdQueueSize = COMMAND_QUEUE_AREA_SIZE; ivideo 6280 drivers/video/fbdev/sis/sis_main.c ivideo->hwcursor_vbase = ivideo->video_vbase ivideo 6281 drivers/video/fbdev/sis/sis_main.c + ivideo->video_size ivideo 6282 drivers/video/fbdev/sis/sis_main.c - ivideo->cmdQueueSize ivideo 6283 drivers/video/fbdev/sis/sis_main.c - ivideo->hwcursor_size; ivideo 6284 drivers/video/fbdev/sis/sis_main.c ivideo->caps |= HW_CURSOR_CAP; ivideo 6287 drivers/video/fbdev/sis/sis_main.c if((ivideo->havenoheap = sisfb_heap_init(ivideo))) { ivideo 6292 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.VideoMemoryAddress += ivideo->video_offset; ivideo 6293 drivers/video/fbdev/sis/sis_main.c ivideo->SiS_Pr.VideoMemorySize = ivideo->sisfb_mem; ivideo 6295 drivers/video/fbdev/sis/sis_main.c ivideo->vbflags = 0; ivideo 6296 drivers/video/fbdev/sis/sis_main.c ivideo->lcddefmodeidx = DEFAULT_LCDMODE; ivideo 6297 drivers/video/fbdev/sis/sis_main.c ivideo->tvdefmodeidx = DEFAULT_TVMODE; ivideo 6298 drivers/video/fbdev/sis/sis_main.c ivideo->defmodeidx = DEFAULT_MODE; ivideo 6300 drivers/video/fbdev/sis/sis_main.c ivideo->newrom = 0; ivideo 6301 drivers/video/fbdev/sis/sis_main.c if(ivideo->chip < XGI_20) { ivideo 6302 drivers/video/fbdev/sis/sis_main.c if(ivideo->bios_abase) { ivideo 6303 drivers/video/fbdev/sis/sis_main.c ivideo->newrom = SiSDetermineROMLayout661(&ivideo->SiS_Pr); ivideo 6307 drivers/video/fbdev/sis/sis_main.c if((ivideo->sisfb_mode_idx < 0) || ivideo 6308 drivers/video/fbdev/sis/sis_main.c ((sisbios_mode[ivideo->sisfb_mode_idx].mode_no[ivideo->mni]) != 0xFF)) { ivideo 6310 drivers/video/fbdev/sis/sis_main.c sisfb_sense_crt1(ivideo); ivideo 6312 drivers/video/fbdev/sis/sis_main.c sisfb_get_VB_type(ivideo); ivideo 6314 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags2 & VB2_VIDEOBRIDGE) { ivideo 6315 drivers/video/fbdev/sis/sis_main.c sisfb_detect_VB_connect(ivideo); ivideo 6318 drivers/video/fbdev/sis/sis_main.c ivideo->currentvbflags = ivideo->vbflags & (VB_VIDEOBRIDGE | TV_STANDARD); ivideo 6321 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags2 & VB2_VIDEOBRIDGE) { ivideo 6322 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisfb_crt2type != -1) { ivideo 6323 drivers/video/fbdev/sis/sis_main.c if((ivideo->sisfb_crt2type == CRT2_LCD) && ivideo 6324 drivers/video/fbdev/sis/sis_main.c (ivideo->vbflags & CRT2_LCD)) { ivideo 6325 drivers/video/fbdev/sis/sis_main.c ivideo->currentvbflags |= CRT2_LCD; ivideo 6326 drivers/video/fbdev/sis/sis_main.c } else if(ivideo->sisfb_crt2type != CRT2_LCD) { ivideo 6327 drivers/video/fbdev/sis/sis_main.c ivideo->currentvbflags |= ivideo->sisfb_crt2type; ivideo 6333 drivers/video/fbdev/sis/sis_main.c if((ivideo->sisvga_engine == SIS_300_VGA) && ivideo 6334 drivers/video/fbdev/sis/sis_main.c (ivideo->vbflags2 & VB2_CHRONTEL)) { ivideo 6335 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags & CRT2_LCD) ivideo 6336 drivers/video/fbdev/sis/sis_main.c ivideo->currentvbflags |= CRT2_LCD; ivideo 6337 drivers/video/fbdev/sis/sis_main.c else if(ivideo->vbflags & CRT2_TV) ivideo 6338 drivers/video/fbdev/sis/sis_main.c ivideo->currentvbflags |= CRT2_TV; ivideo 6339 drivers/video/fbdev/sis/sis_main.c else if(ivideo->vbflags & CRT2_VGA) ivideo 6340 drivers/video/fbdev/sis/sis_main.c ivideo->currentvbflags |= CRT2_VGA; ivideo 6342 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags & CRT2_TV) ivideo 6343 drivers/video/fbdev/sis/sis_main.c ivideo->currentvbflags |= CRT2_TV; ivideo 6344 drivers/video/fbdev/sis/sis_main.c else if(ivideo->vbflags & CRT2_LCD) ivideo 6345 drivers/video/fbdev/sis/sis_main.c ivideo->currentvbflags |= CRT2_LCD; ivideo 6346 drivers/video/fbdev/sis/sis_main.c else if(ivideo->vbflags & CRT2_VGA) ivideo 6347 drivers/video/fbdev/sis/sis_main.c ivideo->currentvbflags |= CRT2_VGA; ivideo 6352 drivers/video/fbdev/sis/sis_main.c if(ivideo->vbflags & CRT2_LCD) { ivideo 6353 drivers/video/fbdev/sis/sis_main.c sisfb_detect_lcd_type(ivideo); ivideo 6356 drivers/video/fbdev/sis/sis_main.c sisfb_save_pdc_emi(ivideo); ivideo 6358 drivers/video/fbdev/sis/sis_main.c if(!ivideo->sisfb_crt1off) { ivideo 6359 drivers/video/fbdev/sis/sis_main.c sisfb_handle_ddc(ivideo, &ivideo->sisfb_thismonitor, 0); ivideo 6361 drivers/video/fbdev/sis/sis_main.c if((ivideo->vbflags2 & VB2_SISTMDSBRIDGE) && ivideo 6362 drivers/video/fbdev/sis/sis_main.c (ivideo->vbflags & (CRT2_VGA | CRT2_LCD))) { ivideo 6363 drivers/video/fbdev/sis/sis_main.c sisfb_handle_ddc(ivideo, &ivideo->sisfb_thismonitor, 1); ivideo 6367 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisfb_mode_idx >= 0) { ivideo 6368 drivers/video/fbdev/sis/sis_main.c int bu = ivideo->sisfb_mode_idx; ivideo 6369 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_mode_idx = sisfb_validate_mode(ivideo, ivideo 6370 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_mode_idx, ivideo->currentvbflags); ivideo 6371 drivers/video/fbdev/sis/sis_main.c if(bu != ivideo->sisfb_mode_idx) { ivideo 6379 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisfb_mode_idx < 0) { ivideo 6380 drivers/video/fbdev/sis/sis_main.c switch(ivideo->currentvbflags & VB_DISPTYPE_DISP2) { ivideo 6382 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_mode_idx = ivideo->lcddefmodeidx; ivideo 6385 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_mode_idx = ivideo->tvdefmodeidx; ivideo 6388 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_mode_idx = ivideo->defmodeidx; ivideo 6393 drivers/video/fbdev/sis/sis_main.c ivideo->mode_no = sisbios_mode[ivideo->sisfb_mode_idx].mode_no[ivideo->mni]; ivideo 6395 drivers/video/fbdev/sis/sis_main.c if(ivideo->refresh_rate != 0) { ivideo 6396 drivers/video/fbdev/sis/sis_main.c sisfb_search_refresh_rate(ivideo, ivideo->refresh_rate, ivideo 6397 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_mode_idx); ivideo 6400 drivers/video/fbdev/sis/sis_main.c if(ivideo->rate_idx == 0) { ivideo 6401 drivers/video/fbdev/sis/sis_main.c ivideo->rate_idx = sisbios_mode[ivideo->sisfb_mode_idx].rate_idx; ivideo 6402 drivers/video/fbdev/sis/sis_main.c ivideo->refresh_rate = 60; ivideo 6405 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisfb_thismonitor.datavalid) { ivideo 6406 drivers/video/fbdev/sis/sis_main.c if(!sisfb_verify_rate(ivideo, &ivideo->sisfb_thismonitor, ivideo 6407 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_mode_idx, ivideo 6408 drivers/video/fbdev/sis/sis_main.c ivideo->rate_idx, ivideo 6409 drivers/video/fbdev/sis/sis_main.c ivideo->refresh_rate)) { ivideo 6415 drivers/video/fbdev/sis/sis_main.c ivideo->video_bpp = sisbios_mode[ivideo->sisfb_mode_idx].bpp; ivideo 6416 drivers/video/fbdev/sis/sis_main.c ivideo->video_width = sisbios_mode[ivideo->sisfb_mode_idx].xres; ivideo 6417 drivers/video/fbdev/sis/sis_main.c ivideo->video_height = sisbios_mode[ivideo->sisfb_mode_idx].yres; ivideo 6419 drivers/video/fbdev/sis/sis_main.c sisfb_set_vparms(ivideo); ivideo 6422 drivers/video/fbdev/sis/sis_main.c ivideo->video_width, ivideo->video_height, ivideo->video_bpp, ivideo 6423 drivers/video/fbdev/sis/sis_main.c ivideo->refresh_rate); ivideo 6426 drivers/video/fbdev/sis/sis_main.c ivideo->default_var.xres = ivideo->default_var.xres_virtual = ivideo->video_width; ivideo 6427 drivers/video/fbdev/sis/sis_main.c ivideo->default_var.yres = ivideo->default_var.yres_virtual = ivideo->video_height; ivideo 6428 drivers/video/fbdev/sis/sis_main.c ivideo->default_var.bits_per_pixel = ivideo->video_bpp; ivideo 6430 drivers/video/fbdev/sis/sis_main.c sisfb_bpp_to_var(ivideo, &ivideo->default_var); ivideo 6432 drivers/video/fbdev/sis/sis_main.c ivideo->default_var.pixclock = (u32) (1000000000 / ivideo 6433 drivers/video/fbdev/sis/sis_main.c sisfb_mode_rate_to_dclock(&ivideo->SiS_Pr, ivideo->mode_no, ivideo->rate_idx)); ivideo 6435 drivers/video/fbdev/sis/sis_main.c if(sisfb_mode_rate_to_ddata(&ivideo->SiS_Pr, ivideo->mode_no, ivideo 6436 drivers/video/fbdev/sis/sis_main.c ivideo->rate_idx, &ivideo->default_var)) { ivideo 6437 drivers/video/fbdev/sis/sis_main.c if((ivideo->default_var.vmode & FB_VMODE_MASK) == FB_VMODE_DOUBLE) { ivideo 6438 drivers/video/fbdev/sis/sis_main.c ivideo->default_var.pixclock <<= 1; ivideo 6442 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisfb_ypan) { ivideo 6444 drivers/video/fbdev/sis/sis_main.c ivideo->default_var.yres_virtual = ivideo 6445 drivers/video/fbdev/sis/sis_main.c sisfb_calc_maxyres(ivideo, &ivideo->default_var); ivideo 6446 drivers/video/fbdev/sis/sis_main.c if(ivideo->default_var.yres_virtual < ivideo->default_var.yres) { ivideo 6447 drivers/video/fbdev/sis/sis_main.c ivideo->default_var.yres_virtual = ivideo->default_var.yres; ivideo 6451 drivers/video/fbdev/sis/sis_main.c sisfb_calc_pitch(ivideo, &ivideo->default_var); ivideo 6453 drivers/video/fbdev/sis/sis_main.c ivideo->accel = 0; ivideo 6454 drivers/video/fbdev/sis/sis_main.c if(ivideo->sisfb_accel) { ivideo 6455 drivers/video/fbdev/sis/sis_main.c ivideo->accel = -1; ivideo 6457 drivers/video/fbdev/sis/sis_main.c ivideo->default_var.accel_flags |= FB_ACCELF_TEXT; ivideo 6460 drivers/video/fbdev/sis/sis_main.c sisfb_initaccel(ivideo); ivideo 6468 drivers/video/fbdev/sis/sis_main.c ((ivideo->accel) ? 0 : FBINFO_HWACCEL_DISABLED); ivideo 6472 drivers/video/fbdev/sis/sis_main.c sis_fb_info->var = ivideo->default_var; ivideo 6473 drivers/video/fbdev/sis/sis_main.c sis_fb_info->fix = ivideo->sisfb_fix; ivideo 6474 drivers/video/fbdev/sis/sis_main.c sis_fb_info->screen_base = ivideo->video_vbase + ivideo->video_offset; ivideo 6476 drivers/video/fbdev/sis/sis_main.c sis_fb_info->pseudo_palette = ivideo->pseudo_palette; ivideo 6480 drivers/video/fbdev/sis/sis_main.c printk(KERN_DEBUG "sisfb: Initial vbflags 0x%x\n", (int)ivideo->vbflags); ivideo 6482 drivers/video/fbdev/sis/sis_main.c ivideo->wc_cookie = arch_phys_wc_add(ivideo->video_base, ivideo 6483 drivers/video/fbdev/sis/sis_main.c ivideo->video_size); ivideo 6487 drivers/video/fbdev/sis/sis_main.c iounmap(ivideo->mmio_vbase); ivideo 6491 drivers/video/fbdev/sis/sis_main.c ivideo->registered = 1; ivideo 6494 drivers/video/fbdev/sis/sis_main.c ivideo->next = card_list; ivideo 6495 drivers/video/fbdev/sis/sis_main.c card_list = ivideo; ivideo 6498 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_accel ? "enabled" : "disabled", ivideo 6499 drivers/video/fbdev/sis/sis_main.c ivideo->sisfb_ypan ? ivideo 6500 drivers/video/fbdev/sis/sis_main.c (ivideo->sisfb_max ? "enabled (auto-max)" : ivideo 6506 drivers/video/fbdev/sis/sis_main.c ivideo->myid, VER_MAJOR, VER_MINOR, VER_LEVEL); ivideo 6521 drivers/video/fbdev/sis/sis_main.c struct sis_video_info *ivideo = pci_get_drvdata(pdev); ivideo 6522 drivers/video/fbdev/sis/sis_main.c struct fb_info *sis_fb_info = ivideo->memyselfandi; ivideo 6523 drivers/video/fbdev/sis/sis_main.c int registered = ivideo->registered; ivideo 6524 drivers/video/fbdev/sis/sis_main.c int modechanged = ivideo->modechanged; ivideo 6527 drivers/video/fbdev/sis/sis_main.c iounmap(ivideo->mmio_vbase); ivideo 6528 drivers/video/fbdev/sis/sis_main.c iounmap(ivideo->video_vbase); ivideo 6531 drivers/video/fbdev/sis/sis_main.c release_mem_region(ivideo->video_base, ivideo->video_size); ivideo 6532 drivers/video/fbdev/sis/sis_main.c release_mem_region(ivideo->mmio_base, ivideo->mmio_size); ivideo 6534 drivers/video/fbdev/sis/sis_main.c vfree(ivideo->bios_abase); ivideo 6536 drivers/video/fbdev/sis/sis_main.c pci_dev_put(ivideo->lpcdev); ivideo 6538 drivers/video/fbdev/sis/sis_main.c pci_dev_put(ivideo->nbridge); ivideo 6540 drivers/video/fbdev/sis/sis_main.c arch_phys_wc_del(ivideo->wc_cookie); ivideo 6545 drivers/video/fbdev/sis/sis_main.c if(!ivideo->sisvga_enabled) ivideo 6549 drivers/video/fbdev/sis/sis_main.c if(ivideo->registered) { ivideo 236 drivers/video/fbdev/sis/vstruct.h void *ivideo;