diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2005-10-23 08:47:15 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2005-10-23 08:47:15 +0000 |
commit | 7d34d5c5c9a110e556321e70761e3048b08a42f2 (patch) | |
tree | 24e4e8285e5290c94dfe07fc16d1abebb4a0cda0 /sys/dev/ic/rtwvar.h | |
parent | d97cb51c686c8933c7163dd283e06625fffb9715 (diff) |
use read/write/barrier callbacks, will be used later
ok jsg@
Diffstat (limited to 'sys/dev/ic/rtwvar.h')
-rw-r--r-- | sys/dev/ic/rtwvar.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/dev/ic/rtwvar.h b/sys/dev/ic/rtwvar.h index f37206f4816..717b70c63f3 100644 --- a/sys/dev/ic/rtwvar.h +++ b/sys/dev/ic/rtwvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rtwvar.h,v 1.15 2005/09/15 00:33:48 jsg Exp $ */ +/* $OpenBSD: rtwvar.h,v 1.16 2005/10/23 08:47:14 reyk Exp $ */ /* $NetBSD: rtwvar.h,v 1.10 2004/12/26 22:37:57 mycroft Exp $ */ /*- @@ -129,6 +129,16 @@ struct rtw_regs { bus_space_tag_t r_bt; bus_space_handle_t r_bh; enum rtw_access r_access; + void *r_priv; + + /* bus independent I/O callbacks */ + u_int8_t (*r_read8)(struct rtw_regs *, u_int32_t); + u_int16_t (*r_read16)(struct rtw_regs *, u_int32_t); + u_int32_t (*r_read32)(struct rtw_regs *, u_int32_t); + void (*r_write8)(struct rtw_regs *, u_int32_t, u_int8_t); + void (*r_write16)(struct rtw_regs *, u_int32_t, u_int16_t); + void (*r_write32)(struct rtw_regs *, u_int32_t, u_int32_t); + void (*r_barrier)(struct rtw_regs *, u_int32_t, u_int32_t, int); }; #define RTW_SR_GET(sr, ofs) \ |