Subversion Repositories Kolibri OS

Rev

Rev 5271 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5271 Rev 6104
Line 1253... Line 1253...
1253
			if (tmp == 0)
1253
			if (tmp == 0)
1254
				break;
1254
				break;
Line 1255... Line 1255...
1255
 
1255
 
1256
			if ((RBIOS16(tmp) == lvds->native_mode.hdisplay) &&
1256
			if ((RBIOS16(tmp) == lvds->native_mode.hdisplay) &&
-
 
1257
			    (RBIOS16(tmp + 2) == lvds->native_mode.vdisplay)) {
-
 
1258
				u32 hss = (RBIOS16(tmp + 21) - RBIOS16(tmp + 19) - 1) * 8;
-
 
1259
 
-
 
1260
				if (hss > lvds->native_mode.hdisplay)
-
 
1261
					hss = (10 - 1) * 8;
1257
			    (RBIOS16(tmp + 2) == lvds->native_mode.vdisplay)) {
1262
 
1258
				lvds->native_mode.htotal = lvds->native_mode.hdisplay +
1263
				lvds->native_mode.htotal = lvds->native_mode.hdisplay +
1259
					(RBIOS16(tmp + 17) - RBIOS16(tmp + 19)) * 8;
1264
					(RBIOS16(tmp + 17) - RBIOS16(tmp + 19)) * 8;
1260
				lvds->native_mode.hsync_start = lvds->native_mode.hdisplay +
1265
				lvds->native_mode.hsync_start = lvds->native_mode.hdisplay +
1261
					(RBIOS16(tmp + 21) - RBIOS16(tmp + 19) - 1) * 8;
1266
					hss;
1262
				lvds->native_mode.hsync_end = lvds->native_mode.hsync_start +
1267
				lvds->native_mode.hsync_end = lvds->native_mode.hsync_start +
Line 1263... Line 1268...
1263
					(RBIOS8(tmp + 23) * 8);
1268
					(RBIOS8(tmp + 23) * 8);
1264
 
1269
 
Line 3380... Line 3385...
3380
	if (rdev->family == CHIP_RS480 &&
3385
	if (rdev->family == CHIP_RS480 &&
3381
	    rdev->pdev->subsystem_vendor == 0x103c &&
3386
	    rdev->pdev->subsystem_vendor == 0x103c &&
3382
	    rdev->pdev->subsystem_device == 0x30ae)
3387
	    rdev->pdev->subsystem_device == 0x30ae)
3383
		return;
3388
		return;
Line -... Line 3389...
-
 
3389
 
-
 
3390
	/* quirk for rs4xx HP Compaq dc5750 Small Form Factor to make it resume
-
 
3391
	 * - it hangs on resume inside the dynclk 1 table.
-
 
3392
	 */
-
 
3393
	if (rdev->family == CHIP_RS480 &&
-
 
3394
	    rdev->pdev->subsystem_vendor == 0x103c &&
-
 
3395
	    rdev->pdev->subsystem_device == 0x280a)
-
 
3396
		return;
3384
 
3397
 
3385
	/* DYN CLK 1 */
3398
	/* DYN CLK 1 */
3386
	table = combios_get_table_offset(dev, COMBIOS_DYN_CLK_1_TABLE);
3399
	table = combios_get_table_offset(dev, COMBIOS_DYN_CLK_1_TABLE);
3387
	if (table)
3400
	if (table)