summaryrefslogtreecommitdiffstats
path: root/sys/dev/amr/amrio.h
diff options
context:
space:
mode:
authorambrisko <ambrisko@FreeBSD.org>2004-08-16 17:23:09 +0000
committerambrisko <ambrisko@FreeBSD.org>2004-08-16 17:23:09 +0000
commit0e837443e770e7f7ded55057d6b522cd361a7b8b (patch)
treee40e6934ddf76e74c88539e5522c704ec6c37f3d /sys/dev/amr/amrio.h
parent455e6a16528b332f31ed1e68b965ccc61bdce71d (diff)
downloadFreeBSD-src-0e837443e770e7f7ded55057d6b522cd361a7b8b.zip
FreeBSD-src-0e837443e770e7f7ded55057d6b522cd361a7b8b.tar.gz
Allow i386 binaries to do amr ioctls such as LSI's megamgr on amd64 and
ia64. PR: 63155 Submitted by: Mikhail Teterin Tested on: i386, amd64 (via 64bit Xeon system)
Diffstat (limited to 'sys/dev/amr/amrio.h')
-rw-r--r--sys/dev/amr/amrio.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/dev/amr/amrio.h b/sys/dev/amr/amrio.h
index 48ec4e8..e14ade4 100644
--- a/sys/dev/amr/amrio.h
+++ b/sys/dev/amr/amrio.h
@@ -60,6 +60,7 @@
*/
#include <sys/ioccom.h>
+#include <sys/param.h>
/*
* Fetch the driver's interface version.
@@ -107,3 +108,15 @@ struct amr_user_ioctl {
#define AMR_IO_COMMAND _IOWR('A', 0x201, struct amr_user_ioctl)
+#if defined(__amd64__) || defined(__ia64__)
+
+struct amr_user_ioctl32 {
+ unsigned char au_cmd[32]; /* command text from userspace */
+ u_int32_t au_buffer; /* 32-bit pointer to uspace buf */
+ u_int32_t au_length; /* length of the uspace buffer */
+ int32_t au_direction; /* data transfer direction */
+ int32_t au_status; /* command status returned by adapter */
+};
+
+# define AMR_IO_COMMAND32 _IOWR('A', 0x201, struct amr_user_ioctl32)
+#endif
OpenPOWER on IntegriCloud