/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * iSCSI Transport BSG Interface * * Copyright (C) 2009 James Smart, Emulex Corporation */ #ifndef SCSI_BSG_ISCSI_H #define SCSI_BSG_ISCSI_H /* * This file intended to be included by both kernel and user space */ #include <scsi/scsi.h> /* * iSCSI Transport SGIO v4 BSG Message Support */ /* Default BSG request timeout (in seconds) */ #define ISCSI_DEFAULT_BSG_TIMEOUT … /* * Request Message Codes supported by the iSCSI Transport */ /* define the class masks for the message codes */ #define ISCSI_BSG_CLS_MASK … #define ISCSI_BSG_HST_MASK … /* iscsi host Message Codes */ #define ISCSI_BSG_HST_VENDOR … /* * iSCSI Host Messages */ /* ISCSI_BSG_HST_VENDOR : */ /* Request: * Note: When specifying vendor_id, be sure to read the Vendor Type and ID * formatting requirements specified in scsi_netlink.h */ struct iscsi_bsg_host_vendor { … }; /* Response: */ struct iscsi_bsg_host_vendor_reply { … }; /* request (CDB) structure of the sg_io_v4 */ struct iscsi_bsg_request { … } __attribute__((packed)); /* response (request sense data) structure of the sg_io_v4 */ struct iscsi_bsg_reply { … }; #endif /* SCSI_BSG_ISCSI_H */