summaryrefslogtreecommitdiffstats
path: root/sys/dev/twe/tweio.h
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2003-08-05 19:55:21 +0000
committerps <ps@FreeBSD.org>2003-08-05 19:55:21 +0000
commit52bff5229a998fce244a92247317fb6536b7a8d8 (patch)
treee2e84f0f50ca033d3797a3fad0fe7927745f9df3 /sys/dev/twe/tweio.h
parentad82646deb3641ae38ecc9edcb28cf49eb9c5c6c (diff)
downloadFreeBSD-src-52bff5229a998fce244a92247317fb6536b7a8d8.zip
FreeBSD-src-52bff5229a998fce244a92247317fb6536b7a8d8.tar.gz
Properly support the 3ware generic API.
- Build SGL's for ATA_PASSTHROUGH commands - Fallback to using the sgl_offset when the opcode is unknown for building SGL's/ - Add ioctl calls for adding and removing units. - Define previously undefined AEN's - Allocate memory for the ioctl payload in multiples of 512bytes. MFC after: 1 week
Diffstat (limited to 'sys/dev/twe/tweio.h')
-rw-r--r--sys/dev/twe/tweio.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/dev/twe/tweio.h b/sys/dev/twe/tweio.h
index eaf0d7b..7aed7d1 100644
--- a/sys/dev/twe/tweio.h
+++ b/sys/dev/twe/tweio.h
@@ -90,3 +90,13 @@ struct twe_paramcommand {
* Request a controller soft-reset
*/
#define TWEIO_RESET _IO ('T', 106)
+
+/*
+ * Request a drive addition or deletion
+ */
+struct twe_drivecommand {
+ int td_unit;
+};
+
+#define TWEIO_ADD_UNIT _IOW ('U', 107, int)
+#define TWEIO_DEL_UNIT _IOW ('U', 108, int)
OpenPOWER on IntegriCloud