Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

cppio.hh

Go to the documentation of this file.
00001 /* 
00002  * This header file exists because getting iosh.cc to compile under
00003  * many different combinations of versions of gcc/libc/kernel is very difficult.
00004  * This defines the interface that iosh.cc can always use and hopefully allow
00005  * us to isolate the version problems in cppio.c.
00006  */
00007 
00008 
00009 
00010 #ifndef CPPIO_HH
00011 #define CPPIO_HH
00012 
00013 
00014 #ifdef __cplusplus
00015 extern "C" {
00016 #endif
00017 
00018   extern int cpp_iopl(int level);
00019   extern unsigned char cpp_inb (unsigned short port);
00020   extern unsigned char cpp_inb_p (unsigned short port);
00021   extern unsigned short cpp_inw (unsigned short port);
00022   extern unsigned short cpp_inw_p (unsigned short port);
00023   extern unsigned int cpp_inl (unsigned short port);
00024   extern unsigned int cpp_inl_p (unsigned short port);
00025 
00026   extern void cpp_outb(unsigned char value, unsigned short port );
00027   extern void cpp_outb_p(unsigned char value, unsigned short port );
00028   extern void cpp_outw(unsigned short value, unsigned short port );
00029   extern void cpp_outw_p(unsigned short value, unsigned short port );
00030   extern void cpp_outl(unsigned int value, unsigned short port );
00031   extern void cpp_outl_p(unsigned int value, unsigned short port );
00032 
00033 
00034 #ifdef __cplusplus
00035 }
00036 #endif
00037 
00038 #endif  // CPPIO_HH
00039 
00040 

Generated on Sun Dec 2 15:27:36 2001 for EMC by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001