Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
be_mgmt.h File Reference
#include <scsi/scsi_bsg_iscsi.h>
#include "be_iscsi.h"
#include "be_main.h"

Go to the source code of this file.

Data Structures

struct  amap_mcc_sge
 
struct  amap_mcc_wrb_payload
 
struct  amap_mcc_wrb
 
struct  mcc_sge
 
struct  mcc_wrb_payload
 
struct  mcc_wrb
 
struct  iscsi_invalidate_connection_params_in
 
struct  iscsi_invalidate_connection_params_out
 
union  iscsi_invalidate_connection_params
 
struct  invalidate_commands_params_in
 
struct  invalidate_commands_params_out
 
union  invalidate_commands_params
 
struct  mgmt_hba_attributes
 
struct  mgmt_controller_attributes
 
struct  be_mgmt_controller_attributes
 
struct  be_mgmt_controller_attributes_resp
 
struct  be_bsg_vendor_cmd
 
struct  beiscsi_endpoint
 

Macros

#define IP_ACTION_ADD   0x01
 
#define IP_ACTION_DEL   0x02
 
#define IP_V6_LEN   16
 
#define IP_V4_LEN   4
 
#define MCC_WRB_EMBEDDED_MASK   0x00000001
 
#define BEISCSI_NO_RST_ISSUE   0
 
#define GET_MGMT_CONTROLLER_WS(phba)   (phba->pmgmt_ws)
 
#define MGMT_CMDH_FREE   (1<<0)
 
#define MGMT_STATUS_SUCCESS   0 /* The CMD completed without errors */
 
#define MGMT_STATUS_FAILED   1 /* Error status in the Status field of */
 
#define ISCSI_GET_PDU_TEMPLATE_ADDRESS(pc, pa)
 
#define BEISCSI_WRITE_FLASH   0
 
#define BEISCSI_READ_FLASH   1
 

Functions

int mgmt_epfw_cleanup (struct beiscsi_hba *phba, unsigned short chute)
 
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_upload_connection (struct beiscsi_hba *phba, unsigned short cid, unsigned int upload_flag)
 
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_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_get_fw_config (struct be_ctrl_info *ctrl, struct beiscsi_hba *phba)
 
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)
 
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)
 
unsigned int mgmt_get_boot_target (struct beiscsi_hba *phba)
 
unsigned int mgmt_reopen_session (struct beiscsi_hba *phba, unsigned int reopen_type, unsigned sess_handle)
 
unsigned int mgmt_get_session_info (struct beiscsi_hba *phba, u32 boot_session_handle, struct be_dma_mem *nonemb_cmd)
 
int mgmt_get_nic_conf (struct beiscsi_hba *phba, struct be_cmd_get_nic_conf_resp *mac)
 
int mgmt_get_if_info (struct beiscsi_hba *phba, int ip_type, struct be_cmd_get_if_info_resp *if_info)
 
int mgmt_get_gateway (struct beiscsi_hba *phba, int ip_type, struct be_cmd_get_def_gateway_resp *gateway)
 
int mgmt_set_gateway (struct beiscsi_hba *phba, struct iscsi_iface_param_info *gateway_param)
 
int be_mgmt_get_boot_shandle (struct beiscsi_hba *phba, unsigned int *s_handle)
 
unsigned int mgmt_get_all_if_id (struct beiscsi_hba *phba)
 
int mgmt_set_vlan (struct beiscsi_hba *phba, uint16_t vlan_tag)
 

Variables

struct amap_mcc_sge __packed
 

Macro Definition Documentation

#define BEISCSI_NO_RST_ISSUE   0

Definition at line 111 of file be_mgmt.h.

#define BEISCSI_READ_FLASH   1

Definition at line 246 of file be_mgmt.h.

#define BEISCSI_WRITE_FLASH   0

Definition at line 245 of file be_mgmt.h.

#define GET_MGMT_CONTROLLER_WS (   phba)    (phba->pmgmt_ws)

Definition at line 226 of file be_mgmt.h.

#define IP_ACTION_ADD   0x01

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

Definition at line 27 of file be_mgmt.h.

#define IP_ACTION_DEL   0x02

Definition at line 28 of file be_mgmt.h.

#define IP_V4_LEN   4

Definition at line 31 of file be_mgmt.h.

#define IP_V6_LEN   16

Definition at line 30 of file be_mgmt.h.

#define ISCSI_GET_PDU_TEMPLATE_ADDRESS (   pc,
  pa 
)
Value:
{\
pa->lo = phba->init_mem[ISCSI_MEM_GLOBAL_HEADER].mem_array[0].\ bus_address.u.a32.address_lo; \
pa->hi = phba->init_mem[ISCSI_MEM_GLOBAL_HEADER].mem_array[0].\ bus_address.u.a32.address_hi; \
}

Definition at line 238 of file be_mgmt.h.

#define MCC_WRB_EMBEDDED_MASK   0x00000001

Definition at line 83 of file be_mgmt.h.

#define MGMT_CMDH_FREE   (1<<0)

Definition at line 230 of file be_mgmt.h.

#define MGMT_STATUS_FAILED   1 /* Error status in the Status field of */

Definition at line 235 of file be_mgmt.h.

#define MGMT_STATUS_SUCCESS   0 /* The CMD completed without errors */

Definition at line 234 of file be_mgmt.h.

Function Documentation

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_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 mac 
)

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  sess_handle 
)
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.

Variable Documentation