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