/*
 * 5799-WZQ (C) COPYRIGHT = NONE
 * LICENSED MATERIALS - PROPERTY OF IBM
 */
/* $Header:confxx.c 12.0$ */
/* $ACIS:confxx.c 12.0$ */
/* $Source: /ibm/acis/usr/sys/standca/RCS/confxx.c,v $ */

#ifndef SQUEEEEZE
#ifndef lint
static char rcsid[] = "$Header:confxx.c 12.0$";
#endif
#endif


#include "param.h"
#include "inode.h"
#include "fs.h"

#include "saio.h"

int nullsys(), nullioctl();
int xxstrategy(), xxopen(), xxioctl();

struct devsw devsw[] = {
	{ "XX", xxstrategy, xxopen, nullsys, xxioctl },
	{ 0, 0, 0, 0, 0 },
};

devread(io)
	register struct iob *io;
{
	int cc;

	io->i_flgs |= F_RDDATA;
	io->i_error = 0;
	cc = (*devsw[io->i_ino.i_dev].dv_strategy)(io, READ);
	io->i_flgs &= ~F_TYPEMASK;
	return (cc);
}


devwrite(io)
	register struct iob *io;
{
	int cc;

	io->i_flgs |= F_WRDATA;
	io->i_error = 0;
	cc = (*devsw[io->i_ino.i_dev].dv_strategy)(io, WRITE);
	io->i_flgs &= ~F_TYPEMASK;
	return (cc);
}


devopen(io)
	register struct iob *io;
{

	(*devsw[io->i_ino.i_dev].dv_open)(io);
}


devclose(io)
	register struct iob *io;
{

	(*devsw[io->i_ino.i_dev].dv_close)(io);
}


devioctl(io, cmd, arg)
	register struct iob *io;
	int cmd;
	caddr_t arg;
{

	return ((*devsw[io->i_ino.i_dev].dv_ioctl)(io, cmd, arg));
}


/*ARGSUSED*/
nullsys(io)
	struct iob *io;
{

	;
}


/*ARGSUSED*/
nullioctl(io, cmd, arg)
	struct iob *io;
	int cmd;
	caddr_t arg;
{

	return (ECMD);
}
