File:  [XINU] / xinu / sys / dlccntl.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:39:39 2018 UTC (8 years, 2 months ago) by root
Branches: xinu, MAIN
CVS tags: xinu-19910600, HEAD
Xinu for 68000/68010

/* dlccntl.c - dlccntl */

#include <conf.h>
#include <kernel.h>
#include <slu11.h>
#include <proc.h>
#include <sleep.h>
#include <dlc.h>

/*------------------------------------------------------------------------
 *  dlccntl  --  perform control operations on dlc devices and driver
 *------------------------------------------------------------------------
 */
dlccntl(devptr, opcode, parm1)
struct	devsw	*devptr;
int	opcode;
int	parm1;
{
	struct	dlblk	*dptr;

	dptr = devptr->dvioblk;
	if (opcode == DCSETREC) {
		dptr->dpid = parm1;
		return(OK);
	} else if (opcode == DCCLRREC) {
		dptr->dpid = 0;
		return(OK);
	} else
		return(SYSERR);
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.