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