| Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 1 | /** | 
| Jayamohan Kallickal | d2eeb1a | 2010-01-23 05:35:15 +0530 | [diff] [blame] | 2 |  * Copyright (C) 2005 - 2010 ServerEngines | 
| Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 3 |  * All rights reserved. | 
 | 4 |  * | 
 | 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. | 
 | 9 |  * | 
 | 10 |  * Written by: Jayamohan Kallickal (jayamohank@serverengines.com) | 
 | 11 |  * | 
 | 12 |  * Contact Information: | 
 | 13 |  * linux-drivers@serverengines.com | 
 | 14 |  * | 
 | 15 |  * ServerEngines | 
 | 16 |  * 209 N. Fair Oaks Ave | 
 | 17 |  * Sunnyvale, CA 94085 | 
 | 18 |  * | 
 | 19 |  */ | 
 | 20 |  | 
 | 21 | #ifndef _BE_ISCSI_ | 
 | 22 | #define _BE_ISCSI_ | 
 | 23 |  | 
 | 24 | #include "be_main.h" | 
 | 25 | #include "be_mgmt.h" | 
 | 26 |  | 
 | 27 | #define BE2_IPV4  0x1 | 
 | 28 | #define BE2_IPV6  0x10 | 
 | 29 |  | 
 | 30 | void beiscsi_offload_connection(struct beiscsi_conn *beiscsi_conn, | 
 | 31 | 				struct beiscsi_offload_params *params); | 
 | 32 |  | 
 | 33 | void beiscsi_offload_iscsi(struct beiscsi_hba *phba, struct iscsi_conn *conn, | 
 | 34 | 			   struct beiscsi_conn *beiscsi_conn, | 
 | 35 | 			   unsigned int fw_handle); | 
 | 36 |  | 
 | 37 | struct iscsi_cls_session *beiscsi_session_create(struct iscsi_endpoint *ep, | 
 | 38 | 						 uint16_t cmds_max, | 
 | 39 | 						 uint16_t qdepth, | 
 | 40 | 						 uint32_t initial_cmdsn); | 
 | 41 |  | 
 | 42 | void beiscsi_session_destroy(struct iscsi_cls_session *cls_session); | 
 | 43 |  | 
 | 44 | struct iscsi_cls_conn *beiscsi_conn_create(struct iscsi_cls_session | 
 | 45 | 					   *cls_session, uint32_t cid); | 
 | 46 |  | 
 | 47 | int beiscsi_conn_bind(struct iscsi_cls_session *cls_session, | 
 | 48 | 		      struct iscsi_cls_conn *cls_conn, | 
 | 49 | 		      uint64_t transport_fd, int is_leading); | 
 | 50 |  | 
| Mike Christie | c7f7fd5 | 2011-02-16 15:04:41 -0600 | [diff] [blame] | 51 | int beiscsi_ep_get_param(struct iscsi_endpoint *ep, enum iscsi_param param, | 
 | 52 | 			 char *buf); | 
| Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 53 |  | 
 | 54 | int beiscsi_get_host_param(struct Scsi_Host *shost, | 
 | 55 | 			   enum iscsi_host_param param, char *buf); | 
 | 56 |  | 
| Jayamohan Kallickal | c7acc5b | 2010-07-22 04:29:18 +0530 | [diff] [blame] | 57 | int beiscsi_get_macaddr(char *buf, struct beiscsi_hba *phba); | 
 | 58 |  | 
| Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 59 | int beiscsi_set_param(struct iscsi_cls_conn *cls_conn, | 
 | 60 | 		      enum iscsi_param param, char *buf, int buflen); | 
 | 61 |  | 
 | 62 | int beiscsi_conn_start(struct iscsi_cls_conn *cls_conn); | 
 | 63 |  | 
| Jayamohan Kallickal | 6733b39 | 2009-09-05 07:36:35 +0530 | [diff] [blame] | 64 | struct iscsi_endpoint *beiscsi_ep_connect(struct Scsi_Host *shost, | 
 | 65 | 					  struct sockaddr *dst_addr, | 
 | 66 | 					  int non_blocking); | 
 | 67 |  | 
 | 68 | int beiscsi_ep_poll(struct iscsi_endpoint *ep, int timeout_ms); | 
 | 69 |  | 
 | 70 | void beiscsi_ep_disconnect(struct iscsi_endpoint *ep); | 
 | 71 |  | 
 | 72 | void beiscsi_conn_get_stats(struct iscsi_cls_conn *cls_conn, | 
 | 73 | 			    struct iscsi_stats *stats); | 
 | 74 |  | 
 | 75 | #endif |