00001 /**************************************************************** 00002 File: iodev.h 00003 00004 Author: Steven Legowik 00005 00006 Description: 00007 Device driver to allow access to PC IO space without 00008 requiring root permission of executing program. 00009 ****************************************************************/ 00010 00011 #ifndef IODEV_H 00012 #define IODEV_H 00013 00014 #include <conf.h> 00015 #include <kernel.h> 00016 #include <file.h> 00017 #include <errno.h> 00018 00019 /* ioctl() command code */ 00020 enum { 00021 READ_8, 00022 WRITE_8, 00023 READ_16, 00024 WRITE_16, 00025 READ_32, 00026 WRITE_32 }; 00027 00028 00029 /* ioctl() data structure */ 00030 struct _ioValStruct 00031 { 00032 unsigned short address; 00033 unsigned int value; 00034 }; 00035 00036 #endif /* IODEV_H */