/*1* Copyright (c) 2015 Mellanox Technologies. All rights reserved.2*3* This software is available to you under a choice of one of two4* licenses. You may choose to be licensed under the terms of the GNU5* General Public License (GPL) Version 2, available from the file6* COPYING in the main directory of this source tree, or the7* OpenIB.org BSD license below:8*9* Redistribution and use in source and binary forms, with or10* without modification, are permitted provided that the following11* conditions are met:12*13* - Redistributions of source code must retain the above14* copyright notice, this list of conditions and the following15* disclaimer.16*17* - Redistributions in binary form must reproduce the above18* copyright notice, this list of conditions and the following19* disclaimer in the documentation and/or other materials20* provided with the distribution.21*22* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,23* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF24* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND25* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS26* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN27* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN28* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE29* SOFTWARE.30*/31#ifndef ISCSI_ISER_H32#define ISCSI_ISER_H3334#define ISER_ZBVA_NOT_SUP 0x8035#define ISER_SEND_W_INV_NOT_SUP 0x4036#define ISERT_ZBVA_NOT_USED 0x8037#define ISERT_SEND_W_INV_NOT_USED 0x403839#define ISCSI_CTRL 0x1040#define ISER_HELLO 0x2041#define ISER_HELLORPLY 0x304243#define ISER_VER 0x1044#define ISER_WSV 0x0845#define ISER_RSV 0x044647/**48* struct iser_cm_hdr - iSER CM header (from iSER Annex A12)49*50* @flags: flags support (zbva, send_w_inv)51* @rsvd: reserved52*/53struct iser_cm_hdr {54u8 flags;55u8 rsvd[3];56} __packed;5758/**59* struct iser_ctrl - iSER header of iSCSI control PDU60*61* @flags: opcode and read/write valid bits62* @rsvd: reserved63* @write_stag: write rkey64* @write_va: write virtual address65* @read_stag: read rkey66* @read_va: read virtual address67*/68struct iser_ctrl {69u8 flags;70u8 rsvd[3];71__be32 write_stag;72__be64 write_va;73__be32 read_stag;74__be64 read_va;75} __packed;7677#endif /* ISCSI_ISER_H */787980