summaryrefslogtreecommitdiffstats
path: root/sys/dev/ct/ct_machdep.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ct/ct_machdep.h')
-rw-r--r--sys/dev/ct/ct_machdep.h31
1 files changed, 8 insertions, 23 deletions
diff --git a/sys/dev/ct/ct_machdep.h b/sys/dev/ct/ct_machdep.h
index ceba654..a6b8b15 100644
--- a/sys/dev/ct/ct_machdep.h
+++ b/sys/dev/ct/ct_machdep.h
@@ -90,8 +90,7 @@ static __inline void cthw_set_count
(struct ct_bus_access_handle *, u_int);
static __inline u_int8_t
-ct_stat_read_1(chp)
- struct ct_bus_access_handle *chp;
+ct_stat_read_1(struct ct_bus_access_handle *chp)
{
u_int8_t regv;
@@ -101,9 +100,7 @@ ct_stat_read_1(chp)
}
static __inline void
-cthw_set_count(chp, count)
- struct ct_bus_access_handle *chp;
- u_int count;
+cthw_set_count(struct ct_bus_access_handle *chp, u_int count)
{
bus_space_tag_t bst = chp->ch_iot;
bus_space_handle_t bsh = chp->ch_ioh;
@@ -119,8 +116,7 @@ cthw_set_count(chp, count)
}
static __inline u_int
-cthw_get_count(chp)
- struct ct_bus_access_handle *chp;
+cthw_get_count(struct ct_bus_access_handle *chp)
{
bus_space_tag_t bst = chp->ch_iot;
bus_space_handle_t bsh = chp->ch_ioh;
@@ -138,10 +134,7 @@ cthw_get_count(chp)
}
static __inline void
-ct_write_cmds(chp, cmd, len)
- struct ct_bus_access_handle *chp;
- u_int8_t *cmd;
- int len;
+ct_write_cmds(struct ct_bus_access_handle *chp, u_int8_t *cmd, int len)
{
bus_space_tag_t bst = chp->ch_iot;
bus_space_handle_t bsh = chp->ch_ioh;
@@ -157,9 +150,7 @@ ct_write_cmds(chp, cmd, len)
}
static __inline u_int8_t
-ct_cr_read_1(chp, offs)
- struct ct_bus_access_handle *chp;
- bus_addr_t offs;
+ct_cr_read_1(struct ct_bus_access_handle *chp, bus_addr_t offs)
{
bus_space_tag_t bst = chp->ch_iot;
bus_space_handle_t bsh = chp->ch_ioh;
@@ -173,10 +164,7 @@ ct_cr_read_1(chp, offs)
}
static __inline void
-ct_cr_write_1(chp, offs, val)
- struct ct_bus_access_handle *chp;
- bus_addr_t offs;
- u_int8_t val;
+ct_cr_write_1(struct ct_bus_access_handle *chp, bus_addr_t offs, u_int8_t val)
{
bus_space_tag_t bst = chp->ch_iot;
bus_space_handle_t bsh = chp->ch_ioh;
@@ -188,8 +176,7 @@ ct_cr_write_1(chp, offs, val)
}
static __inline u_int8_t
-ct_cmdp_read_1(chp)
- struct ct_bus_access_handle *chp;
+ct_cmdp_read_1(struct ct_bus_access_handle *chp)
{
u_int8_t regv;
@@ -199,9 +186,7 @@ ct_cmdp_read_1(chp)
}
static __inline void
-ct_cmdp_write_1(chp, val)
- struct ct_bus_access_handle *chp;
- u_int8_t val;
+ct_cmdp_write_1(struct ct_bus_access_handle *chp, u_int8_t val)
{
bus_space_write_1(chp->ch_iot, chp->ch_ioh, cmd_port, val);
OpenPOWER on IntegriCloud