Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/sys
File: io.h
/* Copyright (C) 1996-2018 Free Software Foundation, Inc.
[0] Fix | Delete
This file is part of the GNU C Library.
[1] Fix | Delete
[2] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[3] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[4] Fix | Delete
License as published by the Free Software Foundation; either
[5] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[6] Fix | Delete
[7] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[8] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[9] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[10] Fix | Delete
Lesser General Public License for more details.
[11] Fix | Delete
[12] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[13] Fix | Delete
License along with the GNU C Library; if not, see
[14] Fix | Delete
<http://www.gnu.org/licenses/>. */
[15] Fix | Delete
[16] Fix | Delete
#ifndef _SYS_IO_H
[17] Fix | Delete
#define _SYS_IO_H 1
[18] Fix | Delete
[19] Fix | Delete
#include <features.h>
[20] Fix | Delete
[21] Fix | Delete
__BEGIN_DECLS
[22] Fix | Delete
[23] Fix | Delete
/* If TURN_ON is TRUE, request for permission to do direct i/o on the
[24] Fix | Delete
port numbers in the range [FROM,FROM+NUM-1]. Otherwise, turn I/O
[25] Fix | Delete
permission off for that range. This call requires root privileges.
[26] Fix | Delete
[27] Fix | Delete
Portability note: not all Linux platforms support this call. Most
[28] Fix | Delete
platforms based on the PC I/O architecture probably will, however.
[29] Fix | Delete
E.g., Linux/Alpha for Alpha PCs supports this. */
[30] Fix | Delete
extern int ioperm (unsigned long int __from, unsigned long int __num,
[31] Fix | Delete
int __turn_on) __THROW;
[32] Fix | Delete
[33] Fix | Delete
/* Set the I/O privilege level to LEVEL. If LEVEL>3, permission to
[34] Fix | Delete
access any I/O port is granted. This call requires root
[35] Fix | Delete
privileges. */
[36] Fix | Delete
extern int iopl (int __level) __THROW;
[37] Fix | Delete
[38] Fix | Delete
#if defined __GNUC__ && __GNUC__ >= 2
[39] Fix | Delete
[40] Fix | Delete
static __inline unsigned char
[41] Fix | Delete
inb (unsigned short int __port)
[42] Fix | Delete
{
[43] Fix | Delete
unsigned char _v;
[44] Fix | Delete
[45] Fix | Delete
__asm__ __volatile__ ("inb %w1,%0":"=a" (_v):"Nd" (__port));
[46] Fix | Delete
return _v;
[47] Fix | Delete
}
[48] Fix | Delete
[49] Fix | Delete
static __inline unsigned char
[50] Fix | Delete
inb_p (unsigned short int __port)
[51] Fix | Delete
{
[52] Fix | Delete
unsigned char _v;
[53] Fix | Delete
[54] Fix | Delete
__asm__ __volatile__ ("inb %w1,%0\noutb %%al,$0x80":"=a" (_v):"Nd" (__port));
[55] Fix | Delete
return _v;
[56] Fix | Delete
}
[57] Fix | Delete
[58] Fix | Delete
static __inline unsigned short int
[59] Fix | Delete
inw (unsigned short int __port)
[60] Fix | Delete
{
[61] Fix | Delete
unsigned short _v;
[62] Fix | Delete
[63] Fix | Delete
__asm__ __volatile__ ("inw %w1,%0":"=a" (_v):"Nd" (__port));
[64] Fix | Delete
return _v;
[65] Fix | Delete
}
[66] Fix | Delete
[67] Fix | Delete
static __inline unsigned short int
[68] Fix | Delete
inw_p (unsigned short int __port)
[69] Fix | Delete
{
[70] Fix | Delete
unsigned short int _v;
[71] Fix | Delete
[72] Fix | Delete
__asm__ __volatile__ ("inw %w1,%0\noutb %%al,$0x80":"=a" (_v):"Nd" (__port));
[73] Fix | Delete
return _v;
[74] Fix | Delete
}
[75] Fix | Delete
[76] Fix | Delete
static __inline unsigned int
[77] Fix | Delete
inl (unsigned short int __port)
[78] Fix | Delete
{
[79] Fix | Delete
unsigned int _v;
[80] Fix | Delete
[81] Fix | Delete
__asm__ __volatile__ ("inl %w1,%0":"=a" (_v):"Nd" (__port));
[82] Fix | Delete
return _v;
[83] Fix | Delete
}
[84] Fix | Delete
[85] Fix | Delete
static __inline unsigned int
[86] Fix | Delete
inl_p (unsigned short int __port)
[87] Fix | Delete
{
[88] Fix | Delete
unsigned int _v;
[89] Fix | Delete
__asm__ __volatile__ ("inl %w1,%0\noutb %%al,$0x80":"=a" (_v):"Nd" (__port));
[90] Fix | Delete
return _v;
[91] Fix | Delete
}
[92] Fix | Delete
[93] Fix | Delete
static __inline void
[94] Fix | Delete
outb (unsigned char __value, unsigned short int __port)
[95] Fix | Delete
{
[96] Fix | Delete
__asm__ __volatile__ ("outb %b0,%w1": :"a" (__value), "Nd" (__port));
[97] Fix | Delete
}
[98] Fix | Delete
[99] Fix | Delete
static __inline void
[100] Fix | Delete
outb_p (unsigned char __value, unsigned short int __port)
[101] Fix | Delete
{
[102] Fix | Delete
__asm__ __volatile__ ("outb %b0,%w1\noutb %%al,$0x80": :"a" (__value),
[103] Fix | Delete
"Nd" (__port));
[104] Fix | Delete
}
[105] Fix | Delete
[106] Fix | Delete
static __inline void
[107] Fix | Delete
outw (unsigned short int __value, unsigned short int __port)
[108] Fix | Delete
{
[109] Fix | Delete
__asm__ __volatile__ ("outw %w0,%w1": :"a" (__value), "Nd" (__port));
[110] Fix | Delete
[111] Fix | Delete
}
[112] Fix | Delete
[113] Fix | Delete
static __inline void
[114] Fix | Delete
outw_p (unsigned short int __value, unsigned short int __port)
[115] Fix | Delete
{
[116] Fix | Delete
__asm__ __volatile__ ("outw %w0,%w1\noutb %%al,$0x80": :"a" (__value),
[117] Fix | Delete
"Nd" (__port));
[118] Fix | Delete
}
[119] Fix | Delete
[120] Fix | Delete
static __inline void
[121] Fix | Delete
outl (unsigned int __value, unsigned short int __port)
[122] Fix | Delete
{
[123] Fix | Delete
__asm__ __volatile__ ("outl %0,%w1": :"a" (__value), "Nd" (__port));
[124] Fix | Delete
}
[125] Fix | Delete
[126] Fix | Delete
static __inline void
[127] Fix | Delete
outl_p (unsigned int __value, unsigned short int __port)
[128] Fix | Delete
{
[129] Fix | Delete
__asm__ __volatile__ ("outl %0,%w1\noutb %%al,$0x80": :"a" (__value),
[130] Fix | Delete
"Nd" (__port));
[131] Fix | Delete
}
[132] Fix | Delete
[133] Fix | Delete
static __inline void
[134] Fix | Delete
insb (unsigned short int __port, void *__addr, unsigned long int __count)
[135] Fix | Delete
{
[136] Fix | Delete
__asm__ __volatile__ ("cld ; rep ; insb":"=D" (__addr), "=c" (__count)
[137] Fix | Delete
:"d" (__port), "0" (__addr), "1" (__count));
[138] Fix | Delete
}
[139] Fix | Delete
[140] Fix | Delete
static __inline void
[141] Fix | Delete
insw (unsigned short int __port, void *__addr, unsigned long int __count)
[142] Fix | Delete
{
[143] Fix | Delete
__asm__ __volatile__ ("cld ; rep ; insw":"=D" (__addr), "=c" (__count)
[144] Fix | Delete
:"d" (__port), "0" (__addr), "1" (__count));
[145] Fix | Delete
}
[146] Fix | Delete
[147] Fix | Delete
static __inline void
[148] Fix | Delete
insl (unsigned short int __port, void *__addr, unsigned long int __count)
[149] Fix | Delete
{
[150] Fix | Delete
__asm__ __volatile__ ("cld ; rep ; insl":"=D" (__addr), "=c" (__count)
[151] Fix | Delete
:"d" (__port), "0" (__addr), "1" (__count));
[152] Fix | Delete
}
[153] Fix | Delete
[154] Fix | Delete
static __inline void
[155] Fix | Delete
outsb (unsigned short int __port, const void *__addr,
[156] Fix | Delete
unsigned long int __count)
[157] Fix | Delete
{
[158] Fix | Delete
__asm__ __volatile__ ("cld ; rep ; outsb":"=S" (__addr), "=c" (__count)
[159] Fix | Delete
:"d" (__port), "0" (__addr), "1" (__count));
[160] Fix | Delete
}
[161] Fix | Delete
[162] Fix | Delete
static __inline void
[163] Fix | Delete
outsw (unsigned short int __port, const void *__addr,
[164] Fix | Delete
unsigned long int __count)
[165] Fix | Delete
{
[166] Fix | Delete
__asm__ __volatile__ ("cld ; rep ; outsw":"=S" (__addr), "=c" (__count)
[167] Fix | Delete
:"d" (__port), "0" (__addr), "1" (__count));
[168] Fix | Delete
}
[169] Fix | Delete
[170] Fix | Delete
static __inline void
[171] Fix | Delete
outsl (unsigned short int __port, const void *__addr,
[172] Fix | Delete
unsigned long int __count)
[173] Fix | Delete
{
[174] Fix | Delete
__asm__ __volatile__ ("cld ; rep ; outsl":"=S" (__addr), "=c" (__count)
[175] Fix | Delete
:"d" (__port), "0" (__addr), "1" (__count));
[176] Fix | Delete
}
[177] Fix | Delete
[178] Fix | Delete
#endif /* GNU C */
[179] Fix | Delete
[180] Fix | Delete
__END_DECLS
[181] Fix | Delete
#endif /* _SYS_IO_H */
[182] Fix | Delete
[183] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function