+++ /dev/null
-#ifndef _OSDEF_H_
-#define _OSDEF_H_
-
-/**********************************************************************/
-
-#ifdef OutPortByte
-#undef OutPortByte
-#endif /* OutPortByte */
-
-#ifdef OutPortWord
-#undef OutPortWord
-#endif /* OutPortWord */
-
-#ifdef OutPortLong
-#undef OutPortLong
-#endif /* OutPortLong */
-
-#ifdef InPortByte
-#undef InPortByte
-#endif /* InPortByte */
-
-#ifdef InPortWord
-#undef InPortWord
-#endif /* InPortWord */
-
-#ifdef InPortLong
-#undef InPortLong
-#endif /* InPortLong */
-
-#define OutPortByte(p,v) outb((u8)(v),(p))
-#define OutPortWord(p,v) outw((u16)(v),(p))
-#define OutPortLong(p,v) outl((u32)(v),(p))
-#define InPortByte(p) inb(p)
-#define InPortWord(p) inw(p)
-#define InPortLong(p) inl(p)
-
-#endif // _OSDEF_H_
-#include "osdef.h"
#include "vb_def.h"
#include "vgatypes.h"
#include "vb_struct.h"
/* --------------------------------------------------------------------- */
void XGINew_SetReg1( ULONG port , USHORT index , USHORT data )
{
- OutPortByte( port , index ) ;
- OutPortByte( port + 1 , data ) ;
+ outb(index, port);
+ outb(data, port + 1);
}
/* --------------------------------------------------------------------- */
void XGINew_SetReg3( ULONG port , USHORT data )
{
- OutPortByte( port , data ) ;
+ outb(data, port);
}
/* --------------------------------------------------------------------- */
void XGINew_SetReg4( ULONG port , ULONG data )
{
- OutPortLong( port , data ) ;
+ outl(data, port);
}
{
UCHAR data ;
- OutPortByte( port , index ) ;
- data = InPortByte( port + 1 ) ;
-
+ outb(index, port);
+ data = inb(port + 1) ;
return( data ) ;
}
{
UCHAR data ;
- data = InPortByte( port ) ;
+ data = inb(port) ;
return( data ) ;
}
{
ULONG data ;
- data = InPortLong( port ) ;
+ data = inl(port) ;
return( data ) ;
}