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

iodev.c File Reference

#include "iodev.h"
#include "pcio.h"

Include dependency graph for iodev.c:

Include dependency graph

Go to the source code of this file.

Functions

int iodev_open ()
int iodev_close ()
int iodev_read (char *s, struct file *f, char *buff, int count)
int iodev_write (char *s, struct file *f, char *buff, int count)
int iodev_ioctl (char *s, struct file *f, int command, struct _ioValStruct *arg)
int iodev_select ()
int iodev_install ()
int iodev_uninstall ()


Function Documentation

int iodev_open  
 

Definition at line 14 of file iodev.c.

00015 {
00016   return( OK );
00017 }

int iodev_close  
 

Definition at line 19 of file iodev.c.

00020 {
00021   return( OK );
00022 }

int iodev_read char *    s,
struct file   f,
char *    buff,
int    count
 

Definition at line 24 of file iodev.c.

00028 {
00029   pseterr( ENXIO );
00030   return( SYSERR );             /* read is not valid operation */
00031 }

int iodev_write char *    s,
struct file   f,
char *    buff,
int    count
 

Definition at line 33 of file iodev.c.

00037 {
00038   pseterr( ENXIO );
00039   return( SYSERR );             /* write is not valid operation */
00040 }

int iodev_ioctl char *    s,
struct file   f,
int    command,
struct _ioValStruct   arg
 

Definition at line 42 of file iodev.c.

00046 {
00047   switch( command )
00048   {
00049   case READ_8:
00050     arg->value = inputb( arg->address );
00051     break;
00052   case WRITE_8:
00053     outputb( arg->address, arg->value );
00054     break;
00055   case READ_16:
00056     arg->value = inputw( arg->address );
00057     break;
00058   case WRITE_16:
00059     outputw( arg->address, arg->value );
00060     break;
00061   case READ_32:
00062     arg->value = inputl( arg->address );
00063     break;
00064   case WRITE_32:
00065     outputl( arg->address, arg->value );
00066     break;
00067   }
00068 
00069   return( 0 );
00070 }

int iodev_select  
 

Definition at line 72 of file iodev.c.

00073 {
00074   return( OK );
00075 }

int iodev_install  
 

Definition at line 77 of file iodev.c.

00078 {
00079   return( 0 );
00080 }

int iodev_uninstall  
 

Definition at line 82 of file iodev.c.

00083 {
00084   return( OK );
00085 }


Generated on Sun Dec 2 15:57:10 2001 for rcslib by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001