summaryrefslogtreecommitdiffstats
path: root/sys/dev/twe/tweio.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2004-12-17 17:45:29 +0000
committerpeter <peter@FreeBSD.org>2004-12-17 17:45:29 +0000
commiteb2a167966c00bcd7b22614e7642f842ce5b8324 (patch)
treec2c94ea4504f68658712814c9727611eaceb16a6 /sys/dev/twe/tweio.h
parentaafcafb65910425ce3addfadf8f3b8bda95d8676 (diff)
downloadFreeBSD-src-eb2a167966c00bcd7b22614e7642f842ce5b8324.zip
FreeBSD-src-eb2a167966c00bcd7b22614e7642f842ce5b8324.tar.gz
Recognize the 32-bit form of the twe binary passthrough ioctl()s so that
there is some hope for the 32-bit management utilities to run. I've used the cli successfully, but 3dm2 doesn't work for other reasons. Of course, a native binary of the 3dm2 and cli would be much better, but that doesn't exist.
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