Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
ql4_mbx.c File Reference
#include "ql4_def.h"
#include "ql4_glbl.h"
#include "ql4_dbg.h"
#include "ql4_inline.h"
#include "ql4_version.h"

Go to the source code of this file.

Functions

void qla4xxx_queue_mbox_cmd (struct scsi_qla_host *ha, uint32_t *mbx_cmd, int in_count)
 
void qla4xxx_process_mbox_intr (struct scsi_qla_host *ha, int out_count)
 
int qla4xxx_mailbox_command (struct scsi_qla_host *ha, uint8_t inCount, uint8_t outCount, uint32_t *mbx_cmd, uint32_t *mbx_sts)
 
int qla4xxx_get_minidump_template (struct scsi_qla_host *ha, dma_addr_t phys_addr)
 
int qla4xxx_req_template_size (struct scsi_qla_host *ha)
 
void qla4xxx_mailbox_premature_completion (struct scsi_qla_host *ha)
 
uint8_t qla4xxx_get_ifcb (struct scsi_qla_host *ha, uint32_t *mbox_cmd, uint32_t *mbox_sts, dma_addr_t init_fw_cb_dma)
 
uint8_t qla4xxx_update_local_ifcb (struct scsi_qla_host *ha, uint32_t *mbox_cmd, uint32_t *mbox_sts, struct addr_ctrl_blk *init_fw_cb, dma_addr_t init_fw_cb_dma)
 
int qla4xxx_initialize_fw_cb (struct scsi_qla_host *ha)
 
int qla4xxx_get_dhcp_ip_address (struct scsi_qla_host *ha)
 
int qla4xxx_get_firmware_state (struct scsi_qla_host *ha)
 
int qla4xxx_get_firmware_status (struct scsi_qla_host *ha)
 
int qla4xxx_get_fwddb_entry (struct scsi_qla_host *ha, uint16_t fw_ddb_index, struct dev_db_entry *fw_ddb_entry, dma_addr_t fw_ddb_entry_dma, uint32_t *num_valid_ddb_entries, uint32_t *next_ddb_index, uint32_t *fw_ddb_device_state, uint32_t *conn_err_detail, uint16_t *tcp_source_port_num, uint16_t *connection_id)
 
int qla4xxx_conn_open (struct scsi_qla_host *ha, uint16_t fw_ddb_index)
 
int qla4xxx_set_ddb_entry (struct scsi_qla_host *ha, uint16_t fw_ddb_index, dma_addr_t fw_ddb_entry_dma, uint32_t *mbx_sts)
 
int qla4xxx_session_logout_ddb (struct scsi_qla_host *ha, struct ddb_entry *ddb_entry, int options)
 
void qla4xxx_get_crash_record (struct scsi_qla_host *ha)
 
void qla4xxx_get_conn_event_log (struct scsi_qla_host *ha)
 
int qla4xxx_abort_task (struct scsi_qla_host *ha, struct srb *srb)
 
int qla4xxx_reset_lun (struct scsi_qla_host *ha, struct ddb_entry *ddb_entry, int lun)
 
int qla4xxx_reset_target (struct scsi_qla_host *ha, struct ddb_entry *ddb_entry)
 
int qla4xxx_get_flash (struct scsi_qla_host *ha, dma_addr_t dma_addr, uint32_t offset, uint32_t len)
 
int qla4xxx_about_firmware (struct scsi_qla_host *ha)
 
int qla4xxx_req_ddb_entry (struct scsi_qla_host *ha, uint32_t ddb_index, uint32_t *mbx_sts)
 
int qla4xxx_clear_ddb_entry (struct scsi_qla_host *ha, uint32_t ddb_index)
 
int qla4xxx_set_flash (struct scsi_qla_host *ha, dma_addr_t dma_addr, uint32_t offset, uint32_t length, uint32_t options)
 
int qla4xxx_bootdb_by_index (struct scsi_qla_host *ha, struct dev_db_entry *fw_ddb_entry, dma_addr_t fw_ddb_entry_dma, uint16_t ddb_index)
 
int qla4xxx_get_chap (struct scsi_qla_host *ha, char *username, char *password, uint16_t idx)
 
int qla4xxx_get_chap_index (struct scsi_qla_host *ha, char *username, char *password, int bidi, uint16_t *chap_index)
 
int qla4xxx_conn_close_sess_logout (struct scsi_qla_host *ha, uint16_t fw_ddb_index, uint16_t connection_id, uint16_t option)
 
int qla4xxx_disable_acb (struct scsi_qla_host *ha)
 
int qla4xxx_get_acb (struct scsi_qla_host *ha, dma_addr_t acb_dma, uint32_t acb_type, uint32_t len)
 
int qla4xxx_set_acb (struct scsi_qla_host *ha, uint32_t *mbox_cmd, uint32_t *mbox_sts, dma_addr_t acb_dma)
 
int qla4xxx_set_param_ddbentry (struct scsi_qla_host *ha, struct ddb_entry *ddb_entry, struct iscsi_cls_conn *cls_conn, uint32_t *mbx_sts)
 
int qla4xxx_get_mgmt_data (struct scsi_qla_host *ha, uint16_t fw_ddb_index, uint16_t stats_size, dma_addr_t stats_dma)
 
int qla4xxx_get_ip_state (struct scsi_qla_host *ha, uint32_t acb_idx, uint32_t ip_idx, uint32_t *sts)
 
int qla4xxx_get_nvram (struct scsi_qla_host *ha, dma_addr_t nvram_dma, uint32_t offset, uint32_t size)
 
int qla4xxx_set_nvram (struct scsi_qla_host *ha, dma_addr_t nvram_dma, uint32_t offset, uint32_t size)
 
int qla4xxx_restore_factory_defaults (struct scsi_qla_host *ha, uint32_t region, uint32_t field0, uint32_t field1)
 
int qla4_8xxx_set_param (struct scsi_qla_host *ha, int param)
 
int qla4_83xx_post_idc_ack (struct scsi_qla_host *ha)
 

Function Documentation

int qla4_83xx_post_idc_ack ( struct scsi_qla_host ha)

qla4_83xx_post_idc_ack - post IDC ACK : Pointer to host adapter structure.

Posts IDC ACK for IDC Request Notification AEN.

Definition at line 1982 of file ql4_mbx.c.

int qla4_8xxx_set_param ( struct scsi_qla_host ha,
int  param 
)

qla4_8xxx_set_param - set driver version in firmware. : Pointer to host adapter structure.

Parameters
Parameter to set i.e driver version

Definition at line 1945 of file ql4_mbx.c.

int qla4xxx_abort_task ( struct scsi_qla_host ha,
struct srb srb 
)

qla4xxx_abort_task - issues Abort Task : Pointer to host adapter structure. : Pointer to srb entry

This routine performs a LUN RESET on the specified target/lun. The caller must ensure that the ddb_entry and lun_entry pointers are valid before calling this routine.

Definition at line 1038 of file ql4_mbx.c.

int qla4xxx_about_firmware ( struct scsi_qla_host ha)

qla4xxx_about_firmware - gets FW, iscsi draft and boot loader version : Pointer to host adapter structure.

Retrieves the FW version, iSCSI draft version & bootloader version of HBA. Mailboxes 2 & 3 may hold an address for data. Make sure that we write 0 to those mailboxes, if unused.

Definition at line 1195 of file ql4_mbx.c.

int qla4xxx_bootdb_by_index ( struct scsi_qla_host ha,
struct dev_db_entry fw_ddb_entry,
dma_addr_t  fw_ddb_entry_dma,
uint16_t  ddb_index 
)

Definition at line 1344 of file ql4_mbx.c.

int qla4xxx_clear_ddb_entry ( struct scsi_qla_host ha,
uint32_t  ddb_index 
)

Definition at line 1296 of file ql4_mbx.c.

int qla4xxx_conn_close_sess_logout ( struct scsi_qla_host ha,
uint16_t  fw_ddb_index,
uint16_t  connection_id,
uint16_t  option 
)

Definition at line 1555 of file ql4_mbx.c.

int qla4xxx_conn_open ( struct scsi_qla_host ha,
uint16_t  fw_ddb_index 
)

Definition at line 790 of file ql4_mbx.c.

int qla4xxx_disable_acb ( struct scsi_qla_host ha)

Definition at line 1581 of file ql4_mbx.c.

int qla4xxx_get_acb ( struct scsi_qla_host ha,
dma_addr_t  acb_dma,
uint32_t  acb_type,
uint32_t  len 
)

Definition at line 1601 of file ql4_mbx.c.

int qla4xxx_get_chap ( struct scsi_qla_host ha,
char username,
char password,
uint16_t  idx 
)

Definition at line 1378 of file ql4_mbx.c.

int qla4xxx_get_chap_index ( struct scsi_qla_host ha,
char username,
char password,
int  bidi,
uint16_t chap_index 
)

qla4xxx_get_chap_index - Get chap index given username and secret : pointer to adapter structure : CHAP username to be searched : CHAP password to be searched : Is this a BIDI CHAP : CHAP index to be returned

Match the username and password in the chap_list, return the index if a match is found. If a match is not found then add the entry in FLASH and return the index at which entry is written in the FLASH.

Definition at line 1485 of file ql4_mbx.c.

void qla4xxx_get_conn_event_log ( struct scsi_qla_host ha)

qla4xxx_get_conn_event_log - retrieves connection event log : Pointer to host adapter structure.

Definition at line 939 of file ql4_mbx.c.

void qla4xxx_get_crash_record ( struct scsi_qla_host ha)

qla4xxx_get_crash_record - retrieves crash record. : Pointer to host adapter structure.

This routine retrieves a crash record from the QLA4010 after an 8002h aen.

Definition at line 881 of file ql4_mbx.c.

int qla4xxx_get_dhcp_ip_address ( struct scsi_qla_host ha)

qla4xxx_get_dhcp_ip_address - gets HBA ip address via DHCP : Pointer to host adapter structure.

Definition at line 591 of file ql4_mbx.c.

int qla4xxx_get_firmware_state ( struct scsi_qla_host ha)

qla4xxx_get_firmware_state - gets firmware state of HBA : Pointer to host adapter structure.

Definition at line 631 of file ql4_mbx.c.

int qla4xxx_get_firmware_status ( struct scsi_qla_host ha)

qla4xxx_get_firmware_status - retrieves firmware status : Pointer to host adapter structure.

Definition at line 662 of file ql4_mbx.c.

int qla4xxx_get_flash ( struct scsi_qla_host ha,
dma_addr_t  dma_addr,
uint32_t  offset,
uint32_t  len 
)

Definition at line 1162 of file ql4_mbx.c.

int qla4xxx_get_fwddb_entry ( struct scsi_qla_host ha,
uint16_t  fw_ddb_index,
struct dev_db_entry fw_ddb_entry,
dma_addr_t  fw_ddb_entry_dma,
uint32_t num_valid_ddb_entries,
uint32_t next_ddb_index,
uint32_t fw_ddb_device_state,
uint32_t conn_err_detail,
uint16_t tcp_source_port_num,
uint16_t connection_id 
)

qla4xxx_get_fwddb_entry - retrieves firmware ddb entry : Pointer to host adapter structure. : Firmware's device database index : Pointer to firmware's device database entry structure : Pointer to number of valid ddb entries : Pointer to next valid device database index : Pointer to device state

Definition at line 696 of file ql4_mbx.c.

uint8_t qla4xxx_get_ifcb ( struct scsi_qla_host ha,
uint32_t mbox_cmd,
uint32_t mbox_sts,
dma_addr_t  init_fw_cb_dma 
)

Definition at line 380 of file ql4_mbx.c.

int qla4xxx_get_ip_state ( struct scsi_qla_host ha,
uint32_t  acb_idx,
uint32_t  ip_idx,
uint32_t sts 
)

Definition at line 1839 of file ql4_mbx.c.

int qla4xxx_get_mgmt_data ( struct scsi_qla_host ha,
uint16_t  fw_ddb_index,
uint16_t  stats_size,
dma_addr_t  stats_dma 
)

Definition at line 1814 of file ql4_mbx.c.

int qla4xxx_get_minidump_template ( struct scsi_qla_host ha,
dma_addr_t  phys_addr 
)

qla4xxx_get_minidump_template - Get the firmware template : Pointer to host adapter structure. : dma address for template

Obtain the minidump template from firmware during initialization as it may not be available when minidump is desired.

Definition at line 264 of file ql4_mbx.c.

int qla4xxx_get_nvram ( struct scsi_qla_host ha,
dma_addr_t  nvram_dma,
uint32_t  offset,
uint32_t  size 
)

Definition at line 1862 of file ql4_mbx.c.

int qla4xxx_initialize_fw_cb ( struct scsi_qla_host ha)

qla4xxx_initialize_fw_cb - initializes firmware control block. : Pointer to host adapter structure.

Definition at line 502 of file ql4_mbx.c.

int qla4xxx_mailbox_command ( struct scsi_qla_host ha,
uint8_t  inCount,
uint8_t  outCount,
uint32_t mbx_cmd,
uint32_t mbx_sts 
)

qla4xxx_mailbox_command - issues mailbox commands : Pointer to host adapter structure. : number of mailbox registers to load. : number of mailbox registers to return. : data pointer for mailbox in registers. : data pointer for mailbox out registers.

This routine issue mailbox commands and waits for completion. If outCount is 0, this routine completes successfully WITHOUT waiting for the mailbox command to complete.

Definition at line 58 of file ql4_mbx.c.

void qla4xxx_mailbox_premature_completion ( struct scsi_qla_host ha)

Definition at line 329 of file ql4_mbx.c.

void qla4xxx_process_mbox_intr ( struct scsi_qla_host ha,
int  out_count 
)

Definition at line 30 of file ql4_mbx.c.

void qla4xxx_queue_mbox_cmd ( struct scsi_qla_host ha,
uint32_t mbx_cmd,
int  in_count 
)

Definition at line 14 of file ql4_mbx.c.

int qla4xxx_req_ddb_entry ( struct scsi_qla_host ha,
uint32_t  ddb_index,
uint32_t mbx_sts 
)

Definition at line 1272 of file ql4_mbx.c.

int qla4xxx_req_template_size ( struct scsi_qla_host ha)

qla4xxx_req_template_size - Get minidump template size from firmware. : Pointer to host adapter structure.

Definition at line 296 of file ql4_mbx.c.

int qla4xxx_reset_lun ( struct scsi_qla_host ha,
struct ddb_entry ddb_entry,
int  lun 
)

qla4xxx_reset_lun - issues LUN Reset : Pointer to host adapter structure. : Pointer to device database entry : lun number

This routine performs a LUN RESET on the specified target/lun. The caller must ensure that the ddb_entry and lun_entry pointers are valid before calling this routine.

Definition at line 1092 of file ql4_mbx.c.

int qla4xxx_reset_target ( struct scsi_qla_host ha,
struct ddb_entry ddb_entry 
)

qla4xxx_reset_target - issues target Reset : Pointer to host adapter structure. : Pointer to device database entry : Pointer to lun entry structure

This routine performs a TARGET RESET on the specified target. The caller must ensure that the ddb_entry pointers are valid before calling this routine.

Definition at line 1132 of file ql4_mbx.c.

int qla4xxx_restore_factory_defaults ( struct scsi_qla_host ha,
uint32_t  region,
uint32_t  field0,
uint32_t  field1 
)

Definition at line 1914 of file ql4_mbx.c.

int qla4xxx_session_logout_ddb ( struct scsi_qla_host ha,
struct ddb_entry ddb_entry,
int  options 
)

Definition at line 849 of file ql4_mbx.c.

int qla4xxx_set_acb ( struct scsi_qla_host ha,
uint32_t mbox_cmd,
uint32_t mbox_sts,
dma_addr_t  acb_dma 
)

Definition at line 1626 of file ql4_mbx.c.

int qla4xxx_set_ddb_entry ( struct scsi_qla_host ha,
uint16_t  fw_ddb_index,
dma_addr_t  fw_ddb_entry_dma,
uint32_t mbx_sts 
)

qla4xxx_set_fwddb_entry - sets a ddb entry. : Pointer to host adapter structure. : Firmware's device database index : dma address of ddb entry : mailbox 0 to be returned or NULL

This routine initializes or updates the adapter's device database entry for the specified device.

Definition at line 820 of file ql4_mbx.c.

int qla4xxx_set_flash ( struct scsi_qla_host ha,
dma_addr_t  dma_addr,
uint32_t  offset,
uint32_t  length,
uint32_t  options 
)

Definition at line 1318 of file ql4_mbx.c.

int qla4xxx_set_nvram ( struct scsi_qla_host ha,
dma_addr_t  nvram_dma,
uint32_t  offset,
uint32_t  size 
)

Definition at line 1888 of file ql4_mbx.c.

int qla4xxx_set_param_ddbentry ( struct scsi_qla_host ha,
struct ddb_entry ddb_entry,
struct iscsi_cls_conn cls_conn,
uint32_t mbx_sts 
)

Definition at line 1648 of file ql4_mbx.c.

uint8_t qla4xxx_update_local_ifcb ( struct scsi_qla_host ha,
uint32_t mbox_cmd,
uint32_t mbox_sts,
struct addr_ctrl_blk init_fw_cb,
dma_addr_t  init_fw_cb_dma 
)

Definition at line 466 of file ql4_mbx.c.