2 * Copyright (C) 2005 - 2011 Emulex
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License version 2
7 * as published by the Free Software Foundation. The full GNU General
8 * Public License is included in this distribution in the file called COPYING.
10 * Written by: Jayamohan Kallickal (jayamohan.kallickal@emulex.com)
12 * Contact Information:
13 * linux-drivers@emulex.com
17 * Costa Mesa, CA 92626
29 mode_t
be2iscsi_attr_is_visible(int param_type
, int param
);
31 void beiscsi_offload_connection(struct beiscsi_conn
*beiscsi_conn
,
32 struct beiscsi_offload_params
*params
);
34 void beiscsi_offload_iscsi(struct beiscsi_hba
*phba
, struct iscsi_conn
*conn
,
35 struct beiscsi_conn
*beiscsi_conn
,
36 unsigned int fw_handle
);
38 struct iscsi_cls_session
*beiscsi_session_create(struct iscsi_endpoint
*ep
,
41 uint32_t initial_cmdsn
);
43 void beiscsi_session_destroy(struct iscsi_cls_session
*cls_session
);
45 struct iscsi_cls_conn
*beiscsi_conn_create(struct iscsi_cls_session
46 *cls_session
, uint32_t cid
);
48 int beiscsi_conn_bind(struct iscsi_cls_session
*cls_session
,
49 struct iscsi_cls_conn
*cls_conn
,
50 uint64_t transport_fd
, int is_leading
);
52 int beiscsi_ep_get_param(struct iscsi_endpoint
*ep
, enum iscsi_param param
,
55 int beiscsi_get_host_param(struct Scsi_Host
*shost
,
56 enum iscsi_host_param param
, char *buf
);
58 int beiscsi_get_macaddr(char *buf
, struct beiscsi_hba
*phba
);
60 int beiscsi_set_param(struct iscsi_cls_conn
*cls_conn
,
61 enum iscsi_param param
, char *buf
, int buflen
);
63 int beiscsi_conn_start(struct iscsi_cls_conn
*cls_conn
);
65 struct iscsi_endpoint
*beiscsi_ep_connect(struct Scsi_Host
*shost
,
66 struct sockaddr
*dst_addr
,
69 int beiscsi_ep_poll(struct iscsi_endpoint
*ep
, int timeout_ms
);
71 void beiscsi_ep_disconnect(struct iscsi_endpoint
*ep
);
73 void beiscsi_conn_get_stats(struct iscsi_cls_conn
*cls_conn
,
74 struct iscsi_stats
*stats
);