*#ident "$Revision: 1.17 $"
*
* xyl754 - Xylogics 754 VME SMD disk driver
*
*FLAG	PREFIX	SOFT	#DEV	DEPENDENCIES
bc	xyl	6	-	io

$$$

#if IP5 || IP17 || EVEREST
#include <sys/dmamap.h>
#endif
#include <sys/xl.h>

/* Number of Iopbs driver will use per controller */
#ifdef MINIROOT
#define	XYL_IOPBS	7
int			xylnmap = 17;
#else
#define	XYL_IOPBS	11
int			xylnmap = 65;
#endif

#undef Z
#if NOPROBE
#define Z		(XYL_CTLRS)
#else
#define Z		(##C)
#endif /* NOPROBE */
XYL_CTLRINFO		xylctlrinfo[Z];
CONTROLLER_TABLE	xylcontroller[Z];
PARTITION_TABLE		xylpartition[Z * XYL_CTLRUNITS][PARTS];
UNIT_TABLE		xylunit[Z * XYL_CTLRUNITS];
int			xylctlrcnt = Z;
HEAD_NODE		xyliopbq[Z];
struct iobuf		xylunitq[Z * XYL_CTLRUNITS];
IOPB			xyliopb[Z * XYL_IOPBS];
int			xylniopb = XYL_IOPBS;

#undef Z

#if R4000
/* For IP17, we kludge.  We need to allocate IOPB's from cache aligned space */
char xyliopbdata[##C * IPI_IOPBS * R4K_MAXCACHELINESIZE + R4K_MAXCACHELINESIZE];
#endif

/* tell the driver whether block mode DMA can be done. */
#if IP5 || IP17
int xylblock = 1;
#else
int xylblock = 0;
#endif
