summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/sbus
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2005-04-17 12:45:20 +0000
committermarius <marius@FreeBSD.org>2005-04-17 12:45:20 +0000
commit8e70077beaf3c2ff4ed66cd4294a064468967475 (patch)
tree8fb51c36f807263b534105b015e4276e4f296567 /sys/sparc64/sbus
parent1fac4f5794c790dc22c2c096f1addc2300a6431f (diff)
downloadFreeBSD-src-8e70077beaf3c2ff4ed66cd4294a064468967475.zip
FreeBSD-src-8e70077beaf3c2ff4ed66cd4294a064468967475.tar.gz
Re-commit the following changes which were committed to these files
at their old location in sys/dev/esp after they were repo-copied to sys/sparc64/sbus at rev. 1.1: sys/dev/esp/lsi64854.c rev. 1.2 sys/dev/esp/lsi64854var.h rev. 1.2 Add some style(9) touch ups; style(9) states that new code should follow these conventions and, well, this is a new driver. Tested on: i386, sparc64 Reviewed by: scottl
Diffstat (limited to 'sys/sparc64/sbus')
-rw-r--r--sys/sparc64/sbus/lsi64854.c22
-rw-r--r--sys/sparc64/sbus/lsi64854var.h4
2 files changed, 13 insertions, 13 deletions
diff --git a/sys/sparc64/sbus/lsi64854.c b/sys/sparc64/sbus/lsi64854.c
index ed277ee..ab3892a 100644
--- a/sys/sparc64/sbus/lsi64854.c
+++ b/sys/sparc64/sbus/lsi64854.c
@@ -116,7 +116,7 @@ int lsi64854debug = 0;
void
lsi64854_attach(struct lsi64854_softc *sc)
{
- u_int32_t csr;
+ uint32_t csr;
sc->dv_name = device_get_nameunit(sc->sc_dev);
@@ -205,7 +205,7 @@ lsi64854_attach(struct lsi64854_softc *sc)
} while (0)
#define DMA_DRAIN(sc, dontpanic) do { \
- u_int32_t csr; \
+ uint32_t csr; \
/* \
* DMA rev0 & rev1: we are not allowed to touch the DMA "flush" \
* and "drain" bits while it is still thinking about a \
@@ -228,13 +228,13 @@ lsi64854_attach(struct lsi64854_softc *sc)
} \
/* \
* Wait for draining to finish \
- * rev0 & rev1 call this PACKCNT \
+ * rev0 & rev1 call this PACKCNT \
*/ \
DMAWAIT(sc, L64854_GCSR(sc) & L64854_DRAINING, "DRAINING", dontpanic);\
} while(0)
#define DMA_FLUSH(sc, dontpanic) do { \
- u_int32_t csr; \
+ uint32_t csr; \
/* \
* DMA rev0 & rev1: we are not allowed to touch the DMA "flush" \
* and "drain" bits while it is still thinking about a \
@@ -251,7 +251,7 @@ lsi64854_attach(struct lsi64854_softc *sc)
void
lsi64854_reset(struct lsi64854_softc *sc)
{
- u_int32_t csr;
+ uint32_t csr;
DMA_FLUSH(sc, 1);
csr = L64854_GCSR(sc);
@@ -346,7 +346,7 @@ int
lsi64854_setup(struct lsi64854_softc *sc, caddr_t *addr, size_t *len,
int datain, size_t *dmasize)
{
- u_int32_t csr;
+ uint32_t csr;
DMA_FLUSH(sc, 0);
@@ -358,7 +358,7 @@ lsi64854_setup(struct lsi64854_softc *sc, caddr_t *addr, size_t *len,
sc->sc_datain = datain;
/*
- * the rules say we cannot transfer more than the limit
+ * The rules say we cannot transfer more than the limit
* of this DMA chip (64k for old and 16Mb for new),
* and we cannot cross a 16Mb boundary.
*/
@@ -427,7 +427,7 @@ lsi64854_scsi_intr(void *arg)
struct lsi64854_softc *sc = arg;
struct ncr53c9x_softc *nsc = sc->sc_client;
int trans, resid;
- u_int32_t csr;
+ uint32_t csr;
csr = L64854_GCSR(sc);
@@ -550,7 +550,7 @@ int
lsi64854_enet_intr(void *arg)
{
struct lsi64854_softc *sc = arg;
- u_int32_t csr;
+ uint32_t csr;
static int dodrain = 0;
int rv;
@@ -608,7 +608,7 @@ int
lsi64854_setup_pp(struct lsi64854_softc *sc, caddr_t *addr, size_t *len,
int datain, size_t *dmasize)
{
- u_int32_t csr;
+ uint32_t csr;
DMA_FLUSH(sc, 0);
@@ -668,7 +668,7 @@ lsi64854_pp_intr(void *arg)
{
struct lsi64854_softc *sc = arg;
int ret, trans, resid = 0;
- u_int32_t csr;
+ uint32_t csr;
csr = L64854_GCSR(sc);
diff --git a/sys/sparc64/sbus/lsi64854var.h b/sys/sparc64/sbus/lsi64854var.h
index 04b2297..03e1d7d 100644
--- a/sys/sparc64/sbus/lsi64854var.h
+++ b/sys/sparc64/sbus/lsi64854var.h
@@ -93,7 +93,7 @@ struct lsi64854_softc {
#define DMA_ISACTIVE(sc) ((sc)->sc_active)
#define DMA_ENINTR(sc) do { \
- u_int32_t csr = L64854_GCSR(sc); \
+ uint32_t csr = L64854_GCSR(sc); \
csr |= L64854_INT_EN; \
L64854_SCSR(sc, csr); \
} while (0)
@@ -101,7 +101,7 @@ struct lsi64854_softc {
#define DMA_ISINTR(sc) (L64854_GCSR(sc) & (D_INT_PEND|D_ERR_PEND))
#define DMA_GO(sc) do { \
- u_int32_t csr = L64854_GCSR(sc); \
+ uint32_t csr = L64854_GCSR(sc); \
csr |= D_EN_DMA; \
L64854_SCSR(sc, csr); \
sc->sc_active = 1; \
OpenPOWER on IntegriCloud