need to omit qv/qd from bootxx's
[unix-history] / usr / src / sys / vax / stand / confxx.c
index c0551e3..2085e9f 100644 (file)
@@ -1,81 +1,26 @@
-/*     confxx.c        4.4     83/02/16        */
+/*
+ * Copyright (c) 1988 Regents of the University of California.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that the above copyright notice and this paragraph are
+ * duplicated in all such forms and that any documentation,
+ * advertising materials, and other materials related to such
+ * distribution and use acknowledge that the software was developed
+ * by the University of California, Berkeley.  The name of the
+ * University may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ *     @(#)confxx.c    7.5 (Berkeley) %G%
+ */
 
 
-#include "../machine/pte.h"
-
-#include "../h/param.h"
-#include "../h/inode.h"
-#include "../h/fs.h"
-#include "saio.h"
-
-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);
-}
-
-int    nullsys(), nullioctl();
 int    xxstrategy(), xxopen(), xxioctl();
 
 struct devsw devsw[] = {
 int    xxstrategy(), xxopen(), xxioctl();
 
 struct devsw devsw[] = {
-       { "XX", xxstrategy,     xxopen,         nullsys,        xxioctl },
-       { 0, 0, 0, 0, 0 }
+       { "XX", xxstrategy,     xxopen,         nullsys,        noioctl },
 };
 };
+
+int    ndevs = (sizeof(devsw) / sizeof(devsw[0]));