diff options
author | Aaro Koskinen <aaro.koskinen@iki.fi> | 2010-12-20 16:50:14 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-12-21 22:56:51 -0500 |
commit | 1e1687d78bcaba01c7a22ef8564af2029e8e9919 (patch) | |
tree | 4111f41c83f1f00a1daf3352d033c574c31fb4ed /drivers | |
parent | f48b9644ef330a13c6bb16ca85c2efdbe7e25558 (diff) |
sisfb: replace inSISREG with SiS_GetRegByte
Replace inSISREG() with SiS_GetRegByte().
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')
-rw-r--r-- | drivers/video/sis/sis_main.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/video/sis/sis_main.c b/drivers/video/sis/sis_main.c index 436ae4697ceb..10d190a58bc3 100644 --- a/drivers/video/sis/sis_main.c +++ b/drivers/video/sis/sis_main.c | |||
@@ -768,7 +768,7 @@ sisfbcheckvretracecrt1(struct sis_video_info *ivideo) | |||
768 | if(!sisfballowretracecrt1(ivideo)) | 768 | if(!sisfballowretracecrt1(ivideo)) |
769 | return false; | 769 | return false; |
770 | 770 | ||
771 | if(inSISREG(SISINPSTAT) & 0x08) | 771 | if (SiS_GetRegByte(SISINPSTAT) & 0x08) |
772 | return true; | 772 | return true; |
773 | else | 773 | else |
774 | return false; | 774 | return false; |
@@ -783,9 +783,9 @@ sisfbwaitretracecrt1(struct sis_video_info *ivideo) | |||
783 | return; | 783 | return; |
784 | 784 | ||
785 | watchdog = 65536; | 785 | watchdog = 65536; |
786 | while((!(inSISREG(SISINPSTAT) & 0x08)) && --watchdog); | 786 | while ((!(SiS_GetRegByte(SISINPSTAT) & 0x08)) && --watchdog); |
787 | watchdog = 65536; | 787 | watchdog = 65536; |
788 | while((inSISREG(SISINPSTAT) & 0x08) && --watchdog); | 788 | while ((SiS_GetRegByte(SISINPSTAT) & 0x08) && --watchdog); |
789 | } | 789 | } |
790 | 790 | ||
791 | static bool | 791 | static bool |
@@ -853,7 +853,7 @@ sisfb_setupvbblankflags(struct sis_video_info *ivideo, u32 *vcount, u32 *hcount) | |||
853 | FB_VBLANK_HAVE_VBLANK | | 853 | FB_VBLANK_HAVE_VBLANK | |
854 | FB_VBLANK_HAVE_VCOUNT | | 854 | FB_VBLANK_HAVE_VCOUNT | |
855 | FB_VBLANK_HAVE_HCOUNT); | 855 | FB_VBLANK_HAVE_HCOUNT); |
856 | reg1 = inSISREG(SISINPSTAT); | 856 | reg1 = SiS_GetRegByte(SISINPSTAT); |
857 | if(reg1 & 0x08) ret |= FB_VBLANK_VSYNCING; | 857 | if(reg1 & 0x08) ret |= FB_VBLANK_VSYNCING; |
858 | if(reg1 & 0x01) ret |= FB_VBLANK_VBLANKING; | 858 | if(reg1 & 0x01) ret |= FB_VBLANK_VBLANKING; |
859 | inSISIDXREG(SISCR,0x20,reg1); | 859 | inSISIDXREG(SISCR,0x20,reg1); |
@@ -2233,9 +2233,9 @@ sisfb_sense_crt1(struct sis_video_info *ivideo) | |||
2233 | outSISIDXREG(SISCR, 0x57, 0x5f); | 2233 | outSISIDXREG(SISCR, 0x57, 0x5f); |
2234 | } | 2234 | } |
2235 | orSISIDXREG(SISCR, 0x53, 0x02); | 2235 | orSISIDXREG(SISCR, 0x53, 0x02); |
2236 | while((inSISREG(SISINPSTAT)) & 0x01) break; | 2236 | while ((SiS_GetRegByte(SISINPSTAT)) & 0x01) break; |
2237 | while(!((inSISREG(SISINPSTAT)) & 0x01)) break; | 2237 | while (!((SiS_GetRegByte(SISINPSTAT)) & 0x01)) break; |
2238 | if((inSISREG(SISMISCW)) & 0x10) temp = 1; | 2238 | if ((SiS_GetRegByte(SISMISCW)) & 0x10) temp = 1; |
2239 | andSISIDXREG(SISCR, 0x53, 0xfd); | 2239 | andSISIDXREG(SISCR, 0x53, 0xfd); |
2240 | andSISIDXREG(SISCR, 0x57, 0x00); | 2240 | andSISIDXREG(SISCR, 0x57, 0x00); |
2241 | } | 2241 | } |
@@ -4998,11 +4998,11 @@ sisfb_post_xgi(struct pci_dev *pdev) | |||
4998 | }; | 4998 | }; |
4999 | 4999 | ||
5000 | /* VGA enable */ | 5000 | /* VGA enable */ |
5001 | reg = inSISREG(SISVGAENABLE) | 0x01; | 5001 | reg = SiS_GetRegByte(SISVGAENABLE) | 0x01; |
5002 | outSISREG(SISVGAENABLE, reg); | 5002 | outSISREG(SISVGAENABLE, reg); |
5003 | 5003 | ||
5004 | /* Misc */ | 5004 | /* Misc */ |
5005 | reg = inSISREG(SISMISCR) | 0x01; | 5005 | reg = SiS_GetRegByte(SISMISCR) | 0x01; |
5006 | outSISREG(SISMISCW, reg); | 5006 | outSISREG(SISMISCW, reg); |
5007 | 5007 | ||
5008 | /* Unlock SR */ | 5008 | /* Unlock SR */ |