00001
00002
00003
00004
00005
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