Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/dev/sbus Pull up revision 1.42 (requested by mjacob):



details:   https://anonhg.NetBSD.org/src/rev/13dd67903f98
branches:  netbsd-1-5
changeset: 490900:13dd67903f98
user:      he <he%NetBSD.org@localhost>
date:      Tue Mar 20 17:10:19 2001 +0000

description:
Pull up revision 1.42 (requested by mjacob):
  ANSIfication and conversion of handles to 16 bits.

diffstat:

 sys/dev/sbus/isp_sbus.c |  58 ++++++++++++++++--------------------------------
 1 files changed, 19 insertions(+), 39 deletions(-)

diffs (133 lines):

diff -r e8938656504d -r 13dd67903f98 sys/dev/sbus/isp_sbus.c
--- a/sys/dev/sbus/isp_sbus.c   Sun Mar 18 03:20:11 2001 +0000
+++ b/sys/dev/sbus/isp_sbus.c   Tue Mar 20 17:10:19 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: isp_sbus.c,v 1.26.4.4 2001/03/16 19:09:28 he Exp $ */
+/* $NetBSD: isp_sbus.c,v 1.26.4.5 2001/03/20 17:10:19 he Exp $ */
 /*
  * This driver, which is contained in NetBSD in the files:
  *
@@ -83,14 +83,13 @@
 #define        LMAP_FLAGS      BUS_DMA_NOWAIT
 #endif
 
-static int isp_sbus_intr __P((void *));
-static u_int16_t isp_sbus_rd_reg __P((struct ispsoftc *, int));
-static void isp_sbus_wr_reg __P((struct ispsoftc *, int, u_int16_t));
-static int isp_sbus_mbxdma __P((struct ispsoftc *));
-static int isp_sbus_dmasetup __P((struct ispsoftc *, struct scsipi_xfer *,
-       ispreq_t *, u_int16_t *, u_int16_t));
-static void isp_sbus_dmateardown __P((struct ispsoftc *, struct scsipi_xfer *,
-       u_int32_t));
+static int isp_sbus_intr(void *);
+static u_int16_t isp_sbus_rd_reg(struct ispsoftc *, int);
+static void isp_sbus_wr_reg (struct ispsoftc *, int, u_int16_t);
+static int isp_sbus_mbxdma(struct ispsoftc *);
+static int isp_sbus_dmasetup(struct ispsoftc *, XS_T *, ispreq_t *, u_int16_t *,
+    u_int16_t);
+static void isp_sbus_dmateardown(struct ispsoftc *, XS_T *, u_int16_t);
 
 #ifndef        ISP_1000_RISC_CODE
 #define        ISP_1000_RISC_CODE      NULL
@@ -125,17 +124,14 @@
 };
 
 
-static int isp_match __P((struct device *, struct cfdata *, void *));
-static void isp_sbus_attach __P((struct device *, struct device *, void *));
+static int isp_match(struct device *, struct cfdata *, void *);
+static void isp_sbus_attach(struct device *, struct device *, void *);
 struct cfattach isp_sbus_ca = {
        sizeof (struct isp_sbussoftc), isp_match, isp_sbus_attach
 };
 
 static int
-isp_match(parent, cf, aux)
-        struct device *parent;
-        struct cfdata *cf;
-        void *aux;
+isp_match(struct device *parent, struct cfdata *cf, void *aux)
 {
        int rv;
 #ifdef DEBUG
@@ -162,9 +158,7 @@
 
 
 static void
-isp_sbus_attach(parent, self, aux)
-        struct device *parent, *self;
-        void *aux;
+isp_sbus_attach(struct device *parent, struct device *self, void *aux)
 {
        int freq, ispburst, sbusburst;
        struct sbus_attach_args *sa = aux;
@@ -310,8 +304,7 @@
 }
 
 static int
-isp_sbus_intr(arg)
-       void *arg;
+isp_sbus_intr(void *arg)
 {
        int rv;
        struct isp_sbussoftc *sbc = (struct isp_sbussoftc *)arg;
@@ -324,9 +317,7 @@
 }
 
 static u_int16_t
-isp_sbus_rd_reg(isp, regoff)
-       struct ispsoftc *isp;
-       int regoff;
+isp_sbus_rd_reg(struct ispsoftc *isp, int regoff)
 {
        struct isp_sbussoftc *sbc = (struct isp_sbussoftc *) isp;
        int offset = sbc->sbus_poff[(regoff & _BLK_REG_MASK) >> _BLK_REG_SHFT];
@@ -335,10 +326,7 @@
 }
 
 static void
-isp_sbus_wr_reg(isp, regoff, val)
-       struct ispsoftc *isp;
-       int regoff;
-       u_int16_t val;
+isp_sbus_wr_reg(struct ispsoftc *isp, int regoff, u_int16_t val)
 {
        struct isp_sbussoftc *sbc = (struct isp_sbussoftc *) isp;
        int offset = sbc->sbus_poff[(regoff & _BLK_REG_MASK) >> _BLK_REG_SHFT];
@@ -347,8 +335,7 @@
 }
 
 static int
-isp_sbus_mbxdma(isp)
-       struct ispsoftc *isp;
+isp_sbus_mbxdma(struct ispsoftc *isp)
 {
        struct isp_sbussoftc *sbc = (struct isp_sbussoftc *) isp;
        bus_dma_tag_t dmatag = sbc->sbus_dmatag;
@@ -492,12 +479,8 @@
  */
 
 static int
-isp_sbus_dmasetup(isp, xs, rq, iptrp, optr)
-       struct ispsoftc *isp;
-       struct scsipi_xfer *xs;
-       ispreq_t *rq;
-       u_int16_t *iptrp;
-       u_int16_t optr;
+isp_sbus_dmasetup(struct ispsoftc *isp, XS_T *xs, ispreq_t *rq,
+    u_int16_t *iptrp, u_int16_t optr)
 {
        struct isp_sbussoftc *sbc = (struct isp_sbussoftc *) isp;
        bus_dmamap_t dmap;
@@ -562,10 +545,7 @@
 }
 
 static void
-isp_sbus_dmateardown(isp, xs, handle)
-       struct ispsoftc *isp;
-       struct scsipi_xfer *xs;
-       u_int32_t handle;
+isp_sbus_dmateardown(struct ispsoftc *isp, XS_T *xs, u_int16_t handle)
 {
        struct isp_sbussoftc *sbc = (struct isp_sbussoftc *) isp;
        bus_dmamap_t dmap;



Home | Main Index | Thread Index | Old Index