Commit cc75bb02 authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

Staging: xgifb: Remove XGI_SetMemory and XGI_MemoryCopy

These were just macros for memset and memcpy, so use those instead.
Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Cc: Arnaud Patard <apatard@mandriva.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent f2f58e14
#ifndef _OSDEF_H_ #ifndef _OSDEF_H_
#define _OSDEF_H_ #define _OSDEF_H_
#define XGI_SetMemory(MemoryAddress,MemorySize,value) memset(MemoryAddress, value, MemorySize)
#define XGI_MemoryCopy(Destination,Soruce,Length) memcpy(Destination,Soruce,Length)
/**********************************************************************/ /**********************************************************************/
#ifdef OutPortByte #ifdef OutPortByte
......
...@@ -175,8 +175,6 @@ if ( !HwDeviceExtension->bIntegratedMMEnabled ) ...@@ -175,8 +175,6 @@ if ( !HwDeviceExtension->bIntegratedMMEnabled )
} }
printk("4"); printk("4");
// XGI_MemoryCopy( VBIOSVersion , HwDeviceExtension->szVBIOSVer , 4 ) ;
// VBIOSVersion[ 4 ] = 0x0 ; // VBIOSVersion[ 4 ] = 0x0 ;
/* 09/07/99 modify by domao */ /* 09/07/99 modify by domao */
......
...@@ -2609,7 +2609,7 @@ void XGI_ClearBuffer( PXGI_HW_DEVICE_INFO HwDeviceExtension , USHORT ModeNo, PVB ...@@ -2609,7 +2609,7 @@ void XGI_ClearBuffer( PXGI_HW_DEVICE_INFO HwDeviceExtension , USHORT ModeNo, PVB
{ {
AdapterMemorySize = 0x40000 ; /* clear 256k */ AdapterMemorySize = 0x40000 ; /* clear 256k */
/* GetDRAMSize( HwDeviceExtension ) ; */ /* GetDRAMSize( HwDeviceExtension ) ; */
XGI_SetMemory( VideoMemoryAddress , AdapterMemorySize , 0 ) ; memset(VideoMemoryAddress, 0, AdapterMemorySize);
} }
else else
{ {
...@@ -2631,7 +2631,7 @@ void XGI_ClearBuffer( PXGI_HW_DEVICE_INFO HwDeviceExtension , USHORT ModeNo, PVB ...@@ -2631,7 +2631,7 @@ void XGI_ClearBuffer( PXGI_HW_DEVICE_INFO HwDeviceExtension , USHORT ModeNo, PVB
*/ */
} }
else else
XGI_SetMemory( VideoMemoryAddress , 0x8000 , 0 ) ; memset(VideoMemoryAddress , 0, 0x8000);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment