Deleted Added
full compact
mfi_ioctl.h (178968) mfi_ioctl.h (179392)
1/*-
2 * Copyright (c) 2006 IronPort Systems
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2006 IronPort Systems
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/dev/mfi/mfi_ioctl.h 178968 2008-05-12 14:09:19Z scottl $");
28__FBSDID("$FreeBSD: head/sys/dev/mfi/mfi_ioctl.h 179392 2008-05-28 23:19:27Z ambrisko $");
29
30#if defined(__amd64__) /* Assume amd64 wants 32 bit Linux */
31struct iovec32 {
32 u_int32_t iov_base;
33 int iov_len;
34};
35#endif
36

--- 25 unchanged lines hidden (view full) ---

62 union {
63 uint8_t raw[128];
64 struct mfi_frame_header hdr;
65 } mfi_frame;
66
67 struct iovec mfi_sgl[MAX_IOCTL_SGE];
68} __packed;
69
29
30#if defined(__amd64__) /* Assume amd64 wants 32 bit Linux */
31struct iovec32 {
32 u_int32_t iov_base;
33 int iov_len;
34};
35#endif
36

--- 25 unchanged lines hidden (view full) ---

62 union {
63 uint8_t raw[128];
64 struct mfi_frame_header hdr;
65 } mfi_frame;
66
67 struct iovec mfi_sgl[MAX_IOCTL_SGE];
68} __packed;
69
70#ifdef __amd64__
71struct mfi_ioc_packet32 {
72 uint16_t mfi_adapter_no;
73 uint16_t mfi_pad1;
74 uint32_t mfi_sgl_off;
75 uint32_t mfi_sge_count;
76 uint32_t mfi_sense_off;
77 uint32_t mfi_sense_len;
78 union {
79 uint8_t raw[128];
80 struct mfi_frame_header hdr;
81 } mfi_frame;
82
83 struct iovec32 mfi_sgl[MAX_IOCTL_SGE];
84} __packed;
85#endif
86
70struct mfi_ioc_aen {
71 uint16_t aen_adapter_no;
72 uint16_t aen_pad1;
73 uint32_t aen_seq_num;
74 uint32_t aen_class_locale;
75} __packed;
76
77#define MFI_CMD _IOWR('M', 1, struct mfi_ioc_packet)
87struct mfi_ioc_aen {
88 uint16_t aen_adapter_no;
89 uint16_t aen_pad1;
90 uint32_t aen_seq_num;
91 uint32_t aen_class_locale;
92} __packed;
93
94#define MFI_CMD _IOWR('M', 1, struct mfi_ioc_packet)
95#ifdef __amd64__
96#define MFI_CMD32 _IOWR('M', 1, struct mfi_ioc_packet32)
97#endif
78#define MFI_SET_AEN _IOW('M', 3, struct mfi_ioc_aen)
79
80#define MAX_LINUX_IOCTL_SGE 16
81
82struct mfi_linux_ioc_packet {
83 uint16_t lioc_adapter_no;
84 uint16_t lioc_pad1;
85 uint32_t lioc_sgl_off;

--- 60 unchanged lines hidden ---
98#define MFI_SET_AEN _IOW('M', 3, struct mfi_ioc_aen)
99
100#define MAX_LINUX_IOCTL_SGE 16
101
102struct mfi_linux_ioc_packet {
103 uint16_t lioc_adapter_no;
104 uint16_t lioc_pad1;
105 uint32_t lioc_sgl_off;

--- 60 unchanged lines hidden ---