2019-01-01 00:11:28 +00:00
|
|
|
/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
|
1998-12-22 17:26:00 +00:00
|
|
|
This file is part of the GNU C Library.
|
|
|
|
Contributed by Phil Blundell, based on the Alpha version by
|
|
|
|
David Mosberger.
|
|
|
|
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
2001-07-06 04:56:23 +00:00
|
|
|
modify it under the terms of the GNU Lesser General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2.1 of the License, or (at your option) any later version.
|
1998-12-22 17:26:00 +00:00
|
|
|
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2001-07-06 04:56:23 +00:00
|
|
|
Lesser General Public License for more details.
|
1998-12-22 17:26:00 +00:00
|
|
|
|
2001-07-06 04:56:23 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public
|
2012-03-09 23:56:38 +00:00
|
|
|
License along with the GNU C Library. If not, see
|
|
|
|
<http://www.gnu.org/licenses/>. */
|
1998-12-22 17:26:00 +00:00
|
|
|
|
2019-05-29 14:53:09 +00:00
|
|
|
#include <shlib-compat.h>
|
|
|
|
|
|
|
|
#if SHLIB_COMPAT (libc, GLIBC_2_4, GLIBC_2_30)
|
|
|
|
# include <errno.h>
|
1998-12-22 17:26:00 +00:00
|
|
|
|
|
|
|
int
|
2019-05-29 14:53:09 +00:00
|
|
|
ioperm (unsigned long int from, unsigned long int num, int turn_on)
|
1998-12-22 17:26:00 +00:00
|
|
|
{
|
2019-05-29 14:53:09 +00:00
|
|
|
__set_errno (ENOSYS);
|
|
|
|
return -1;
|
1998-12-22 17:26:00 +00:00
|
|
|
}
|
2019-05-29 14:53:09 +00:00
|
|
|
compat_symbol (libc, ioperm, ioperm, GLIBC_2_4);
|
1998-12-22 17:26:00 +00:00
|
|
|
|
|
|
|
int
|
2019-05-29 14:53:09 +00:00
|
|
|
iopl (unsigned int level)
|
1998-12-22 17:26:00 +00:00
|
|
|
{
|
2019-05-29 14:53:09 +00:00
|
|
|
__set_errno (ENOSYS);
|
|
|
|
return -1;
|
1998-12-22 17:26:00 +00:00
|
|
|
}
|
2019-05-29 14:53:09 +00:00
|
|
|
compat_symbol (libc, iopl, iopl, GLIBC_2_4);
|
|
|
|
|
1998-12-22 17:26:00 +00:00
|
|
|
|
2019-05-29 14:53:09 +00:00
|
|
|
/* The remaining functions do not have any way to indicate failure.
|
|
|
|
However, it is only valid to call them after calling ioperm/iopl,
|
|
|
|
which will have indicated failure. */
|
1998-12-22 17:26:00 +00:00
|
|
|
|
|
|
|
void
|
2019-05-29 14:53:09 +00:00
|
|
|
outb (unsigned char b, unsigned long int port)
|
1998-12-22 17:26:00 +00:00
|
|
|
{
|
|
|
|
}
|
2019-05-29 14:53:09 +00:00
|
|
|
compat_symbol (libc, outb, outb, GLIBC_2_4);
|
1998-12-22 17:26:00 +00:00
|
|
|
|
|
|
|
void
|
2019-05-29 14:53:09 +00:00
|
|
|
outw (unsigned short b, unsigned long int port)
|
1998-12-22 17:26:00 +00:00
|
|
|
{
|
|
|
|
}
|
2019-05-29 14:53:09 +00:00
|
|
|
compat_symbol (libc, outw, outw, GLIBC_2_4);
|
1998-12-22 17:26:00 +00:00
|
|
|
|
|
|
|
void
|
2019-05-29 14:53:09 +00:00
|
|
|
outl (unsigned int b, unsigned long int port)
|
1998-12-22 17:26:00 +00:00
|
|
|
{
|
|
|
|
}
|
2019-05-29 14:53:09 +00:00
|
|
|
compat_symbol (libc, outl, outl, GLIBC_2_4);
|
1998-12-22 17:26:00 +00:00
|
|
|
|
|
|
|
unsigned int
|
2019-05-29 14:53:09 +00:00
|
|
|
inb (unsigned long int port)
|
1998-12-22 17:26:00 +00:00
|
|
|
{
|
2019-05-29 14:53:09 +00:00
|
|
|
return 0;
|
1998-12-22 17:26:00 +00:00
|
|
|
}
|
2019-05-29 14:53:09 +00:00
|
|
|
compat_symbol (libc, inb, inb, GLIBC_2_4);
|
1998-12-22 17:26:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
unsigned int
|
2019-05-29 14:53:09 +00:00
|
|
|
inw (unsigned long int port)
|
1998-12-22 17:26:00 +00:00
|
|
|
{
|
2019-05-29 14:53:09 +00:00
|
|
|
return 0;
|
1998-12-22 17:26:00 +00:00
|
|
|
}
|
2019-05-29 14:53:09 +00:00
|
|
|
compat_symbol (libc, inw, inw, GLIBC_2_4);
|
1998-12-22 17:26:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
unsigned int
|
2019-05-29 14:53:09 +00:00
|
|
|
inl (unsigned long int port)
|
1998-12-22 17:26:00 +00:00
|
|
|
{
|
2019-05-29 14:53:09 +00:00
|
|
|
return 0;
|
1998-12-22 17:26:00 +00:00
|
|
|
}
|
2019-05-29 14:53:09 +00:00
|
|
|
compat_symbol (libc, inl, inl, GLIBC_2_4);
|
1998-12-22 17:26:00 +00:00
|
|
|
|
2019-05-29 14:53:09 +00:00
|
|
|
#endif /* SHLIB_COMAT */
|