[Mplayer-cvslog] CVS: main/libdha libdha.c,1.1,1.2 libdha.h,1.1,1.2
Nick Kurshev
nick at mplayer.dev.hu
Sat Jan 5 19:15:14 CET 2002
Update of /cvsroot/mplayer/main/libdha
In directory mplayer:/var/tmp.root/cvs-serv24998
Modified Files:
libdha.c libdha.h
Log Message:
minor interface changing
Index: libdha.c
===================================================================
RCS file: /cvsroot/mplayer/main/libdha/libdha.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- libdha.c 4 Jan 2002 10:32:26 -0000 1.1
+++ libdha.c 5 Jan 2002 18:15:11 -0000 1.2
@@ -117,32 +117,32 @@
}
#endif
-unsigned char INREG8(unsigned idx)
+unsigned char INPORT8(unsigned idx)
{
return inb(idx);
}
-unsigned short INREG16(unsigned idx)
+unsigned short INPORT16(unsigned idx)
{
return inw(idx);
}
-unsigned INREG32(unsigned idx)
+unsigned INPORT32(unsigned idx)
{
return inl(idx);
}
-void OUTREG8(unsigned idx,unsigned char val)
+void OUTPORT8(unsigned idx,unsigned char val)
{
outb(idx,val);
}
-void OUTREG16(unsigned idx,unsigned short val)
+void OUTPORT16(unsigned idx,unsigned short val)
{
outw(idx,val);
}
-void OUTREG32(unsigned idx,unsigned val)
+void OUTPORT32(unsigned idx,unsigned val)
{
outl(idx,val);
}
Index: libdha.h
===================================================================
RCS file: /cvsroot/mplayer/main/libdha/libdha.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- libdha.h 4 Jan 2002 10:32:26 -0000 1.1
+++ libdha.h 5 Jan 2002 18:15:11 -0000 1.2
@@ -38,14 +38,14 @@
-extern unsigned char INREG8(unsigned idx);
-extern unsigned short INREG16(unsigned idx);
-extern unsigned INREG32(unsigned idx);
-#define INREG(idx) INREG32(idx)
-extern void OUTREG8(unsigned idx,unsigned char val);
-extern void OUTREG16(unsigned idx,unsigned short val);
-extern void OUTREG32(unsigned idx,unsigned val);
-#define OUTREG(idx,val) OUTREG32(idx,val)
+extern unsigned char INPORT8(unsigned idx);
+extern unsigned short INPORT16(unsigned idx);
+extern unsigned INPORT32(unsigned idx);
+#define INPORT(idx) INPORT32(idx)
+extern void OUTPORT8(unsigned idx,unsigned char val);
+extern void OUTPORT16(unsigned idx,unsigned short val);
+extern void OUTPORT32(unsigned idx,unsigned val);
+#define OUTPORT(idx,val) OUTPORT32(idx,val)
extern void * map_phys_mem(unsigned base, unsigned size);
extern void unmap_phys_mem(void *ptr, unsigned size);
More information about the MPlayer-cvslog
mailing list