aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@iki.fi>2011-03-13 06:26:26 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-03-14 14:52:33 -0400
commitdc50556bbbee6a2ec642aac4c4c46364cca191b3 (patch)
tree25663490ab6af8330ee5ad03e9b60f7132542515 /drivers/staging
parentec9e5d3e73d675915ac572631ef0d5dcc03d2b6c (diff)
staging: xgifb: rename XGINew_SetRegAND() to xgifb_reg_and()
Rename XGINew_SetRegAND() to xgifb_reg_and(). Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/xgifb/vb_init.c4
-rw-r--r--drivers/staging/xgifb/vb_setmode.c54
-rw-r--r--drivers/staging/xgifb/vb_util.c2
-rw-r--r--drivers/staging/xgifb/vb_util.h2
4 files changed, 31 insertions, 31 deletions
diff --git a/drivers/staging/xgifb/vb_init.c b/drivers/staging/xgifb/vb_init.c
index 45491be70b0..61d137098aa 100644
--- a/drivers/staging/xgifb/vb_init.c
+++ b/drivers/staging/xgifb/vb_init.c
@@ -69,7 +69,7 @@ static unsigned char XGINew_GetXG20DRAMType(struct xgi_hw_device_info *HwDeviceE
69 data = 1; /* DDRII */ 69 data = 1; /* DDRII */
70 return data; 70 return data;
71 } else if (HwDeviceExtension->jChipType == XG21) { 71 } else if (HwDeviceExtension->jChipType == XG21) {
72 XGINew_SetRegAND(pVBInfo->P3d4, 0xB4, ~0x02); /* Independent GPIO control */ 72 xgifb_reg_and(pVBInfo->P3d4, 0xB4, ~0x02); /* Independent GPIO control */
73 udelay(800); 73 udelay(800);
74 xgifb_reg_or(pVBInfo->P3d4, 0x4A, 0x80); /* Enable GPIOH read */ 74 xgifb_reg_or(pVBInfo->P3d4, 0x4A, 0x80); /* Enable GPIOH read */
75 temp = xgifb_reg_get(pVBInfo->P3d4, 0x48); /* GPIOF 0:DVI 1:DVO */ 75 temp = xgifb_reg_get(pVBInfo->P3d4, 0x48); /* GPIOF 0:DVI 1:DVO */
@@ -1211,7 +1211,7 @@ static void XGINew_GetXG21Sense(struct xgi_hw_device_info *HwDeviceExtension,
1211 xgifb_reg_and_or(pVBInfo->P3d4, 0x38, ~0xE0, 0x80); /* TMDS on chip */ 1211 xgifb_reg_and_or(pVBInfo->P3d4, 0x38, ~0xE0, 0x80); /* TMDS on chip */
1212 else 1212 else
1213 xgifb_reg_and_or(pVBInfo->P3d4, 0x38, ~0xE0, 0xA0); /* Only DVO on chip */ 1213 xgifb_reg_and_or(pVBInfo->P3d4, 0x38, ~0xE0, 0xA0); /* Only DVO on chip */
1214 XGINew_SetRegAND(pVBInfo->P3d4, 0x4A, ~0x20); /* Disable read GPIOF */ 1214 xgifb_reg_and(pVBInfo->P3d4, 0x4A, ~0x20); /* Disable read GPIOF */
1215 } 1215 }
1216#if 1 1216#if 1
1217 } 1217 }
diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/staging/xgifb/vb_setmode.c
index 49791c47d8e..8762a532769 100644
--- a/drivers/staging/xgifb/vb_setmode.c
+++ b/drivers/staging/xgifb/vb_setmode.c
@@ -370,7 +370,7 @@ static unsigned char XGI_SetDefaultVCLK(struct vb_device_info *pVBInfo)
370 xgifb_reg_set(pVBInfo->P3c4, 0x2B, pVBInfo->VCLKData[1].SR2B); 370 xgifb_reg_set(pVBInfo->P3c4, 0x2B, pVBInfo->VCLKData[1].SR2B);
371 xgifb_reg_set(pVBInfo->P3c4, 0x2C, pVBInfo->VCLKData[1].SR2C); 371 xgifb_reg_set(pVBInfo->P3c4, 0x2C, pVBInfo->VCLKData[1].SR2C);
372 372
373 XGINew_SetRegAND(pVBInfo->P3c4, 0x31, ~0x30); 373 xgifb_reg_and(pVBInfo->P3c4, 0x31, ~0x30);
374 return 0; 374 return 0;
375} 375}
376 376
@@ -964,8 +964,8 @@ static void XGI_SetXG21LCD(struct vb_device_info *pVBInfo,
964 964
965 xgifb_reg_or(pVBInfo->P3c4, 0x1E, 0x01); /* Negative blank polarity */ 965 xgifb_reg_or(pVBInfo->P3c4, 0x1E, 0x01); /* Negative blank polarity */
966 966
967 XGINew_SetRegAND(pVBInfo->P3c4, 0x30, ~0x20); 967 xgifb_reg_and(pVBInfo->P3c4, 0x30, ~0x20);
968 XGINew_SetRegAND(pVBInfo->P3c4, 0x35, ~0x80); 968 xgifb_reg_and(pVBInfo->P3c4, 0x35, ~0x80);
969 969
970 if (ModeNo <= 0x13) { 970 if (ModeNo <= 0x13) {
971 b3CC = (unsigned char) inb(XGI_P3cc); 971 b3CC = (unsigned char) inb(XGI_P3cc);
@@ -1012,8 +1012,8 @@ static void XGI_SetXG27LCD(struct vb_device_info *pVBInfo,
1012 1012
1013 xgifb_reg_or(pVBInfo->P3c4, 0x1E, 0x01); /* Negative blank polarity */ 1013 xgifb_reg_or(pVBInfo->P3c4, 0x1E, 0x01); /* Negative blank polarity */
1014 1014
1015 XGINew_SetRegAND(pVBInfo->P3c4, 0x30, ~0x20); /* Hsync polarity */ 1015 xgifb_reg_and(pVBInfo->P3c4, 0x30, ~0x20); /* Hsync polarity */
1016 XGINew_SetRegAND(pVBInfo->P3c4, 0x35, ~0x80); /* Vsync polarity */ 1016 xgifb_reg_and(pVBInfo->P3c4, 0x35, ~0x80); /* Vsync polarity */
1017 1017
1018 if (ModeNo <= 0x13) { 1018 if (ModeNo <= 0x13) {
1019 b3CC = (unsigned char) inb(XGI_P3cc); 1019 b3CC = (unsigned char) inb(XGI_P3cc);
@@ -1041,7 +1041,7 @@ static void XGI_UpdateXG21CRTC(unsigned short ModeNo, struct vb_device_info *pVB
1041{ 1041{
1042 int i, index = -1; 1042 int i, index = -1;
1043 1043
1044 XGINew_SetRegAND(pVBInfo->P3d4, 0x11, 0x7F); /* Unlock CR0~7 */ 1044 xgifb_reg_and(pVBInfo->P3d4, 0x11, 0x7F); /* Unlock CR0~7 */
1045 if (ModeNo <= 0x13) { 1045 if (ModeNo <= 0x13) {
1046 for (i = 0; i < 12; i++) { 1046 for (i = 0; i < 12; i++) {
1047 if (ModeNo == pVBInfo->UpdateCRT1[i].ModeID) 1047 if (ModeNo == pVBInfo->UpdateCRT1[i].ModeID)
@@ -4081,7 +4081,7 @@ static unsigned char XGI_XG21GetPSCValue(struct vb_device_info *pVBInfo)
4081 unsigned char CR4A, temp; 4081 unsigned char CR4A, temp;
4082 4082
4083 CR4A = xgifb_reg_get(pVBInfo->P3d4, 0x4A); 4083 CR4A = xgifb_reg_get(pVBInfo->P3d4, 0x4A);
4084 XGINew_SetRegAND(pVBInfo->P3d4, 0x4A, ~0x23); /* enable GPIO write */ 4084 xgifb_reg_and(pVBInfo->P3d4, 0x4A, ~0x23); /* enable GPIO write */
4085 4085
4086 temp = xgifb_reg_get(pVBInfo->P3d4, 0x48); 4086 temp = xgifb_reg_get(pVBInfo->P3d4, 0x48);
4087 4087
@@ -4102,7 +4102,7 @@ static unsigned char XGI_XG27GetPSCValue(struct vb_device_info *pVBInfo)
4102 unsigned char CR4A, CRB4, temp; 4102 unsigned char CR4A, CRB4, temp;
4103 4103
4104 CR4A = xgifb_reg_get(pVBInfo->P3d4, 0x4A); 4104 CR4A = xgifb_reg_get(pVBInfo->P3d4, 0x4A);
4105 XGINew_SetRegAND(pVBInfo->P3d4, 0x4A, ~0x0C); /* enable GPIO write */ 4105 xgifb_reg_and(pVBInfo->P3d4, 0x4A, ~0x0C); /* enable GPIO write */
4106 4106
4107 temp = xgifb_reg_get(pVBInfo->P3d4, 0x48); 4107 temp = xgifb_reg_get(pVBInfo->P3d4, 0x48);
4108 4108
@@ -5662,10 +5662,10 @@ static void XGI_SetGroup2(unsigned short ModeNo, unsigned short ModeIdIndex,
5662 tempax = (unsigned char) xgifb_reg_get(pVBInfo->Part2Port, 5662 tempax = (unsigned char) xgifb_reg_get(pVBInfo->Part2Port,
5663 0x01); 5663 0x01);
5664 tempax--; 5664 tempax--;
5665 XGINew_SetRegAND(pVBInfo->Part2Port, 0x01, tempax); 5665 xgifb_reg_and(pVBInfo->Part2Port, 0x01, tempax);
5666 5666
5667 /* if ( !( pVBInfo->VBType & VB_XGI301C ) ) */ 5667 /* if ( !( pVBInfo->VBType & VB_XGI301C ) ) */
5668 XGINew_SetRegAND(pVBInfo->Part2Port, 0x00, 0xEF); 5668 xgifb_reg_and(pVBInfo->Part2Port, 0x00, 0xEF);
5669 } 5669 }
5670 5670
5671 if (pVBInfo->VBInfo & SetCRT2ToHiVisionTV) { 5671 if (pVBInfo->VBInfo & SetCRT2ToHiVisionTV) {
@@ -5958,7 +5958,7 @@ static void XGI_SetTap4Regs(struct vb_device_info *pVBInfo)
5958 return; 5958 return;
5959 5959
5960#ifndef Tap4 5960#ifndef Tap4
5961 XGINew_SetRegAND(pVBInfo->Part2Port, 0x4E, 0xEB); /* Disable Tap4 */ 5961 xgifb_reg_and(pVBInfo->Part2Port, 0x4E, 0xEB); /* Disable Tap4 */
5962#else /* Tap4 Setting */ 5962#else /* Tap4 Setting */
5963 5963
5964 Tap4TimingPtr = XGI_GetTap4Ptr(0, pVBInfo); /* Set Horizontal Scaling */ 5964 Tap4TimingPtr = XGI_GetTap4Ptr(0, pVBInfo); /* Set Horizontal Scaling */
@@ -6292,7 +6292,7 @@ void XGI_XG21BLSignalVDD(unsigned short tempbh, unsigned short tempbl,
6292 CR4A = xgifb_reg_get(pVBInfo->P3d4, 0x4A); 6292 CR4A = xgifb_reg_get(pVBInfo->P3d4, 0x4A);
6293 tempbh &= 0x23; 6293 tempbh &= 0x23;
6294 tempbl &= 0x23; 6294 tempbl &= 0x23;
6295 XGINew_SetRegAND(pVBInfo->P3d4, 0x4A, ~tempbh); /* enable GPIO write */ 6295 xgifb_reg_and(pVBInfo->P3d4, 0x4A, ~tempbh); /* enable GPIO write */
6296 6296
6297 if (tempbh & 0x20) { 6297 if (tempbh & 0x20) {
6298 temp = (tempbl >> 4) & 0x02; 6298 temp = (tempbl >> 4) & 0x02;
@@ -6335,7 +6335,7 @@ void XGI_XG27BLSignalVDD(unsigned short tempbh, unsigned short tempbl,
6335 tempbl &= 0x03; 6335 tempbl &= 0x03;
6336 tempbh <<= 2; 6336 tempbh <<= 2;
6337 tempbl <<= 2; /* GPIOC,GPIOD */ 6337 tempbl <<= 2; /* GPIOC,GPIOD */
6338 XGINew_SetRegAND(pVBInfo->P3d4, 0x4A, ~tempbh); /* enable GPIO write */ 6338 xgifb_reg_and(pVBInfo->P3d4, 0x4A, ~tempbh); /* enable GPIO write */
6339 xgifb_reg_and_or(pVBInfo->P3d4, 0x48, ~tempbh, tempbl); 6339 xgifb_reg_and_or(pVBInfo->P3d4, 0x48, ~tempbh, tempbl);
6340} 6340}
6341 6341
@@ -6941,7 +6941,7 @@ void XGI_DisableBridge(struct xgi_hw_device_info *HwDeviceExtension,
6941 } 6941 }
6942 } 6942 }
6943 6943
6944 XGINew_SetRegAND(pVBInfo->Part4Port, 0x1F, tempah); /* disable part4_1f */ 6944 xgifb_reg_and(pVBInfo->Part4Port, 0x1F, tempah); /* disable part4_1f */
6945 6945
6946 if (pVBInfo->VBType & (VB_XGI302LV | VB_XGI301C)) { 6946 if (pVBInfo->VBType & (VB_XGI302LV | VB_XGI301C)) {
6947 if (((pVBInfo->VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA))) 6947 if (((pVBInfo->VBInfo & (SetCRT2ToLCD | SetCRT2ToLCDA)))
@@ -6961,13 +6961,13 @@ void XGI_DisableBridge(struct xgi_hw_device_info *HwDeviceExtension,
6961 if (pVBInfo->VBInfo & SetCRT2ToLCDA) { 6961 if (pVBInfo->VBInfo & SetCRT2ToLCDA) {
6962 if ((pVBInfo->SetFlag & DisableChA) || (pVBInfo->VBInfo 6962 if ((pVBInfo->SetFlag & DisableChA) || (pVBInfo->VBInfo
6963 & SetCRT2ToLCDA)) 6963 & SetCRT2ToLCDA))
6964 XGINew_SetRegAND(pVBInfo->Part1Port, 0x1e, 0xdf); /* Power down */ 6964 xgifb_reg_and(pVBInfo->Part1Port, 0x1e, 0xdf); /* Power down */
6965 } 6965 }
6966 6966
6967 XGINew_SetRegAND(pVBInfo->P3c4, 0x32, 0xdf); /* disable TV as primary VGA swap */ 6967 xgifb_reg_and(pVBInfo->P3c4, 0x32, 0xdf); /* disable TV as primary VGA swap */
6968 6968
6969 if ((pVBInfo->VBInfo & (SetSimuScanMode | SetCRT2ToDualEdge))) 6969 if ((pVBInfo->VBInfo & (SetSimuScanMode | SetCRT2ToDualEdge)))
6970 XGINew_SetRegAND(pVBInfo->Part2Port, 0x00, 0xdf); 6970 xgifb_reg_and(pVBInfo->Part2Port, 0x00, 0xdf);
6971 6971
6972 if ((pVBInfo->SetFlag & DisableChB) || (pVBInfo->VBInfo 6972 if ((pVBInfo->SetFlag & DisableChB) || (pVBInfo->VBInfo
6973 & (DisableCRT2Display | SetSimuScanMode)) 6973 & (DisableCRT2Display | SetSimuScanMode))
@@ -6985,14 +6985,14 @@ void XGI_DisableBridge(struct xgi_hw_device_info *HwDeviceExtension,
6985 | SetCRT2ToLCD | SetCRT2ToTV))) { 6985 | SetCRT2ToLCD | SetCRT2ToTV))) {
6986 tempah = xgifb_reg_get(pVBInfo->Part1Port, 0x00); /* save Part1 index 0 */ 6986 tempah = xgifb_reg_get(pVBInfo->Part1Port, 0x00); /* save Part1 index 0 */
6987 xgifb_reg_or(pVBInfo->Part1Port, 0x00, 0x10); /* BTDAC = 1, avoid VB reset */ 6987 xgifb_reg_or(pVBInfo->Part1Port, 0x00, 0x10); /* BTDAC = 1, avoid VB reset */
6988 XGINew_SetRegAND(pVBInfo->Part1Port, 0x1E, 0xDF); /* disable CRT2 */ 6988 xgifb_reg_and(pVBInfo->Part1Port, 0x1E, 0xDF); /* disable CRT2 */
6989 xgifb_reg_set(pVBInfo->Part1Port, 0x00, tempah); /* restore Part1 index 0 */ 6989 xgifb_reg_set(pVBInfo->Part1Port, 0x00, tempah); /* restore Part1 index 0 */
6990 } 6990 }
6991 } else { /* {301} */ 6991 } else { /* {301} */
6992 if (pVBInfo->VBInfo & (SetCRT2ToLCD | SetCRT2ToTV)) { 6992 if (pVBInfo->VBInfo & (SetCRT2ToLCD | SetCRT2ToTV)) {
6993 xgifb_reg_or(pVBInfo->Part1Port, 0x00, 0x80); /* BScreenOff=1 */ 6993 xgifb_reg_or(pVBInfo->Part1Port, 0x00, 0x80); /* BScreenOff=1 */
6994 XGINew_SetRegAND(pVBInfo->Part1Port, 0x1E, 0xDF); /* Disable CRT2 */ 6994 xgifb_reg_and(pVBInfo->Part1Port, 0x1E, 0xDF); /* Disable CRT2 */
6995 XGINew_SetRegAND(pVBInfo->P3c4, 0x32, 0xDF); /* Disable TV asPrimary VGA swap */ 6995 xgifb_reg_and(pVBInfo->P3c4, 0x32, 0xDF); /* Disable TV asPrimary VGA swap */
6996 } 6996 }
6997 6997
6998 if (pVBInfo->VBInfo & (DisableCRT2Display | SetCRT2ToLCDA 6998 if (pVBInfo->VBInfo & (DisableCRT2Display | SetCRT2ToLCDA
@@ -7209,7 +7209,7 @@ static void SetSpectrum(struct vb_device_info *pVBInfo)
7209 7209
7210 index = XGI_GetLCDCapPtr(pVBInfo); 7210 index = XGI_GetLCDCapPtr(pVBInfo);
7211 7211
7212 XGINew_SetRegAND(pVBInfo->Part4Port, 0x30, 0x8F); /* disable down spectrum D[4] */ 7212 xgifb_reg_and(pVBInfo->Part4Port, 0x30, 0x8F); /* disable down spectrum D[4] */
7213 XGI_LongWait(pVBInfo); 7213 XGI_LongWait(pVBInfo);
7214 xgifb_reg_or(pVBInfo->Part4Port, 0x30, 0x20); /* reset spectrum */ 7214 xgifb_reg_or(pVBInfo->Part4Port, 0x30, 0x20); /* reset spectrum */
7215 XGI_LongWait(pVBInfo); 7215 XGI_LongWait(pVBInfo);
@@ -8085,7 +8085,7 @@ void XGI_EnableBridge(struct xgi_hw_device_info *HwDeviceExtension,
8085 xgifb_reg_or(pVBInfo->Part1Port, 8085 xgifb_reg_or(pVBInfo->Part1Port,
8086 0x2E, 0x80); /* BVBDOENABLE = 1 */ 8086 0x2E, 0x80); /* BVBDOENABLE = 1 */
8087 8087
8088 XGINew_SetRegAND(pVBInfo->Part1Port, 0x00, 0x7F); /* BScreenOFF = 0 */ 8088 xgifb_reg_and(pVBInfo->Part1Port, 0x00, 0x7F); /* BScreenOFF = 0 */
8089 } 8089 }
8090 } 8090 }
8091 8091
@@ -8099,11 +8099,11 @@ void XGI_EnableBridge(struct xgi_hw_device_info *HwDeviceExtension,
8099 || (pVBInfo->VBInfo 8099 || (pVBInfo->VBInfo
8100 & (SetCRT2ToLCD 8100 & (SetCRT2ToLCD
8101 | SetCRT2ToLCDA))) 8101 | SetCRT2ToLCDA)))
8102 XGINew_SetRegAND( 8102 xgifb_reg_and(
8103 pVBInfo->Part4Port, 8103 pVBInfo->Part4Port,
8104 0x2A, 0x7F); /* LVDS PLL power on */ 8104 0x2A, 0x7F); /* LVDS PLL power on */
8105 } 8105 }
8106 XGINew_SetRegAND(pVBInfo->Part4Port, 0x30, 0x7F); /* LVDS Driver power on */ 8106 xgifb_reg_and(pVBInfo->Part4Port, 0x30, 0x7F); /* LVDS Driver power on */
8107 } 8107 }
8108 } 8108 }
8109 8109
@@ -8166,7 +8166,7 @@ void XGI_EnableBridge(struct xgi_hw_device_info *HwDeviceExtension,
8166 if (!(tempah & 0x80)) 8166 if (!(tempah & 0x80))
8167 xgifb_reg_or(pVBInfo->Part1Port, 0x2E, 0x80); /* BVBDOENABLE = 1 */ 8167 xgifb_reg_or(pVBInfo->Part1Port, 0x2E, 0x80); /* BVBDOENABLE = 1 */
8168 8168
8169 XGINew_SetRegAND(pVBInfo->Part1Port, 0x00, 0x7F); 8169 xgifb_reg_and(pVBInfo->Part1Port, 0x00, 0x7F);
8170 XGI_DisplayOn(HwDeviceExtension, pVBInfo); 8170 XGI_DisplayOn(HwDeviceExtension, pVBInfo);
8171 } /* End of VB */ 8171 } /* End of VB */
8172} 8172}
@@ -8242,8 +8242,8 @@ static void XGI_SetCRT1Group(struct xgi_hw_device_info *HwDeviceExtension,
8242 temp = xgifb_reg_get(pVBInfo->P3d4, 0x38); 8242 temp = xgifb_reg_get(pVBInfo->P3d4, 0x38);
8243 if (temp & 0xA0) { 8243 if (temp & 0xA0) {
8244 8244
8245 /* XGINew_SetRegAND(pVBInfo->P3d4, 0x4A, ~0x20); *//* Enable write GPIOF */ 8245 /* xgifb_reg_and(pVBInfo->P3d4, 0x4A, ~0x20); *//* Enable write GPIOF */
8246 /* XGINew_SetRegAND(pVBInfo->P3d4, 0x48, ~0x20); *//* P. DWN */ 8246 /* xgifb_reg_and(pVBInfo->P3d4, 0x48, ~0x20); *//* P. DWN */
8247 /* XG21 CRT1 Timing */ 8247 /* XG21 CRT1 Timing */
8248 if (HwDeviceExtension->jChipType == XG27) 8248 if (HwDeviceExtension->jChipType == XG27)
8249 XGI_SetXG27CRTC(ModeNo, ModeIdIndex, 8249 XGI_SetXG27CRTC(ModeNo, ModeIdIndex,
diff --git a/drivers/staging/xgifb/vb_util.c b/drivers/staging/xgifb/vb_util.c
index 9eb80600ac3..d8429e836e8 100644
--- a/drivers/staging/xgifb/vb_util.c
+++ b/drivers/staging/xgifb/vb_util.c
@@ -34,7 +34,7 @@ void xgifb_reg_and_or(unsigned long Port, unsigned short Index,
34 xgifb_reg_set(Port, Index, temp); 34 xgifb_reg_set(Port, Index, temp);
35} 35}
36 36
37void XGINew_SetRegAND(unsigned long Port, unsigned short Index, 37void xgifb_reg_and(unsigned long Port, unsigned short Index,
38 unsigned short DataAND) 38 unsigned short DataAND)
39{ 39{
40 unsigned short temp; 40 unsigned short temp;
diff --git a/drivers/staging/xgifb/vb_util.h b/drivers/staging/xgifb/vb_util.h
index e8e36a261b0..98af1c0eaa4 100644
--- a/drivers/staging/xgifb/vb_util.h
+++ b/drivers/staging/xgifb/vb_util.h
@@ -3,7 +3,7 @@
3extern void xgifb_reg_set(unsigned long, unsigned short, unsigned short); 3extern void xgifb_reg_set(unsigned long, unsigned short, unsigned short);
4extern unsigned char xgifb_reg_get(unsigned long, unsigned short); 4extern unsigned char xgifb_reg_get(unsigned long, unsigned short);
5extern void xgifb_reg_or(unsigned long, unsigned short, unsigned short); 5extern void xgifb_reg_or(unsigned long, unsigned short, unsigned short);
6extern void XGINew_SetRegAND(unsigned long Port,unsigned short Index,unsigned short DataAND); 6extern void xgifb_reg_and(unsigned long, unsigned short, unsigned short);
7extern void xgifb_reg_and_or(unsigned long, unsigned short, unsigned short, unsigned short); 7extern void xgifb_reg_and_or(unsigned long, unsigned short, unsigned short, unsigned short);
8#endif 8#endif
9 9