cam_ccb.h (199747) | cam_ccb.h (199821) |
---|---|
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 199747 2009-11-24 12:47:58Z mav $ | 28 * $FreeBSD: head/sys/cam/cam_ccb.h 199821 2009-11-26 08:49:46Z 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> --- 778 unchanged lines hidden (view full) --- 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 0x02 | 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> --- 778 unchanged lines hidden (view full) --- 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 0x02 |
823 int mode; /* Mode */ | 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 */ 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 | 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_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 int mode; /* Legacy PATA mode */ |
835 u_int bytecount; /* Length of PIO transaction */ | 835 u_int bytecount; /* Length of PIO transaction */ |
836 u_int revision; /* SATA revision */ | 836 int revision; /* SATA revision */ |
837 u_int pm_present; /* PM is present (XPT->SIM) */ 838 u_int tags; /* Number of allowed tags */ 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 */ --- 310 unchanged lines hidden --- | 837 u_int pm_present; /* PM is present (XPT->SIM) */ 838 u_int tags; /* Number of allowed tags */ 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 */ --- 310 unchanged lines hidden --- |