diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2010-06-17 13:10:45 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-06-22 14:30:54 -0700 |
commit | 490ce818c6ff60257b543207aa042991e32017af (patch) | |
tree | 0d9099a147cb4165cc96a6019ef66678c284888f /drivers/staging/xgifb/vb_setmode.c | |
parent | fc3678a6c0ee4eb59244a5ba2da58ca47fd20501 (diff) | |
download | op-kernel-dev-490ce818c6ff60257b543207aa042991e32017af.zip op-kernel-dev-490ce818c6ff60257b543207aa042991e32017af.tar.gz |
Staging: xgifb: Remove unused code
Remove code that was removed using #if 0
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Arnaud Patard <apatard@mandriva.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/xgifb/vb_setmode.c')
-rw-r--r-- | drivers/staging/xgifb/vb_setmode.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/staging/xgifb/vb_setmode.c index 662ca77..4a2fa32 100644 --- a/drivers/staging/xgifb/vb_setmode.c +++ b/drivers/staging/xgifb/vb_setmode.c @@ -2579,53 +2579,6 @@ void XGI_WriteDAC( USHORT dl , USHORT ah , USHORT al , USHORT dh,PVB_DEVICE_INFO XGINew_SetReg3( pVBInfo->P3c9 , ( USHORT )bl ) ; } -#if 0 -/* --------------------------------------------------------------------- */ -/* Function : XGI_ClearBuffer */ -/* Input : */ -/* Output : */ -/* Description : */ -/* --------------------------------------------------------------------- */ -void XGI_ClearBuffer( PXGI_HW_DEVICE_INFO HwDeviceExtension , USHORT ModeNo, PVB_DEVICE_INFO pVBInfo) -{ - void *VideoMemoryAddress = (void *)HwDeviceExtension->pjVideoMemoryAddress; - ULONG AdapterMemorySize = ( ULONG )HwDeviceExtension->ulVideoMemorySize ; - unsigned short *pBuffer ; - int i ; - - if ( pVBInfo->ModeType >= ModeEGA ) - { - if ( ModeNo > 0x13 ) - { - AdapterMemorySize = 0x40000 ; /* clear 256k */ - /* GetDRAMSize( HwDeviceExtension ) ; */ - memset(VideoMemoryAddress, 0, AdapterMemorySize); - } - else - { -/* - pBuffer = VideoMemoryAddress ; - for( i = 0 ; i < 0x4000 ; i++ ) - pBuffer[ i ] = 0x0000 ; -*/ - } - } - else - { - pBuffer = VideoMemoryAddress ; - if ( pVBInfo->ModeType < ModeCGA ) - { -/* - for ( i = 0 ; i < 0x4000 ; i++ ) - pBuffer[ i ] = 0x0720 ; -*/ - } - else - memset(VideoMemoryAddress , 0, 0x8000); - } -} - -#endif /* --------------------------------------------------------------------- */ /* Function : XGI_SetLCDAGroup */ /* Input : */ |