Module Name: src
Committed By: skrll
Date: Tue Dec 1 23:16:01 UTC 2009
Modified Files:
src/sys/arch/ews4800mips/sbd: if_iee_sbdio.c
src/sys/arch/hp700/gsc: if_iee_gsc.c
src/sys/dev/ic: i82596var.h
Log Message:
Spell busy correctly.
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/ews4800mips/sbd/if_iee_sbdio.c
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/hp700/gsc/if_iee_gsc.c
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/ic/i82596var.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/ews4800mips/sbd/if_iee_sbdio.c
diff -u src/sys/arch/ews4800mips/sbd/if_iee_sbdio.c:1.9 src/sys/arch/ews4800mips/sbd/if_iee_sbdio.c:1.10
--- src/sys/arch/ews4800mips/sbd/if_iee_sbdio.c:1.9 Sun May 10 04:26:19 2009
+++ src/sys/arch/ews4800mips/sbd/if_iee_sbdio.c Tue Dec 1 23:16:00 2009
@@ -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 @@
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 @@
/* 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);
Index: src/sys/arch/hp700/gsc/if_iee_gsc.c
diff -u src/sys/arch/hp700/gsc/if_iee_gsc.c:1.15 src/sys/arch/hp700/gsc/if_iee_gsc.c:1.16
--- src/sys/arch/hp700/gsc/if_iee_gsc.c:1.15 Sun May 24 06:53:35 2009
+++ src/sys/arch/hp700/gsc/if_iee_gsc.c Tue Dec 1 23:16:01 2009
@@ -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 @@
#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 @@
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 @@
/* 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 @@
(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;
}
Index: src/sys/dev/ic/i82596var.h
diff -u src/sys/dev/ic/i82596var.h:1.14 src/sys/dev/ic/i82596var.h:1.15
--- src/sys/dev/ic/i82596var.h:1.14 Sun May 10 04:26:19 2009
+++ src/sys/dev/ic/i82596var.h Tue Dec 1 23:16:01 2009
@@ -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 @@
/* 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;