lpfc_nl.h (55fa518867978e1f5fd8353098f80d125ac734d7) lpfc_nl.h (ddcc50f0f3538e4771c8ab9e8ec685a22c90d88c)
1/*******************************************************************
2 * This file is part of the Emulex Linux Device Driver for *
3 * Fibre Channel Host Bus Adapters. *
4 * Copyright (C) 2008 Emulex. All rights reserved. *
5 * EMULEX and SLI are trademarks of Emulex. *
6 * www.emulex.com *
7 * *
8 * This program is free software; you can redistribute it and/or *

--- 38 unchanged lines hidden (view full) ---

47 * All net link event payloads will begin with and event type
48 * and subcategory. The event type must come first.
49 * The subcategory further defines the data that follows in the rest
50 * of the payload. Each category will have its own unique header plus
51 * any addtional data unique to the subcategory.
52 * The payload sent via the fc transport is one-way driver->application.
53 */
54
1/*******************************************************************
2 * This file is part of the Emulex Linux Device Driver for *
3 * Fibre Channel Host Bus Adapters. *
4 * Copyright (C) 2008 Emulex. All rights reserved. *
5 * EMULEX and SLI are trademarks of Emulex. *
6 * www.emulex.com *
7 * *
8 * This program is free software; you can redistribute it and/or *

--- 38 unchanged lines hidden (view full) ---

47 * All net link event payloads will begin with and event type
48 * and subcategory. The event type must come first.
49 * The subcategory further defines the data that follows in the rest
50 * of the payload. Each category will have its own unique header plus
51 * any addtional data unique to the subcategory.
52 * The payload sent via the fc transport is one-way driver->application.
53 */
54
55/* RSCN event header */
56struct lpfc_rscn_event_header {
57 uint32_t event_type;
58 uint32_t payload_length; /* RSCN data length in bytes */
59 uint32_t rscn_payload[];
60};
61
55/* els event header */
56struct lpfc_els_event_header {
57 uint32_t event_type;
58 uint32_t subcategory;
59 uint8_t wwpn[8];
60 uint8_t wwnn[8];
61};
62
63/* subcategory codes for FC_REG_ELS_EVENT */
64#define LPFC_EVENT_PLOGI_RCV 0x01
65#define LPFC_EVENT_PRLO_RCV 0x02
66#define LPFC_EVENT_ADISC_RCV 0x04
67#define LPFC_EVENT_LSRJT_RCV 0x08
62/* els event header */
63struct lpfc_els_event_header {
64 uint32_t event_type;
65 uint32_t subcategory;
66 uint8_t wwpn[8];
67 uint8_t wwnn[8];
68};
69
70/* subcategory codes for FC_REG_ELS_EVENT */
71#define LPFC_EVENT_PLOGI_RCV 0x01
72#define LPFC_EVENT_PRLO_RCV 0x02
73#define LPFC_EVENT_ADISC_RCV 0x04
74#define LPFC_EVENT_LSRJT_RCV 0x08
75#define LPFC_EVENT_LOGO_RCV 0x10
68
69/* special els lsrjt event */
70struct lpfc_lsrjt_event {
71 struct lpfc_els_event_header header;
72 uint32_t command;
73 uint32_t reason_code;
74 uint32_t explanation;
75};
76
76
77/* special els lsrjt event */
78struct lpfc_lsrjt_event {
79 struct lpfc_els_event_header header;
80 uint32_t command;
81 uint32_t reason_code;
82 uint32_t explanation;
83};
84
85/* special els logo event */
86struct lpfc_logo_event {
87 struct lpfc_els_event_header header;
88 uint8_t logo_wwpn[8];
89};
77
78/* fabric event header */
79struct lpfc_fabric_event_header {
80 uint32_t event_type;
81 uint32_t subcategory;
82 uint8_t wwpn[8];
83 uint8_t wwnn[8];
84};

--- 35 unchanged lines hidden (view full) ---

120 struct lpfc_scsi_event_header scsi_event;
121 uint32_t oldval;
122 uint32_t newval;
123};
124
125/* special case scsi check condition event */
126struct lpfc_scsi_check_condition_event {
127 struct lpfc_scsi_event_header scsi_event;
90
91/* fabric event header */
92struct lpfc_fabric_event_header {
93 uint32_t event_type;
94 uint32_t subcategory;
95 uint8_t wwpn[8];
96 uint8_t wwnn[8];
97};

--- 35 unchanged lines hidden (view full) ---

133 struct lpfc_scsi_event_header scsi_event;
134 uint32_t oldval;
135 uint32_t newval;
136};
137
138/* special case scsi check condition event */
139struct lpfc_scsi_check_condition_event {
140 struct lpfc_scsi_event_header scsi_event;
141 uint8_t opcode;
128 uint8_t sense_key;
129 uint8_t asc;
130 uint8_t ascq;
131};
132
133/* event codes for FC_REG_BOARD_EVENT */
134#define LPFC_EVENT_PORTINTERR 0x01
135

--- 28 unchanged lines hidden ---
142 uint8_t sense_key;
143 uint8_t asc;
144 uint8_t ascq;
145};
146
147/* event codes for FC_REG_BOARD_EVENT */
148#define LPFC_EVENT_PORTINTERR 0x01
149

--- 28 unchanged lines hidden ---