SCCS-vsn: sys/vax/uba/dz.c 4.19
SCCS-vsn: sys/vax/mba/hp.c 4.16
SCCS-vsn: sys/vax/uba/lp.c 4.7
SCCS-vsn: sys/vax/uba/rk.c 4.16
SCCS-vsn: sys/vax/uba/uba.c 4.17
SCCS-vsn: sys/vax/uba/up.c 4.26
SCCS-vsn: sys/vax/uba/va.c 4.6
SCCS-vsn: sys/vax/uba/vp.c 4.6
-/* hp.c 4.15 81/02/25 */
+/* hp.c 4.16 81/02/27 */
#include "hp.h"
#if NHP > 0
#include "hp.h"
#if NHP > 0
register struct hpst *st = &hpst[mi->mi_type];
if (mi->mi_dk >= 0)
register struct hpst *st = &hpst[mi->mi_type];
if (mi->mi_dk >= 0)
- dk_mspw[mi->mi_dk] = 1.0 / HZ / (st->nsect * 256);
+ dk_mspw[mi->mi_dk] = 1.0 / 60 / (st->nsect * 256);
#include "dz.h"
#if NDZ > 0
#include "dz.h"
#if NDZ > 0
dzsoftCAR[ui->ui_unit] = ui->ui_flags;
if (dz_timer == 0) {
dz_timer++;
dzsoftCAR[ui->ui_unit] = ui->ui_flags;
if (dz_timer == 0) {
dz_timer++;
- timeout(dzscan, (caddr_t)0, HZ);
+ timeout(dzscan, (caddr_t)0, hz);
- timeout(dzscan, (caddr_t)0, 2*HZ);
+ timeout(dzscan, (caddr_t)0, 2*hz);
#include "lp.h"
#if NLP11 > 0
#include "lp.h"
#if NLP11 > 0
spl4();
if ((lp11.state&TOUT) == 0) {
lp11.state |= TOUT;
spl4();
if ((lp11.state&TOUT) == 0) {
lp11.state |= TOUT;
- timeout(lptout, 0, 10*HZ);
+ timeout(lptout, 0, 10*hz);
if ((lp11.state&MOD) != 0) {
lp11.state &= ~MOD; /* something happened */
if ((lp11.state&MOD) != 0) {
lp11.state &= ~MOD; /* something happened */
- timeout(lptout, 0, 2*HZ); /* so don't sweat */
+ timeout(lptout, 0, 2*hz); /* so don't sweat */
return;
}
sr = &LPADDR->lpsr;
return;
}
sr = &LPADDR->lpsr;
}
if (lp11.outq.c_cc && (*sr&DONE) && (*sr&ERROR)==0)
lpintr(); /* ready to go */
}
if (lp11.outq.c_cc && (*sr&DONE) && (*sr&ERROR)==0)
lpintr(); /* ready to go */
- timeout(lptout, 0, 10*HZ);
+ timeout(lptout, 0, 10*hz);
#include "rk.h"
#if NHK > 0
#include "rk.h"
#if NHK > 0
- timeout(rkwatch, (caddr_t)0, HZ);
+ timeout(rkwatch, (caddr_t)0, hz);
rkwstart++;
}
if (ui->ui_dk >= 0)
rkwstart++;
}
if (ui->ui_dk >= 0)
- dk_mspw[ui->ui_dk] = 1.0 / (HZ * NRKSECT * 256);
+ dk_mspw[ui->ui_dk] = 1.0 / (60 * NRKSECT * 256);
rkip[ui->ui_ctlr][ui->ui_slave] = ui;
rk_softc[ui->ui_ctlr].sc_ndrive++;
rkcyl[ui->ui_unit] = -1;
rkip[ui->ui_ctlr][ui->ui_slave] = ui;
rk_softc[ui->ui_ctlr].sc_ndrive++;
rkcyl[ui->ui_unit] = -1;
register rk11, unit;
register struct rk_softc *sc;
register rk11, unit;
register struct rk_softc *sc;
- timeout(rkwatch, (caddr_t)0, HZ);
+ timeout(rkwatch, (caddr_t)0, hz);
for (rk11 = 0; rk11 < NHK; rk11++) {
um = rkminfo[rk11];
if (um == 0 || um->um_alive == 0)
for (rk11 = 0; rk11 < NHK; rk11++) {
um = rkminfo[rk11];
if (um == 0 || um->um_alive == 0)
#define DELAY(N) { register int d; d = N; while (--d > 0); }
#define DELAY(N) { register int d; d = N; while (--d > 0); }
if (up->uba_sr == 0)
return;
uh->uh_hangcnt++;
if (up->uba_sr == 0)
return;
uh->uh_hangcnt++;
- if (uh->uh_hangcnt > 5*HZ) {
+ if (uh->uh_hangcnt > 5*hz) {
uh->uh_hangcnt = 0;
printf("HANG ");
ubareset(uban);
uh->uh_hangcnt = 0;
printf("HANG ");
ubareset(uban);
-/* up.c 4.25 81/02/26 */
+/* up.c 4.26 81/02/27 */
#include "up.h"
#if NSC > 0
#include "up.h"
#if NSC > 0
#endif
if (upwstart == 0) {
#endif
if (upwstart == 0) {
- timeout(upwatch, (caddr_t)0, HZ);
+ timeout(upwatch, (caddr_t)0, hz);
upwstart++;
}
if (ui->ui_dk >= 0)
upwstart++;
}
if (ui->ui_dk >= 0)
register sc21, unit;
register struct up_softc *sc;
register sc21, unit;
register struct up_softc *sc;
- timeout(upwatch, (caddr_t)0, HZ);
+ timeout(upwatch, (caddr_t)0, hz);
for (sc21 = 0; sc21 < NSC; sc21++) {
um = upminfo[sc21];
if (um == 0 || um->um_alive == 0)
for (sc21 = 0; sc21 < NSC; sc21++) {
um = upminfo[sc21];
if (um == 0 || um->um_alive == 0)
#include "va.h"
#if NVA > 0
#include "va.h"
#if NVA > 0
vatimo()
{
if (va11.va_open)
vatimo()
{
if (va11.va_open)
- timeout(vatimo, (caddr_t)0, HZ/10);
+ timeout(vatimo, (caddr_t)0, hz/10);
#include "vp.h"
#if NVP > 0
#include "vp.h"
#if NVP > 0
{
if (vp11.vp_state&VISOPEN)
{
if (vp11.vp_state&VISOPEN)
- timeout(vptimo, (caddr_t)0, HZ/10);
+ timeout(vptimo, (caddr_t)0, hz/10);