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 
29 EFI_STATUS
30 EFIAPI
VirtioNetEntryPoint(IN EFI_HANDLE ImageHandle,IN EFI_SYSTEM_TABLE * SystemTable)31 VirtioNetEntryPoint (
32   IN EFI_HANDLE       ImageHandle,
33   IN EFI_SYSTEM_TABLE *SystemTable
34   )
35 {
36   return EfiLibInstallDriverBindingComponentName2 (
37            ImageHandle,
38            SystemTable,
39            &gVirtioNetDriverBinding,
40            ImageHandle,
41            &gVirtioNetComponentName,
42            &gVirtioNetComponentName2
43            );
44 }
45