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