]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/scsi/iscsi_if.h
[SCSI] iscsi_transport, qla4xxx: have class lookup host for drivers
[karo-tx-linux.git] / include / scsi / iscsi_if.h
index 8813f0f4c624467eff6751622b8941c5b9c2569b..fba211743729c1077d4ff13e5618b59445fba811 100644 (file)
@@ -53,6 +53,7 @@ enum iscsi_uevent_e {
        ISCSI_KEVENT_RECV_PDU           = KEVENT_BASE + 1,
        ISCSI_KEVENT_CONN_ERROR         = KEVENT_BASE + 2,
        ISCSI_KEVENT_IF_ERROR           = KEVENT_BASE + 3,
+       ISCSI_KEVENT_DESTROY_SESSION    = KEVENT_BASE + 4,
 };
 
 enum iscsi_tgt_dscvr {
@@ -157,27 +158,13 @@ struct iscsi_uevent {
                        uint32_t        cid;
                        uint32_t        error; /* enum iscsi_err */
                } connerror;
+               struct msg_session_destroyed {
+                       uint32_t        host_no;
+                       uint32_t        sid;
+               } d_session;
                struct msg_transport_connect_ret {
                        uint64_t        handle;
                } ep_connect_ret;
-               struct msg_tgt_dscvr_ret {
-                       /*
-                        * session/connection pair used to reference
-                        * the connection to server
-                        */
-                       uint32_t        sid;
-                       uint32_t        cid;
-                       union {
-                               struct isns {
-                                       /* port # for conn to iSNS server */
-                                       uint16_t isns_port;
-                                       /* listening port to receive SCNs */
-                                       uint16_t scn_port;
-                                       /* listening port to receive ESIs */
-                                       uint16_t esi_port;
-                               } isns_attrib;
-                       } u;
-               } tgt_dscvr_ret;
        } r;
 } __attribute__ ((aligned (sizeof(uint64_t))));
 
@@ -263,6 +250,14 @@ enum iscsi_param {
 #define ISCSI_CONN_PORT                        (1 << ISCSI_PARAM_CONN_PORT)
 #define ISCSI_CONN_ADDRESS             (1 << ISCSI_PARAM_CONN_ADDRESS)
 
+/* iSCSI HBA params */
+enum iscsi_host_param {
+       ISCSI_HOST_PARAM_HWADDRESS,
+       ISCSI_HOST_PARAM_MAX,
+};
+
+#define ISCSI_HOST_HWADDRESS           (1 << ISCSI_HOST_PARAM_HWADDRESS)
+
 #define iscsi_ptr(_handle) ((void*)(unsigned long)_handle)
 #define iscsi_handle(_ptr) ((uint64_t)(unsigned long)_ptr)
 #define hostdata_session(_hostdata) (iscsi_ptr(*(unsigned long *)_hostdata))