123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #ifndef _SYS_IO_H
- #define _SYS_IO_H 1
- #include <features.h>
- __BEGIN_DECLS
- extern int ioperm (unsigned long int __from, unsigned long int __num,
- int __turn_on);
- libc_hidden_proto(ioperm)
- extern int iopl (int __level);
- extern unsigned int _inb (unsigned long int __port);
- extern unsigned int _inb (unsigned long int __port);
- extern unsigned int _inw (unsigned long int __port);
- extern unsigned int _inl (unsigned long int __port);
- extern void _outb (unsigned char __val, unsigned long int __port);
- extern void _outw (unsigned short __val, unsigned long int __port);
- extern void _outl (unsigned int __val, unsigned long int __port);
- #define inb _inb
- #define inw _inw
- #define inl _inl
- #define outb _outb
- #define outw _outw
- #define outl _outl
- extern int pciconfig_read (unsigned long int __bus, unsigned long int __dfn,
- unsigned long int __off, unsigned long int __len,
- unsigned char *__buf);
- extern int pciconfig_write (unsigned long int __bus, unsigned long int __dfn,
- unsigned long int __off, unsigned long int __len,
- unsigned char *__buf);
- __END_DECLS
- #endif
|