iPXE
fcoe.h File Reference

Fibre Channel over Ethernet. More...

#include <stdint.h>
#include <ipxe/fc.h>
#include <ipxe/if_ether.h>

Go to the source code of this file.

Data Structures

union  fcoe_name
 An FCoE name. More...
struct  fcoe_map
 An FCoE MAC address prefix (FC-MAP) More...
struct  fcoe_mac
 An FCoE (fabric-assigned) MAC address. More...
struct  fcoe_header
 An FCoE header. More...
struct  fcoe_footer
 An FCoE footer. More...

Macros

#define FCOE_AUTHORITY_IEEE   0x1000
 IEEE 48-bit address.
#define FCOE_AUTHORITY_IEEE_EXTENDED   0x2000
 IEEE extended.
#define FCOE_FRAME_VER   0x00
 FCoE frame version.
#define FCOE_VLAN_PRIORITY   3
 FCoE VLAN priority.

Enumerations

enum  fcoe_sof {
  FCOE_SOF_F = 0x28 , FCOE_SOF_I2 = 0x2d , FCOE_SOF_N2 = 0x35 , FCOE_SOF_I3 = 0x2e ,
  FCOE_SOF_N3 = 0x36
}
 Start of Frame marker values. More...
enum  fcoe_eof { FCOE_EOF_N = 0x41 , FCOE_EOF_T = 0x42 , FCOE_EOF_NI = 0x49 , FCOE_EOF_A = 0x50 }
 End of Frame marker value. More...

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)

Detailed Description

Fibre Channel over Ethernet.

Definition in file fcoe.h.

Macro Definition Documentation

◆ FCOE_AUTHORITY_IEEE

#define FCOE_AUTHORITY_IEEE   0x1000

IEEE 48-bit address.

Definition at line 31 of file fcoe.h.

Referenced by fcoe_probe().

◆ FCOE_AUTHORITY_IEEE_EXTENDED

#define FCOE_AUTHORITY_IEEE_EXTENDED   0x2000

IEEE extended.

Definition at line 34 of file fcoe.h.

Referenced by fcoe_probe().

◆ FCOE_FRAME_VER

#define FCOE_FRAME_VER   0x00

FCoE frame version.

Definition at line 60 of file fcoe.h.

Referenced by fcoe_rx().

◆ FCOE_VLAN_PRIORITY

#define FCOE_VLAN_PRIORITY   3

FCoE VLAN priority.

Definition at line 90 of file fcoe.h.

Referenced by fcoe_fip_rx_vlan(), and hermon_eth_open().

Enumeration Type Documentation

◆ fcoe_sof

enum fcoe_sof

Start of Frame marker values.

Enumerator
FCOE_SOF_F 

Start of Frame Class F.

FCOE_SOF_I2 

Start of Frame Initiate Class 2.

FCOE_SOF_N2 

Start of Frame Normal Class 2.

FCOE_SOF_I3 

Start of Frame Initiate Class 3.

FCOE_SOF_N3 

Start of Frame Normal Class 3.

Definition at line 63 of file fcoe.h.

63 {
64 FCOE_SOF_F = 0x28, /**< Start of Frame Class F */
65 FCOE_SOF_I2 = 0x2d, /**< Start of Frame Initiate Class 2 */
66 FCOE_SOF_N2 = 0x35, /**< Start of Frame Normal Class 2 */
67 FCOE_SOF_I3 = 0x2e, /**< Start of Frame Initiate Class 3 */
68 FCOE_SOF_N3 = 0x36, /**< Start of Frame Normal Class 3 */
69};
@ FCOE_SOF_I2
Start of Frame Initiate Class 2.
Definition fcoe.h:65
@ FCOE_SOF_I3
Start of Frame Initiate Class 3.
Definition fcoe.h:67
@ FCOE_SOF_N3
Start of Frame Normal Class 3.
Definition fcoe.h:68
@ FCOE_SOF_F
Start of Frame Class F.
Definition fcoe.h:64
@ FCOE_SOF_N2
Start of Frame Normal Class 2.
Definition fcoe.h:66

◆ fcoe_eof

enum fcoe_eof

End of Frame marker value.

Enumerator
FCOE_EOF_N 

End of Frame Normal.

FCOE_EOF_T 

End of Frame Terminate.

FCOE_EOF_NI 

End of Frame Invalid.

FCOE_EOF_A 

End of Frame Abort.

Definition at line 82 of file fcoe.h.

82 {
83 FCOE_EOF_N = 0x41, /**< End of Frame Normal */
84 FCOE_EOF_T = 0x42, /**< End of Frame Terminate */
85 FCOE_EOF_NI = 0x49, /**< End of Frame Invalid */
86 FCOE_EOF_A = 0x50, /**< End of Frame Abort */
87};
@ FCOE_EOF_T
End of Frame Terminate.
Definition fcoe.h:84
@ FCOE_EOF_N
End of Frame Normal.
Definition fcoe.h:83
@ FCOE_EOF_A
End of Frame Abort.
Definition fcoe.h:86
@ FCOE_EOF_NI
End of Frame Invalid.
Definition fcoe.h:85

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )