123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- #ifndef _SYS_IO_H
- #define _SYS_IO_H 1
- #include <features.h>
- __BEGIN_DECLS
- #if defined __UCLIBC_LINUX_SPECIFIC__
- extern int ioperm (unsigned long int __from, unsigned long int __num,
- int __turn_on) __THROW;
- extern int iopl (int __level) __THROW;
- #endif
- extern unsigned long int _bus_base (void) __THROW __attribute__ ((const));
- extern unsigned long int bus_base (void) __THROW __attribute__ ((const));
- extern unsigned long _bus_base_sparse (void) __THROW __attribute__ ((const));
- extern unsigned long bus_base_sparse (void) __THROW __attribute__ ((const));
- extern int _hae_shift (void) __THROW __attribute__ ((const));
- extern int hae_shift (void) __THROW __attribute__ ((const));
- enum __pciconfig_iobase_which
- {
- IOBASE_HOSE = 0,
- IOBASE_SPARSE_MEM = 1,
- IOBASE_DENSE_MEM = 2,
- IOBASE_SPARSE_IO = 3,
- IOBASE_DENSE_IO = 4
- };
- extern long pciconfig_iobase(enum __pciconfig_iobase_which __which,
- unsigned long int __bus,
- unsigned long int __dfn)
- __THROW __attribute__ ((const));
- extern int pciconfig_read (unsigned long int __bus,
- unsigned long int __dfn,
- unsigned long int __off,
- unsigned long int __len,
- unsigned char *__buf) __THROW;
- extern int pciconfig_write (unsigned long int __bus,
- unsigned long int __dfn,
- unsigned long int __off,
- unsigned long int __len,
- unsigned char *__buf) __THROW;
- extern unsigned int inb (unsigned long __port) __THROW;
- extern unsigned int inw (unsigned long __port) __THROW;
- extern unsigned int inl (unsigned long __port) __THROW;
- extern void outb (unsigned char __b, unsigned long __port) __THROW;
- extern void outw (unsigned short __w, unsigned long __port) __THROW;
- extern void outl (unsigned int __l, unsigned long __port) __THROW;
- __END_DECLS
- #endif
|