1 /*******************************************************************
2 * This file is part of the Emulex Linux Device Driver for *
3 * Fibre Channel Host Bus Adapters. *
4 * Copyright (C) 2010 Emulex. All rights reserved. *
5 * EMULEX and SLI are trademarks of Emulex. *
8 * This program is free software; you can redistribute it and/or *
9 * modify it under the terms of version 2 of the GNU General *
10 * Public License as published by the Free Software Foundation. *
11 * This program is distributed in the hope that it will be useful. *
12 * ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND *
13 * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, *
14 * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE *
15 * DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD *
16 * TO BE LEGALLY INVALID. See the GNU General Public License for *
17 * more details, a copy of which can be found in the file COPYING *
18 * included with this package. *
19 *******************************************************************/
21 * No pointers to user data are allowed, all application buffers and sizes will
22 * derived through the bsg interface.
24 * These are the vendor unique structures passed in using the bsg
25 * FC_BSG_HST_VENDOR message code type.
27 #define LPFC_BSG_VENDOR_SET_CT_EVENT 1
28 #define LPFC_BSG_VENDOR_GET_CT_EVENT 2
29 #define LPFC_BSG_VENDOR_SEND_MGMT_RESP 3
30 #define LPFC_BSG_VENDOR_DIAG_MODE 4
31 #define LPFC_BSG_VENDOR_DIAG_TEST 5
32 #define LPFC_BSG_VENDOR_GET_MGMT_REV 6
33 #define LPFC_BSG_VENDOR_MBOX 7
34 #define LPFC_BSG_VENDOR_MENLO_CMD 8
35 #define LPFC_BSG_VENDOR_MENLO_DATA 9
50 struct get_ct_event_reply
{
55 struct send_mgmt_resp
{
61 #define INTERNAL_LOOP_BACK 0x1 /* adapter short cuts the loop internally */
62 #define EXTERNAL_LOOP_BACK 0x2 /* requires an external loopback plug */
64 struct diag_mode_set
{
70 struct diag_mode_test
{
74 #define LPFC_WWNN_TYPE 0
75 #define LPFC_WWPN_TYPE 1
81 #define MANAGEMENT_MAJOR_REV 1
82 #define MANAGEMENT_MINOR_REV 0
84 /* the MgmtRevInfo structure */
90 struct get_mgmt_rev_reply
{
91 struct MgmtRevInfo info
;
94 #define BSG_MBOX_SIZE 4096 /* mailbox command plus extended data */
102 /* Used for menlo command or menlo data. The xri is only used for menlo data */
103 struct menlo_command
{
108 struct menlo_response
{
109 uint32_t xri
; /* return the xri of the iocb exchange */