DELAY() --> delay(). This is not a macro.
This commit is contained in:
parent
a199f44684
commit
0c082bcaf8
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
|
||||
* $Id: machdep.c,v 1.89 1994/02/25 22:30:34 mycroft Exp $
|
||||
* $Id: machdep.c,v 1.90 1994/03/06 17:20:08 mycroft Exp $
|
||||
*/
|
||||
|
||||
#include <stddef.h>
|
||||
@ -617,7 +617,7 @@ boot(arghowto)
|
||||
if (nbusy == 0)
|
||||
break;
|
||||
printf("%d ", nbusy);
|
||||
DELAY(40000 * iter);
|
||||
delay(40000 * iter);
|
||||
}
|
||||
if (nbusy)
|
||||
printf("giving up\n");
|
||||
@ -629,7 +629,7 @@ boot(arghowto)
|
||||
*/
|
||||
resettodr();
|
||||
|
||||
DELAY(10000); /* wait for printf to finish */
|
||||
delay(10000); /* wait for printf to finish */
|
||||
}
|
||||
splhigh();
|
||||
devtype = major(rootdev);
|
||||
@ -700,7 +700,7 @@ dumpsys()
|
||||
break;
|
||||
}
|
||||
printf("\n\n");
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
}
|
||||
|
||||
#ifdef HZ
|
||||
|
@ -12,7 +12,7 @@
|
||||
* on the understanding that TFS is not responsible for the correct
|
||||
* functioning of this software in any circumstances.
|
||||
*
|
||||
* $Id: aha1542.c,v 1.17 1994/01/03 23:53:29 mycroft Exp $
|
||||
* $Id: aha1542.c,v 1.18 1994/03/06 17:18:43 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -497,7 +497,7 @@ ahaattach(struct isa_device *dev)
|
||||
}
|
||||
}
|
||||
if(!(speedprint & (1<<masunit))) {
|
||||
DELAY(1000000);
|
||||
delay(1000000);
|
||||
speedprint |= (1<<masunit);
|
||||
printf("aha%d: bus speed %dns\n", masunit, speed[masunit]);
|
||||
}
|
||||
@ -755,7 +755,7 @@ aha_init(int unit)
|
||||
* Assume we have a board at this stage
|
||||
* setup dma channel from jumpers and save int level
|
||||
*/
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
aha_cmd(unit, 0, sizeof(conf), 0, (u_char *)&conf, AHA_CONF_GET);
|
||||
switch(conf.chan) {
|
||||
case CHAN0:
|
||||
|
@ -12,7 +12,7 @@
|
||||
* on the understanding that TFS is not responsible for the correct
|
||||
* functioning of this software in any circumstances.
|
||||
*
|
||||
* $Id: bt742a.c,v 1.14 1994/03/01 12:42:36 deraadt Exp $
|
||||
* $Id: bt742a.c,v 1.15 1994/03/06 17:18:46 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -840,7 +840,7 @@ bt_init(unit)
|
||||
* setup dma channel from jumpers and save int
|
||||
* level
|
||||
*/
|
||||
DELAY(200);
|
||||
delay(200);
|
||||
|
||||
bt_cmd(unit, 0, sizeof(conf), 0, &conf, BT_CONF_GET);
|
||||
switch (conf.chan) {
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
|
||||
* $Id: clock.c,v 1.17 1994/02/08 05:10:48 mycroft Exp $
|
||||
* $Id: clock.c,v 1.18 1994/03/06 17:18:48 mycroft Exp $
|
||||
*/
|
||||
/*
|
||||
* Mach Operating System
|
||||
@ -171,7 +171,7 @@ enablertclock(void) {
|
||||
void
|
||||
spinwait(int millisecs)
|
||||
{
|
||||
DELAY(1000 * millisecs);
|
||||
delay(1000 * millisecs);
|
||||
}
|
||||
|
||||
static int first_rtcopen_ever = 1;
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
|
||||
* $Id: com.c,v 1.19 1994/02/09 21:13:41 mycroft Exp $
|
||||
* $Id: com.c,v 1.20 1994/03/06 17:18:50 mycroft Exp $
|
||||
*/
|
||||
|
||||
#include "com.h"
|
||||
@ -122,7 +122,7 @@ struct isa_device *dev;
|
||||
/* force access to id reg */
|
||||
outb(dev->id_iobase+com_cfcr, 0);
|
||||
outb(dev->id_iobase+com_iir, 0);
|
||||
DELAY(100);
|
||||
delay(100);
|
||||
if ((inb(dev->id_iobase+com_iir) & 0x38) == 0)
|
||||
return(8);
|
||||
return(0);
|
||||
@ -139,14 +139,14 @@ struct isa_device *isdp;
|
||||
|
||||
unit = isdp->id_unit;
|
||||
if (unit == comconsole)
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
com_addr[unit] = port;
|
||||
com_active |= 1 << unit;
|
||||
comsoftCAR |= 1 << unit; /* XXX */
|
||||
|
||||
/* look for a NS 16550AF UART with FIFOs */
|
||||
outb(port+com_fifo, FIFO_ENABLE|FIFO_RCV_RST|FIFO_XMT_RST|FIFO_TRIGGER_4);
|
||||
DELAY(100);
|
||||
delay(100);
|
||||
if ((inb(port+com_iir) & IIR_FIFO_MASK) == IIR_FIFO_MASK) {
|
||||
com_hasfifo |= 1 << unit;
|
||||
printf("com%d: fifo\n", isdp->id_unit);
|
||||
|
@ -27,7 +27,7 @@
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: cy.c,v 1.4 1994/02/09 21:13:43 mycroft Exp $
|
||||
* $Id: cy.c,v 1.5 1994/03/06 17:18:51 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -146,7 +146,7 @@ int cyspeed(int speed, int *prescaler_io);
|
||||
static void cy_channel_init(dev_t dev, int reset);
|
||||
static void cd1400_channel_cmd(cy_addr base, u_char cmd);
|
||||
|
||||
void DELAY(int delay);
|
||||
void delay(int delay);
|
||||
|
||||
extern unsigned int delaycount; /* calibrated 1 ms cpu-spin delay */
|
||||
|
||||
@ -239,14 +239,14 @@ cyprobe(struct isa_device *dev)
|
||||
/* Cyclom-16Y hardware reset (Cyclom-8Ys don't care) */
|
||||
i = *(cy_addr)(dev->id_maddr + CYCLOM_RESET_16);
|
||||
|
||||
DELAY(500); /* wait for the board to get its act together (500 us) */
|
||||
delay(500); /* wait for the board to get its act together (500 us) */
|
||||
|
||||
for (i = 0; i < CD1400s_PER_CYCLOM; i++) {
|
||||
cy_addr base = dev->id_maddr + i * CD1400_MEMSIZE;
|
||||
|
||||
/* wait for chip to become ready for new command */
|
||||
for (j = 0; j < 100; j += 50) {
|
||||
DELAY(50); /* wait 50 us */
|
||||
delay(50); /* wait 50 us */
|
||||
|
||||
if (!*(base + CD1400_CCR))
|
||||
break;
|
||||
@ -260,7 +260,7 @@ cyprobe(struct isa_device *dev)
|
||||
|
||||
/* wait for the CD1400 to initialise itself */
|
||||
for (j = 0; j < 1000; j += 50) {
|
||||
DELAY(50); /* wait 50 us */
|
||||
delay(50); /* wait 50 us */
|
||||
|
||||
/* retrieve firmware version */
|
||||
version = *(base + CD1400_GFRCR);
|
||||
|
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
|
||||
* $Id: fd.c,v 1.24 1994/02/06 10:04:40 mycroft Exp $
|
||||
* $Id: fd.c,v 1.25 1994/03/06 17:18:54 mycroft Exp $
|
||||
*
|
||||
* Largely rewritten to handle multiple controllers and drives
|
||||
* By Julian Elischer, Sun Apr 4 16:34:33 WST 1993
|
||||
@ -206,7 +206,7 @@ struct isa_device *dev;
|
||||
|
||||
/* Try a reset, don't change motor on */
|
||||
set_motor(fdcu,0,1);
|
||||
DELAY(100);
|
||||
delay(100);
|
||||
set_motor(fdcu,0,0);
|
||||
/* see if it can handle a command */
|
||||
if (out_fdc(fdcu,NE7CMD_SPECIFY) < 0)
|
||||
@ -769,7 +769,7 @@ int fdstate(fdcu_t fdcu, fdc_p fdc)
|
||||
case RESETCTLR:
|
||||
/* Try a reset, keep motor on */
|
||||
set_motor(fdcu,fd->fdsu,1);
|
||||
DELAY(100);
|
||||
delay(100);
|
||||
set_motor(fdcu,fd->fdsu,0);
|
||||
outb(fdc->baseport+fdctl,fd->ft->trans);
|
||||
TRACE1("[0x%x->fdctl]",fd->ft->trans);
|
||||
|
@ -13,7 +13,7 @@
|
||||
* Currently supports the Western Digital/SMC 8003 and 8013 series, the 3Com
|
||||
* 3c503, the NE1000 and NE2000, and a variety of similar clones.
|
||||
*
|
||||
* $Id: if_ed.c,v 1.35 1994/03/02 22:47:36 mycroft Exp $
|
||||
* $Id: if_ed.c,v 1.36 1994/03/06 17:18:57 mycroft Exp $
|
||||
*/
|
||||
|
||||
#include "ed.h"
|
||||
@ -244,7 +244,7 @@ ed_probe_WD80x3(isa_dev)
|
||||
|
||||
#ifdef TOSH_ETHER
|
||||
outb(sc->asic_addr + ED_WD_MSR, ED_WD_MSR_POW);
|
||||
DELAY(10000);
|
||||
delay(10000);
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -273,11 +273,11 @@ ed_probe_WD80x3(isa_dev)
|
||||
#else
|
||||
outb(sc->asic_addr + ED_WD_MSR, ED_WD_MSR_RST);
|
||||
#endif
|
||||
DELAY(100);
|
||||
delay(100);
|
||||
outb(sc->asic_addr + ED_WD_MSR,
|
||||
inb(sc->asic_addr + ED_WD_MSR) & ~ED_WD_MSR_RST);
|
||||
/* Wait in the case this card is reading it's EEROM. */
|
||||
DELAY(5000);
|
||||
delay(5000);
|
||||
|
||||
sc->vendor = ED_VENDOR_WD_SMC;
|
||||
sc->type = inb(sc->asic_addr + ED_WD_CARD_ID);
|
||||
@ -668,7 +668,7 @@ ed_probe_3Com(isa_dev)
|
||||
outb(sc->asic_addr + ED_3COM_CR, ED_3COM_CR_RST | ED_3COM_CR_XSEL);
|
||||
|
||||
/* Wait for a while, then un-reset it. */
|
||||
DELAY(50);
|
||||
delay(50);
|
||||
/*
|
||||
* The 3Com ASIC defaults to rather strange settings for the CR after a
|
||||
* reset - it's important to set it again after the following outb
|
||||
@ -677,7 +677,7 @@ ed_probe_3Com(isa_dev)
|
||||
outb(sc->asic_addr + ED_3COM_CR, ED_3COM_CR_XSEL);
|
||||
|
||||
/* Wait a bit for the NIC to recover from the reset. */
|
||||
DELAY(5000);
|
||||
delay(5000);
|
||||
|
||||
sc->vendor = ED_VENDOR_3COM;
|
||||
sc->type_str = "3c503";
|
||||
@ -866,7 +866,7 @@ ed_probe_Novell(isa_dev)
|
||||
* the invasive thing for now. Yuck.]
|
||||
*/
|
||||
outb(sc->asic_addr + ED_NOVELL_RESET, tmp);
|
||||
DELAY(5000);
|
||||
delay(5000);
|
||||
|
||||
/*
|
||||
* This is needed because some NE clones apparently don't reset the NIC
|
||||
@ -876,7 +876,7 @@ ed_probe_Novell(isa_dev)
|
||||
*/
|
||||
outb(sc->nic_addr + ED_P0_CR, ED_CR_RD2 | ED_CR_STP);
|
||||
|
||||
DELAY(5000);
|
||||
delay(5000);
|
||||
|
||||
/* Make sure that we really have an 8390 based board. */
|
||||
if (!ed_probe_generic8390(sc))
|
||||
|
@ -9,7 +9,7 @@
|
||||
/*
|
||||
* 3COM Etherlink 3C501 device driver
|
||||
*
|
||||
* $Id: if_el.c,v 1.5 1994/03/03 15:30:27 mycroft Exp $
|
||||
* $Id: if_el.c,v 1.6 1994/03/06 17:19:00 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -143,7 +143,7 @@ el_probe(isa_dev)
|
||||
/* Reset the board. */
|
||||
dprintf(("Resetting board...\n"));
|
||||
outb(iobase+EL_AC, EL_AC_RESET);
|
||||
DELAY(5);
|
||||
delay(5);
|
||||
outb(iobase+EL_AC, 0);
|
||||
|
||||
/* Now read the address. */
|
||||
@ -277,7 +277,7 @@ el_hardreset(sc)
|
||||
int i;
|
||||
|
||||
outb(iobase+EL_AC, EL_AC_RESET);
|
||||
DELAY(5);
|
||||
delay(5);
|
||||
outb(iobase+EL_AC, 0);
|
||||
|
||||
for (i = 0; i < ETHER_ADDR_LEN; i++)
|
||||
|
@ -21,7 +21,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: if_ep.c,v 1.19 1994/03/04 01:31:50 hpeyerl Exp $
|
||||
* $Id: if_ep.c,v 1.20 1994/03/06 17:19:01 mycroft Exp $
|
||||
*/
|
||||
/*
|
||||
* TODO:
|
||||
@ -172,12 +172,12 @@ isa_epprobe(is)
|
||||
u_short k;
|
||||
|
||||
outw(BASE + EP_COMMAND, GLOBAL_RESET);
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
elink_reset(); /* global reset to ELINK_ID_PORT */
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
outb(ELINK_ID_PORT, 0x00);
|
||||
elink_idseq(ELINK_509_POLY);
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
|
||||
/*
|
||||
* MFG_ID should have 0x6d50.
|
||||
@ -351,11 +351,11 @@ epinit(unit)
|
||||
GO_WINDOW(1);
|
||||
if (!(ifp->if_flags & IFF_LINK0) && (sc->ep_connectors & BNC)) {
|
||||
outw(BASE + EP_COMMAND, START_TRANSCEIVER);
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
}
|
||||
if (ifp->if_flags & IFF_LINK0) {
|
||||
outw(BASE + EP_COMMAND, STOP_TRANSCEIVER);
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
if((ifp->if_flags & IFF_LINK1) && (sc->ep_connectors & UTP)) {
|
||||
GO_WINDOW(4);
|
||||
outw(BASE + EP_W4_MEDIA_TYPE, ENABLE_UTP);
|
||||
@ -883,7 +883,7 @@ epreadeeprom(id_port, offset)
|
||||
{
|
||||
int i, data = 0;
|
||||
outb(id_port, 0x80 + offset);
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
for (i = 0; i < 16; i++)
|
||||
data = (data << 1) | (inw(id_port) & 1);
|
||||
return (data);
|
||||
@ -899,7 +899,7 @@ epbusyeeprom(is)
|
||||
while (i++ < 100) {
|
||||
j = inw(BASE + EP_W0_EEPROM_COMMAND);
|
||||
if (j & EEPROM_BUSY)
|
||||
DELAY(100);
|
||||
delay(100);
|
||||
else
|
||||
break;
|
||||
}
|
||||
|
@ -31,7 +31,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: if_hp.c,v 1.14 1994/02/10 17:18:01 mycroft Exp $
|
||||
* $Id: if_hp.c,v 1.15 1994/03/06 17:19:03 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -192,7 +192,7 @@ hpprobe(dvp)
|
||||
#if 0
|
||||
outb(hpc + ds0_isr, 0xff);
|
||||
outb(hpc + ds_cmd, DSCM_NODMA | DSCM_PG0 | DSCM_STOP);
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
|
||||
/* Check cmd reg and fail if not right */
|
||||
if ((i = inb(hpc + ds_cmd)) != (DSCM_NODMA | DSCM_PG0 | DSCM_STOP)) {
|
||||
|
@ -40,7 +40,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: if_ie.c,v 1.5 1994/02/16 20:52:37 mycroft Exp $
|
||||
* $Id: if_ie.c,v 1.6 1994/03/06 17:19:04 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1354,7 +1354,7 @@ check_ie_present(sc, where, size)
|
||||
(sc->reset_586)(sc);
|
||||
(sc->chan_attn)(sc);
|
||||
|
||||
DELAY(100); /* wait a while... */
|
||||
delay(100); /* wait a while... */
|
||||
|
||||
if (iscp->ie_busy) {
|
||||
splx(s);
|
||||
@ -1377,7 +1377,7 @@ check_ie_present(sc, where, size)
|
||||
(sc->reset_586)(sc);
|
||||
(sc->chan_attn)(sc);
|
||||
|
||||
DELAY(100);
|
||||
delay(100);
|
||||
|
||||
if (iscp->ie_busy) {
|
||||
splx(s);
|
||||
@ -1424,9 +1424,9 @@ el_reset_586(sc)
|
||||
{
|
||||
|
||||
outb(PORT + IE507_CTRL, EL_CTRL_RESET);
|
||||
DELAY(100);
|
||||
delay(100);
|
||||
outb(PORT + IE507_CTRL, EL_CTRL_NORMAL);
|
||||
DELAY(100);
|
||||
delay(100);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -11,7 +11,7 @@
|
||||
* of this software, nor does the author assume any responsibility
|
||||
* for damages incurred with its use.
|
||||
*
|
||||
* $Id: if_is.c,v 1.23 1994/02/16 20:22:16 mycroft Exp $
|
||||
* $Id: if_is.c,v 1.24 1994/03/06 17:19:07 mycroft Exp $
|
||||
*/
|
||||
|
||||
/* TODO
|
||||
@ -258,7 +258,7 @@ lance_probe(sc)
|
||||
|
||||
/* Stop the LANCE chip and put it in a known state. */
|
||||
iswrcsr(sc, 0, STOP);
|
||||
DELAY(100);
|
||||
delay(100);
|
||||
|
||||
if (isrdcsr(sc, 0) != STOP)
|
||||
return 0;
|
||||
|
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)isa.c 7.2 (Berkeley) 5/13/91
|
||||
* $Id: isa.c,v 1.38 1994/03/01 18:22:52 mycroft Exp $
|
||||
* $Id: isa.c,v 1.39 1994/03/06 17:19:09 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -580,7 +580,7 @@ isa_strayintr(d) {
|
||||
extern int hz; /* XXX - should be elsewhere */
|
||||
|
||||
void
|
||||
DELAY(n)
|
||||
delay(n)
|
||||
int n;
|
||||
{
|
||||
int counter_limit;
|
||||
@ -598,11 +598,11 @@ DELAY(n)
|
||||
if (state == 0) {
|
||||
state = 1;
|
||||
for (n1 = 1; n1 <= 10000000; n1 *= 10)
|
||||
DELAY(n1);
|
||||
delay(n1);
|
||||
state = 2;
|
||||
}
|
||||
if (state == 1)
|
||||
printf("DELAY(%d)...", n);
|
||||
printf("delay(%d)...", n);
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
@ -20,7 +20,7 @@
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: lms.c,v 1.8 1994/02/17 03:39:52 mycroft Exp $
|
||||
* $Id: lms.c,v 1.9 1994/03/06 17:19:10 mycroft Exp $
|
||||
*/
|
||||
|
||||
#include "lms.h"
|
||||
@ -83,13 +83,13 @@ lmsprobe(isa_dev)
|
||||
|
||||
/* Configure and check for port present. */
|
||||
outb(iobase + LMS_CONFIG, 0x91);
|
||||
DELAY(10);
|
||||
delay(10);
|
||||
outb(iobase + LMS_SIGN, 0x0c);
|
||||
DELAY(10);
|
||||
delay(10);
|
||||
if (inb(iobase + LMS_SIGN) != 0x0c)
|
||||
return 0;
|
||||
outb(iobase + LMS_SIGN, 0x50);
|
||||
DELAY(10);
|
||||
delay(10);
|
||||
if (inb(iobase + LMS_SIGN) != 0x50)
|
||||
return 0;
|
||||
|
||||
|
@ -46,7 +46,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: lpt.c,v 1.13 1994/02/19 03:36:12 mycroft Exp $
|
||||
* $Id: lpt.c,v 1.14 1994/03/06 17:19:11 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -144,7 +144,7 @@ lpt_port_test(port, data, mask)
|
||||
outb(port, data);
|
||||
timeout = 1000;
|
||||
do {
|
||||
DELAY(10);
|
||||
delay(10);
|
||||
temp = inb(port) & mask;
|
||||
} while (temp != data && --timeout);
|
||||
lprintf("lpt: port=0x%x out=0x%x in=0x%x timeout=%d\n", port, data,
|
||||
@ -292,7 +292,7 @@ lptopen(dev, flag)
|
||||
if ((flags & LPT_NOPRIME) == 0) {
|
||||
/* assert INIT for 100 usec to start up printer */
|
||||
outb(iobase + lpt_control, LPC_SELECT);
|
||||
DELAY(100);
|
||||
delay(100);
|
||||
}
|
||||
|
||||
control = LPC_SELECT | LPC_NINIT;
|
||||
|
@ -35,7 +35,7 @@
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: mcd.c,v 1.6 1994/02/21 15:23:11 mycroft Exp $
|
||||
* $Id: mcd.c,v 1.7 1994/03/06 17:19:13 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*static char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore";*/
|
||||
@ -550,11 +550,11 @@ mcdprobe(isa_dev)
|
||||
|
||||
/* Send a reset. */
|
||||
outb(iobase + mcd_reset, 0);
|
||||
DELAY(300000);
|
||||
delay(300000);
|
||||
/* Get any pending status and throw away. */
|
||||
for (i = 10; i; i--)
|
||||
inb(iobase + mcd_status);
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
|
||||
/* Send get status command. */
|
||||
outb(iobase + mcd_command, MCD_CMDGETSTAT);
|
||||
@ -576,7 +576,7 @@ mcdprobe(isa_dev)
|
||||
* driven routines mcd_getreply etc. rather than arbitrary delays.
|
||||
*/
|
||||
|
||||
DELAY (2000);
|
||||
delay (2000);
|
||||
outb(iobase + mcd_command, MCD_CMDCONTINFO);
|
||||
i = mcd_getreply(sc, DELAY_GETREPLY);
|
||||
|
||||
@ -628,7 +628,7 @@ mcd_waitrdy(iobase, dly)
|
||||
for (i = dly; i; i--) {
|
||||
if ((inb(iobase + mcd_xfer) & MCD_ST_BUSY) == 0)
|
||||
return 0;
|
||||
DELAY(1);
|
||||
delay(1);
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
@ -997,7 +997,7 @@ readerr:
|
||||
#ifdef notyet
|
||||
printf("%s: unit timeout; resetting\n", sc->sc_dev.dv_xname);
|
||||
outb(mbx->iobase + mcd_reset, MCD_CMDRESET);
|
||||
DELAY(300000);
|
||||
delay(300000);
|
||||
(void)mcd_getstat(sc, 1);
|
||||
(void)mcd_getstat(sc, 1);
|
||||
/*sc->status &= ~MCDDSKCHNG; */
|
||||
|
@ -32,7 +32,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)npx.c 7.2 (Berkeley) 5/12/91
|
||||
* $Id: npx.c,v 1.13 1994/03/03 22:22:51 mycroft Exp $
|
||||
* $Id: npx.c,v 1.14 1994/03/06 17:19:15 mycroft Exp $
|
||||
*/
|
||||
#include "npx.h"
|
||||
#if NNPX > 0
|
||||
@ -219,7 +219,7 @@ npxprobe1(dvp)
|
||||
* it after a warm boot.
|
||||
*/
|
||||
outb(0xf1, 0); /* full reset on some systems, NOP on others */
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
outb(0xf0, 0); /* clear BUSY# latch */
|
||||
/*
|
||||
* Prepare to trap all ESC (i.e., NPX) instructions and all WAIT
|
||||
@ -247,7 +247,7 @@ npxprobe1(dvp)
|
||||
* IRQ13 and cleared the BUSY# latch early to handle them anyway.
|
||||
*/
|
||||
fninit();
|
||||
DELAY(1000); /* wait for any IRQ13 (fwait might hang) */
|
||||
delay(1000); /* wait for any IRQ13 (fwait might hang) */
|
||||
#ifdef DIAGNOSTIC
|
||||
if (npx_intrs_while_probing != 0)
|
||||
printf("fninit caused %u bogus npx interrupt(s)\n",
|
||||
|
@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: sb.c,v 1.4 1994/03/02 16:23:10 hpeyerl Exp $
|
||||
* $Id: sb.c,v 1.5 1994/03/06 17:19:16 mycroft Exp $
|
||||
*/
|
||||
|
||||
#include "sb.h"
|
||||
@ -362,7 +362,7 @@ sbreset(register u_long base)
|
||||
* Gee, what a brilliant hardware design.
|
||||
*/
|
||||
outb(base + SBP_DSP_RESET, 1);
|
||||
DELAY(3);
|
||||
delay(3);
|
||||
outb(base + SBP_DSP_RESET, 0);
|
||||
if (rdsp(base) != SB_MAGIC)
|
||||
return (-1);
|
||||
@ -383,7 +383,7 @@ void
|
||||
sb_spkron(struct sb_softc *sc)
|
||||
{
|
||||
(void)wdsp(sc->sc_base, SB_DSP_SPKR_ON);
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)wd.c 7.2 (Berkeley) 5/9/91
|
||||
* $Id: wd.c,v 1.60 1994/03/05 08:17:06 mycroft Exp $
|
||||
* $Id: wd.c,v 1.61 1994/03/06 17:19:19 mycroft Exp $
|
||||
*/
|
||||
|
||||
#define QUIETWORKS /* define this to make wdopen() set DKFL_QUIET */
|
||||
@ -1465,9 +1465,9 @@ wdreset(du, err)
|
||||
|
||||
/* reset the device */
|
||||
outb(wdc+wd_ctlr, WDCTL_RST | WDCTL_IDS);
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
outb(wdc+wd_ctlr, WDCTL_IDS);
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
(void) inb(wdc+wd_error);
|
||||
outb(wdc+wd_ctlr, WDCTL_4BIT);
|
||||
|
||||
@ -1490,7 +1490,7 @@ wdc_wait(du, mask)
|
||||
break;
|
||||
if (++timeout > WDCNDELAY)
|
||||
return -1;
|
||||
DELAY(WDCDELAY);
|
||||
delay(WDCDELAY);
|
||||
}
|
||||
#ifdef WDCNDELAY_DEBUG
|
||||
if (timeout > WDCNDELAY_DEBUG)
|
||||
|
@ -16,7 +16,7 @@
|
||||
* scatter gather is done by the board, then look at one of the Adaptec
|
||||
* drivers to finish off the job..
|
||||
*
|
||||
* $Id: wd7000.c,v 1.10 1994/01/03 23:53:39 mycroft Exp $
|
||||
* $Id: wd7000.c,v 1.11 1994/03/06 17:19:21 mycroft Exp $
|
||||
*/
|
||||
#include "wds.h"
|
||||
#if NWDS > 0
|
||||
@ -359,7 +359,7 @@ wds_scsi_cmd(struct scsi_xfer *sxp)
|
||||
return TRY_AGAIN_LATER;
|
||||
}
|
||||
|
||||
DELAY(10000);
|
||||
delay(10000);
|
||||
/*printf("%08x/%08x mbox: %02x %02x %02x %02x\n", &r->cmd, KVTOPHYS(&r->cmd),
|
||||
wds[unit].ombs[r->ombn].stat, wds[unit].ombs[r->ombn].addr[0],
|
||||
wds[unit].ombs[r->ombn].addr[1], wds[unit].ombs[r->ombn].addr[2]);*/
|
||||
@ -369,7 +369,7 @@ repoll: printf("wds%d: polling.", unit);
|
||||
i = 0;
|
||||
while( (inb(base+WDS_STAT) & WDS_IRQ) == 0) {
|
||||
printf(".");
|
||||
DELAY(10000);
|
||||
delay(10000);
|
||||
if(++i == 10) {
|
||||
printf("failed %02x\n", inb(base+WDS_IRQSTAT));
|
||||
/*r->busy = 0;*/
|
||||
@ -411,11 +411,11 @@ wdsintr(int unit)
|
||||
u_char c;
|
||||
|
||||
/*printf("stat=%02x\n", inb(wds[unit].addr + WDS_STAT));*/
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
c = inb(wds[unit].addr + WDS_IRQSTAT);
|
||||
printf("wdsintr: %02x\n", c);
|
||||
if( (c&WDSI_MASK) == WDSI_MSVC) {
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
c = c & ~WDSI_MASK;
|
||||
flushcache();
|
||||
in = &wds[unit].imbs[c];
|
||||
@ -544,7 +544,7 @@ wds_getvers(int unit)
|
||||
return -1;
|
||||
}
|
||||
|
||||
DELAY(10000);
|
||||
delay(10000);
|
||||
/*printf("%08x/%08x mbox: %02x %02x %02x %02x\n", &r->cmd, KVTOPHYS(&r->cmd),
|
||||
wds[unit].ombs[r->ombn].stat, wds[unit].ombs[r->ombn].addr[0],
|
||||
wds[unit].ombs[r->ombn].addr[1], wds[unit].ombs[r->ombn].addr[2]);*/
|
||||
@ -554,7 +554,7 @@ wds_getvers(int unit)
|
||||
i = 0;
|
||||
while( (inb(base+WDS_STAT) & WDS_IRQ) == 0) {
|
||||
printf(".");
|
||||
DELAY(10000);
|
||||
delay(10000);
|
||||
if(++i == 10) {
|
||||
printf("failed %02x\n", inb(base+WDS_IRQSTAT));
|
||||
/*r->busy = 0;*/
|
||||
@ -624,7 +624,7 @@ wds_init(struct isa_device *dev)
|
||||
for(i=0; i<4; i++)
|
||||
if( (inb(base+WDS_STAT) & WDS_RDY) != 0) {
|
||||
goto ready;
|
||||
DELAY(10);
|
||||
delay(10);
|
||||
}
|
||||
return 1;
|
||||
|
||||
@ -637,9 +637,9 @@ ready:
|
||||
* the controller exists. reset and init.
|
||||
*/
|
||||
outb(base+WDS_HCR, WDSH_SCSIRESET|WDSH_ASCRESET);
|
||||
DELAY(3);
|
||||
delay(3);
|
||||
outb(base+WDS_HCR, WDSH_DRQEN);
|
||||
DELAY(20000);
|
||||
delay(20000);
|
||||
|
||||
#if 1
|
||||
outb(0xd6, 0xc3);
|
||||
@ -654,7 +654,7 @@ ready:
|
||||
if( (inb(base+WDS_STAT) & (WDS_RDY)) == WDS_RDY)
|
||||
break;
|
||||
printf(".");
|
||||
DELAY(10000);
|
||||
delay(10000);
|
||||
}
|
||||
if( (inb(base+WDS_STAT) & (WDS_RDY)) != WDS_RDY) {
|
||||
printf("failed\n");
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)wt.c 7.1 (Berkeley) 5/9/91
|
||||
* $Id: wt.c,v 1.7 1994/02/09 21:13:58 mycroft Exp $
|
||||
* $Id: wt.c,v 1.8 1994/03/06 17:19:22 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -526,7 +526,7 @@ int dev, flag;
|
||||
#ifdef DEBUG
|
||||
debug("Waiting for rew to finish\n");
|
||||
#endif
|
||||
DELAY(1000000); /* delay one second */
|
||||
delay(1000000); /* delay one second */
|
||||
}
|
||||
/* Only do reset and select when tape light is off, and tape is rewound.
|
||||
* This allows multiple volumes. */
|
||||
@ -786,7 +786,7 @@ rdyexc(ticks)
|
||||
if (!(s & READY)) /* check if controller is ready */
|
||||
break;
|
||||
s = splbio();
|
||||
DELAY((ticks/HZ)*1000000); /* */
|
||||
delay((ticks/HZ)*1000000); /* */
|
||||
splx(s);
|
||||
}
|
||||
#ifdef DEBUG
|
||||
@ -996,7 +996,7 @@ t_reset()
|
||||
register i;
|
||||
mbits |= RESET;
|
||||
outb(CTLPORT, mbits); /* send reset */
|
||||
DELAY(20);
|
||||
delay(20);
|
||||
mbits &= ~RESET;
|
||||
outb(CTLPORT, mbits); /* turn off reset */
|
||||
if ((inb(STATPORT) & RESETMASK) == RESETVAL)
|
||||
|
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)wd.c 7.2 (Berkeley) 5/9/91
|
||||
* $Id: wd.c,v 1.60 1994/03/05 08:17:06 mycroft Exp $
|
||||
* $Id: wd.c,v 1.61 1994/03/06 17:19:19 mycroft Exp $
|
||||
*/
|
||||
|
||||
#define QUIETWORKS /* define this to make wdopen() set DKFL_QUIET */
|
||||
@ -1465,9 +1465,9 @@ wdreset(du, err)
|
||||
|
||||
/* reset the device */
|
||||
outb(wdc+wd_ctlr, WDCTL_RST | WDCTL_IDS);
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
outb(wdc+wd_ctlr, WDCTL_IDS);
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
(void) inb(wdc+wd_error);
|
||||
outb(wdc+wd_ctlr, WDCTL_4BIT);
|
||||
|
||||
@ -1490,7 +1490,7 @@ wdc_wait(du, mask)
|
||||
break;
|
||||
if (++timeout > WDCNDELAY)
|
||||
return -1;
|
||||
DELAY(WDCDELAY);
|
||||
delay(WDCDELAY);
|
||||
}
|
||||
#ifdef WDCNDELAY_DEBUG
|
||||
if (timeout > WDCNDELAY_DEBUG)
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
|
||||
* $Id: com.c,v 1.19 1994/02/09 21:13:41 mycroft Exp $
|
||||
* $Id: com.c,v 1.20 1994/03/06 17:18:50 mycroft Exp $
|
||||
*/
|
||||
|
||||
#include "com.h"
|
||||
@ -122,7 +122,7 @@ struct isa_device *dev;
|
||||
/* force access to id reg */
|
||||
outb(dev->id_iobase+com_cfcr, 0);
|
||||
outb(dev->id_iobase+com_iir, 0);
|
||||
DELAY(100);
|
||||
delay(100);
|
||||
if ((inb(dev->id_iobase+com_iir) & 0x38) == 0)
|
||||
return(8);
|
||||
return(0);
|
||||
@ -139,14 +139,14 @@ struct isa_device *isdp;
|
||||
|
||||
unit = isdp->id_unit;
|
||||
if (unit == comconsole)
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
com_addr[unit] = port;
|
||||
com_active |= 1 << unit;
|
||||
comsoftCAR |= 1 << unit; /* XXX */
|
||||
|
||||
/* look for a NS 16550AF UART with FIFOs */
|
||||
outb(port+com_fifo, FIFO_ENABLE|FIFO_RCV_RST|FIFO_XMT_RST|FIFO_TRIGGER_4);
|
||||
DELAY(100);
|
||||
delay(100);
|
||||
if ((inb(port+com_iir) & IIR_FIFO_MASK) == IIR_FIFO_MASK) {
|
||||
com_hasfifo |= 1 << unit;
|
||||
printf("com%d: fifo\n", isdp->id_unit);
|
||||
|
@ -46,7 +46,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: lpt.c,v 1.13 1994/02/19 03:36:12 mycroft Exp $
|
||||
* $Id: lpt.c,v 1.14 1994/03/06 17:19:11 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -144,7 +144,7 @@ lpt_port_test(port, data, mask)
|
||||
outb(port, data);
|
||||
timeout = 1000;
|
||||
do {
|
||||
DELAY(10);
|
||||
delay(10);
|
||||
temp = inb(port) & mask;
|
||||
} while (temp != data && --timeout);
|
||||
lprintf("lpt: port=0x%x out=0x%x in=0x%x timeout=%d\n", port, data,
|
||||
@ -292,7 +292,7 @@ lptopen(dev, flag)
|
||||
if ((flags & LPT_NOPRIME) == 0) {
|
||||
/* assert INIT for 100 usec to start up printer */
|
||||
outb(iobase + lpt_control, LPC_SELECT);
|
||||
DELAY(100);
|
||||
delay(100);
|
||||
}
|
||||
|
||||
control = LPC_SELECT | LPC_NINIT;
|
||||
|
@ -46,7 +46,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: lptvar.h,v 1.13 1994/02/19 03:36:12 mycroft Exp $
|
||||
* $Id: lptvar.h,v 1.14 1994/03/06 17:19:11 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -144,7 +144,7 @@ lpt_port_test(port, data, mask)
|
||||
outb(port, data);
|
||||
timeout = 1000;
|
||||
do {
|
||||
DELAY(10);
|
||||
delay(10);
|
||||
temp = inb(port) & mask;
|
||||
} while (temp != data && --timeout);
|
||||
lprintf("lpt: port=0x%x out=0x%x in=0x%x timeout=%d\n", port, data,
|
||||
@ -292,7 +292,7 @@ lptopen(dev, flag)
|
||||
if ((flags & LPT_NOPRIME) == 0) {
|
||||
/* assert INIT for 100 usec to start up printer */
|
||||
outb(iobase + lpt_control, LPC_SELECT);
|
||||
DELAY(100);
|
||||
delay(100);
|
||||
}
|
||||
|
||||
control = LPC_SELECT | LPC_NINIT;
|
||||
|
@ -12,7 +12,7 @@
|
||||
* on the understanding that TFS is not responsible for the correct
|
||||
* functioning of this software in any circumstances.
|
||||
*
|
||||
* $Id: aha1542.c,v 1.17 1994/01/03 23:53:29 mycroft Exp $
|
||||
* $Id: aha1542.c,v 1.18 1994/03/06 17:18:43 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -497,7 +497,7 @@ ahaattach(struct isa_device *dev)
|
||||
}
|
||||
}
|
||||
if(!(speedprint & (1<<masunit))) {
|
||||
DELAY(1000000);
|
||||
delay(1000000);
|
||||
speedprint |= (1<<masunit);
|
||||
printf("aha%d: bus speed %dns\n", masunit, speed[masunit]);
|
||||
}
|
||||
@ -755,7 +755,7 @@ aha_init(int unit)
|
||||
* Assume we have a board at this stage
|
||||
* setup dma channel from jumpers and save int level
|
||||
*/
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
aha_cmd(unit, 0, sizeof(conf), 0, (u_char *)&conf, AHA_CONF_GET);
|
||||
switch(conf.chan) {
|
||||
case CHAN0:
|
||||
|
@ -12,7 +12,7 @@
|
||||
* on the understanding that TFS is not responsible for the correct
|
||||
* functioning of this software in any circumstances.
|
||||
*
|
||||
* $Id: bt742a.c,v 1.14 1994/03/01 12:42:36 deraadt Exp $
|
||||
* $Id: bt742a.c,v 1.15 1994/03/06 17:18:46 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -840,7 +840,7 @@ bt_init(unit)
|
||||
* setup dma channel from jumpers and save int
|
||||
* level
|
||||
*/
|
||||
DELAY(200);
|
||||
delay(200);
|
||||
|
||||
bt_cmd(unit, 0, sizeof(conf), 0, &conf, BT_CONF_GET);
|
||||
switch (conf.chan) {
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
|
||||
* $Id: com.c,v 1.19 1994/02/09 21:13:41 mycroft Exp $
|
||||
* $Id: com.c,v 1.20 1994/03/06 17:18:50 mycroft Exp $
|
||||
*/
|
||||
|
||||
#include "com.h"
|
||||
@ -122,7 +122,7 @@ struct isa_device *dev;
|
||||
/* force access to id reg */
|
||||
outb(dev->id_iobase+com_cfcr, 0);
|
||||
outb(dev->id_iobase+com_iir, 0);
|
||||
DELAY(100);
|
||||
delay(100);
|
||||
if ((inb(dev->id_iobase+com_iir) & 0x38) == 0)
|
||||
return(8);
|
||||
return(0);
|
||||
@ -139,14 +139,14 @@ struct isa_device *isdp;
|
||||
|
||||
unit = isdp->id_unit;
|
||||
if (unit == comconsole)
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
com_addr[unit] = port;
|
||||
com_active |= 1 << unit;
|
||||
comsoftCAR |= 1 << unit; /* XXX */
|
||||
|
||||
/* look for a NS 16550AF UART with FIFOs */
|
||||
outb(port+com_fifo, FIFO_ENABLE|FIFO_RCV_RST|FIFO_XMT_RST|FIFO_TRIGGER_4);
|
||||
DELAY(100);
|
||||
delay(100);
|
||||
if ((inb(port+com_iir) & IIR_FIFO_MASK) == IIR_FIFO_MASK) {
|
||||
com_hasfifo |= 1 << unit;
|
||||
printf("com%d: fifo\n", isdp->id_unit);
|
||||
|
@ -27,7 +27,7 @@
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: cy.c,v 1.4 1994/02/09 21:13:43 mycroft Exp $
|
||||
* $Id: cy.c,v 1.5 1994/03/06 17:18:51 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -146,7 +146,7 @@ int cyspeed(int speed, int *prescaler_io);
|
||||
static void cy_channel_init(dev_t dev, int reset);
|
||||
static void cd1400_channel_cmd(cy_addr base, u_char cmd);
|
||||
|
||||
void DELAY(int delay);
|
||||
void delay(int delay);
|
||||
|
||||
extern unsigned int delaycount; /* calibrated 1 ms cpu-spin delay */
|
||||
|
||||
@ -239,14 +239,14 @@ cyprobe(struct isa_device *dev)
|
||||
/* Cyclom-16Y hardware reset (Cyclom-8Ys don't care) */
|
||||
i = *(cy_addr)(dev->id_maddr + CYCLOM_RESET_16);
|
||||
|
||||
DELAY(500); /* wait for the board to get its act together (500 us) */
|
||||
delay(500); /* wait for the board to get its act together (500 us) */
|
||||
|
||||
for (i = 0; i < CD1400s_PER_CYCLOM; i++) {
|
||||
cy_addr base = dev->id_maddr + i * CD1400_MEMSIZE;
|
||||
|
||||
/* wait for chip to become ready for new command */
|
||||
for (j = 0; j < 100; j += 50) {
|
||||
DELAY(50); /* wait 50 us */
|
||||
delay(50); /* wait 50 us */
|
||||
|
||||
if (!*(base + CD1400_CCR))
|
||||
break;
|
||||
@ -260,7 +260,7 @@ cyprobe(struct isa_device *dev)
|
||||
|
||||
/* wait for the CD1400 to initialise itself */
|
||||
for (j = 0; j < 1000; j += 50) {
|
||||
DELAY(50); /* wait 50 us */
|
||||
delay(50); /* wait 50 us */
|
||||
|
||||
/* retrieve firmware version */
|
||||
version = *(base + CD1400_GFRCR);
|
||||
|
@ -13,7 +13,7 @@
|
||||
* Currently supports the Western Digital/SMC 8003 and 8013 series, the 3Com
|
||||
* 3c503, the NE1000 and NE2000, and a variety of similar clones.
|
||||
*
|
||||
* $Id: if_ed.c,v 1.35 1994/03/02 22:47:36 mycroft Exp $
|
||||
* $Id: if_ed.c,v 1.36 1994/03/06 17:18:57 mycroft Exp $
|
||||
*/
|
||||
|
||||
#include "ed.h"
|
||||
@ -244,7 +244,7 @@ ed_probe_WD80x3(isa_dev)
|
||||
|
||||
#ifdef TOSH_ETHER
|
||||
outb(sc->asic_addr + ED_WD_MSR, ED_WD_MSR_POW);
|
||||
DELAY(10000);
|
||||
delay(10000);
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -273,11 +273,11 @@ ed_probe_WD80x3(isa_dev)
|
||||
#else
|
||||
outb(sc->asic_addr + ED_WD_MSR, ED_WD_MSR_RST);
|
||||
#endif
|
||||
DELAY(100);
|
||||
delay(100);
|
||||
outb(sc->asic_addr + ED_WD_MSR,
|
||||
inb(sc->asic_addr + ED_WD_MSR) & ~ED_WD_MSR_RST);
|
||||
/* Wait in the case this card is reading it's EEROM. */
|
||||
DELAY(5000);
|
||||
delay(5000);
|
||||
|
||||
sc->vendor = ED_VENDOR_WD_SMC;
|
||||
sc->type = inb(sc->asic_addr + ED_WD_CARD_ID);
|
||||
@ -668,7 +668,7 @@ ed_probe_3Com(isa_dev)
|
||||
outb(sc->asic_addr + ED_3COM_CR, ED_3COM_CR_RST | ED_3COM_CR_XSEL);
|
||||
|
||||
/* Wait for a while, then un-reset it. */
|
||||
DELAY(50);
|
||||
delay(50);
|
||||
/*
|
||||
* The 3Com ASIC defaults to rather strange settings for the CR after a
|
||||
* reset - it's important to set it again after the following outb
|
||||
@ -677,7 +677,7 @@ ed_probe_3Com(isa_dev)
|
||||
outb(sc->asic_addr + ED_3COM_CR, ED_3COM_CR_XSEL);
|
||||
|
||||
/* Wait a bit for the NIC to recover from the reset. */
|
||||
DELAY(5000);
|
||||
delay(5000);
|
||||
|
||||
sc->vendor = ED_VENDOR_3COM;
|
||||
sc->type_str = "3c503";
|
||||
@ -866,7 +866,7 @@ ed_probe_Novell(isa_dev)
|
||||
* the invasive thing for now. Yuck.]
|
||||
*/
|
||||
outb(sc->asic_addr + ED_NOVELL_RESET, tmp);
|
||||
DELAY(5000);
|
||||
delay(5000);
|
||||
|
||||
/*
|
||||
* This is needed because some NE clones apparently don't reset the NIC
|
||||
@ -876,7 +876,7 @@ ed_probe_Novell(isa_dev)
|
||||
*/
|
||||
outb(sc->nic_addr + ED_P0_CR, ED_CR_RD2 | ED_CR_STP);
|
||||
|
||||
DELAY(5000);
|
||||
delay(5000);
|
||||
|
||||
/* Make sure that we really have an 8390 based board. */
|
||||
if (!ed_probe_generic8390(sc))
|
||||
|
@ -9,7 +9,7 @@
|
||||
/*
|
||||
* 3COM Etherlink 3C501 device driver
|
||||
*
|
||||
* $Id: if_el.c,v 1.5 1994/03/03 15:30:27 mycroft Exp $
|
||||
* $Id: if_el.c,v 1.6 1994/03/06 17:19:00 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -143,7 +143,7 @@ el_probe(isa_dev)
|
||||
/* Reset the board. */
|
||||
dprintf(("Resetting board...\n"));
|
||||
outb(iobase+EL_AC, EL_AC_RESET);
|
||||
DELAY(5);
|
||||
delay(5);
|
||||
outb(iobase+EL_AC, 0);
|
||||
|
||||
/* Now read the address. */
|
||||
@ -277,7 +277,7 @@ el_hardreset(sc)
|
||||
int i;
|
||||
|
||||
outb(iobase+EL_AC, EL_AC_RESET);
|
||||
DELAY(5);
|
||||
delay(5);
|
||||
outb(iobase+EL_AC, 0);
|
||||
|
||||
for (i = 0; i < ETHER_ADDR_LEN; i++)
|
||||
|
@ -21,7 +21,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: if_ep.c,v 1.19 1994/03/04 01:31:50 hpeyerl Exp $
|
||||
* $Id: if_ep.c,v 1.20 1994/03/06 17:19:01 mycroft Exp $
|
||||
*/
|
||||
/*
|
||||
* TODO:
|
||||
@ -172,12 +172,12 @@ isa_epprobe(is)
|
||||
u_short k;
|
||||
|
||||
outw(BASE + EP_COMMAND, GLOBAL_RESET);
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
elink_reset(); /* global reset to ELINK_ID_PORT */
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
outb(ELINK_ID_PORT, 0x00);
|
||||
elink_idseq(ELINK_509_POLY);
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
|
||||
/*
|
||||
* MFG_ID should have 0x6d50.
|
||||
@ -351,11 +351,11 @@ epinit(unit)
|
||||
GO_WINDOW(1);
|
||||
if (!(ifp->if_flags & IFF_LINK0) && (sc->ep_connectors & BNC)) {
|
||||
outw(BASE + EP_COMMAND, START_TRANSCEIVER);
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
}
|
||||
if (ifp->if_flags & IFF_LINK0) {
|
||||
outw(BASE + EP_COMMAND, STOP_TRANSCEIVER);
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
if((ifp->if_flags & IFF_LINK1) && (sc->ep_connectors & UTP)) {
|
||||
GO_WINDOW(4);
|
||||
outw(BASE + EP_W4_MEDIA_TYPE, ENABLE_UTP);
|
||||
@ -883,7 +883,7 @@ epreadeeprom(id_port, offset)
|
||||
{
|
||||
int i, data = 0;
|
||||
outb(id_port, 0x80 + offset);
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
for (i = 0; i < 16; i++)
|
||||
data = (data << 1) | (inw(id_port) & 1);
|
||||
return (data);
|
||||
@ -899,7 +899,7 @@ epbusyeeprom(is)
|
||||
while (i++ < 100) {
|
||||
j = inw(BASE + EP_W0_EEPROM_COMMAND);
|
||||
if (j & EEPROM_BUSY)
|
||||
DELAY(100);
|
||||
delay(100);
|
||||
else
|
||||
break;
|
||||
}
|
||||
|
@ -31,7 +31,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: if_hp.c,v 1.14 1994/02/10 17:18:01 mycroft Exp $
|
||||
* $Id: if_hp.c,v 1.15 1994/03/06 17:19:03 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -192,7 +192,7 @@ hpprobe(dvp)
|
||||
#if 0
|
||||
outb(hpc + ds0_isr, 0xff);
|
||||
outb(hpc + ds_cmd, DSCM_NODMA | DSCM_PG0 | DSCM_STOP);
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
|
||||
/* Check cmd reg and fail if not right */
|
||||
if ((i = inb(hpc + ds_cmd)) != (DSCM_NODMA | DSCM_PG0 | DSCM_STOP)) {
|
||||
|
@ -40,7 +40,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: if_ie.c,v 1.5 1994/02/16 20:52:37 mycroft Exp $
|
||||
* $Id: if_ie.c,v 1.6 1994/03/06 17:19:04 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1354,7 +1354,7 @@ check_ie_present(sc, where, size)
|
||||
(sc->reset_586)(sc);
|
||||
(sc->chan_attn)(sc);
|
||||
|
||||
DELAY(100); /* wait a while... */
|
||||
delay(100); /* wait a while... */
|
||||
|
||||
if (iscp->ie_busy) {
|
||||
splx(s);
|
||||
@ -1377,7 +1377,7 @@ check_ie_present(sc, where, size)
|
||||
(sc->reset_586)(sc);
|
||||
(sc->chan_attn)(sc);
|
||||
|
||||
DELAY(100);
|
||||
delay(100);
|
||||
|
||||
if (iscp->ie_busy) {
|
||||
splx(s);
|
||||
@ -1424,9 +1424,9 @@ el_reset_586(sc)
|
||||
{
|
||||
|
||||
outb(PORT + IE507_CTRL, EL_CTRL_RESET);
|
||||
DELAY(100);
|
||||
delay(100);
|
||||
outb(PORT + IE507_CTRL, EL_CTRL_NORMAL);
|
||||
DELAY(100);
|
||||
delay(100);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)isa.c 7.2 (Berkeley) 5/13/91
|
||||
* $Id: isa.c,v 1.38 1994/03/01 18:22:52 mycroft Exp $
|
||||
* $Id: isa.c,v 1.39 1994/03/06 17:19:09 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -580,7 +580,7 @@ isa_strayintr(d) {
|
||||
extern int hz; /* XXX - should be elsewhere */
|
||||
|
||||
void
|
||||
DELAY(n)
|
||||
delay(n)
|
||||
int n;
|
||||
{
|
||||
int counter_limit;
|
||||
@ -598,11 +598,11 @@ DELAY(n)
|
||||
if (state == 0) {
|
||||
state = 1;
|
||||
for (n1 = 1; n1 <= 10000000; n1 *= 10)
|
||||
DELAY(n1);
|
||||
delay(n1);
|
||||
state = 2;
|
||||
}
|
||||
if (state == 1)
|
||||
printf("DELAY(%d)...", n);
|
||||
printf("delay(%d)...", n);
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
@ -46,7 +46,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: lpt.c,v 1.13 1994/02/19 03:36:12 mycroft Exp $
|
||||
* $Id: lpt.c,v 1.14 1994/03/06 17:19:11 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -144,7 +144,7 @@ lpt_port_test(port, data, mask)
|
||||
outb(port, data);
|
||||
timeout = 1000;
|
||||
do {
|
||||
DELAY(10);
|
||||
delay(10);
|
||||
temp = inb(port) & mask;
|
||||
} while (temp != data && --timeout);
|
||||
lprintf("lpt: port=0x%x out=0x%x in=0x%x timeout=%d\n", port, data,
|
||||
@ -292,7 +292,7 @@ lptopen(dev, flag)
|
||||
if ((flags & LPT_NOPRIME) == 0) {
|
||||
/* assert INIT for 100 usec to start up printer */
|
||||
outb(iobase + lpt_control, LPC_SELECT);
|
||||
DELAY(100);
|
||||
delay(100);
|
||||
}
|
||||
|
||||
control = LPC_SELECT | LPC_NINIT;
|
||||
|
@ -46,7 +46,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: lpt_isa.c,v 1.13 1994/02/19 03:36:12 mycroft Exp $
|
||||
* $Id: lpt_isa.c,v 1.14 1994/03/06 17:19:11 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -144,7 +144,7 @@ lpt_port_test(port, data, mask)
|
||||
outb(port, data);
|
||||
timeout = 1000;
|
||||
do {
|
||||
DELAY(10);
|
||||
delay(10);
|
||||
temp = inb(port) & mask;
|
||||
} while (temp != data && --timeout);
|
||||
lprintf("lpt: port=0x%x out=0x%x in=0x%x timeout=%d\n", port, data,
|
||||
@ -292,7 +292,7 @@ lptopen(dev, flag)
|
||||
if ((flags & LPT_NOPRIME) == 0) {
|
||||
/* assert INIT for 100 usec to start up printer */
|
||||
outb(iobase + lpt_control, LPC_SELECT);
|
||||
DELAY(100);
|
||||
delay(100);
|
||||
}
|
||||
|
||||
control = LPC_SELECT | LPC_NINIT;
|
||||
|
@ -35,7 +35,7 @@
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: mcd.c,v 1.6 1994/02/21 15:23:11 mycroft Exp $
|
||||
* $Id: mcd.c,v 1.7 1994/03/06 17:19:13 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*static char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore";*/
|
||||
@ -550,11 +550,11 @@ mcdprobe(isa_dev)
|
||||
|
||||
/* Send a reset. */
|
||||
outb(iobase + mcd_reset, 0);
|
||||
DELAY(300000);
|
||||
delay(300000);
|
||||
/* Get any pending status and throw away. */
|
||||
for (i = 10; i; i--)
|
||||
inb(iobase + mcd_status);
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
|
||||
/* Send get status command. */
|
||||
outb(iobase + mcd_command, MCD_CMDGETSTAT);
|
||||
@ -576,7 +576,7 @@ mcdprobe(isa_dev)
|
||||
* driven routines mcd_getreply etc. rather than arbitrary delays.
|
||||
*/
|
||||
|
||||
DELAY (2000);
|
||||
delay (2000);
|
||||
outb(iobase + mcd_command, MCD_CMDCONTINFO);
|
||||
i = mcd_getreply(sc, DELAY_GETREPLY);
|
||||
|
||||
@ -628,7 +628,7 @@ mcd_waitrdy(iobase, dly)
|
||||
for (i = dly; i; i--) {
|
||||
if ((inb(iobase + mcd_xfer) & MCD_ST_BUSY) == 0)
|
||||
return 0;
|
||||
DELAY(1);
|
||||
delay(1);
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
@ -997,7 +997,7 @@ readerr:
|
||||
#ifdef notyet
|
||||
printf("%s: unit timeout; resetting\n", sc->sc_dev.dv_xname);
|
||||
outb(mbx->iobase + mcd_reset, MCD_CMDRESET);
|
||||
DELAY(300000);
|
||||
delay(300000);
|
||||
(void)mcd_getstat(sc, 1);
|
||||
(void)mcd_getstat(sc, 1);
|
||||
/*sc->status &= ~MCDDSKCHNG; */
|
||||
|
@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: sb.c,v 1.4 1994/03/02 16:23:10 hpeyerl Exp $
|
||||
* $Id: sb.c,v 1.5 1994/03/06 17:19:16 mycroft Exp $
|
||||
*/
|
||||
|
||||
#include "sb.h"
|
||||
@ -362,7 +362,7 @@ sbreset(register u_long base)
|
||||
* Gee, what a brilliant hardware design.
|
||||
*/
|
||||
outb(base + SBP_DSP_RESET, 1);
|
||||
DELAY(3);
|
||||
delay(3);
|
||||
outb(base + SBP_DSP_RESET, 0);
|
||||
if (rdsp(base) != SB_MAGIC)
|
||||
return (-1);
|
||||
@ -383,7 +383,7 @@ void
|
||||
sb_spkron(struct sb_softc *sc)
|
||||
{
|
||||
(void)wdsp(sc->sc_base, SB_DSP_SPKR_ON);
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)wd.c 7.2 (Berkeley) 5/9/91
|
||||
* $Id: wd.c,v 1.60 1994/03/05 08:17:06 mycroft Exp $
|
||||
* $Id: wd.c,v 1.61 1994/03/06 17:19:19 mycroft Exp $
|
||||
*/
|
||||
|
||||
#define QUIETWORKS /* define this to make wdopen() set DKFL_QUIET */
|
||||
@ -1465,9 +1465,9 @@ wdreset(du, err)
|
||||
|
||||
/* reset the device */
|
||||
outb(wdc+wd_ctlr, WDCTL_RST | WDCTL_IDS);
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
outb(wdc+wd_ctlr, WDCTL_IDS);
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
(void) inb(wdc+wd_error);
|
||||
outb(wdc+wd_ctlr, WDCTL_4BIT);
|
||||
|
||||
@ -1490,7 +1490,7 @@ wdc_wait(du, mask)
|
||||
break;
|
||||
if (++timeout > WDCNDELAY)
|
||||
return -1;
|
||||
DELAY(WDCDELAY);
|
||||
delay(WDCDELAY);
|
||||
}
|
||||
#ifdef WDCNDELAY_DEBUG
|
||||
if (timeout > WDCNDELAY_DEBUG)
|
||||
|
@ -16,7 +16,7 @@
|
||||
* scatter gather is done by the board, then look at one of the Adaptec
|
||||
* drivers to finish off the job..
|
||||
*
|
||||
* $Id: wd7000.c,v 1.10 1994/01/03 23:53:39 mycroft Exp $
|
||||
* $Id: wd7000.c,v 1.11 1994/03/06 17:19:21 mycroft Exp $
|
||||
*/
|
||||
#include "wds.h"
|
||||
#if NWDS > 0
|
||||
@ -359,7 +359,7 @@ wds_scsi_cmd(struct scsi_xfer *sxp)
|
||||
return TRY_AGAIN_LATER;
|
||||
}
|
||||
|
||||
DELAY(10000);
|
||||
delay(10000);
|
||||
/*printf("%08x/%08x mbox: %02x %02x %02x %02x\n", &r->cmd, KVTOPHYS(&r->cmd),
|
||||
wds[unit].ombs[r->ombn].stat, wds[unit].ombs[r->ombn].addr[0],
|
||||
wds[unit].ombs[r->ombn].addr[1], wds[unit].ombs[r->ombn].addr[2]);*/
|
||||
@ -369,7 +369,7 @@ repoll: printf("wds%d: polling.", unit);
|
||||
i = 0;
|
||||
while( (inb(base+WDS_STAT) & WDS_IRQ) == 0) {
|
||||
printf(".");
|
||||
DELAY(10000);
|
||||
delay(10000);
|
||||
if(++i == 10) {
|
||||
printf("failed %02x\n", inb(base+WDS_IRQSTAT));
|
||||
/*r->busy = 0;*/
|
||||
@ -411,11 +411,11 @@ wdsintr(int unit)
|
||||
u_char c;
|
||||
|
||||
/*printf("stat=%02x\n", inb(wds[unit].addr + WDS_STAT));*/
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
c = inb(wds[unit].addr + WDS_IRQSTAT);
|
||||
printf("wdsintr: %02x\n", c);
|
||||
if( (c&WDSI_MASK) == WDSI_MSVC) {
|
||||
DELAY(1000);
|
||||
delay(1000);
|
||||
c = c & ~WDSI_MASK;
|
||||
flushcache();
|
||||
in = &wds[unit].imbs[c];
|
||||
@ -544,7 +544,7 @@ wds_getvers(int unit)
|
||||
return -1;
|
||||
}
|
||||
|
||||
DELAY(10000);
|
||||
delay(10000);
|
||||
/*printf("%08x/%08x mbox: %02x %02x %02x %02x\n", &r->cmd, KVTOPHYS(&r->cmd),
|
||||
wds[unit].ombs[r->ombn].stat, wds[unit].ombs[r->ombn].addr[0],
|
||||
wds[unit].ombs[r->ombn].addr[1], wds[unit].ombs[r->ombn].addr[2]);*/
|
||||
@ -554,7 +554,7 @@ wds_getvers(int unit)
|
||||
i = 0;
|
||||
while( (inb(base+WDS_STAT) & WDS_IRQ) == 0) {
|
||||
printf(".");
|
||||
DELAY(10000);
|
||||
delay(10000);
|
||||
if(++i == 10) {
|
||||
printf("failed %02x\n", inb(base+WDS_IRQSTAT));
|
||||
/*r->busy = 0;*/
|
||||
@ -624,7 +624,7 @@ wds_init(struct isa_device *dev)
|
||||
for(i=0; i<4; i++)
|
||||
if( (inb(base+WDS_STAT) & WDS_RDY) != 0) {
|
||||
goto ready;
|
||||
DELAY(10);
|
||||
delay(10);
|
||||
}
|
||||
return 1;
|
||||
|
||||
@ -637,9 +637,9 @@ ready:
|
||||
* the controller exists. reset and init.
|
||||
*/
|
||||
outb(base+WDS_HCR, WDSH_SCSIRESET|WDSH_ASCRESET);
|
||||
DELAY(3);
|
||||
delay(3);
|
||||
outb(base+WDS_HCR, WDSH_DRQEN);
|
||||
DELAY(20000);
|
||||
delay(20000);
|
||||
|
||||
#if 1
|
||||
outb(0xd6, 0xc3);
|
||||
@ -654,7 +654,7 @@ ready:
|
||||
if( (inb(base+WDS_STAT) & (WDS_RDY)) == WDS_RDY)
|
||||
break;
|
||||
printf(".");
|
||||
DELAY(10000);
|
||||
delay(10000);
|
||||
}
|
||||
if( (inb(base+WDS_STAT) & (WDS_RDY)) != WDS_RDY) {
|
||||
printf("failed\n");
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)wt.c 7.1 (Berkeley) 5/9/91
|
||||
* $Id: wt.c,v 1.7 1994/02/09 21:13:58 mycroft Exp $
|
||||
* $Id: wt.c,v 1.8 1994/03/06 17:19:22 mycroft Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -526,7 +526,7 @@ int dev, flag;
|
||||
#ifdef DEBUG
|
||||
debug("Waiting for rew to finish\n");
|
||||
#endif
|
||||
DELAY(1000000); /* delay one second */
|
||||
delay(1000000); /* delay one second */
|
||||
}
|
||||
/* Only do reset and select when tape light is off, and tape is rewound.
|
||||
* This allows multiple volumes. */
|
||||
@ -786,7 +786,7 @@ rdyexc(ticks)
|
||||
if (!(s & READY)) /* check if controller is ready */
|
||||
break;
|
||||
s = splbio();
|
||||
DELAY((ticks/HZ)*1000000); /* */
|
||||
delay((ticks/HZ)*1000000); /* */
|
||||
splx(s);
|
||||
}
|
||||
#ifdef DEBUG
|
||||
@ -996,7 +996,7 @@ t_reset()
|
||||
register i;
|
||||
mbits |= RESET;
|
||||
outb(CTLPORT, mbits); /* send reset */
|
||||
DELAY(20);
|
||||
delay(20);
|
||||
mbits &= ~RESET;
|
||||
outb(CTLPORT, mbits); /* turn off reset */
|
||||
if ((inb(STATPORT) & RESETMASK) == RESETVAL)
|
||||
|
Loading…
Reference in New Issue
Block a user