Lines Matching defs:scntl3

1164 	**	Load the actual values for the sxfer and the scntl3
1168 ** SCR_COPY (1), @(wval field of this tcb), @(scntl3 register)
1413 ** wide_st 3 (0x03) scntl3
1913 static void ncr_selectclock (struct ncb *np, u_char scntl3);
1930 static void ncr_setsync (struct ncb *np, struct ccb *cp, u_char scntl3, u_char sxfer);
5270 ** Returns the clock factor (in sxfer) and scntl3
5355 static void ncr_setsync (struct ncb *np, struct ccb *cp, u_char scntl3, u_char sxfer)
5366 if (!scntl3 || !(sxfer & 0x1f))
5367 scntl3 = np->rv_scntl3;
5368 scntl3 = (scntl3 & 0xf0) | (tp->wval & EWS) | (np->rv_scntl3 & 0x07);
5371 ** Deduce the value of controller sync period from scntl3.
5375 idiv = ((scntl3 >> 4) & 0x7);
5382 if (tp->sval == sxfer && tp->wval == scntl3)
5385 tp->wval = scntl3;
5417 u_char scntl3;
5424 scntl3 = (tp->wval & (~EWS)) | (wide ? EWS : 0);
5431 if (tp->sval == sxfer && tp->wval == scntl3) return;
5433 tp->wval = scntl3;
5440 (scntl3 & EWS) ? "en" : "dis");
5622 ** "ncr0 targ 0?: ERROR (ds:si) (so-si-sd) (sxfer/scntl3) @ name (dsp:dbc)."
5636 ** scntl3: (see the manual)
6519 u_char scntl3;
6734 scntl3 = 0;
6736 ncr_getsync(np, per, &fak, &scntl3);
6745 scntl3 = 0;
6750 PRINT_ADDR(cp->cmd, "sync: per=%d scntl3=0x%x ofs=%d "
6751 "fak=%d chg=%d.\n", per, scntl3, ofs, fak, chg);
6770 ncr_setsync(np, cp, scntl3, (fak<<5)|ofs);
6789 ncr_setsync(np, cp, scntl3, (fak<<5)|ofs);
7259 ** COPY @(tp->wval), @(scntl3)
7646 static void ncr_selectclock(struct ncb *np, u_char scntl3)
7649 OUTB(nc_scntl3, scntl3);
7666 OUTB(nc_scntl3, scntl3);
7728 unsigned char scntl3 = INB(nc_scntl3);
7745 ** If multiplier not found or scntl3 not 7,5,3,
7747 ** Otherwise trust scntl3 BIOS setting.
7749 if (np->multiplier != mult || (scntl3 & 7) < 3 || !(scntl3 & 1)) {
7773 if ((scntl3 & 7) == 3) f1 = 40000;
7774 else if ((scntl3 & 7) == 5) f1 = 80000;