summaryrefslogtreecommitdiff
path: root/wcfxs.h
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2003-07-05 18:00:34 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2003-07-05 18:00:34 +0000
commitc39e312572dbd0769a616c94986d1d935f74807c (patch)
tree5cd9bc98b5dfee3986cc26900663139a6c370bf1 /wcfxs.h
parent1415cc3356fe350ffe8078fb3aa1b27b491336e6 (diff)
Add register write capability
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@209 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wcfxs.h')
-rwxr-xr-xwcfxs.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/wcfxs.h b/wcfxs.h
index 8fd6d6e..19ed059 100755
--- a/wcfxs.h
+++ b/wcfxs.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)