From c39e312572dbd0769a616c94986d1d935f74807c Mon Sep 17 00:00:00 2001 From: markster Date: Sat, 5 Jul 2003 18:00:34 +0000 Subject: Add register write capability git-svn-id: http://svn.digium.com/svn/zaptel/trunk@209 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- wctdm.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'wctdm.h') diff --git a/wctdm.h b/wctdm.h index 8fd6d6e..19ed059 100755 --- a/wctdm.h +++ b/wctdm.h @@ -39,6 +39,13 @@ struct wcfxs_regs { unsigned short indirect[NUM_INDIRECT_REGS]; }; -#define WCFXS_GET_STATS _IOW (ZT_CODE, 60, struct wcfxs_stats) -#define WCFXS_GET_REGS _IOW (ZT_CODE, 60, struct wcfxs_regs) +struct wcfxs_regop { + int indirect; + unsigned char reg; + unsigned short val; +}; + +#define WCFXS_GET_STATS _IOR (ZT_CODE, 60, struct wcfxs_stats) +#define WCFXS_GET_REGS _IOR (ZT_CODE, 61, struct wcfxs_regs) +#define WCFXS_SET_REG _IOW (ZT_CODE, 62, struct wcfxs_regop) -- cgit v1.2.3