summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/mca/mca_bus.c17
-rw-r--r--sys/dev/nsp/nsp.c27
-rw-r--r--sys/dev/stg/tmc18c30.c13
-rw-r--r--sys/dev/txp/if_txp.c26
4 files changed, 21 insertions, 62 deletions
diff --git a/sys/dev/mca/mca_bus.c b/sys/dev/mca/mca_bus.c
index efa70d2..bc3c0e5 100644
--- a/sys/dev/mca/mca_bus.c
+++ b/sys/dev/mca/mca_bus.c
@@ -68,10 +68,7 @@ struct mca_device {
/* Not supposed to use this function! */
void
-mca_pos_set (dev, reg, data)
- device_t dev;
- u_int8_t reg;
- u_int8_t data;
+mca_pos_set (device_t dev, u_int8_t reg, u_int8_t data)
{
struct mca_device * m_dev = device_get_ivars(dev);
u_int8_t slot = mca_get_slot(dev);
@@ -98,9 +95,7 @@ mca_pos_set (dev, reg, data)
}
u_int8_t
-mca_pos_get (dev, reg)
- device_t dev;
- u_int8_t reg;
+mca_pos_get (device_t dev, u_int8_t reg)
{
u_int8_t slot = mca_get_slot(dev);
u_int8_t data = 0;
@@ -158,9 +153,7 @@ mca_pos_get (dev, reg)
}
const char *
-mca_match_id (id, mca_devs)
- u_int16_t id;
- struct mca_ident * mca_devs;
+mca_match_id (u_int16_t id, struct mca_ident *mca_devs)
{
struct mca_ident * m = mca_devs;
while(m->name != NULL) {
@@ -172,9 +165,7 @@ mca_match_id (id, mca_devs)
}
u_int8_t
-mca_pos_read (dev, reg)
- device_t dev;
- u_int8_t reg;
+mca_pos_read (device_t dev, u_int8_t reg)
{
struct mca_device * m_dev = device_get_ivars(dev);
diff --git a/sys/dev/nsp/nsp.c b/sys/dev/nsp/nsp.c
index 3b394f7..f18f68c 100644
--- a/sys/dev/nsp/nsp.c
+++ b/sys/dev/nsp/nsp.c
@@ -218,11 +218,8 @@ nsp_cr_read_1(bst, bsh, ofs)
}
static __inline void
-nsp_cr_write_1(bst, bsh, ofs, va)
- bus_space_tag_t bst;
- bus_space_handle_t bsh;
- bus_addr_t ofs;
- u_int8_t va;
+nsp_cr_write_1(bus_space_tag_t bst, bus_space_handle_t bsh, bus_addr_t ofs,
+ u_int8_t va)
{
bus_space_write_1(bst, bsh, nsp_idxr, ofs);
@@ -230,9 +227,7 @@ nsp_cr_write_1(bst, bsh, ofs, va)
}
static int
-nsp_expect_signal(sc, curphase, mask)
- struct nsp_softc *sc;
- u_int8_t curphase, mask;
+nsp_expect_signal(struct nsp_softc *sc, u_int8_t curphase, u_int8_t mask)
{
struct scsi_low_softc *slp = &sc->sc_sclow;
bus_space_tag_t bst = sc->sc_iot;
@@ -1224,10 +1219,7 @@ WriteLoop:
}
static int
-nsp_negate_signal(sc, mask, s)
- struct nsp_softc *sc;
- u_int8_t mask;
- u_char *s;
+nsp_negate_signal(struct nsp_softc *sc, u_int8_t mask, u_char *s)
{
struct scsi_low_softc *slp = &sc->sc_sclow;
bus_space_tag_t bst = sc->sc_iot;
@@ -1354,10 +1346,8 @@ nsp_disconnected(sc, ti)
static void nsp_error(struct nsp_softc *, u_char *, u_int8_t, u_int8_t, u_int8_t);
static void
-nsp_error(sc, s, isrc, ph, irqphs)
- struct nsp_softc *sc;
- u_char *s;
- u_int8_t isrc, ph, irqphs;
+nsp_error(struct nsp_softc * sc, u_char *s, u_int8_t isrc, u_int8_t ph,
+ u_int8_t irqphs)
{
struct scsi_low_softc *slp = &sc->sc_sclow;
@@ -1430,10 +1420,7 @@ nsp_ccb_nexus_establish(sc)
}
static int
-nsp_phase_match(sc, phase, stat)
- struct nsp_softc *sc;
- u_int8_t phase;
- u_int8_t stat;
+nsp_phase_match(struct nsp_softc *sc, u_int8_t phase, u_int8_t stat)
{
struct scsi_low_softc *slp = &sc->sc_sclow;
diff --git a/sys/dev/stg/tmc18c30.c b/sys/dev/stg/tmc18c30.c
index 19b4905..cfea4aa 100644
--- a/sys/dev/stg/tmc18c30.c
+++ b/sys/dev/stg/tmc18c30.c
@@ -191,9 +191,7 @@ struct scsi_low_funcs stgfuncs = {
* hwfuncs
****************************************************/
static __inline void
-stghw_bcr_write_1(sc, bcv)
- struct stg_softc *sc;
- u_int8_t bcv;
+stghw_bcr_write_1(struct stg_softc *sc, u_int8_t bcv)
{
bus_space_write_1(sc->sc_iot, sc->sc_ioh, tmc_bctl, bcv);
@@ -722,10 +720,7 @@ stg_pio_write(sc, ti, thold)
}
static int
-stg_negate_signal(sc, mask, s)
- struct stg_softc *sc;
- u_int8_t mask;
- u_char *s;
+stg_negate_signal(struct stg_softc *sc, u_int8_t mask, u_char *s)
{
struct scsi_low_softc *slp = &sc->sc_sclow;
bus_space_tag_t bst = sc->sc_iot;
@@ -749,9 +744,7 @@ stg_negate_signal(sc, mask, s)
}
static int
-stg_expect_signal(sc, phase, mask)
- struct stg_softc *sc;
- u_int8_t phase, mask;
+stg_expect_signal(struct stg_softc *sc, u_int8_t phase, u_int8_t mask)
{
struct scsi_low_softc *slp = &sc->sc_sclow;
bus_space_tag_t bst = sc->sc_iot;
diff --git a/sys/dev/txp/if_txp.c b/sys/dev/txp/if_txp.c
index 455c97c..1bbafd1 100644
--- a/sys/dev/txp/if_txp.c
+++ b/sys/dev/txp/if_txp.c
@@ -1376,11 +1376,8 @@ oactive:
* Handle simple commands sent to the typhoon
*/
static int
-txp_command(sc, id, in1, in2, in3, out1, out2, out3, wait)
- struct txp_softc *sc;
- u_int16_t id, in1, *out1;
- u_int32_t in2, in3, *out2, *out3;
- int wait;
+txp_command(struct txp_softc *sc, u_int16_t id, u_int16_t in1, u_int32_t in2,
+ u_int32_t in3, u_int16_t *out1, u_int32_t *out2, u_int32_t *out3, int wait)
{
struct txp_rsp_desc *rsp = NULL;
@@ -1401,14 +1398,9 @@ txp_command(sc, id, in1, in2, in3, out1, out2, out3, wait)
}
static int
-txp_command2(sc, id, in1, in2, in3, in_extp, in_extn, rspp, wait)
- struct txp_softc *sc;
- u_int16_t id, in1;
- u_int32_t in2, in3;
- struct txp_ext_desc *in_extp;
- u_int8_t in_extn;
- struct txp_rsp_desc **rspp;
- int wait;
+txp_command2(struct txp_softc *sc, u_int16_t id, u_int16_t in1, u_int32_t in2,
+ u_int32_t in3, struct txp_ext_desc *in_extp, u_int8_t in_extn,
+ struct txp_rsp_desc **rspp, int wait)
{
struct txp_hostvar *hv = sc->sc_hostvar;
struct txp_cmd_desc *cmd;
@@ -1474,12 +1466,8 @@ txp_command2(sc, id, in1, in2, in3, in_extp, in_extn, rspp, wait)
}
static int
-txp_response(sc, ridx, id, seq, rspp)
- struct txp_softc *sc;
- u_int32_t ridx;
- u_int16_t id;
- u_int16_t seq;
- struct txp_rsp_desc **rspp;
+txp_response(struct txp_softc *sc, u_int32_t ridx, u_int16_t id, u_int16_t seq,
+ struct txp_rsp_desc **rspp)
{
struct txp_hostvar *hv = sc->sc_hostvar;
struct txp_rsp_desc *rsp;
OpenPOWER on IntegriCloud