summaryrefslogtreecommitdiff
path: root/sys/dev/ic/tcic2var.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ic/tcic2var.h')
-rw-r--r--sys/dev/ic/tcic2var.h67
1 files changed, 18 insertions, 49 deletions
diff --git a/sys/dev/ic/tcic2var.h b/sys/dev/ic/tcic2var.h
index 705d33e4208..72b3fcd22c2 100644
--- a/sys/dev/ic/tcic2var.h
+++ b/sys/dev/ic/tcic2var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcic2var.h,v 1.4 2005/11/23 11:39:37 mickey Exp $ */
+/* $OpenBSD: tcic2var.h,v 1.5 2021/03/07 06:21:38 jsg Exp $ */
/* $NetBSD: tcic2var.h,v 1.1 1999/03/23 20:04:14 bad Exp $ */
/*
@@ -185,27 +185,21 @@ void tcic_chip_socket_disable(pcmcia_chipset_handle_t);
static __inline__ int tcic_read_1(struct tcic_handle *, int);
static __inline__ int
-tcic_read_1(h, reg)
- struct tcic_handle *h;
- int reg;
+tcic_read_1(struct tcic_handle *h, int reg)
{
return (bus_space_read_1(h->sc->iot, h->sc->ioh, reg));
}
static __inline__ int tcic_read_2(struct tcic_handle *, int);
static __inline__ int
-tcic_read_2(h, reg)
- struct tcic_handle *h;
- int reg;
+tcic_read_2(struct tcic_handle *h, int reg)
{
return (bus_space_read_2(h->sc->iot, h->sc->ioh, reg));
}
static __inline__ int tcic_read_4(struct tcic_handle *, int);
static __inline__ int
-tcic_read_4(h, reg)
- struct tcic_handle *h;
- int reg;
+tcic_read_4(struct tcic_handle *h, int reg)
{
int val;
val = bus_space_read_2(h->sc->iot, h->sc->ioh, reg);
@@ -215,30 +209,21 @@ tcic_read_4(h, reg)
static __inline__ void tcic_write_1(struct tcic_handle *, int, int);
static __inline__ void
-tcic_write_1(h, reg, data)
- struct tcic_handle *h;
- int reg;
- int data;
+tcic_write_1(struct tcic_handle *h, int reg, int data)
{
bus_space_write_1(h->sc->iot, h->sc->ioh, reg, (data));
}
static __inline__ void tcic_write_2(struct tcic_handle *, int, int);
static __inline__ void
-tcic_write_2(h, reg, data)
- struct tcic_handle *h;
- int reg;
- int data;
+tcic_write_2(struct tcic_handle *h, int reg, int data)
{
bus_space_write_2(h->sc->iot, h->sc->ioh, reg, (data));
}
static __inline__ void tcic_write_4(struct tcic_handle *, int, int);
static __inline__ void
-tcic_write_4(h, reg, data)
- struct tcic_handle *h;
- int reg;
- int data;
+tcic_write_4(struct tcic_handle *h, int reg, int data)
{
bus_space_write_2(h->sc->iot, h->sc->ioh, reg, (data));
bus_space_write_2(h->sc->iot, h->sc->ioh, reg+2, (data)>>16);
@@ -246,9 +231,7 @@ tcic_write_4(h, reg, data)
static __inline__ int tcic_read_ind_2(struct tcic_handle *, int);
static __inline__ int
-tcic_read_ind_2(h, reg)
- struct tcic_handle *h;
- int reg;
+tcic_read_ind_2(struct tcic_handle *h, int reg)
{
int r_addr, val;
r_addr = tcic_read_4(h, TCIC_R_ADDR);
@@ -260,10 +243,7 @@ tcic_read_ind_2(h, reg)
static __inline__ void tcic_write_ind_2(struct tcic_handle *, int, int);
static __inline__ void
-tcic_write_ind_2(h, reg, data)
- struct tcic_handle *h;
- int reg;
- int data;
+tcic_write_ind_2(struct tcic_handle *h, int reg, int data)
{
int r_addr;
r_addr = tcic_read_4(h, TCIC_R_ADDR);
@@ -274,8 +254,7 @@ tcic_write_ind_2(h, reg, data)
static __inline__ void tcic_sel_sock(struct tcic_handle *);
static __inline__ void
-tcic_sel_sock(h)
- struct tcic_handle *h;
+tcic_sel_sock(struct tcic_handle *h)
{
int r_addr;
r_addr = tcic_read_2(h, TCIC_R_ADDR2);
@@ -285,8 +264,7 @@ tcic_sel_sock(h)
static __inline__ void tcic_wait_ready(struct tcic_handle *);
static __inline__ void
-tcic_wait_ready(h)
- struct tcic_handle *h;
+tcic_wait_ready(struct tcic_handle *h)
{
int i;
@@ -304,10 +282,8 @@ tcic_wait_ready(h)
static __inline__ int tcic_read_aux_1(bus_space_tag_t, bus_space_handle_t, int, int);
static __inline__ int
-tcic_read_aux_1(iot, ioh, auxreg, reg)
- bus_space_tag_t iot;
- bus_space_handle_t ioh;
- int auxreg, reg;
+tcic_read_aux_1(bus_space_tag_t iot, bus_space_handle_t ioh, int auxreg,
+ int reg)
{
int mode, val;
mode = bus_space_read_1(iot, ioh, TCIC_R_MODE);
@@ -318,10 +294,7 @@ tcic_read_aux_1(iot, ioh, auxreg, reg)
static __inline__ int tcic_read_aux_2(bus_space_tag_t, bus_space_handle_t, int);
static __inline__ int
-tcic_read_aux_2(iot, ioh, auxreg)
- bus_space_tag_t iot;
- bus_space_handle_t ioh;
- int auxreg;
+tcic_read_aux_2(bus_space_tag_t iot, bus_space_handle_t ioh, int auxreg)
{
int mode, val;
mode = bus_space_read_1(iot, ioh, TCIC_R_MODE);
@@ -332,10 +305,8 @@ tcic_read_aux_2(iot, ioh, auxreg)
static __inline__ void tcic_write_aux_1(bus_space_tag_t, bus_space_handle_t, int, int, int);
static __inline__ void
-tcic_write_aux_1(iot, ioh, auxreg, reg, val)
- bus_space_tag_t iot;
- bus_space_handle_t ioh;
- int auxreg, reg, val;
+tcic_write_aux_1(bus_space_tag_t iot, bus_space_handle_t ioh, int auxreg,
+ int reg, int val)
{
int mode;
mode = bus_space_read_1(iot, ioh, TCIC_R_MODE);
@@ -345,10 +316,8 @@ tcic_write_aux_1(iot, ioh, auxreg, reg, val)
static __inline__ void tcic_write_aux_2(bus_space_tag_t, bus_space_handle_t, int, int);
static __inline__ void
-tcic_write_aux_2(iot, ioh, auxreg, val)
- bus_space_tag_t iot;
- bus_space_handle_t ioh;
- int auxreg, val;
+tcic_write_aux_2(bus_space_tag_t iot, bus_space_handle_t ioh, int auxreg,
+ int val)
{
int mode;
mode = bus_space_read_1(iot, ioh, TCIC_R_MODE);