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