aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/aac_ioctl.h
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2001-08-06 04:34:47 +0000
committerScott Long <scottl@FreeBSD.org>2001-08-06 04:34:47 +0000
commitfb0c27d7e2ff847f8c21b5439992bb0f70e2eebc (patch)
tree5e89a685b33a205eb0d5e6d1690a3cec236054d5 /sys/sys/aac_ioctl.h
parent74e818733c6a6ff845b03d38ced209cda0002c57 (diff)
downloadsrc-fb0c27d7e2ff847f8c21b5439992bb0f70e2eebc.tar.gz
src-fb0c27d7e2ff847f8c21b5439992bb0f70e2eebc.zip
Put the linux compat ioctl interface on death row. Add FreeBSD
definitions of all of the ioctls, plus round out all ioctl definitions to match what exists for linux. Allow ioctls to be called through either the native or linux interface, though no apps exist (yet) that can take advantage of native calling.
Notes
Notes: svn path=/head/; revision=81189
Diffstat (limited to 'sys/sys/aac_ioctl.h')
-rw-r--r--sys/sys/aac_ioctl.h76
1 files changed, 69 insertions, 7 deletions
diff --git a/sys/sys/aac_ioctl.h b/sys/sys/aac_ioctl.h
index a4f675a54cd5..abfde7c8609d 100644
--- a/sys/sys/aac_ioctl.h
+++ b/sys/sys/aac_ioctl.h
@@ -72,18 +72,80 @@ union aac_statrequest {
#define FILE_WRITE_ACCESS ( 0x0002 )
#define FILE_DEVICE_CONTROLLER 0x00000004
-#define FSACTL_SENDFIB CTL_CODE(FILE_DEVICE_CONTROLLER, 2050, \
+#define FSACTL_LNX_SENDFIB CTL_CODE(FILE_DEVICE_CONTROLLER, 2050, \
METHOD_BUFFERED, FILE_ANY_ACCESS)
-#define FSACTL_AIF_THREAD CTL_CODE(FILE_DEVICE_CONTROLLER, 2127, \
- METHOD_NEITHER, FILE_ANY_ACCESS)
-#define FSACTL_OPEN_GET_ADAPTER_FIB CTL_CODE(FILE_DEVICE_CONTROLLER, 2100, \
+#define FSACTL_LNX_GET_COMM_PERF_DATA CTL_CODE(FILE_DEVICE_CONTROLLER, 2084, \
+ METHOD_BUFFERED, FILE_ANY_ACCESS)
+#define FSACTL_LNX_OPENCLS_COMM_PERF_DATA CTL_CODE(FILE_DEVICE_CONTROLLER, \
+ 2085, METHOD_BUFFERED, FILE_ANY_ACCESS)
+#define FSACTL_LNX_OPEN_GET_ADAPTER_FIB CTL_CODE(FILE_DEVICE_CONTROLLER, 2100, \
+ METHOD_BUFFERED, FILE_ANY_ACCESS)
+#define FSACTL_LNX_GET_NEXT_ADAPTER_FIB CTL_CODE(FILE_DEVICE_CONTROLLER, 2101, \
+ METHOD_BUFFERED, FILE_ANY_ACCESS)
+#define FSACTL_LNX_CLOSE_GET_ADAPTER_FIB CTL_CODE(FILE_DEVICE_CONTROLLER, \
+ 2102, METHOD_BUFFERED, FILE_ANY_ACCESS)
+#define FSACTL_LNX_CLOSE_ADAPTER_CONFIG CTL_CODE(FILE_DEVICE_CONTROLLER, 2104, \
METHOD_BUFFERED, FILE_ANY_ACCESS)
-#define FSACTL_GET_NEXT_ADAPTER_FIB CTL_CODE(FILE_DEVICE_CONTROLLER, 2101, \
+#define FSACTL_LNX_OPEN_ADAPTER_CONFIG CTL_CODE(FILE_DEVICE_CONTROLLER, 2105, \
METHOD_BUFFERED, FILE_ANY_ACCESS)
-#define FSACTL_CLOSE_GET_ADAPTER_FIB CTL_CODE(FILE_DEVICE_CONTROLLER, 2102, \
+#define FSACTL_LNX_MINIPORT_REV_CHECK CTL_CODE(FILE_DEVICE_CONTROLLER, 2107, \
METHOD_BUFFERED, FILE_ANY_ACCESS)
-#define FSACTL_MINIPORT_REV_CHECK CTL_CODE(FILE_DEVICE_CONTROLLER, 2107, \
+#define FSACTL_LNX_QUERY_ADAPTER_CONFIG CTL_CODE(FILE_DEVICE_CONTROLLER, 2113, \
METHOD_BUFFERED, FILE_ANY_ACCESS)
+#define FSACTL_LNX_GET_PCI_INFO CTL_CODE(FILE_DEVICE_CONTROLLER, 2119, \
+ METHOD_BUFFERED, FILE_ANY_ACCESS)
+#define FSACTL_LNX_FORCE_DELETE_DISK CTL_CODE(FILE_DEVICE_CONTROLLER, 2120, \
+ METHOD_NEITHER, FILE_ANY_ACCESS)
+#define FSACTL_LNX_AIF_THREAD CTL_CODE(FILE_DEVICE_CONTROLLER, 2127, \
+ METHOD_NEITHER, FILE_ANY_ACCESS)
+
+/* Why these don't follow the previous convention, I don't know */
+#define FSACTL_LNX_NULL_IO_TEST 0x43
+#define FSACTL_LNX_SIM_IO_TEST 0x53
+#define FSACTL_LNX_DOWNLOAD 0x83
+#define FSACTL_LNX_GET_VAR 0x93
+#define FSACTL_LNX_SET_VAR 0xa3
+#define FSACTL_LNX_GET_FIBTIMES 0xb3
+#define FSACTL_LNX_ZERO_FIBTIMES 0xc3
+#define FSACTL_LNX_DELETE_DISK 0x163
+#define FSACTL_LNX_QUERY_DISK 0x173
+
+/* Ok, this one is really lame */
+#define FSACTL_LNX_PROBE_CONTAINERS 2131 /* Just guessing */
+
+/* Do the native version of the ioctls. Since the BSD encoding scheme
+ * conflicts with the 'standard' AAC encoding scheme, the resulting values
+ * must be different. The '8' comes from the fact that the previous scheme
+ * used 12 bits for the number, with the the 12th bit being the only set
+ * bit above bit 8. Thus the value of 8, with the lower 8 bits holding the
+ * command number. 9 is used for the odd overflow/collision case.
+ */
+#define FSACTL_SENDFIB _IO('8', 2)
+#define FSACTL_GET_COMM_PERF_DATA _IO('8', 36)
+#define FSACTL_OPENCLS_COMM_PERF_DATA _IO('8', 37)
+#define FSACTL_OPEN_GET_ADAPTER_FIB _IO('8', 52)
+#define FSACTL_GET_NEXT_ADAPTER_FIB _IO('8', 53)
+#define FSACTL_CLOSE_GET_ADAPTER_FIB _IO('8', 54)
+#define FSACTL_CLOSE_ADAPTER_CONFIG _IO('8', 56)
+#define FSACTL_OPEN_ADAPTER_CONFIG _IO('8', 57)
+#define FSACTL_MINIPORT_REV_CHECK _IO('8', 59)
+#define FSACTL_QUERY_ADAPTER_CONFIG _IO('8', 65)
+#define FSACTL_GET_PCI_INFO _IO('8', 71)
+#define FSACTL_FORCE_DELETE_DISK _IO('8', 72)
+#define FSACTL_AIF_THREAD _IO('8', 79)
+
+#define FSACTL_NULL_IO_TEST _IO('8', 67)
+#define FSACTL_SIM_IO_TEST _IO('8', 83)
+#define FSACTL_DOWNLOAD _IO('8', 131)
+#define FSACTL_GET_VAR _IO('8', 147)
+#define FSACTL_SET_VAR _IO('8', 163)
+#define FSACTL_GET_FIBTIMES _IO('8', 179)
+#define FSACTL_ZERO_FIBTIMES _IO('8', 195)
+#define FSACTL_DELETE_DISK _IO('8', 99)
+#define FSACTL_QUERY_DISK _IO('9', 115)
+
+#define FSACTL_PROBE_CONTAINERS _IO('9', 83) /* Just guessing */
+
/*
* Support for faking the "miniport" version.