1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-17 04:58:06 +00:00

en(dis)able app io should be exported too

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4193 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nick 2002-01-16 08:43:22 +00:00
parent 95c9227039
commit 730020c247
2 changed files with 17 additions and 3 deletions

View File

@ -27,9 +27,9 @@ extern "C" {
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_config_read(unsigned char bus, unsigned char dev, unsigned char o
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);

View File

@ -720,3 +720,13 @@ int pci_config_read(unsigned char bus, unsigned char dev,
return(0);
}
int enable_app_io( void )
{
return enable_os_io();
}
int disable_app_io( void )
{
return disable_os_io();
}