Skip to content

Commit

Permalink
Staging: xgifb: Remove port macros in osdef.h
Browse files Browse the repository at this point in the history
The port related macros in osdef.h are replaced with calls to out?()
and in?().  This removes the last macros defined in osdef.h, so this
file is no longer needed.

Signed-off-by: Bill Pemberton <[email protected]>
Cc: Arnaud Patard <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
wfp5p authored and gregkh committed Jun 22, 2010
1 parent cc75bb0 commit 1e59f71
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 59 deletions.
1 change: 0 additions & 1 deletion drivers/staging/xgifb/XGI_accel.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
#include <asm/mtrr.h>
#endif

#include "osdef.h"
#include "vgatypes.h"
#include "vb_struct.h"
#include "XGIfb.h"
Expand Down
2 changes: 0 additions & 2 deletions drivers/staging/xgifb/XGI_main_26.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
#include <linux/types.h>
#include <linux/proc_fs.h>

#include "osdef.h"


#ifndef XGIFB_PAN
#define XGIFB_PAN
Expand Down
37 changes: 0 additions & 37 deletions drivers/staging/xgifb/osdef.h

This file was deleted.

2 changes: 0 additions & 2 deletions drivers/staging/xgifb/vb_ext.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#include "osdef.h"

#include <linux/version.h>
#include <asm/io.h>
#include <linux/types.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/xgifb/vb_init.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#include "osdef.h"
#include "vgatypes.h"

#include <linux/version.h>
Expand Down
4 changes: 0 additions & 4 deletions drivers/staging/xgifb/vb_setmode.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#include "osdef.h"




#include <asm/io.h>
#include <linux/types.h>
Expand Down
18 changes: 8 additions & 10 deletions drivers/staging/xgifb/vb_util.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#include "osdef.h"
#include "vb_def.h"
#include "vgatypes.h"
#include "vb_struct.h"
Expand Down Expand Up @@ -28,8 +27,8 @@ void XGINew_SetRegAND(ULONG Port,USHORT Index,USHORT DataAND);
/* --------------------------------------------------------------------- */
void XGINew_SetReg1( ULONG port , USHORT index , USHORT data )
{
OutPortByte( port , index ) ;
OutPortByte( port + 1 , data ) ;
outb(index, port);
outb(data, port + 1);
}


Expand All @@ -56,7 +55,7 @@ void XGINew_SetReg1( ULONG port , USHORT index , USHORT data )
/* --------------------------------------------------------------------- */
void XGINew_SetReg3( ULONG port , USHORT data )
{
OutPortByte( port , data ) ;
outb(data, port);
}


Expand All @@ -68,7 +67,7 @@ void XGINew_SetReg3( ULONG port , USHORT data )
/* --------------------------------------------------------------------- */
void XGINew_SetReg4( ULONG port , ULONG data )
{
OutPortLong( port , data ) ;
outl(data, port);
}


Expand All @@ -82,9 +81,8 @@ UCHAR XGINew_GetReg1( ULONG port , USHORT index )
{
UCHAR data ;

OutPortByte( port , index ) ;
data = InPortByte( port + 1 ) ;

outb(index, port);
data = inb(port + 1) ;
return( data ) ;
}

Expand All @@ -99,7 +97,7 @@ UCHAR XGINew_GetReg2( ULONG port )
{
UCHAR data ;

data = InPortByte( port ) ;
data = inb(port) ;

return( data ) ;
}
Expand All @@ -115,7 +113,7 @@ ULONG XGINew_GetReg3( ULONG port )
{
ULONG data ;

data = InPortLong( port ) ;
data = inl(port) ;

return( data ) ;
}
Expand Down
2 changes: 0 additions & 2 deletions drivers/staging/xgifb/vgatypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
#ifndef _VGATYPES_
#define _VGATYPES_

#include "osdef.h"

#include <linux/ioctl.h>

#ifndef FALSE
Expand Down

0 comments on commit 1e59f71

Please sign in to comment.