00001 00007 /* Embedded XINU, Copyright (C) 2007. All rights reserved. */ 00008 00009 #include <kernel.h> 00010 #include <device.h> 00011 00020 devcall control(ushort descrp, ushort func, long arg1, long arg2) 00021 { 00022 device *devptr; 00023 00024 if ( isbaddev(descrp) ) { return SYSERR; } 00025 devptr = &devtab[descrp]; 00026 return ( (*devptr->control)(devptr, func, arg1, arg2) ); 00027 }