summaryrefslogtreecommitdiff
path: root/wctdm.h
diff options
context:
space:
mode:
Diffstat (limited to 'wctdm.h')
-rwxr-xr-xwctdm.h11
1 files changed, 9 insertions, 2 deletions
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)