tws_hdm.h (226026) | tws_hdm.h (241753) |
---|---|
1/* 2 * Copyright (c) 2010, LSI Corp. 3 * All rights reserved. 4 * Author : Manjunath Ranganathaiah 5 * Support: freebsdraid@lsi.com 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 17 unchanged lines hidden (view full) --- 26 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 27 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 28 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 29 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 31 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 32 * POSSIBILITY OF SUCH DAMAGE. 33 * | 1/* 2 * Copyright (c) 2010, LSI Corp. 3 * All rights reserved. 4 * Author : Manjunath Ranganathaiah 5 * Support: freebsdraid@lsi.com 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 17 unchanged lines hidden (view full) --- 26 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 27 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 28 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 29 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 31 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 32 * POSSIBILITY OF SUCH DAMAGE. 33 * |
34 * $FreeBSD: head/sys/dev/tws/tws_hdm.h 226026 2011-10-04 21:40:25Z delphij $ | 34 * $FreeBSD: head/sys/dev/tws/tws_hdm.h 241753 2012-10-19 22:07:40Z delphij $ |
35 */ 36 37 38/* bit's defination */ 39 40#define TWS_BIT0 0x00000001 41#define TWS_BIT1 0x00000002 42#define TWS_BIT2 0x00000004 --- 126 unchanged lines hidden (view full) --- 169#define TWS_MSG_ACC_MASK 0x20000000 170#define TWS_32BIT_MASK 0xFFFFFFFF 171 172/* revisit */ 173#define TWS_FW_CMD_NOP 0x0 174#define TWS_FW_CMD_INIT_CONNECTION 0x01 175#define TWS_FW_CMD_EXECUTE_SCSI 0x10 176 | 35 */ 36 37 38/* bit's defination */ 39 40#define TWS_BIT0 0x00000001 41#define TWS_BIT1 0x00000002 42#define TWS_BIT2 0x00000004 --- 126 unchanged lines hidden (view full) --- 169#define TWS_MSG_ACC_MASK 0x20000000 170#define TWS_32BIT_MASK 0xFFFFFFFF 171 172/* revisit */ 173#define TWS_FW_CMD_NOP 0x0 174#define TWS_FW_CMD_INIT_CONNECTION 0x01 175#define TWS_FW_CMD_EXECUTE_SCSI 0x10 176 |
177#define TWS_FW_CMD_ATA_PASSTHROUGH 0x11 | 177#define TWS_FW_CMD_ATA_PASSTHROUGH 0x11 // This is really a PASSTHROUGH for both ATA and SCSI commands. |
178#define TWS_FW_CMD_GET_PARAM 0x12 179#define TWS_FW_CMD_SET_PARAM 0x13 180 181 182#define BUILD_SGL_OFF__OPCODE(sgl_off, opcode) \ 183 ((sgl_off << 5) & 0xE0) | (opcode & 0x1F) /* 3:5 */ 184 185#define BUILD_RES__OPCODE(res, opcode) \ --- 235 unchanged lines hidden --- | 178#define TWS_FW_CMD_GET_PARAM 0x12 179#define TWS_FW_CMD_SET_PARAM 0x13 180 181 182#define BUILD_SGL_OFF__OPCODE(sgl_off, opcode) \ 183 ((sgl_off << 5) & 0xE0) | (opcode & 0x1F) /* 3:5 */ 184 185#define BUILD_RES__OPCODE(res, opcode) \ --- 235 unchanged lines hidden --- |