2010-01-27 04:09:22 +00:00
|
|
|
/*******************************************************************
|
|
|
|
* This file is part of the Emulex Linux Device Driver for *
|
|
|
|
* Fibre Channel Host Bus Adapters. *
|
|
|
|
* Copyright (C) 2010 Emulex. All rights reserved. *
|
|
|
|
* EMULEX and SLI are trademarks of Emulex. *
|
|
|
|
* www.emulex.com *
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or *
|
|
|
|
* modify it under the terms of version 2 of the GNU General *
|
|
|
|
* Public License as published by the Free Software Foundation. *
|
|
|
|
* This program is distributed in the hope that it will be useful. *
|
|
|
|
* ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND *
|
|
|
|
* WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, *
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE *
|
|
|
|
* DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD *
|
|
|
|
* TO BE LEGALLY INVALID. See the GNU General Public License for *
|
|
|
|
* more details, a copy of which can be found in the file COPYING *
|
|
|
|
* included with this package. *
|
|
|
|
*******************************************************************/
|
|
|
|
/* bsg definitions
|
|
|
|
* No pointers to user data are allowed, all application buffers and sizes will
|
|
|
|
* derived through the bsg interface.
|
|
|
|
*
|
|
|
|
* These are the vendor unique structures passed in using the bsg
|
|
|
|
* FC_BSG_HST_VENDOR message code type.
|
|
|
|
*/
|
|
|
|
#define LPFC_BSG_VENDOR_SET_CT_EVENT 1
|
|
|
|
#define LPFC_BSG_VENDOR_GET_CT_EVENT 2
|
|
|
|
#define LPFC_BSG_VENDOR_SEND_MGMT_RESP 3
|
|
|
|
#define LPFC_BSG_VENDOR_DIAG_MODE 4
|
|
|
|
#define LPFC_BSG_VENDOR_DIAG_TEST 5
|
|
|
|
#define LPFC_BSG_VENDOR_GET_MGMT_REV 6
|
|
|
|
#define LPFC_BSG_VENDOR_MBOX 7
|
2010-02-26 19:15:00 +00:00
|
|
|
#define LPFC_BSG_VENDOR_MENLO_CMD 8
|
|
|
|
#define LPFC_BSG_VENDOR_MENLO_DATA 9
|
2010-01-27 04:09:22 +00:00
|
|
|
|
|
|
|
struct set_ct_event {
|
|
|
|
uint32_t command;
|
|
|
|
uint32_t type_mask;
|
|
|
|
uint32_t ev_req_id;
|
|
|
|
uint32_t ev_reg_id;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct get_ct_event {
|
|
|
|
uint32_t command;
|
|
|
|
uint32_t ev_reg_id;
|
|
|
|
uint32_t ev_req_id;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct get_ct_event_reply {
|
|
|
|
uint32_t immed_data;
|
|
|
|
uint32_t type;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct send_mgmt_resp {
|
|
|
|
uint32_t command;
|
|
|
|
uint32_t tag;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#define INTERNAL_LOOP_BACK 0x1 /* adapter short cuts the loop internally */
|
|
|
|
#define EXTERNAL_LOOP_BACK 0x2 /* requires an external loopback plug */
|
|
|
|
|
|
|
|
struct diag_mode_set {
|
|
|
|
uint32_t command;
|
|
|
|
uint32_t type;
|
|
|
|
uint32_t timeout;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct diag_mode_test {
|
|
|
|
uint32_t command;
|
|
|
|
};
|
|
|
|
|
|
|
|
#define LPFC_WWNN_TYPE 0
|
|
|
|
#define LPFC_WWPN_TYPE 1
|
|
|
|
|
|
|
|
struct get_mgmt_rev {
|
|
|
|
uint32_t command;
|
|
|
|
};
|
|
|
|
|
|
|
|
#define MANAGEMENT_MAJOR_REV 1
|
|
|
|
#define MANAGEMENT_MINOR_REV 0
|
|
|
|
|
|
|
|
/* the MgmtRevInfo structure */
|
|
|
|
struct MgmtRevInfo {
|
|
|
|
uint32_t a_Major;
|
|
|
|
uint32_t a_Minor;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct get_mgmt_rev_reply {
|
|
|
|
struct MgmtRevInfo info;
|
|
|
|
};
|
|
|
|
|
2010-04-06 19:04:33 +00:00
|
|
|
#define BSG_MBOX_SIZE 4096 /* mailbox command plus extended data */
|
2010-01-27 04:09:22 +00:00
|
|
|
struct dfc_mbox_req {
|
|
|
|
uint32_t command;
|
2010-03-15 15:25:20 +00:00
|
|
|
uint32_t mbOffset;
|
2010-01-27 04:09:22 +00:00
|
|
|
uint32_t inExtWLen;
|
2010-04-06 19:05:28 +00:00
|
|
|
uint32_t outExtWLen;
|
2010-01-27 04:09:22 +00:00
|
|
|
};
|
|
|
|
|
2010-02-26 19:15:00 +00:00
|
|
|
/* Used for menlo command or menlo data. The xri is only used for menlo data */
|
|
|
|
struct menlo_command {
|
|
|
|
uint32_t cmd;
|
|
|
|
uint32_t xri;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct menlo_response {
|
|
|
|
uint32_t xri; /* return the xri of the iocb exchange */
|
|
|
|
};
|
|
|
|
|