diff options
author | Aaro Koskinen <aaro.koskinen@iki.fi> | 2010-12-20 16:50:18 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-12-21 22:57:10 -0500 |
commit | 27799d6c40828d5983fb1778ad3089740b946af8 (patch) | |
tree | c4bb831e465e7d9d1fbd6184afb8dc29a3d0af24 /drivers/video/sis | |
parent | 44b751bbe1fb6e7a75bbdee2d0c5f3ee133d6b0f (diff) |
sisfb: replace orSISIDXREG with SiS_SetRegOR
Replace orSISIDXREG() with SiS_SetRegOR().
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Thomas Winischhofer <thomas@winischhofer.net>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/video/sis')
-rw-r--r-- | drivers/video/sis/sis_main.c | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/drivers/video/sis/sis_main.c b/drivers/video/sis/sis_main.c index 59a567c8f3c8..0b10f12c4707 100644 --- a/drivers/video/sis/sis_main.c +++ b/drivers/video/sis/sis_main.c | |||
@@ -1120,7 +1120,7 @@ sisfb_set_pitch(struct sis_video_info *ivideo) | |||
1120 | 1120 | ||
1121 | /* We must not set the pitch for CRT2 if bridge is in slave mode */ | 1121 | /* We must not set the pitch for CRT2 if bridge is in slave mode */ |
1122 | if((ivideo->currentvbflags & VB_DISPTYPE_DISP2) && (!isslavemode)) { | 1122 | if((ivideo->currentvbflags & VB_DISPTYPE_DISP2) && (!isslavemode)) { |
1123 | orSISIDXREG(SISPART1,ivideo->CRT2_write_enable,0x01); | 1123 | SiS_SetRegOR(SISPART1, ivideo->CRT2_write_enable, 0x01); |
1124 | SiS_SetReg(SISPART1, 0x07, (HDisplay2 & 0xFF)); | 1124 | SiS_SetReg(SISPART1, 0x07, (HDisplay2 & 0xFF)); |
1125 | setSISIDXREG(SISPART1,0x09,0xF0,(HDisplay2 >> 8)); | 1125 | setSISIDXREG(SISPART1,0x09,0xF0,(HDisplay2 >> 8)); |
1126 | } | 1126 | } |
@@ -1322,7 +1322,7 @@ static void | |||
1322 | sisfb_set_base_CRT2(struct sis_video_info *ivideo, unsigned int base) | 1322 | sisfb_set_base_CRT2(struct sis_video_info *ivideo, unsigned int base) |
1323 | { | 1323 | { |
1324 | if(ivideo->currentvbflags & VB_DISPTYPE_DISP2) { | 1324 | if(ivideo->currentvbflags & VB_DISPTYPE_DISP2) { |
1325 | orSISIDXREG(SISPART1, ivideo->CRT2_write_enable, 0x01); | 1325 | SiS_SetRegOR(SISPART1, ivideo->CRT2_write_enable, 0x01); |
1326 | SiS_SetReg(SISPART1, 0x06, (base & 0xFF)); | 1326 | SiS_SetReg(SISPART1, 0x06, (base & 0xFF)); |
1327 | SiS_SetReg(SISPART1, 0x05, ((base >> 8) & 0xFF)); | 1327 | SiS_SetReg(SISPART1, 0x05, ((base >> 8) & 0xFF)); |
1328 | SiS_SetReg(SISPART1, 0x04, ((base >> 16) & 0xFF)); | 1328 | SiS_SetReg(SISPART1, 0x04, ((base >> 16) & 0xFF)); |
@@ -2199,7 +2199,7 @@ sisfb_sense_crt1(struct sis_video_info *ivideo) | |||
2199 | int i; | 2199 | int i; |
2200 | 2200 | ||
2201 | sr1F = SiS_GetReg(SISSR, 0x1F); | 2201 | sr1F = SiS_GetReg(SISSR, 0x1F); |
2202 | orSISIDXREG(SISSR,0x1F,0x04); | 2202 | SiS_SetRegOR(SISSR, 0x1F, 0x04); |
2203 | andSISIDXREG(SISSR,0x1F,0x3F); | 2203 | andSISIDXREG(SISSR,0x1F,0x3F); |
2204 | if(sr1F & 0xc0) mustwait = true; | 2204 | if(sr1F & 0xc0) mustwait = true; |
2205 | 2205 | ||
@@ -2214,7 +2214,7 @@ sisfb_sense_crt1(struct sis_video_info *ivideo) | |||
2214 | cr17 = SiS_GetReg(SISCR, 0x17); | 2214 | cr17 = SiS_GetReg(SISCR, 0x17); |
2215 | cr17 &= 0x80; | 2215 | cr17 &= 0x80; |
2216 | if(!cr17) { | 2216 | if(!cr17) { |
2217 | orSISIDXREG(SISCR,0x17,0x80); | 2217 | SiS_SetRegOR(SISCR, 0x17, 0x80); |
2218 | mustwait = true; | 2218 | mustwait = true; |
2219 | SiS_SetReg(SISSR, 0x00, 0x01); | 2219 | SiS_SetReg(SISSR, 0x00, 0x01); |
2220 | SiS_SetReg(SISSR, 0x00, 0x03); | 2220 | SiS_SetReg(SISSR, 0x00, 0x03); |
@@ -2232,7 +2232,7 @@ sisfb_sense_crt1(struct sis_video_info *ivideo) | |||
2232 | } else { | 2232 | } else { |
2233 | SiS_SetReg(SISCR, 0x57, 0x5f); | 2233 | SiS_SetReg(SISCR, 0x57, 0x5f); |
2234 | } | 2234 | } |
2235 | orSISIDXREG(SISCR, 0x53, 0x02); | 2235 | SiS_SetRegOR(SISCR, 0x53, 0x02); |
2236 | while ((SiS_GetRegByte(SISINPSTAT)) & 0x01) break; | 2236 | while ((SiS_GetRegByte(SISINPSTAT)) & 0x01) break; |
2237 | while (!((SiS_GetRegByte(SISINPSTAT)) & 0x01)) break; | 2237 | while (!((SiS_GetRegByte(SISINPSTAT)) & 0x01)) break; |
2238 | if ((SiS_GetRegByte(SISMISCW)) & 0x10) temp = 1; | 2238 | if ((SiS_GetRegByte(SISMISCW)) & 0x10) temp = 1; |
@@ -2254,7 +2254,7 @@ sisfb_sense_crt1(struct sis_video_info *ivideo) | |||
2254 | } | 2254 | } |
2255 | 2255 | ||
2256 | if((temp) && (temp != 0xffff)) { | 2256 | if((temp) && (temp != 0xffff)) { |
2257 | orSISIDXREG(SISCR,0x32,0x20); | 2257 | SiS_SetRegOR(SISCR, 0x32, 0x20); |
2258 | } | 2258 | } |
2259 | 2259 | ||
2260 | #ifdef CONFIG_FB_SIS_315 | 2260 | #ifdef CONFIG_FB_SIS_315 |
@@ -2352,7 +2352,7 @@ SiS_SenseLCD(struct sis_video_info *ivideo) | |||
2352 | SiS_SetReg(SISCR, 0x36, paneltype); | 2352 | SiS_SetReg(SISCR, 0x36, paneltype); |
2353 | cr37 &= 0xf1; | 2353 | cr37 &= 0xf1; |
2354 | setSISIDXREG(SISCR, 0x37, 0x0c, cr37); | 2354 | setSISIDXREG(SISCR, 0x37, 0x0c, cr37); |
2355 | orSISIDXREG(SISCR, 0x32, 0x08); | 2355 | SiS_SetRegOR(SISCR, 0x32, 0x08); |
2356 | 2356 | ||
2357 | ivideo->SiS_Pr.PanelSelfDetected = true; | 2357 | ivideo->SiS_Pr.PanelSelfDetected = true; |
2358 | } | 2358 | } |
@@ -2439,13 +2439,13 @@ SiS_Sense30x(struct sis_video_info *ivideo) | |||
2439 | } | 2439 | } |
2440 | 2440 | ||
2441 | backupSR_1e = SiS_GetReg(SISSR, 0x1e); | 2441 | backupSR_1e = SiS_GetReg(SISSR, 0x1e); |
2442 | orSISIDXREG(SISSR,0x1e,0x20); | 2442 | SiS_SetRegOR(SISSR, 0x1e, 0x20); |
2443 | 2443 | ||
2444 | backupP4_0d = SiS_GetReg(SISPART4, 0x0d); | 2444 | backupP4_0d = SiS_GetReg(SISPART4, 0x0d); |
2445 | if(ivideo->vbflags2 & VB2_30xC) { | 2445 | if(ivideo->vbflags2 & VB2_30xC) { |
2446 | setSISIDXREG(SISPART4,0x0d,~0x07,0x01); | 2446 | setSISIDXREG(SISPART4,0x0d,~0x07,0x01); |
2447 | } else { | 2447 | } else { |
2448 | orSISIDXREG(SISPART4,0x0d,0x04); | 2448 | SiS_SetRegOR(SISPART4, 0x0d, 0x04); |
2449 | } | 2449 | } |
2450 | SiS_DDC2Delay(&ivideo->SiS_Pr, 0x2000); | 2450 | SiS_DDC2Delay(&ivideo->SiS_Pr, 0x2000); |
2451 | 2451 | ||
@@ -2467,10 +2467,10 @@ SiS_Sense30x(struct sis_video_info *ivideo) | |||
2467 | if(SISDoSense(ivideo, vga2, vga2_c)) { | 2467 | if(SISDoSense(ivideo, vga2, vga2_c)) { |
2468 | if(biosflag & 0x01) { | 2468 | if(biosflag & 0x01) { |
2469 | printk(KERN_INFO "%s %s SCART output\n", stdstr, tvstr); | 2469 | printk(KERN_INFO "%s %s SCART output\n", stdstr, tvstr); |
2470 | orSISIDXREG(SISCR, 0x32, 0x04); | 2470 | SiS_SetRegOR(SISCR, 0x32, 0x04); |
2471 | } else { | 2471 | } else { |
2472 | printk(KERN_INFO "%s secondary VGA connection\n", stdstr); | 2472 | printk(KERN_INFO "%s secondary VGA connection\n", stdstr); |
2473 | orSISIDXREG(SISCR, 0x32, 0x10); | 2473 | SiS_SetRegOR(SISCR, 0x32, 0x10); |
2474 | } | 2474 | } |
2475 | } | 2475 | } |
2476 | } | 2476 | } |
@@ -2478,7 +2478,7 @@ SiS_Sense30x(struct sis_video_info *ivideo) | |||
2478 | andSISIDXREG(SISCR, 0x32, 0x3f); | 2478 | andSISIDXREG(SISCR, 0x32, 0x3f); |
2479 | 2479 | ||
2480 | if(ivideo->vbflags2 & VB2_30xCLV) { | 2480 | if(ivideo->vbflags2 & VB2_30xCLV) { |
2481 | orSISIDXREG(SISPART4,0x0d,0x04); | 2481 | SiS_SetRegOR(SISPART4, 0x0d, 0x04); |
2482 | } | 2482 | } |
2483 | 2483 | ||
2484 | if((ivideo->sisvga_engine == SIS_315_VGA) && (ivideo->vbflags2 & VB2_SISYPBPRBRIDGE)) { | 2484 | if((ivideo->sisvga_engine == SIS_315_VGA) && (ivideo->vbflags2 & VB2_SISYPBPRBRIDGE)) { |
@@ -2487,7 +2487,7 @@ SiS_Sense30x(struct sis_video_info *ivideo) | |||
2487 | if((result = SISDoSense(ivideo, svhs, 0x0604))) { | 2487 | if((result = SISDoSense(ivideo, svhs, 0x0604))) { |
2488 | if((result = SISDoSense(ivideo, cvbs, 0x0804))) { | 2488 | if((result = SISDoSense(ivideo, cvbs, 0x0804))) { |
2489 | printk(KERN_INFO "%s %s YPbPr component output\n", stdstr, tvstr); | 2489 | printk(KERN_INFO "%s %s YPbPr component output\n", stdstr, tvstr); |
2490 | orSISIDXREG(SISCR,0x32,0x80); | 2490 | SiS_SetRegOR(SISCR, 0x32, 0x80); |
2491 | } | 2491 | } |
2492 | } | 2492 | } |
2493 | SiS_SetReg(SISPART2, 0x4d, backupP2_4d); | 2493 | SiS_SetReg(SISPART2, 0x4d, backupP2_4d); |
@@ -2498,12 +2498,12 @@ SiS_Sense30x(struct sis_video_info *ivideo) | |||
2498 | if(!(ivideo->vbflags & TV_YPBPR)) { | 2498 | if(!(ivideo->vbflags & TV_YPBPR)) { |
2499 | if((result = SISDoSense(ivideo, svhs, svhs_c))) { | 2499 | if((result = SISDoSense(ivideo, svhs, svhs_c))) { |
2500 | printk(KERN_INFO "%s %s SVIDEO output\n", stdstr, tvstr); | 2500 | printk(KERN_INFO "%s %s SVIDEO output\n", stdstr, tvstr); |
2501 | orSISIDXREG(SISCR, 0x32, 0x02); | 2501 | SiS_SetRegOR(SISCR, 0x32, 0x02); |
2502 | } | 2502 | } |
2503 | if((biosflag & 0x02) || (!result)) { | 2503 | if((biosflag & 0x02) || (!result)) { |
2504 | if(SISDoSense(ivideo, cvbs, cvbs_c)) { | 2504 | if(SISDoSense(ivideo, cvbs, cvbs_c)) { |
2505 | printk(KERN_INFO "%s %s COMPOSITE output\n", stdstr, tvstr); | 2505 | printk(KERN_INFO "%s %s COMPOSITE output\n", stdstr, tvstr); |
2506 | orSISIDXREG(SISCR, 0x32, 0x01); | 2506 | SiS_SetRegOR(SISCR, 0x32, 0x01); |
2507 | } | 2507 | } |
2508 | } | 2508 | } |
2509 | } | 2509 | } |
@@ -2588,12 +2588,12 @@ SiS_SenseCh(struct sis_video_info *ivideo) | |||
2588 | if(temp1 == 0x02) { | 2588 | if(temp1 == 0x02) { |
2589 | printk(KERN_INFO "%s SVIDEO output\n", stdstr); | 2589 | printk(KERN_INFO "%s SVIDEO output\n", stdstr); |
2590 | ivideo->vbflags |= TV_SVIDEO; | 2590 | ivideo->vbflags |= TV_SVIDEO; |
2591 | orSISIDXREG(SISCR, 0x32, 0x02); | 2591 | SiS_SetRegOR(SISCR, 0x32, 0x02); |
2592 | andSISIDXREG(SISCR, 0x32, ~0x05); | 2592 | andSISIDXREG(SISCR, 0x32, ~0x05); |
2593 | } else if (temp1 == 0x01) { | 2593 | } else if (temp1 == 0x01) { |
2594 | printk(KERN_INFO "%s CVBS output\n", stdstr); | 2594 | printk(KERN_INFO "%s CVBS output\n", stdstr); |
2595 | ivideo->vbflags |= TV_AVIDEO; | 2595 | ivideo->vbflags |= TV_AVIDEO; |
2596 | orSISIDXREG(SISCR, 0x32, 0x01); | 2596 | SiS_SetRegOR(SISCR, 0x32, 0x01); |
2597 | andSISIDXREG(SISCR, 0x32, ~0x06); | 2597 | andSISIDXREG(SISCR, 0x32, ~0x06); |
2598 | } else { | 2598 | } else { |
2599 | SiS_SetCH70xxANDOR(&ivideo->SiS_Pr, 0x0e, 0x01, 0xF8); | 2599 | SiS_SetCH70xxANDOR(&ivideo->SiS_Pr, 0x0e, 0x01, 0xF8); |
@@ -2632,18 +2632,18 @@ SiS_SenseCh(struct sis_video_info *ivideo) | |||
2632 | case 0x01: | 2632 | case 0x01: |
2633 | printk(KERN_INFO "%s CVBS output\n", stdstr); | 2633 | printk(KERN_INFO "%s CVBS output\n", stdstr); |
2634 | ivideo->vbflags |= TV_AVIDEO; | 2634 | ivideo->vbflags |= TV_AVIDEO; |
2635 | orSISIDXREG(SISCR, 0x32, 0x01); | 2635 | SiS_SetRegOR(SISCR, 0x32, 0x01); |
2636 | andSISIDXREG(SISCR, 0x32, ~0x06); | 2636 | andSISIDXREG(SISCR, 0x32, ~0x06); |
2637 | break; | 2637 | break; |
2638 | case 0x02: | 2638 | case 0x02: |
2639 | printk(KERN_INFO "%s SVIDEO output\n", stdstr); | 2639 | printk(KERN_INFO "%s SVIDEO output\n", stdstr); |
2640 | ivideo->vbflags |= TV_SVIDEO; | 2640 | ivideo->vbflags |= TV_SVIDEO; |
2641 | orSISIDXREG(SISCR, 0x32, 0x02); | 2641 | SiS_SetRegOR(SISCR, 0x32, 0x02); |
2642 | andSISIDXREG(SISCR, 0x32, ~0x05); | 2642 | andSISIDXREG(SISCR, 0x32, ~0x05); |
2643 | break; | 2643 | break; |
2644 | case 0x04: | 2644 | case 0x04: |
2645 | printk(KERN_INFO "%s SCART output\n", stdstr); | 2645 | printk(KERN_INFO "%s SCART output\n", stdstr); |
2646 | orSISIDXREG(SISCR, 0x32, 0x04); | 2646 | SiS_SetRegOR(SISCR, 0x32, 0x04); |
2647 | andSISIDXREG(SISCR, 0x32, ~0x03); | 2647 | andSISIDXREG(SISCR, 0x32, ~0x03); |
2648 | break; | 2648 | break; |
2649 | default: | 2649 | default: |
@@ -4195,7 +4195,7 @@ sisfb_post_300_buswidth(struct sis_video_info *ivideo) | |||
4195 | int i, j; | 4195 | int i, j; |
4196 | 4196 | ||
4197 | andSISIDXREG(SISSR, 0x15, 0xFB); | 4197 | andSISIDXREG(SISSR, 0x15, 0xFB); |
4198 | orSISIDXREG(SISSR, 0x15, 0x04); | 4198 | SiS_SetRegOR(SISSR, 0x15, 0x04); |
4199 | SiS_SetReg(SISSR, 0x13, 0x00); | 4199 | SiS_SetReg(SISSR, 0x13, 0x00); |
4200 | SiS_SetReg(SISSR, 0x14, 0xBF); | 4200 | SiS_SetReg(SISSR, 0x14, 0xBF); |
4201 | 4201 | ||
@@ -4205,7 +4205,7 @@ sisfb_post_300_buswidth(struct sis_video_info *ivideo) | |||
4205 | writew(temp, FBAddress); | 4205 | writew(temp, FBAddress); |
4206 | if(readw(FBAddress) == temp) | 4206 | if(readw(FBAddress) == temp) |
4207 | break; | 4207 | break; |
4208 | orSISIDXREG(SISSR, 0x3c, 0x01); | 4208 | SiS_SetRegOR(SISSR, 0x3c, 0x01); |
4209 | reg = SiS_GetReg(SISSR, 0x05); | 4209 | reg = SiS_GetReg(SISSR, 0x05); |
4210 | reg = SiS_GetReg(SISSR, 0x05); | 4210 | reg = SiS_GetReg(SISSR, 0x05); |
4211 | andSISIDXREG(SISSR, 0x3c, 0xfe); | 4211 | andSISIDXREG(SISSR, 0x3c, 0xfe); |
@@ -4284,7 +4284,7 @@ sisfb_post_300_rwtest(struct sis_video_info *ivideo, int iteration, int buswidth | |||
4284 | PhysicalAdrOtherPage = PageCapacity * SiS_DRAMType[k][2] + PhysicalAdrHigh; | 4284 | PhysicalAdrOtherPage = PageCapacity * SiS_DRAMType[k][2] + PhysicalAdrHigh; |
4285 | 4285 | ||
4286 | andSISIDXREG(SISSR, 0x15, 0xFB); /* Test */ | 4286 | andSISIDXREG(SISSR, 0x15, 0xFB); /* Test */ |
4287 | orSISIDXREG(SISSR, 0x15, 0x04); /* Test */ | 4287 | SiS_SetRegOR(SISSR, 0x15, 0x04); /* Test */ |
4288 | sr14 = (SiS_DRAMType[k][3] * buswidth) - 1; | 4288 | sr14 = (SiS_DRAMType[k][3] * buswidth) - 1; |
4289 | if(buswidth == 4) sr14 |= 0x80; | 4289 | if(buswidth == 4) sr14 |= 0x80; |
4290 | else if(buswidth == 2) sr14 |= 0x40; | 4290 | else if(buswidth == 2) sr14 |= 0x40; |
@@ -4424,10 +4424,10 @@ sisfb_post_sis300(struct pci_dev *pdev) | |||
4424 | SiS_SetReg(SISSR, 0x1b, v7); | 4424 | SiS_SetReg(SISSR, 0x1b, v7); |
4425 | SiS_SetReg(SISSR, 0x1c, v8); /* ---- */ | 4425 | SiS_SetReg(SISSR, 0x1c, v8); /* ---- */ |
4426 | andSISIDXREG(SISSR, 0x15 ,0xfb); | 4426 | andSISIDXREG(SISSR, 0x15 ,0xfb); |
4427 | orSISIDXREG(SISSR, 0x15, 0x04); | 4427 | SiS_SetRegOR(SISSR, 0x15, 0x04); |
4428 | if(bios) { | 4428 | if(bios) { |
4429 | if(bios[0x53] & 0x02) { | 4429 | if(bios[0x53] & 0x02) { |
4430 | orSISIDXREG(SISSR, 0x19, 0x20); | 4430 | SiS_SetRegOR(SISSR, 0x19, 0x20); |
4431 | } | 4431 | } |
4432 | } | 4432 | } |
4433 | v1 = 0x04; /* DAC pedestal (BIOS 0xe5) */ | 4433 | v1 = 0x04; /* DAC pedestal (BIOS 0xe5) */ |
@@ -4447,7 +4447,7 @@ sisfb_post_sis300(struct pci_dev *pdev) | |||
4447 | SiS_SetReg(SISSR, 0x21, 0x84); | 4447 | SiS_SetReg(SISSR, 0x21, 0x84); |
4448 | SiS_SetReg(SISSR, 0x22, 0x00); | 4448 | SiS_SetReg(SISSR, 0x22, 0x00); |
4449 | SiS_SetReg(SISCR, 0x37, 0x00); | 4449 | SiS_SetReg(SISCR, 0x37, 0x00); |
4450 | orSISIDXREG(SISPART1, 0x24, 0x01); /* unlock crt2 */ | 4450 | SiS_SetRegOR(SISPART1, 0x24, 0x01); /* unlock crt2 */ |
4451 | SiS_SetReg(SISPART1, 0x00, 0x00); | 4451 | SiS_SetReg(SISPART1, 0x00, 0x00); |
4452 | v1 = 0x40; v2 = 0x11; | 4452 | v1 = 0x40; v2 = 0x11; |
4453 | if(bios) { | 4453 | if(bios) { |
@@ -4544,7 +4544,7 @@ sisfb_post_sis300(struct pci_dev *pdev) | |||
4544 | SiS_SetReg(SISSR, 0x05, 0x86); | 4544 | SiS_SetReg(SISSR, 0x05, 0x86); |
4545 | 4545 | ||
4546 | /* Display off */ | 4546 | /* Display off */ |
4547 | orSISIDXREG(SISSR, 0x01, 0x20); | 4547 | SiS_SetRegOR(SISSR, 0x01, 0x20); |
4548 | 4548 | ||
4549 | /* Save mode number in CR34 */ | 4549 | /* Save mode number in CR34 */ |
4550 | SiS_SetReg(SISCR, 0x34, 0x2e); | 4550 | SiS_SetReg(SISCR, 0x34, 0x2e); |
@@ -4662,7 +4662,7 @@ sisfb_post_xgi_ramsize(struct sis_video_info *ivideo) | |||
4662 | * - if running on non-x86, there usually is no VGA window | 4662 | * - if running on non-x86, there usually is no VGA window |
4663 | * at a0000. | 4663 | * at a0000. |
4664 | */ | 4664 | */ |
4665 | orSISIDXREG(SISSR, 0x20, (0x80 | 0x04)); | 4665 | SiS_SetRegOR(SISSR, 0x20, (0x80 | 0x04)); |
4666 | 4666 | ||
4667 | /* Need to map max FB size for finding out about RAM size */ | 4667 | /* Need to map max FB size for finding out about RAM size */ |
4668 | mapsize = ivideo->video_size; | 4668 | mapsize = ivideo->video_size; |
@@ -5190,7 +5190,7 @@ sisfb_post_xgi(struct pci_dev *pdev) | |||
5190 | regd = (regd >> 20) & 0x0f; | 5190 | regd = (regd >> 20) & 0x0f; |
5191 | if(regd == 1) { | 5191 | if(regd == 1) { |
5192 | v1 &= 0xfc; | 5192 | v1 &= 0xfc; |
5193 | orSISIDXREG(SISCR, 0x5f, 0x08); | 5193 | SiS_SetRegOR(SISCR, 0x5f, 0x08); |
5194 | } | 5194 | } |
5195 | SiS_SetReg(SISCR, 0x48, v1); | 5195 | SiS_SetReg(SISCR, 0x48, v1); |
5196 | 5196 | ||
@@ -5326,7 +5326,7 @@ sisfb_post_xgi(struct pci_dev *pdev) | |||
5326 | } | 5326 | } |
5327 | SiS_SetReg(SISCR, 0x45, v1 & 0x0f); | 5327 | SiS_SetReg(SISCR, 0x45, v1 & 0x0f); |
5328 | SiS_SetReg(SISCR, 0x99, (v1 >> 4) & 0x07); | 5328 | SiS_SetReg(SISCR, 0x99, (v1 >> 4) & 0x07); |
5329 | orSISIDXREG(SISCR, 0x40, v1 & 0x80); | 5329 | SiS_SetRegOR(SISCR, 0x40, v1 & 0x80); |
5330 | SiS_SetReg(SISCR, 0x41, v2); | 5330 | SiS_SetReg(SISCR, 0x41, v2); |
5331 | 5331 | ||
5332 | ptr = cs170; | 5332 | ptr = cs170; |
@@ -5663,7 +5663,7 @@ sisfb_post_xgi(struct pci_dev *pdev) | |||
5663 | andSISIDXREG(SISSR, 0x21, 0xdf); | 5663 | andSISIDXREG(SISSR, 0x21, 0xdf); |
5664 | sisfb_post_xgi_ramsize(ivideo); | 5664 | sisfb_post_xgi_ramsize(ivideo); |
5665 | /* Enable read-cache */ | 5665 | /* Enable read-cache */ |
5666 | orSISIDXREG(SISSR, 0x21, 0x20); | 5666 | SiS_SetRegOR(SISSR, 0x21, 0x20); |
5667 | 5667 | ||
5668 | } | 5668 | } |
5669 | 5669 | ||
@@ -5682,13 +5682,13 @@ sisfb_post_xgi(struct pci_dev *pdev) | |||
5682 | 5682 | ||
5683 | /* Sense CRT1 */ | 5683 | /* Sense CRT1 */ |
5684 | if(ivideo->chip == XGI_20) { | 5684 | if(ivideo->chip == XGI_20) { |
5685 | orSISIDXREG(SISCR, 0x32, 0x20); | 5685 | SiS_SetRegOR(SISCR, 0x32, 0x20); |
5686 | } else { | 5686 | } else { |
5687 | reg = SiS_GetReg(SISPART4, 0x00); | 5687 | reg = SiS_GetReg(SISPART4, 0x00); |
5688 | if((reg == 1) || (reg == 2)) { | 5688 | if((reg == 1) || (reg == 2)) { |
5689 | sisfb_sense_crt1(ivideo); | 5689 | sisfb_sense_crt1(ivideo); |
5690 | } else { | 5690 | } else { |
5691 | orSISIDXREG(SISCR, 0x32, 0x20); | 5691 | SiS_SetRegOR(SISCR, 0x32, 0x20); |
5692 | } | 5692 | } |
5693 | } | 5693 | } |
5694 | 5694 | ||
@@ -5702,7 +5702,7 @@ sisfb_post_xgi(struct pci_dev *pdev) | |||
5702 | SiS_SetReg(SISSR, 0x05, 0x86); | 5702 | SiS_SetReg(SISSR, 0x05, 0x86); |
5703 | 5703 | ||
5704 | /* Display off */ | 5704 | /* Display off */ |
5705 | orSISIDXREG(SISSR, 0x01, 0x20); | 5705 | SiS_SetRegOR(SISSR, 0x01, 0x20); |
5706 | 5706 | ||
5707 | /* Save mode number in CR34 */ | 5707 | /* Save mode number in CR34 */ |
5708 | SiS_SetReg(SISCR, 0x34, 0x2e); | 5708 | SiS_SetReg(SISCR, 0x34, 0x2e); |
@@ -6066,9 +6066,9 @@ sisfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
6066 | if((ivideo->sisfb_mode_idx < 0) || | 6066 | if((ivideo->sisfb_mode_idx < 0) || |
6067 | ((sisbios_mode[ivideo->sisfb_mode_idx].mode_no[ivideo->mni]) != 0xFF)) { | 6067 | ((sisbios_mode[ivideo->sisfb_mode_idx].mode_no[ivideo->mni]) != 0xFF)) { |
6068 | /* Enable PCI_LINEAR_ADDRESSING and MMIO_ENABLE */ | 6068 | /* Enable PCI_LINEAR_ADDRESSING and MMIO_ENABLE */ |
6069 | orSISIDXREG(SISSR, IND_SIS_PCI_ADDRESS_SET, (SIS_PCI_ADDR_ENABLE | SIS_MEM_MAP_IO_ENABLE)); | 6069 | SiS_SetRegOR(SISSR, IND_SIS_PCI_ADDRESS_SET, (SIS_PCI_ADDR_ENABLE | SIS_MEM_MAP_IO_ENABLE)); |
6070 | /* Enable 2D accelerator engine */ | 6070 | /* Enable 2D accelerator engine */ |
6071 | orSISIDXREG(SISSR, IND_SIS_MODULE_ENABLE, SIS_ENABLE_2D); | 6071 | SiS_SetRegOR(SISSR, IND_SIS_MODULE_ENABLE, SIS_ENABLE_2D); |
6072 | } | 6072 | } |
6073 | 6073 | ||
6074 | if(sisfb_pdc != 0xff) { | 6074 | if(sisfb_pdc != 0xff) { |