lpfc: Add support for ELS LCB.
Also has a little whitespace fixing. Signed-off-by: Dick Kennedy <dick.kennedy@avagotech.com> Signed-off-by: James Smart <james.smart@avagotech.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
This commit is contained in:

committed by
James Bottomley

parent
0290217ad8
commit
8b017a30a3
@@ -558,6 +558,7 @@ struct fc_vft_header {
|
||||
#define ELS_CMD_SCR 0x62000000
|
||||
#define ELS_CMD_RNID 0x78000000
|
||||
#define ELS_CMD_LIRR 0x7A000000
|
||||
#define ELS_CMD_LCB 0x81000000
|
||||
#else /* __LITTLE_ENDIAN_BITFIELD */
|
||||
#define ELS_CMD_MASK 0xffff
|
||||
#define ELS_RSP_MASK 0xff
|
||||
@@ -595,6 +596,7 @@ struct fc_vft_header {
|
||||
#define ELS_CMD_SCR 0x62
|
||||
#define ELS_CMD_RNID 0x78
|
||||
#define ELS_CMD_LIRR 0x7A
|
||||
#define ELS_CMD_LCB 0x81
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ -1010,6 +1012,36 @@ typedef struct _ELS_PKT { /* Structure is in Big Endian format */
|
||||
} un;
|
||||
} ELS_PKT;
|
||||
|
||||
/*
|
||||
* Link Cable Beacon (LCB) ELS Frame
|
||||
*/
|
||||
|
||||
struct fc_lcb_request_frame {
|
||||
uint32_t lcb_command; /* ELS command opcode (0x81) */
|
||||
uint8_t lcb_sub_command;/* LCB Payload Word 1, bit 24:31 */
|
||||
#define LPFC_LCB_ON 0x1
|
||||
#define LPFC_LCB_OFF 0x2
|
||||
uint8_t reserved[3];
|
||||
|
||||
uint8_t lcb_type; /* LCB Payload Word 2, bit 24:31 */
|
||||
#define LPFC_LCB_GREEN 0x1
|
||||
#define LPFC_LCB_AMBER 0x2
|
||||
uint8_t lcb_frequency; /* LCB Payload Word 2, bit 16:23 */
|
||||
uint16_t lcb_duration; /* LCB Payload Word 2, bit 15:0 */
|
||||
};
|
||||
|
||||
/*
|
||||
* Link Cable Beacon (LCB) ELS Response Frame
|
||||
*/
|
||||
struct fc_lcb_res_frame {
|
||||
uint32_t lcb_ls_acc; /* Acceptance of LCB request (0x02) */
|
||||
uint8_t lcb_sub_command;/* LCB Payload Word 1, bit 24:31 */
|
||||
uint8_t reserved[3];
|
||||
uint8_t lcb_type; /* LCB Payload Word 2, bit 24:31 */
|
||||
uint8_t lcb_frequency; /* LCB Payload Word 2, bit 16:23 */
|
||||
uint16_t lcb_duration; /* LCB Payload Word 2, bit 15:0 */
|
||||
};
|
||||
|
||||
/******** FDMI ********/
|
||||
|
||||
/* lpfc_sli_ct_request defines the CT_IU preamble for FDMI commands */
|
||||
|
Reference in New Issue
Block a user