Deleted Added
full compact
cissio.h (146337) cissio.h (180454)
1/*-
2 * Copyright (c) 2001 Michael Smith
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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 *
1/*-
2 * Copyright (c) 2001 Michael Smith
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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 * $FreeBSD: head/sys/dev/ciss/cissio.h 146337 2005-05-18 05:31:34Z ps $
26 * $FreeBSD: head/sys/dev/ciss/cissio.h 180454 2008-07-11 21:20:51Z scottl $
27 */
28
29/*
30 * Driver ioctl interface.
31 *
32 * Note that this interface is API-compatible with the Linux implementation
33 * except as noted, and thus this header bears a striking resemblance to
34 * the Linux driver's cciss_ioctl.h.

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

189 LUNAddr_struct LUN_info; /* 8 */
190 RequestBlock_struct Request; /* 20 */
191 ErrorInfo_struct error_info; /* 48 */
192 u_int16_t buf_size; /* 2 */
193 u_int32_t buf; /* 4 */
194} __packed IOCTL_Command_struct32;
195#endif
196
27 */
28
29/*
30 * Driver ioctl interface.
31 *
32 * Note that this interface is API-compatible with the Linux implementation
33 * except as noted, and thus this header bears a striking resemblance to
34 * the Linux driver's cciss_ioctl.h.

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

189 LUNAddr_struct LUN_info; /* 8 */
190 RequestBlock_struct Request; /* 20 */
191 ErrorInfo_struct error_info; /* 48 */
192 u_int16_t buf_size; /* 2 */
193 u_int32_t buf; /* 4 */
194} __packed IOCTL_Command_struct32;
195#endif
196
197/************************************************************************
198 * Command queue statistics
199 */
200
201#define CISSQ_FREE 0
202#define CISSQ_NOTIFY 1
203#define CISSQ_COUNT 2
204
205struct ciss_qstat {
206 uint32_t q_length;
207 uint32_t q_max;
208};
209
210union ciss_statrequest {
211 uint32_t cs_item;
212 struct ciss_qstat cs_qstat;
213};
214
197/*
198 * Note that we'd normally pass the struct in directly, but
199 * this code is trying to be compatible with other drivers.
200 */
201#define CCISS_GETPCIINFO _IOR ('C', 200, cciss_pci_info_struct)
202#define CCISS_GETINTINFO _IOR ('C', 201, cciss_coalint_struct)
203#define CCISS_SETINTINFO _IOW ('C', 202, cciss_coalint_struct)
204#define CCISS_GETNODENAME _IOR ('C', 203, NodeName_type)
205#define CCISS_SETNODENAME _IOW ('C', 204, NodeName_type)
206#define CCISS_GETHEARTBEAT _IOR ('C', 205, Heartbeat_type)
207#define CCISS_GETBUSTYPES _IOR ('C', 206, BusTypes_type)
208#define CCISS_GETFIRMVER _IOR ('C', 207, FirmwareVer_type)
209#define CCISS_GETDRIVERVER _IOR ('C', 208, DriverVer_type)
210#define CCISS_REVALIDVOLS _IO ('C', 209)
211#define CCISS_PASSTHRU _IOWR ('C', 210, IOCTL_Command_struct)
212#ifdef __amd64
213#define CCISS_PASSTHRU32 _IOWR ('C', 210, IOCTL_Command_struct32)
214#endif
215/*
216 * Note that we'd normally pass the struct in directly, but
217 * this code is trying to be compatible with other drivers.
218 */
219#define CCISS_GETPCIINFO _IOR ('C', 200, cciss_pci_info_struct)
220#define CCISS_GETINTINFO _IOR ('C', 201, cciss_coalint_struct)
221#define CCISS_SETINTINFO _IOW ('C', 202, cciss_coalint_struct)
222#define CCISS_GETNODENAME _IOR ('C', 203, NodeName_type)
223#define CCISS_SETNODENAME _IOW ('C', 204, NodeName_type)
224#define CCISS_GETHEARTBEAT _IOR ('C', 205, Heartbeat_type)
225#define CCISS_GETBUSTYPES _IOR ('C', 206, BusTypes_type)
226#define CCISS_GETFIRMVER _IOR ('C', 207, FirmwareVer_type)
227#define CCISS_GETDRIVERVER _IOR ('C', 208, DriverVer_type)
228#define CCISS_REVALIDVOLS _IO ('C', 209)
229#define CCISS_PASSTHRU _IOWR ('C', 210, IOCTL_Command_struct)
230#ifdef __amd64
231#define CCISS_PASSTHRU32 _IOWR ('C', 210, IOCTL_Command_struct32)
232#endif
233#define CCISS_GETQSTATS _IOWR ('C', 211, union ciss_statrequest)
215
216#pragma pack()
234
235#pragma pack()