summaryrefslogtreecommitdiffstats
path: root/sys/dev/twe/tweio.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/twe/tweio.h')
-rw-r--r--sys/dev/twe/tweio.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/sys/dev/twe/tweio.h b/sys/dev/twe/tweio.h
index 1b78472..43f707b 100644
--- a/sys/dev/twe/tweio.h
+++ b/sys/dev/twe/tweio.h
@@ -44,6 +44,17 @@ struct twe_usercommand {
#define TWEIO_COMMAND _IOWR('T', 100, struct twe_usercommand)
+#ifdef __amd64__
+struct twe_usercommand32 {
+ TWE_Command tu_command; /* command ready for the controller */
+ uint32_t tu_data; /* pointer to data in userspace */
+ uint32_t tu_size; /* userspace data length */
+};
+
+#define TWEIO_COMMAND32 _IOWR('T', 100, struct twe_usercommand32)
+#endif
+
+
/*
* Command queue statistics
*/
@@ -89,6 +100,18 @@ struct twe_paramcommand {
#define TWEIO_SET_PARAM _IOW ('T', 104, struct twe_paramcommand)
#define TWEIO_GET_PARAM _IOW ('T', 105, struct twe_paramcommand)
+#ifdef __amd64__
+struct twe_paramcommand32 {
+ u_int16_t tp_table_id;
+ u_int8_t tp_param_id;
+ u_int32_t tp_data;
+ u_int8_t tp_size;
+};
+
+#define TWEIO_SET_PARAM32 _IOW ('T', 104, struct twe_paramcommand32)
+#define TWEIO_GET_PARAM32 _IOW ('T', 105, struct twe_paramcommand32)
+#endif
+
/*
* Request a controller soft-reset
*/
OpenPOWER on IntegriCloud