EntryPoint.c 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /** @file
  2. This file implements the entry point of the virtio-net driver.
  3. Copyright (C) 2013, Red Hat, Inc.
  4. Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
  5. SPDX-License-Identifier: BSD-2-Clause-Patent
  6. **/
  7. #include <Library/UefiLib.h>
  8. #include "VirtioNet.h"
  9. /**
  10. This is the declaration of an EFI image entry point. This entry point is the
  11. same for UEFI Applications, UEFI OS Loaders, and UEFI Drivers including both
  12. device drivers and bus drivers.
  13. @param ImageHandle The firmware allocated handle for the UEFI
  14. image.
  15. @param SystemTable A pointer to the EFI System Table.
  16. @retval EFI_SUCCESS The operation completed successfully.
  17. @retval Others An unexpected error occurred.
  18. **/
  19. EFI_STATUS
  20. EFIAPI
  21. VirtioNetEntryPoint (
  22. IN EFI_HANDLE ImageHandle,
  23. IN EFI_SYSTEM_TABLE *SystemTable
  24. )
  25. {
  26. return EfiLibInstallDriverBindingComponentName2 (
  27. ImageHandle,
  28. SystemTable,
  29. &gVirtioNetDriverBinding,
  30. ImageHandle,
  31. &gVirtioNetComponentName,
  32. &gVirtioNetComponentName2
  33. );
  34. }