* Copyright (c) 1982, 1986 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
* @(#)conf.c 7.2 (Berkeley) %G%
#include "../machine/pte.h"
#include "../vaxmba/mbareg.h"
cc
= (*devsw
[io
->i_ino
.i_dev
].dv_strategy
)(io
, READ
);
io
->i_flgs
&= ~F_TYPEMASK
;
cc
= (*devsw
[io
->i_ino
.i_dev
].dv_strategy
)(io
, WRITE
);
io
->i_flgs
&= ~F_TYPEMASK
;
return (*devsw
[io
->i_ino
.i_dev
].dv_open
)(io
);
(*devsw
[io
->i_ino
.i_dev
].dv_close
)(io
);
return ((*devsw
[io
->i_ino
.i_dev
].dv_ioctl
)(io
, cmd
, arg
));
#if defined(VAX780) || defined(VAX750) || defined(VAX8600)
int hpstrategy(), hpopen(), hpioctl();
int upstrategy(), upopen(), upioctl();
int rkstrategy(), rkopen(), rkioctl();
int rastrategy(), raopen(), raioctl();
int idcstrategy(), idcopen(), idcioctl();
#define idcstrategy nodev
int rlstrategy(), rlopen(), rlioctl();
int tmstrategy(), tmopen(), tmclose();
int tsstrategy(), tsopen(), tsclose();
#if defined(VAX780) || defined(VAX750) || defined(VAX8600)
int htstrategy(), htopen(), htclose();
int mtstrategy(), mtopen(), mtclose();
int utstrategy(), utopen(), utclose();
{ HP
, hpstrategy
, hpopen
, nullsys
, hpioctl
}, /* 0 = hp */
{ HT
, htstrategy
, htopen
, htclose
, noioctl
}, /* 1 = ht */
{ "up", upstrategy
, upopen
, nullsys
, upioctl
}, /* 2 = up */
{ "hk", rkstrategy
, rkopen
, nullsys
, rkioctl
}, /* 3 = hk */
{ "", nodev
, nodev
, nullsys
, noioctl
}, /* 4 = sw */
{ TM
, tmstrategy
, tmopen
, tmclose
, noioctl
}, /* 5 = tm */
{ TS
, tsstrategy
, tsopen
, tsclose
, noioctl
}, /* 6 = ts */
{ MT
, mtstrategy
, mtopen
, mtclose
, noioctl
}, /* 7 = mt */
{ "", nodev
, nodev
, nullsys
, noioctl
}, /* 8 = tu */
{ "ra", rastrategy
, raopen
, nullsys
, raioctl
}, /* 9 = ra */
{ UT
, utstrategy
, utopen
, utclose
, noioctl
}, /* 10 = ut */
{ RB
, idcstrategy
, idcopen
,nullsys
, idcioctl
},/* 11 = rb */
{ "", nodev
, nodev
, nullsys
, noioctl
}, /* 12 = uu */
{ "", nodev
, nodev
, nullsys
, noioctl
}, /* 13 = rx */
{ "rl", rlstrategy
, rlopen
, nullsys
, rlioctl
}, /* 14 = rl */
int ndevs
= (sizeof(devsw
) / sizeof(devsw
[0]) - 1);