[Mplayer-cvslog] CVS: main/libdha pci.c,1.5,1.6 libdha.h,1.3,1.4

Nick Kurshev nick at mplayer.dev.hu
Wed Jan 16 09:43:24 CET 2002


Update of /cvsroot/mplayer/main/libdha
In directory mplayer:/var/tmp.root/cvs-serv23659/main/libdha

Modified Files:
	pci.c libdha.h 
Log Message:
en(dis)able app io should be exported too

Index: pci.c
===================================================================
RCS file: /cvsroot/mplayer/main/libdha/pci.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- pci.c	15 Jan 2002 15:59:53 -0000	1.5
+++ pci.c	16 Jan 2002 08:43:22 -0000	1.6
@@ -720,3 +720,13 @@
     
     return(0);
 }
+
+int enable_app_io( void )
+{
+  return enable_os_io();  
+}
+
+int disable_app_io( void )
+{
+  return disable_os_io();
+}
\ No newline at end of file

Index: libdha.h
===================================================================
RCS file: /cvsroot/mplayer/main/libdha/libdha.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- libdha.h	15 Jan 2002 15:59:53 -0000	1.3
+++ libdha.h	16 Jan 2002 08:43:22 -0000	1.4
@@ -27,9 +27,9 @@
 
 typedef struct pciinfo_s
 {
-  int	bus,card,func ;			/* PCI/AGP bus:card:func */
-  unsigned short vendor,device ;			/* Card vendor+device ID */
-  unsigned	base0,base1,base2,baserom ;	/* Memory and I/O base addresses */
+  int		bus,card,func;			/* PCI/AGP bus:card:func */
+  unsigned short vendor,device;			/* Card vendor+device ID */
+  unsigned	base0,base1,base2,baserom;	/* Memory and I/O base addresses */
 }pciinfo_t;
 
 /* needed for mga_vid */
@@ -40,6 +40,10 @@
 extern int  pci_scan(pciinfo_t *pci_list,unsigned *num_card);
 
 
+	    /* Enables/disables accessing to IO space from application side.
+	       Should return 0 if o'k or errno on error. */
+extern int enable_app_io( void );
+extern int disable_app_io( void );
 
 extern unsigned char  INPORT8(unsigned idx);
 extern unsigned short INPORT16(unsigned idx);




More information about the MPlayer-cvslog mailing list