VirtualBox

Ignore:
Timestamp:
Oct 29, 2015 4:30:44 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
103777
Message:

EFI/Firmware: Merged in the svn:eol-style, svn:mime-type and trailing whitespace cleanup that was done after the initial UDK2014.SP1 import: svn merge /vendor/edk2/UDK2014.SP1 /vendor/edk2/current .

Location:
trunk/src/VBox/Devices/EFI/Firmware
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware

  • trunk/src/VBox/Devices/EFI/Firmware/NetworkPkg/Dhcp6Dxe/ComponentName.c

    r58459 r58466  
    248248  @param  Dhcp6[in]                   A pointer to the EFI_DHCP6_PROTOCOL.
    249249
    250  
     250
    251251  @retval EFI_SUCCESS                 Update the ControllerNameTable of this instance successfully.
    252252  @retval EFI_INVALID_PARAMETER       The input parameter is invalid.
    253  
     253
    254254**/
    255255EFI_STATUS
     
    273273    return Status;
    274274  }
    275  
     275
    276276  if (gDhcp6ControllerNameTable != NULL) {
    277277    FreeUnicodeStringTable (gDhcp6ControllerNameTable);
    278278    gDhcp6ControllerNameTable = NULL;
    279279  }
    280  
     280
    281281  if (Dhcp6ModeData.Ia == NULL) {
    282282    HandleName = L"DHCPv6 (No configured IA)";
     
    287287    HandleName = mDhcp6ControllerName[Dhcp6ModeData.Ia->State];
    288288  }
    289  
     289
    290290  Status = AddUnicodeString2 (
    291291             "eng",
     
    298298    return Status;
    299299  }
    300  
     300
    301301  return AddUnicodeString2 (
    302302           "en",
     
    395395    return EFI_UNSUPPORTED;
    396396  }
    397  
    398   // 
    399   // Make sure this driver produced ChildHandle 
    400   // 
     397
     398  //
     399  // Make sure this driver produced ChildHandle
     400  //
    401401  Status = EfiTestChildHandle (
    402402             ControllerHandle,
    403              ChildHandle, 
     403             ChildHandle,
    404404             &gEfiUdp6ProtocolGuid
    405405             );
     
    414414                  ChildHandle,
    415415                  &gEfiDhcp6ProtocolGuid,
    416                   (VOID **)&Dhcp6, 
     416                  (VOID **)&Dhcp6,
    417417                  NULL,
    418418                  NULL,
  • trunk/src/VBox/Devices/EFI/Firmware/NetworkPkg/Dhcp6Dxe/Dhcp6Driver.c

    r58459 r58466  
    329329/**
    330330  Callback function which provided by user to remove one node in NetDestroyLinkList process.
    331  
     331
    332332  @param[in]    Entry           The entry to be removed.
    333333  @param[in]    Context         Pointer to the callback context corresponds to the Context in NetDestroyLinkList.
     
    353353  Instance = NET_LIST_USER_STRUCT_S (Entry, DHCP6_INSTANCE, Link, DHCP6_INSTANCE_SIGNATURE);
    354354  ServiceBinding = (EFI_SERVICE_BINDING_PROTOCOL *) Context;
    355  
     355
    356356  return ServiceBinding->DestroyChild (ServiceBinding, Instance->Handle);
    357357}
     
    559559    //
    560560    // Destroy all the children instances before destory the service.
    561     // 
     561    //
    562562    List = &Service->Child;
    563563    Status = NetDestroyLinkList (
     
    592592    Status = EFI_SUCCESS;
    593593  }
    594  
     594
    595595ON_EXIT:
    596596  return Status;
  • trunk/src/VBox/Devices/EFI/Firmware/NetworkPkg/Dhcp6Dxe/Dhcp6Dxe.inf

    r58459 r58466  
    11## @file
    22#  Client-side DHCPv6 services.
    3 # 
     3#
    44#  This driver produces EFI DHCPv6 Protocol which is used to get IPv6 addresses
    55#  and other configuration parameters from DHCPv6 servers.
  • trunk/src/VBox/Devices/EFI/Firmware/NetworkPkg/Dhcp6Dxe/Dhcp6Impl.c

    r58459 r58466  
    226226    Status = Instance->UdpSts;
    227227  }
    228  
     228
    229229ON_EXIT:
    230230  //
     
    667667    }
    668668
    669     do { 
     669    do {
    670670      TimerStatus = gBS->CheckEvent (Timer);
    671671      if (!EFI_ERROR (TimerStatus)) {
     
    683683      }
    684684    } while (TimerStatus == EFI_NOT_READY);
    685    
     685
    686686    gBS->CloseEvent (Timer);
    687687  }
  • trunk/src/VBox/Devices/EFI/Firmware/NetworkPkg/Dhcp6Dxe/Dhcp6Impl.h

    r58459 r58466  
    252252  //
    253253  // StartTime is used to calculate the 'elapsed-time' option. Refer to RFC3315,
    254   // the elapsed-time is amount of time since the client began its current DHCP transaction. 
     254  // the elapsed-time is amount of time since the client began its current DHCP transaction.
    255255  //
    256256  UINT64                        StartTime;
  • trunk/src/VBox/Devices/EFI/Firmware/NetworkPkg/Dhcp6Dxe/Dhcp6Io.c

    r58459 r58466  
    372372  @retval   TRUE      The control block is in Instance's retry list.
    373373  @retval   FALSE     The control block is NOT in Instance's retry list.
    374  
     374
    375375**/
    376376BOOLEAN
     
    17691769    goto ON_ERROR;
    17701770  }
    1771  
     1771
    17721772  gBS->RestoreTPL (OldTpl);
    17731773  return EFI_SUCCESS;
    1774  
     1774
    17751775ON_ERROR:
    1776   gBS->RestoreTPL (OldTpl); 
     1776  gBS->RestoreTPL (OldTpl);
    17771777  RemoveEntryList (&InfCb->Link);
    17781778  FreePool (InfCb);
     
    18981898  Packet->Length += (UINT32) (Cursor - Packet->Dhcp6.Option);
    18991899  ASSERT (Packet->Size > Packet->Length + 8);
    1900  
     1900
    19011901  //
    19021902  // Clear initial time for current transaction.
     
    22342234    } else if (Status == EFI_NOT_FOUND) {
    22352235      //
    2236       // Refer to RFC3315 Chapter 18.1.8, for each IA in the original Renew or Rebind message, 
     2236      // Refer to RFC3315 Chapter 18.1.8, for each IA in the original Renew or Rebind message,
    22372237      // the client sends a Renew or Rebind if the IA is not in the Reply message.
    22382238      // Return EFI_SUCCESS so we can continue to restart the Renew/Rebind process.
     
    22402240      return EFI_SUCCESS;
    22412241    }
    2242    
     2242
    22432243    goto ON_EXIT;
    2244    
     2244
    22452245  } else if (Option != NULL) {
    22462246    //
     
    22912291      if (Instance->IaCb.Ia->State == Dhcp6Renewing || Instance->IaCb.Ia->State == Dhcp6Rebinding) {
    22922292        //
    2293         // Refer to RFC3315 Chapter 18.1.8, for each IA in the original Renew or Rebind message, the client 
     2293        // Refer to RFC3315 Chapter 18.1.8, for each IA in the original Renew or Rebind message, the client
    22942294        // sends a Request message if the IA contained a Status Code option with the NoBinding status.
    22952295        //
     
    23102310
    23112311  return EFI_SUCCESS;
    2312  
     2312
    23132313ON_EXIT:
    23142314
     
    23202320               );
    23212321  }
    2322  
     2322
    23232323  return Status;
    23242324}
  • trunk/src/VBox/Devices/EFI/Firmware/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c

    r58459 r58466  
    6868    //
    6969    //  The format of DUID-UUID:
    70     //   
     70    //
    7171    //    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
    7272    //   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     
    9191    //
    9292    Duid->Length = (UINT16) (18);
    93  
     93
    9494    //
    9595    // Set the Duid-type and copy UUID.
    9696    //
    9797    WriteUnaligned16 ((UINT16 *) (Duid->Duid), HTONS (Dhcp6DuidTypeUuid));
    98  
     98
    9999    CopyMem (Duid->Duid + 2, &Uuid, sizeof(EFI_GUID));
    100100
    101101  } else {
    102      
     102
    103103    //
    104104    //
     
    135135      return NULL;
    136136    }
    137  
     137
    138138    //
    139139    // sizeof (Duid-type + hardware-type + time) = 8 bytes
    140140    //
    141141    Duid->Length = (UINT16) (Mode->HwAddressSize + 8);
    142  
     142
    143143    //
    144144    // Set the Duid-type, hardware-type, time and copy the hardware address.
     
    687687  //      .                                                               .
    688688  //      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    689  
     689
    690690  //
    691691  // Fill the value of Ia Address option type
     
    10001000
    10011001/**
    1002   Check whether the incoming IPv6 address in IaAddr is one of the maintained 
     1002  Check whether the incoming IPv6 address in IaAddr is one of the maintained
    10031003  addresses in the IA control blcok.
    10041004
     
    10191019
    10201020  ASSERT (IaAddr != NULL && CurrentIa != NULL);
    1021  
     1021
    10221022  for (Index = 0; Index < CurrentIa->IaAddressCount; Index++) {
    10231023    if (EFI_IP6_EQUAL(&IaAddr->IpAddress, &CurrentIa->IaAddress[Index].IpAddress)) {
     
    13031303  IN  EFI_IP6_CONFIG_PROTOCOL       *Ip6Cfg,
    13041304  OUT UINTN                         *TimeOut
    1305   ) 
     1305  )
    13061306{
    13071307  EFI_STATUS            Status;
     
    13231323    return Status;
    13241324  }
    1325  
     1325
    13261326  *TimeOut = TICKS_PER_SECOND * DadXmits.DupAddrDetectTransmits + DHCP6_DAD_ADDITIONAL_DELAY;
    1327  
     1327
    13281328  return EFI_SUCCESS;
    13291329}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette