summaryrefslogtreecommitdiffstats
path: root/sys/dev/mfi/mfi_ioctl.h
diff options
context:
space:
mode:
authorambrisko <ambrisko@FreeBSD.org>2006-12-14 18:29:08 +0000
committerambrisko <ambrisko@FreeBSD.org>2006-12-14 18:29:08 +0000
commitecbd0bb16ba70864fe3e8e71a4997df88b115e33 (patch)
tree95c03d8bf98bf7cc3c25883512542eaae4d95d75 /sys/dev/mfi/mfi_ioctl.h
parent762d6693b66e0de16691f6627f55ebe4c4e93073 (diff)
downloadFreeBSD-src-ecbd0bb16ba70864fe3e8e71a4997df88b115e33.zip
FreeBSD-src-ecbd0bb16ba70864fe3e8e71a4997df88b115e33.tar.gz
Some relatively minor changes and bug fixes:
1) s/mi/mfi/ in FreeBSD ioctl path 2) add in "\n" on various failure messages 3) cap the length of time to abort an AEN command 4) fix passing sense data back to user to make Dell's Linux firmware upgrade tool happy. 5) bump the MFI_POLL_TIMEOUT_SECS from 10s to 50s since the firmware flash command can take ~40s to return. This is some clean-up and enables RAID firmware to updated via Dell's tool. Note Dell's tool requires the updates to the Linux emulator that has been done in -current with TLS etc. I need to discuss with scottl how to better submit mfi commands to the firmware via the ioctl path so we don't do it in polled mode.
Diffstat (limited to 'sys/dev/mfi/mfi_ioctl.h')
-rw-r--r--sys/dev/mfi/mfi_ioctl.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/mfi/mfi_ioctl.h b/sys/dev/mfi/mfi_ioctl.h
index 8b43a79..747086f 100644
--- a/sys/dev/mfi/mfi_ioctl.h
+++ b/sys/dev/mfi/mfi_ioctl.h
@@ -53,18 +53,18 @@ union mfi_statrequest {
#define MAX_IOCTL_SGE 16
struct mfi_ioc_packet {
- uint16_t mi_adapter_no;
- uint16_t mi_pad1;
- uint32_t mi_sgl_off;
- uint32_t mi_sge_count;
- uint32_t mi_sense_off;
- uint32_t mi_sense_len;
+ uint16_t mfi_adapter_no;
+ uint16_t mfi_pad1;
+ uint32_t mfi_sgl_off;
+ uint32_t mfi_sge_count;
+ uint32_t mfi_sense_off;
+ uint32_t mfi_sense_len;
union {
uint8_t raw[128];
struct mfi_frame_header hdr;
- } mi_frame;
+ } mfi_frame;
- struct iovec mi_sgl[MAX_IOCTL_SGE];
+ struct iovec mfi_sgl[MAX_IOCTL_SGE];
} __packed;
struct mfi_ioc_aen {
OpenPOWER on IntegriCloud