|
|
1.1 root 1: /* control.c - control */
2:
3: #include <conf.h>
4: #include <kernel.h>
5: #include <io.h>
6:
7: /*------------------------------------------------------------------------
8: * control - control a device (e.g., set the mode)
9: *------------------------------------------------------------------------
10: */
1.1.1.2 ! root 11: control(descrp, func, addr, addr2)
1.1 root 12: int descrp, func;
13: char *addr,*addr2;
14: {
15: struct devsw *devptr;
16:
1.1.1.2 ! root 17: #ifdef DEBUG
! 18: dotrace("control", &descrp, 4);
! 19: #endif
1.1 root 20: if (isbaddev(descrp) )
21: return(SYSERR);
22: devptr = &devtab[descrp];
23: return( (*devptr->dvcntl)(devptr, func, addr, addr2) );
24: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.