|
|
1.1 root 1: /* dlccntl.c - dlccntl */
2:
3: #include <conf.h>
4: #include <kernel.h>
5: #include <slu11.h>
6: #include <proc.h>
7: #include <sleep.h>
8: #include <dlc.h>
9:
10: /*------------------------------------------------------------------------
11: * dlccntl -- perform control operations on dlc devices and driver
12: *------------------------------------------------------------------------
13: */
14: dlccntl(devptr, opcode, parm1)
15: struct devsw *devptr;
16: int opcode;
17: int parm1;
18: {
19: struct dlblk *dptr;
20:
21: dptr = devptr->dvioblk;
22: if (opcode == DCSETREC) {
23: dptr->dpid = parm1;
24: return(OK);
25: } else if (opcode == DCCLRREC) {
26: dptr->dpid = 0;
27: return(OK);
28: } else
29: return(SYSERR);
30: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.