Lines Matching defs:scntl3
1162 ** Load the actual values for the sxfer and the scntl3
1166 ** SCR_COPY (1), @(wval field of this tcb), @(scntl3 register)
1411 ** wide_st 3 (0x03) scntl3
1916 static void ncr_selectclock (struct ncb *np, u_char scntl3);
1933 static void ncr_setsync (struct ncb *np, struct ccb *cp, u_char scntl3, u_char sxfer);
5411 ** Returns the clock factor (in sxfer) and scntl3
5521 static void ncr_setsync (struct ncb *np, struct ccb *cp, u_char scntl3, u_char sxfer)
5532 if (!scntl3 || !(sxfer & 0x1f))
5533 scntl3 = np->rv_scntl3;
5534 scntl3 = (scntl3 & 0xf0) | (tp->wval & EWS) | (np->rv_scntl3 & 0x07);
5537 ** Deduce the value of controller sync period from scntl3.
5541 idiv = ((scntl3 >> 4) & 0x7);
5548 if (tp->sval == sxfer && tp->wval == scntl3)
5551 tp->wval = scntl3;
5583 u_char scntl3;
5590 scntl3 = (tp->wval & (~EWS)) | (wide ? EWS : 0);
5597 if (tp->sval == sxfer && tp->wval == scntl3) return;
5599 tp->wval = scntl3;
5606 (scntl3 & EWS) ? "en" : "dis");
5788 ** "ncr0 targ 0?: ERROR (ds:si) (so-si-sd) (sxfer/scntl3) @ name (dsp:dbc)."
5802 ** scntl3: (see the manual)
6685 u_char scntl3;
6900 scntl3 = 0;
6902 ncr_getsync(np, per, &fak, &scntl3);
6911 scntl3 = 0;
6916 PRINT_ADDR(cp->cmd, "sync: per=%d scntl3=0x%x ofs=%d "
6917 "fak=%d chg=%d.\n", per, scntl3, ofs, fak, chg);
6936 ncr_setsync(np, cp, scntl3, (fak<<5)|ofs);
6955 ncr_setsync(np, cp, scntl3, (fak<<5)|ofs);
7425 ** COPY @(tp->wval), @(scntl3)
7812 static void ncr_selectclock(struct ncb *np, u_char scntl3)
7815 OUTB(nc_scntl3, scntl3);
7832 OUTB(nc_scntl3, scntl3);
7894 unsigned char scntl3 = INB(nc_scntl3);
7911 ** If multiplier not found or scntl3 not 7,5,3,
7913 ** Otherwise trust scntl3 BIOS setting.
7915 if (np->multiplier != mult || (scntl3 & 7) < 3 || !(scntl3 & 1)) {
7939 if ((scntl3 & 7) == 3) f1 = 40000;
7940 else if ((scntl3 & 7) == 5) f1 = 80000;