]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/Udp6.h
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Include / Protocol / Udp6.h
index 11696125e03cd5302ce5ac4069f5dc5ff838a829..61fa62391764b080b563e4293860995de1a3a129 100644 (file)
@@ -65,15 +65,15 @@ typedef struct {
   ///\r
   /// The handle of the driver that creates this entry.\r
   ///\r
-  EFI_HANDLE              DriverHandle;\r
+  EFI_HANDLE                DriverHandle;\r
   ///\r
   /// The number of address/port pairs that follow this data structure.\r
   ///\r
-  UINT32                  ServiceCount;\r
+  UINT32                    ServiceCount;\r
   ///\r
   /// List of address/port pairs that are currently in use.\r
   ///\r
-  EFI_UDP6_SERVICE_POINT  Services[1];\r
+  EFI_UDP6_SERVICE_POINT    Services[1];\r
 } EFI_UDP6_VARIABLE_DATA;\r
 \r
 typedef struct _EFI_UDP6_PROTOCOL EFI_UDP6_PROTOCOL;\r
@@ -83,8 +83,8 @@ typedef struct _EFI_UDP6_PROTOCOL EFI_UDP6_PROTOCOL;
 /// The purpose of this structure is to avoid copying the same packet multiple times.\r
 ///\r
 typedef struct {\r
-  UINT32        FragmentLength;  ///< Length of the fragment data buffer.\r
-  VOID          *FragmentBuffer; ///< Pointer to the fragment data buffer.\r
+  UINT32    FragmentLength;      ///< Length of the fragment data buffer.\r
+  VOID      *FragmentBuffer;     ///< Pointer to the fragment data buffer.\r
 } EFI_UDP6_FRAGMENT_DATA;\r
 \r
 ///\r
@@ -97,56 +97,56 @@ typedef struct {
   /// Address from which this packet is sent. This field should not be used when\r
   /// sending packets.\r
   ///\r
-  EFI_IPv6_ADDRESS   SourceAddress;\r
+  EFI_IPv6_ADDRESS    SourceAddress;\r
   ///\r
   /// Port from which this packet is sent. It is in host byte order. This field should\r
   /// not be used when sending packets.\r
   ///\r
-  UINT16             SourcePort;\r
+  UINT16              SourcePort;\r
   ///\r
   /// Address to which this packet is sent. When sending packet, it'll be ignored\r
   /// if it is zero.\r
   ///\r
-  EFI_IPv6_ADDRESS   DestinationAddress;\r
+  EFI_IPv6_ADDRESS    DestinationAddress;\r
   ///\r
   /// Port to which this packet is sent. When sending packet, it'll be\r
   /// ignored if it is zero.\r
   ///\r
-  UINT16             DestinationPort;\r
+  UINT16              DestinationPort;\r
 } EFI_UDP6_SESSION_DATA;\r
 \r
 typedef struct {\r
   ///\r
   /// Set to TRUE to accept UDP packets that are sent to any address.\r
   ///\r
-  BOOLEAN           AcceptPromiscuous;\r
+  BOOLEAN    AcceptPromiscuous;\r
   ///\r
   /// Set to TRUE to accept UDP packets that are sent to any port.\r
   ///\r
-  BOOLEAN           AcceptAnyPort;\r
+  BOOLEAN    AcceptAnyPort;\r
   ///\r
   /// Set to TRUE to allow this EFI UDPv6 Protocol child instance to open a port number\r
   /// that is already being used by another EFI UDPv6 Protocol child instance.\r
   ///\r
-  BOOLEAN           AllowDuplicatePort;\r
+  BOOLEAN    AllowDuplicatePort;\r
   ///\r
   /// TrafficClass field in transmitted IPv6 packets.\r
   ///\r
-  UINT8             TrafficClass;\r
+  UINT8      TrafficClass;\r
   ///\r
   /// HopLimit field in transmitted IPv6 packets.\r
   ///\r
-  UINT8             HopLimit;\r
+  UINT8      HopLimit;\r
   ///\r
   /// The receive timeout value (number of microseconds) to be associated with each\r
   /// incoming packet. Zero means do not drop incoming packets.\r
   ///\r
-  UINT32            ReceiveTimeout;\r
+  UINT32     ReceiveTimeout;\r
   ///\r
   /// The transmit timeout value (number of microseconds) to be associated with each\r
   /// outgoing packet. Zero means do not drop outgoing packets.\r
   ///\r
-  UINT32            TransmitTimeout;\r
+  UINT32     TransmitTimeout;\r
   ///\r
   /// The station IP address that will be assigned to this EFI UDPv6 Protocol instance.\r
   /// The EFI UDPv6 and EFI IPv6 Protocol drivers will only deliver incoming packets\r
@@ -158,28 +158,28 @@ typedef struct {
   /// transitioning from the stopped to the started states. If no address is available\r
   /// for selecting, the EFI IPv6 Protocol driver will use EFI_IP6_CONFIG_PROTOCOL to\r
   /// retrieve the IPv6 address.\r
-  EFI_IPv6_ADDRESS  StationAddress;\r
+  EFI_IPv6_ADDRESS    StationAddress;\r
   ///\r
   /// The port number to which this EFI UDPv6 Protocol instance is bound. If a client\r
   /// of the EFI UDPv6 Protocol does not care about the port number, set StationPort\r
   /// to zero. The EFI UDPv6 Protocol driver will assign a random port number to transmitted\r
   /// UDP packets. Ignored it if AcceptAnyPort is TRUE.\r
   ///\r
-  UINT16            StationPort;\r
+  UINT16              StationPort;\r
   ///\r
   /// The IP address of remote host to which this EFI UDPv6 Protocol instance is connecting.\r
   /// If RemoteAddress is not 0::/128, this EFI UDPv6 Protocol instance will be connected to\r
   /// RemoteAddress; i.e., outgoing packets of this EFI UDPv6 Protocol instance will be sent\r
   /// to this address by default and only incoming packets from this address will be delivered\r
   /// to client. Ignored for incoming filtering if AcceptPromiscuous is TRUE.\r
-  EFI_IPv6_ADDRESS  RemoteAddress;\r
+  EFI_IPv6_ADDRESS    RemoteAddress;\r
   ///\r
   /// The port number of the remote host to which this EFI UDPv6 Protocol instance is connecting.\r
   /// If it is not zero, outgoing packets of this EFI UDPv6 Protocol instance will be sent to\r
   /// this port number by default and only incoming packets from this port will be delivered\r
   /// to client. Ignored if RemoteAddress is 0::/128 and ignored for incoming filtering if\r
   /// AcceptPromiscuous is TRUE.\r
-  UINT16            RemotePort;\r
+  UINT16              RemotePort;\r
 } EFI_UDP6_CONFIG_DATA;\r
 \r
 ///\r
@@ -259,7 +259,7 @@ typedef struct {
   /// This Event will be signaled after the Status field is updated by the EFI UDPv6 Protocol\r
   /// driver. The type of Event must be EVT_NOTIFY_SIGNAL.\r
   ///\r
-  EFI_EVENT                             Event;\r
+  EFI_EVENT    Event;\r
   ///\r
   /// Will be set to one of the following values:\r
   ///   - EFI_SUCCESS: The receive or transmit operation completed successfully.\r
@@ -280,16 +280,16 @@ typedef struct {
   ///   - EFI_SECURITY_VIOLATION: The transmit or receive was failed because of IPsec policy check.\r
   ///   - EFI_NO_MEDIA: There was a media error.\r
   ///\r
-  EFI_STATUS                            Status;\r
+  EFI_STATUS    Status;\r
   union {\r
     ///\r
     /// When this token is used for receiving, RxData is a pointer to EFI_UDP6_RECEIVE_DATA.\r
     ///\r
-    EFI_UDP6_RECEIVE_DATA               *RxData;\r
+    EFI_UDP6_RECEIVE_DATA     *RxData;\r
     ///\r
     /// When this token is used for transmitting, TxData is a pointer to EFI_UDP6_TRANSMIT_DATA.\r
     ///\r
-    EFI_UDP6_TRANSMIT_DATA              *TxData;\r
+    EFI_UDP6_TRANSMIT_DATA    *TxData;\r
   } Packet;\r
 } EFI_UDP6_COMPLETION_TOKEN;\r
 \r
@@ -321,7 +321,7 @@ EFI_STATUS
   OUT EFI_IP6_MODE_DATA                *Ip6ModeData    OPTIONAL,\r
   OUT EFI_MANAGED_NETWORK_CONFIG_DATA  *MnpConfigData  OPTIONAL,\r
   OUT EFI_SIMPLE_NETWORK_MODE          *SnpModeData    OPTIONAL\r
-);\r
+  );\r
 \r
 /**\r
   Initializes, changes, or resets the operational parameters for this instance of the EFI UDPv6\r
@@ -369,7 +369,7 @@ EFI_STATUS
 (EFIAPI *EFI_UDP6_CONFIGURE)(\r
   IN EFI_UDP6_PROTOCOL     *This,\r
   IN EFI_UDP6_CONFIG_DATA  *UdpConfigData OPTIONAL\r
-);\r
+  );\r
 \r
 /**\r
   Joins and leaves multicast groups.\r
@@ -400,7 +400,7 @@ EFI_STATUS
   IN EFI_UDP6_PROTOCOL  *This,\r
   IN BOOLEAN            JoinFlag,\r
   IN EFI_IPv6_ADDRESS   *MulticastAddress OPTIONAL\r
-);\r
+  );\r
 \r
 /**\r
   Queues outgoing data packets into the transmit queue.\r
@@ -456,7 +456,7 @@ EFI_STATUS
 (EFIAPI *EFI_UDP6_TRANSMIT)(\r
   IN EFI_UDP6_PROTOCOL          *This,\r
   IN EFI_UDP6_COMPLETION_TOKEN  *Token\r
-);\r
+  );\r
 \r
 /**\r
   Places an asynchronous receive request into the receiving queue.\r
@@ -495,7 +495,7 @@ EFI_STATUS
 (EFIAPI *EFI_UDP6_RECEIVE)(\r
   IN EFI_UDP6_PROTOCOL          *This,\r
   IN EFI_UDP6_COMPLETION_TOKEN  *Token\r
-);\r
+  );\r
 \r
 /**\r
   Aborts an asynchronous transmit or receive request.\r
@@ -525,7 +525,7 @@ EFI_STATUS
 (EFIAPI *EFI_UDP6_CANCEL)(\r
   IN EFI_UDP6_PROTOCOL          *This,\r
   IN EFI_UDP6_COMPLETION_TOKEN  *Token OPTIONAL\r
-);\r
+  );\r
 \r
 /**\r
   Polls for incoming data packets and processes outgoing data packets.\r
@@ -550,7 +550,7 @@ typedef
 EFI_STATUS\r
 (EFIAPI *EFI_UDP6_POLL)(\r
   IN EFI_UDP6_PROTOCOL  *This\r
-);\r
+  );\r
 \r
 ///\r
 /// The EFI_UDP6_PROTOCOL defines an EFI UDPv6 Protocol session that can be used by any network drivers,\r
@@ -559,16 +559,16 @@ EFI_STATUS
 /// Each instance has its own settings, such as group table, that are independent from each other.\r
 ///\r
 struct _EFI_UDP6_PROTOCOL {\r
-  EFI_UDP6_GET_MODE_DATA  GetModeData;\r
-  EFI_UDP6_CONFIGURE      Configure;\r
-  EFI_UDP6_GROUPS         Groups;\r
-  EFI_UDP6_TRANSMIT       Transmit;\r
-  EFI_UDP6_RECEIVE        Receive;\r
-  EFI_UDP6_CANCEL         Cancel;\r
-  EFI_UDP6_POLL           Poll;\r
+  EFI_UDP6_GET_MODE_DATA    GetModeData;\r
+  EFI_UDP6_CONFIGURE        Configure;\r
+  EFI_UDP6_GROUPS           Groups;\r
+  EFI_UDP6_TRANSMIT         Transmit;\r
+  EFI_UDP6_RECEIVE          Receive;\r
+  EFI_UDP6_CANCEL           Cancel;\r
+  EFI_UDP6_POLL             Poll;\r
 };\r
 \r
-extern EFI_GUID gEfiUdp6ServiceBindingProtocolGuid;\r
-extern EFI_GUID gEfiUdp6ProtocolGuid;\r
+extern EFI_GUID  gEfiUdp6ServiceBindingProtocolGuid;\r
+extern EFI_GUID  gEfiUdp6ProtocolGuid;\r
 \r
 #endif\r