/*-=-=-=-=-=-=-=-=-=-=-=- RCCL/RCI Notice of Copyright -=-=-=-=-=-=-=-=-=-=-*
 *									    *
 *	Copyright (C) 1987, 1991 by John E. Lloyd.			    *
 *									    *
 *	Information on copyright permissions, as well as a complete	    *
 *	disclaimer of warranty, is given in the file COPYRIGHT.		    *
 *									    *
 *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/

#ifndef _SLU_H_
#define _SLU_H_

#define SERIAL_BUF_SIZE	256

typedef struct {
	char *buf;
	int size;
	int head;
	int tail;
} QUEUE;

typedef struct slu {
	unsigned short *rcsr;
	unsigned short *rbuf;
	unsigned short *wcsr;
	unsigned short *wbuf;
	QUEUE r;
	QUEUE w;
	int active;
} SLU;

typedef struct {
	int dev;
	int rsize;
	int wsize;
} SLU_DESC;

extern SLU *sluGet();

#endif
