Spell busy correctly.

This commit is contained in:
skrll 2009-12-01 23:16:00 +00:00
parent 48ec6057bf
commit 17b0854823
3 changed files with 17 additions and 17 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_iee_sbdio.c,v 1.9 2009/05/10 04:26:19 tsutsui Exp $ */
/* $NetBSD: if_iee_sbdio.c,v 1.10 2009/12/01 23:16:00 skrll Exp $ */
/*
* Copyright (c) 2003 Jochen Kunz.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_iee_sbdio.c,v 1.9 2009/05/10 04:26:19 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_iee_sbdio.c,v 1.10 2009/12/01 23:16:00 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -147,12 +147,12 @@ iee_sbdio_cmd(struct iee_softc *sc, uint32_t cmd)
int
iee_sbdio_reset(struct iee_softc *sc)
{
#define IEE_ISCP_BUSSY 0x1
#define IEE_ISCP_BUSY 0x1
int n, retry = 8;
uint32_t cmd, ack;
/* Make sure the busy byte is set and the cache is flushed. */
SC_ISCP(sc)->iscp_bussy = IEE_ISCP_BUSSY;
SC_ISCP(sc)->iscp_busy = IEE_ISCP_BUSY;
IEE_ISCPSYNC(sc, BUS_DMASYNC_PREREAD | BUS_DMASYNC_PREWRITE);
/* Setup the PORT Command with pointer to SCP. */
@ -168,9 +168,9 @@ iee_sbdio_reset(struct iee_softc *sc)
/* Wait for the chip to initialize and read SCP and ISCP. */
for (n = 0 ; n < retry; n++) {
IEE_ISCPSYNC(sc, BUS_DMASYNC_POSTREAD | BUS_DMASYNC_POSTWRITE);
ack = SC_ISCP(sc)->iscp_bussy;
ack = SC_ISCP(sc)->iscp_busy;
IEE_ISCPSYNC(sc, BUS_DMASYNC_PREREAD);
if (ack != IEE_ISCP_BUSSY) {
if (ack != IEE_ISCP_BUSY) {
break;
}
delay(100);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_iee_gsc.c,v 1.15 2009/05/24 06:53:35 skrll Exp $ */
/* $NetBSD: if_iee_gsc.c,v 1.16 2009/12/01 23:16:01 skrll Exp $ */
/*
* Copyright (c) 2003 Jochen Kunz.
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_iee_gsc.c,v 1.15 2009/05/24 06:53:35 skrll Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_iee_gsc.c,v 1.16 2009/12/01 23:16:01 skrll Exp $");
/* autoconfig and device stuff */
#include <sys/param.h>
@ -82,7 +82,7 @@ __KERNEL_RCSID(0, "$NetBSD: if_iee_gsc.c,v 1.15 2009/05/24 06:53:35 skrll Exp $"
#define IEE_GSC_RESET 0
#define IEE_GSC_PORT 4
#define IEE_GSC_CHANATT 8
#define IEE_ISCP_BUSSY 0x1
#define IEE_ISCP_BUSY 0x1
/* autoconfig stuff */
static int iee_gsc_match(device_t, cfdata_t, void *);
@ -142,8 +142,8 @@ iee_gsc_reset(struct iee_softc *sc)
uint32_t cmd;
uint16_t ack;
/* Make sure the bussy byte is set and the cache is flushed. */
SC_ISCP(sc)->iscp_bussy = IEE_ISCP_BUSSY;
/* Make sure the busy byte is set and the cache is flushed. */
SC_ISCP(sc)->iscp_busy = IEE_ISCP_BUSY;
IEE_ISCPSYNC(sc, BUS_DMASYNC_PREREAD|BUS_DMASYNC_PREWRITE);
/* Setup the PORT Command with pointer to SCP. */
cmd = IEE_PORT_SCP | IEE_PHYS_SHMEM(sc->sc_scp_off);
@ -170,9 +170,9 @@ iee_gsc_reset(struct iee_softc *sc)
/* Wait for the chip to initialize and read SCP and ISCP. */
for (n = 0 ; n < 1000; n++) {
IEE_ISCPSYNC(sc, BUS_DMASYNC_POSTREAD|BUS_DMASYNC_POSTWRITE);
ack = SC_ISCP(sc)->iscp_bussy;
ack = SC_ISCP(sc)->iscp_busy;
IEE_ISCPSYNC(sc, BUS_DMASYNC_PREREAD);
if (ack != IEE_ISCP_BUSSY)
if (ack != IEE_ISCP_BUSY)
break;
DELAY(100);
}
@ -181,8 +181,8 @@ iee_gsc_reset(struct iee_softc *sc)
(sc->sc_iee_cmd)(sc, IEE_SCB_ACK);
return 0;
}
printf("%s: iee_gsc_reset timeout bussy=0x%x\n",
device_xname(sc->sc_dev), SC_ISCP(sc)->iscp_bussy);
printf("%s: iee_gsc_reset timeout busy=0x%x\n",
device_xname(sc->sc_dev), SC_ISCP(sc)->iscp_busy);
return -1;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: i82596var.h,v 1.14 2009/05/10 04:26:19 tsutsui Exp $ */
/* $NetBSD: i82596var.h,v 1.15 2009/12/01 23:16:01 skrll Exp $ */
/*
* Copyright (c) 2003 Jochen Kunz.
@ -51,7 +51,7 @@ struct iee_scp {
/* Intermediate System Configuration Pointer */
struct iee_iscp {
volatile uint16_t iscp_bussy; /* Even Word, bits 0..15 */
volatile uint16_t iscp_busy; /* Even Word, bits 0..15 */
volatile uint16_t iscp_pad; /* Odd Word, bits 16..32 */
volatile uint32_t iscp_scb_addr; /* address of SCB */
} __packed;