Deleted Added
full compact
cam_ccb.h (199178) cam_ccb.h (199747)
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 199178 2009-11-11 11:10:36Z mav $
28 * $FreeBSD: head/sys/cam/cam_ccb.h 199747 2009-11-24 12:47:58Z 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>

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

814 u_int valid; /* Which fields to honor */
815#define CTS_SAS_VALID_SPEED 0x1000
816 u_int32_t bitrate; /* Mbps */
817};
818
819struct ccb_trans_settings_ata {
820 u_int valid; /* Which fields to honor */
821#define CTS_ATA_VALID_MODE 0x01
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>

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

814 u_int valid; /* Which fields to honor */
815#define CTS_SAS_VALID_SPEED 0x1000
816 u_int32_t bitrate; /* Mbps */
817};
818
819struct ccb_trans_settings_ata {
820 u_int valid; /* Which fields to honor */
821#define CTS_ATA_VALID_MODE 0x01
822#define CTS_ATA_VALID_BYTECOUNT 0x04
823 u_int32_t mode;
822#define CTS_ATA_VALID_BYTECOUNT 0x02
823 int mode; /* Mode */
824 u_int bytecount; /* Length of PIO transaction */
825};
826
827struct ccb_trans_settings_sata {
828 u_int valid; /* Which fields to honor */
824 u_int bytecount; /* Length of PIO transaction */
825};
826
827struct ccb_trans_settings_sata {
828 u_int valid; /* Which fields to honor */
829#define CTS_SATA_VALID_SPEED 0x01
830#define CTS_SATA_VALID_PM 0x02
831#define CTS_SATA_VALID_BYTECOUNT 0x04
832 u_int32_t bitrate; /* Mbps */
833 u_int pm_present; /* PM is present (XPT->SIM) */
829#define CTS_SATA_VALID_MODE 0x01
830#define CTS_SATA_VALID_BYTECOUNT 0x02
831#define CTS_SATA_VALID_REVISION 0x04
832#define CTS_SATA_VALID_PM 0x08
833#define CTS_SATA_VALID_TAGS 0x10
834 int mode; /* Legacy PATA mode */
834 u_int bytecount; /* Length of PIO transaction */
835 u_int bytecount; /* Length of PIO transaction */
836 u_int revision; /* SATA revision */
837 u_int pm_present; /* PM is present (XPT->SIM) */
838 u_int tags; /* Number of allowed tags */
835};
836
837/* Get/Set transfer rate/width/disconnection/tag queueing settings */
838struct ccb_trans_settings {
839 struct ccb_hdr ccb_h;
840 cts_type type; /* Current or User settings */
841 cam_proto protocol;
842 u_int protocol_version;

--- 308 unchanged lines hidden ---
839};
840
841/* Get/Set transfer rate/width/disconnection/tag queueing settings */
842struct ccb_trans_settings {
843 struct ccb_hdr ccb_h;
844 cts_type type; /* Current or User settings */
845 cam_proto protocol;
846 u_int protocol_version;

--- 308 unchanged lines hidden ---