Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
be_mgmt.c File Reference
#include <linux/bsg-lib.h>
#include <scsi/scsi_transport_iscsi.h>
#include <scsi/scsi_bsg_iscsi.h>
#include "be_mgmt.h"
#include "be_iscsi.h"

Go to the source code of this file.

Functions

unsigned int mgmt_reopen_session (struct beiscsi_hba *phba, unsigned int reopen_type, unsigned int sess_handle)
 
unsigned int mgmt_get_boot_target (struct beiscsi_hba *phba)
 
unsigned int mgmt_get_session_info (struct beiscsi_hba *phba, u32 boot_session_handle, struct be_dma_mem *nonemb_cmd)
 
int mgmt_get_fw_config (struct be_ctrl_info *ctrl, struct beiscsi_hba *phba)
 
int mgmt_check_supported_fw (struct be_ctrl_info *ctrl, struct beiscsi_hba *phba)
 
unsigned int mgmt_vendor_specific_fw_cmd (struct be_ctrl_info *ctrl, struct beiscsi_hba *phba, struct bsg_job *job, struct be_dma_mem *nonemb_cmd)
 
int mgmt_epfw_cleanup (struct beiscsi_hba *phba, unsigned short chute)
 
unsigned int mgmt_invalidate_icds (struct beiscsi_hba *phba, struct invalidate_command_table *inv_tbl, unsigned int num_invalidate, unsigned int cid, struct be_dma_mem *nonemb_cmd)
 
unsigned int mgmt_invalidate_connection (struct beiscsi_hba *phba, struct beiscsi_endpoint *beiscsi_ep, unsigned short cid, unsigned short issue_reset, unsigned short savecfg_flag)
 
unsigned int mgmt_upload_connection (struct beiscsi_hba *phba, unsigned short cid, unsigned int upload_flag)
 
int mgmt_open_connection (struct beiscsi_hba *phba, struct sockaddr *dst_addr, struct beiscsi_endpoint *beiscsi_ep, struct be_dma_mem *nonemb_cmd)
 
unsigned int mgmt_get_all_if_id (struct beiscsi_hba *phba)
 
int mgmt_set_ip (struct beiscsi_hba *phba, struct iscsi_iface_param_info *ip_param, struct iscsi_iface_param_info *subnet_param, uint32_t boot_proto)
 
int mgmt_set_gateway (struct beiscsi_hba *phba, struct iscsi_iface_param_info *gateway_param)
 
int mgmt_get_gateway (struct beiscsi_hba *phba, int ip_type, struct be_cmd_get_def_gateway_resp *gateway)
 
int mgmt_get_if_info (struct beiscsi_hba *phba, int ip_type, struct be_cmd_get_if_info_resp *if_info)
 
int mgmt_get_nic_conf (struct beiscsi_hba *phba, struct be_cmd_get_nic_conf_resp *nic)
 
unsigned int be_cmd_get_initname (struct beiscsi_hba *phba)
 
unsigned int be_cmd_get_port_speed (struct beiscsi_hba *phba)
 
int be_mgmt_get_boot_shandle (struct beiscsi_hba *phba, unsigned int *s_handle)
 
int mgmt_set_vlan (struct beiscsi_hba *phba, uint16_t vlan_tag)
 

Function Documentation

unsigned int be_cmd_get_initname ( struct beiscsi_hba phba)

Definition at line 939 of file be_mgmt.c.

unsigned int be_cmd_get_port_speed ( struct beiscsi_hba phba)

Definition at line 966 of file be_mgmt.c.

int be_mgmt_get_boot_shandle ( struct beiscsi_hba phba,
unsigned int s_handle 
)

be_mgmt_get_boot_shandle()- Get the session handle : device priv structure instance : session handle returned for boot session.

Get the boot target session handle. In case of crashdump mode driver has to issue and MBX Cmd for FW to login to boot target

return Success: 0 Failure: Non-Zero value

Definition at line 1007 of file be_mgmt.c.

int mgmt_check_supported_fw ( struct be_ctrl_info ctrl,
struct beiscsi_hba phba 
)

Definition at line 193 of file be_mgmt.c.

int mgmt_epfw_cleanup ( struct beiscsi_hba phba,
unsigned short  chute 
)

Definition at line 317 of file be_mgmt.c.

unsigned int mgmt_get_all_if_id ( struct beiscsi_hba phba)

Definition at line 550 of file be_mgmt.c.

unsigned int mgmt_get_boot_target ( struct beiscsi_hba phba)

Definition at line 73 of file be_mgmt.c.

int mgmt_get_fw_config ( struct be_ctrl_info ctrl,
struct beiscsi_hba phba 
)

Definition at line 149 of file be_mgmt.c.

int mgmt_get_gateway ( struct beiscsi_hba phba,
int  ip_type,
struct be_cmd_get_def_gateway_resp gateway 
)

Definition at line 878 of file be_mgmt.c.

int mgmt_get_if_info ( struct beiscsi_hba phba,
int  ip_type,
struct be_cmd_get_if_info_resp if_info 
)

Definition at line 898 of file be_mgmt.c.

int mgmt_get_nic_conf ( struct beiscsi_hba phba,
struct be_cmd_get_nic_conf_resp nic 
)

Definition at line 922 of file be_mgmt.c.

unsigned int mgmt_get_session_info ( struct beiscsi_hba phba,
u32  boot_session_handle,
struct be_dma_mem nonemb_cmd 
)

Definition at line 104 of file be_mgmt.c.

unsigned int mgmt_invalidate_connection ( struct beiscsi_hba phba,
struct beiscsi_endpoint beiscsi_ep,
unsigned short  cid,
unsigned short  issue_reset,
unsigned short  savecfg_flag 
)

Definition at line 389 of file be_mgmt.c.

unsigned int mgmt_invalidate_icds ( struct beiscsi_hba phba,
struct invalidate_command_table inv_tbl,
unsigned int  num_invalidate,
unsigned int  cid,
struct be_dma_mem nonemb_cmd 
)

Definition at line 343 of file be_mgmt.c.

int mgmt_open_connection ( struct beiscsi_hba phba,
struct sockaddr dst_addr,
struct beiscsi_endpoint beiscsi_ep,
struct be_dma_mem nonemb_cmd 
)

Definition at line 454 of file be_mgmt.c.

unsigned int mgmt_reopen_session ( struct beiscsi_hba phba,
unsigned int  reopen_type,
unsigned int  sess_handle 
)

Copyright (C) 2005 - 2011 Emulex All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. The full GNU General Public License is included in this distribution in the file called COPYING.

Written by: Jayamohan Kallickal (jayam.nosp@m.ohan.nosp@m..kall.nosp@m.icka.nosp@m.l@emu.nosp@m.lex..nosp@m.com)

Contact Information: linux.nosp@m.-dri.nosp@m.vers@.nosp@m.emul.nosp@m.ex.co.nosp@m.m

Emulex 3333 Susan Street Costa Mesa, CA 92626 mgmt_reopen_session()- Reopen a session based on reopen_type : Device priv structure instance : Type of reopen_session FW should do. : Session Handle of the session to be re-opened

return the TAG used for MBOX Command

Definition at line 36 of file be_mgmt.c.

int mgmt_set_gateway ( struct beiscsi_hba phba,
struct iscsi_iface_param_info gateway_param 
)

Definition at line 841 of file be_mgmt.c.

int mgmt_set_ip ( struct beiscsi_hba phba,
struct iscsi_iface_param_info ip_param,
struct iscsi_iface_param_info subnet_param,
uint32_t  boot_proto 
)

Definition at line 723 of file be_mgmt.c.

int mgmt_set_vlan ( struct beiscsi_hba phba,
uint16_t  vlan_tag 
)

mgmt_set_vlan()- Issue and wait for CMD completion : device private structure instance : VLAN tag

Issue the MBX Cmd and wait for the completion of the command.

returns Success: 0 Failure: Non-Xero Value

Definition at line 1106 of file be_mgmt.c.

unsigned int mgmt_upload_connection ( struct beiscsi_hba phba,
unsigned short  cid,
unsigned int  upload_flag 
)

Definition at line 426 of file be_mgmt.c.

unsigned int mgmt_vendor_specific_fw_cmd ( struct be_ctrl_info ctrl,
struct beiscsi_hba phba,
struct bsg_job job,
struct be_dma_mem nonemb_cmd 
)

Definition at line 250 of file be_mgmt.c.