]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/VirtioNetDxe/EntryPoint.c
ShellPkg/for: Fix potential null pointer deference
[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
8 This program and the accompanying materials are licensed and made available\r
9 under the terms and conditions of the BSD License which accompanies this\r
10 distribution. The full text of the license may be found at\r
11 http://opensource.org/licenses/bsd-license.php\r
12\r
13 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT\r
14 WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
15\r
16**/\r
17\r
18#include <Library/UefiLib.h>\r
19\r
20#include "VirtioNet.h"\r
21\r
22/**\r
23 This is the declaration of an EFI image entry point. This entry point is the\r
24 same for UEFI Applications, UEFI OS Loaders, and UEFI Drivers including both\r
25 device drivers and bus drivers.\r
26\r
27 @param ImageHandle The firmware allocated handle for the UEFI\r
28 image.\r
29 @param SystemTable A pointer to the EFI System Table.\r
30\r
31 @retval EFI_SUCCESS The operation completed successfully.\r
32 @retval Others An unexpected error occurred.\r
33**/\r
34\r
35EFI_STATUS\r
36EFIAPI\r
37VirtioNetEntryPoint (\r
38 IN EFI_HANDLE ImageHandle,\r
39 IN EFI_SYSTEM_TABLE *SystemTable\r
40 )\r
41{\r
42 return EfiLibInstallDriverBindingComponentName2 (\r
43 ImageHandle,\r
44 SystemTable,\r
45 &gVirtioNetDriverBinding,\r
46 ImageHandle,\r
47 &gVirtioNetComponentName,\r
48 &gVirtioNetComponentName2\r
49 );\r
50}\r