diff options
author | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2003-07-05 18:00:34 +0000 |
---|---|---|
committer | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2003-07-05 18:00:34 +0000 |
commit | c39e312572dbd0769a616c94986d1d935f74807c (patch) | |
tree | 5cd9bc98b5dfee3986cc26900663139a6c370bf1 /wctdm.h | |
parent | 1415cc3356fe350ffe8078fb3aa1b27b491336e6 (diff) |
Add register write capability
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@209 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wctdm.h')
-rwxr-xr-x | wctdm.h | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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) |