cam_ccb.h (220602) | cam_ccb.h (220644) |
---|---|
1/*- 2 * Data structures and definitions for CAM Control Blocks (CCBs). 3 * 4 * Copyright (c) 1997, 1998 Justin T. Gibbs. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * | 1/*- 2 * Data structures and definitions for CAM Control Blocks (CCBs). 3 * 4 * Copyright (c) 1997, 1998 Justin T. Gibbs. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/sys/cam/cam_ccb.h 220602 2011-04-13 16:20:54Z mav $ | 28 * $FreeBSD: head/sys/cam/cam_ccb.h 220644 2011-04-14 21:25:32Z mav $ |
29 */ 30 31#ifndef _CAM_CAM_CCB_H 32#define _CAM_CAM_CCB_H 1 33 34#include <sys/queue.h> 35#include <sys/cdefs.h> 36#include <sys/time.h> --- 216 unchanged lines hidden (view full) --- 253 XPORT_USB, /* Universal Serial Bus */ 254 XPORT_PPB, /* Parallel Port Bus */ 255 XPORT_ATA, /* AT Attachment */ 256 XPORT_SAS, /* Serial Attached SCSI */ 257 XPORT_SATA, /* Serial AT Attachment */ 258 XPORT_ISCSI, /* iSCSI */ 259} cam_xport; 260 | 29 */ 30 31#ifndef _CAM_CAM_CCB_H 32#define _CAM_CAM_CCB_H 1 33 34#include <sys/queue.h> 35#include <sys/cdefs.h> 36#include <sys/time.h> --- 216 unchanged lines hidden (view full) --- 253 XPORT_USB, /* Universal Serial Bus */ 254 XPORT_PPB, /* Parallel Port Bus */ 255 XPORT_ATA, /* AT Attachment */ 256 XPORT_SAS, /* Serial Attached SCSI */ 257 XPORT_SATA, /* Serial AT Attachment */ 258 XPORT_ISCSI, /* iSCSI */ 259} cam_xport; 260 |
261#define XPORT_IS_ATA(t) ((t) == XPORT_ATA || (t) == XPORT_SATA) 262#define XPORT_IS_SCSI(t) ((t) != XPORT_UNKNOWN && \ 263 (t) != XPORT_UNSPECIFIED && \ 264 !XPORT_IS_ATA(t)) 265#define XPORT_DEVSTAT_TYPE(t) (XPORT_IS_ATA(t) ? DEVSTAT_TYPE_IF_IDE : \ 266 XPORT_IS_SCSI(t) ? DEVSTAT_TYPE_IF_SCSI : \ 267 DEVSTAT_TYPE_IF_OTHER) 268 |
|
261#define PROTO_VERSION_UNKNOWN (UINT_MAX - 1) 262#define PROTO_VERSION_UNSPECIFIED UINT_MAX 263#define XPORT_VERSION_UNKNOWN (UINT_MAX - 1) 264#define XPORT_VERSION_UNSPECIFIED UINT_MAX 265 266typedef union { 267 LIST_ENTRY(ccb_hdr) le; 268 SLIST_ENTRY(ccb_hdr) sle; --- 998 unchanged lines hidden --- | 269#define PROTO_VERSION_UNKNOWN (UINT_MAX - 1) 270#define PROTO_VERSION_UNSPECIFIED UINT_MAX 271#define XPORT_VERSION_UNKNOWN (UINT_MAX - 1) 272#define XPORT_VERSION_UNSPECIFIED UINT_MAX 273 274typedef union { 275 LIST_ENTRY(ccb_hdr) le; 276 SLIST_ENTRY(ccb_hdr) sle; --- 998 unchanged lines hidden --- |