Deleted Added
full compact
ispmbox.h (204397) ispmbox.h (237210)
1/* $FreeBSD: head/sys/dev/isp/ispmbox.h 204397 2010-02-27 05:41:23Z mjacob $ */
1/* $FreeBSD: head/sys/dev/isp/ispmbox.h 237210 2012-06-17 21:39:40Z mjacob $ */
2/*-
3 * Copyright (c) 1997-2009 by Matthew Jacob
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 *

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

842
843/* and these are for the 2400 */
844#define ISP2400_FW_ATTR_CLASS2 0x0001
845#define ISP2400_FW_ATTR_IP 0x0002
846#define ISP2400_FW_ATTR_MULTIID 0x0004
847#define ISP2400_FW_ATTR_SB2 0x0008
848#define ISP2400_FW_ATTR_T10CRC 0x0010
849#define ISP2400_FW_ATTR_VI 0x0020
2/*-
3 * Copyright (c) 1997-2009 by Matthew Jacob
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 *

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

842
843/* and these are for the 2400 */
844#define ISP2400_FW_ATTR_CLASS2 0x0001
845#define ISP2400_FW_ATTR_IP 0x0002
846#define ISP2400_FW_ATTR_MULTIID 0x0004
847#define ISP2400_FW_ATTR_SB2 0x0008
848#define ISP2400_FW_ATTR_T10CRC 0x0010
849#define ISP2400_FW_ATTR_VI 0x0020
850#define ISP2400_FW_ATTR_VP0 0x1000
850#define ISP2400_FW_ATTR_EXPFW 0x2000
851#define ISP2400_FW_ATTR_EXPFW 0x2000
852#define ISP2400_FW_ATTR_EXTNDED 0x8000
851
853
854#define ISP_CAP_FCTAPE(isp) \
855 (IS_24XX(isp)? 1 : (isp->isp_fwattr & ISP_FW_ATTR_FCTAPE))
852#define ISP_CAP_TMODE(isp) \
853 (IS_24XX(isp)? 1 : (isp->isp_fwattr & ISP_FW_ATTR_TMODE))
854#define ISP_CAP_SCCFW(isp) \
855 (IS_24XX(isp)? 1 : (isp->isp_fwattr & ISP_FW_ATTR_SCCLUN))
856#define ISP_CAP_2KLOGIN(isp) \
857 (IS_24XX(isp)? 1 : (isp->isp_fwattr & ISP_FW_ATTR_2KLOGINS))
858#define ISP_CAP_MULTI_ID(isp) \
859 (IS_24XX(isp)? (isp->isp_fwattr & ISP2400_FW_ATTR_MULTIID) : 0)

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

980#define ICB2400_OPT1_SRCHDOWN 0x00000400
981#define ICB2400_OPT1_NOLIP 0x00000200
982#define ICB2400_OPT1_INI_DISABLE 0x00000020
983#define ICB2400_OPT1_TGT_ENABLE 0x00000010
984#define ICB2400_OPT1_FULL_DUPLEX 0x00000004
985#define ICB2400_OPT1_FAIRNESS 0x00000002
986#define ICB2400_OPT1_HARD_ADDRESS 0x00000001
987
856#define ISP_CAP_TMODE(isp) \
857 (IS_24XX(isp)? 1 : (isp->isp_fwattr & ISP_FW_ATTR_TMODE))
858#define ISP_CAP_SCCFW(isp) \
859 (IS_24XX(isp)? 1 : (isp->isp_fwattr & ISP_FW_ATTR_SCCLUN))
860#define ISP_CAP_2KLOGIN(isp) \
861 (IS_24XX(isp)? 1 : (isp->isp_fwattr & ISP_FW_ATTR_2KLOGINS))
862#define ISP_CAP_MULTI_ID(isp) \
863 (IS_24XX(isp)? (isp->isp_fwattr & ISP2400_FW_ATTR_MULTIID) : 0)

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

984#define ICB2400_OPT1_SRCHDOWN 0x00000400
985#define ICB2400_OPT1_NOLIP 0x00000200
986#define ICB2400_OPT1_INI_DISABLE 0x00000020
987#define ICB2400_OPT1_TGT_ENABLE 0x00000010
988#define ICB2400_OPT1_FULL_DUPLEX 0x00000004
989#define ICB2400_OPT1_FAIRNESS 0x00000002
990#define ICB2400_OPT1_HARD_ADDRESS 0x00000001
991
992#define ICB2400_OPT2_TPRLIC 0x00004000
988#define ICB2400_OPT2_FCTAPE 0x00001000
993#define ICB2400_OPT2_FCTAPE 0x00001000
994#define ICB2400_OPT2_FCSP 0x00000800
989#define ICB2400_OPT2_CLASS2_ACK0 0x00000200
990#define ICB2400_OPT2_CLASS2 0x00000100
991#define ICB2400_OPT2_NO_PLAY 0x00000080
992#define ICB2400_OPT2_TOPO_MASK 0x00000070
993#define ICB2400_OPT2_LOOP_ONLY 0x00000000
994#define ICB2400_OPT2_PTP_ONLY 0x00000010
995#define ICB2400_OPT2_LOOP_2_PTP 0x00000020
995#define ICB2400_OPT2_CLASS2_ACK0 0x00000200
996#define ICB2400_OPT2_CLASS2 0x00000100
997#define ICB2400_OPT2_NO_PLAY 0x00000080
998#define ICB2400_OPT2_TOPO_MASK 0x00000070
999#define ICB2400_OPT2_LOOP_ONLY 0x00000000
1000#define ICB2400_OPT2_PTP_ONLY 0x00000010
1001#define ICB2400_OPT2_LOOP_2_PTP 0x00000020
996#define ICB2400_OPT2_PTP_2_LOOP 0x00000030
997#define ICB2400_OPT2_TIMER_MASK 0x00000007
1002#define ICB2400_OPT2_TIMER_MASK 0x0000000f
998#define ICB2400_OPT2_ZIO 0x00000005
999#define ICB2400_OPT2_ZIO1 0x00000006
1000
1001#define ICB2400_OPT3_75_OHM 0x00010000
1002#define ICB2400_OPT3_RATE_MASK 0x0000E000
1003#define ICB2400_OPT3_RATE_ONEGB 0x00000000
1004#define ICB2400_OPT3_RATE_TWOGB 0x00002000
1005#define ICB2400_OPT3_RATE_AUTO 0x00004000

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

1132 uint16_t vp_global_options;
1133} isp_icb_2400_vpinfo_t;
1134
1135#define ICB2400_VPINFO_OFF 0x80 /* offset from start of ICB */
1136#define ICB2400_VPINFO_PORT_OFF(chan) \
1137 ICB2400_VPINFO_OFF + \
1138 sizeof (isp_icb_2400_vpinfo_t) + ((chan - 1) * ICB2400_VPOPT_WRITE_SIZE)
1139
1003#define ICB2400_OPT2_ZIO 0x00000005
1004#define ICB2400_OPT2_ZIO1 0x00000006
1005
1006#define ICB2400_OPT3_75_OHM 0x00010000
1007#define ICB2400_OPT3_RATE_MASK 0x0000E000
1008#define ICB2400_OPT3_RATE_ONEGB 0x00000000
1009#define ICB2400_OPT3_RATE_TWOGB 0x00002000
1010#define ICB2400_OPT3_RATE_AUTO 0x00004000

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

1137 uint16_t vp_global_options;
1138} isp_icb_2400_vpinfo_t;
1139
1140#define ICB2400_VPINFO_OFF 0x80 /* offset from start of ICB */
1141#define ICB2400_VPINFO_PORT_OFF(chan) \
1142 ICB2400_VPINFO_OFF + \
1143 sizeof (isp_icb_2400_vpinfo_t) + ((chan - 1) * ICB2400_VPOPT_WRITE_SIZE)
1144
1140#define ICB2400_VPGOPT_MID_DISABLE 0x02
1145#define ICB2400_VPGOPT_FCA 0x01 /* Assume Clean Address bit in FLOGI ACC set (works only in static configurations) */
1146#define ICB2400_VPGOPT_MID_DISABLE 0x02 /* when set, connection mode2 will work with NPIV-capable switched */
1147#define ICB2400_VPGOPT_VP0_DECOUPLE 0x04 /* Allow VP0 decoupling if firmware supports it */
1141
1142typedef struct {
1143 isphdr_t vp_ctrl_hdr;
1144 uint32_t vp_ctrl_handle;
1145 uint16_t vp_ctrl_index_fail;
1146 uint16_t vp_ctrl_status;
1147 uint16_t vp_ctrl_command;
1148 uint16_t vp_ctrl_vp_count;

--- 1420 unchanged lines hidden ---
1148
1149typedef struct {
1150 isphdr_t vp_ctrl_hdr;
1151 uint32_t vp_ctrl_handle;
1152 uint16_t vp_ctrl_index_fail;
1153 uint16_t vp_ctrl_status;
1154 uint16_t vp_ctrl_command;
1155 uint16_t vp_ctrl_vp_count;

--- 1420 unchanged lines hidden ---