VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/VirtioNetDxe/SnpUnsupported.c

最後變更 在這個檔案是 99404,由 vboxsync 提交於 21 月 前

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

  • 屬性 svn:eol-style 設為 native
檔案大小: 5.4 KB
 
1/** @file
2
3 Empty implementation of the SNP methods that dependent protocols don't
4 absolutely need and the UEFI-2.3.1+errC specification allows us not to
5 support.
6
7 Copyright (C) 2013, Red Hat, Inc.
8 Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
9
10 SPDX-License-Identifier: BSD-2-Clause-Patent
11
12**/
13
14#include "VirtioNet.h"
15
16/**
17 Resets a network adapter and re-initializes it with the parameters that were
18 provided in the previous call to Initialize().
19
20 @param This The protocol instance pointer.
21 @param ExtendedVerification Indicates that the driver may perform a more
22 exhaustive verification operation of the device
23 during reset.
24
25 @retval EFI_SUCCESS The network interface was reset.
26 @retval EFI_NOT_STARTED The network interface has not been started.
27 @retval EFI_INVALID_PARAMETER One or more of the parameters has an
28 unsupported value.
29 @retval EFI_DEVICE_ERROR The command could not be sent to the network
30 interface.
31 @retval EFI_UNSUPPORTED This function is not supported by the network
32 interface.
33
34**/
35EFI_STATUS
36EFIAPI
37VirtioNetReset (
38 IN EFI_SIMPLE_NETWORK_PROTOCOL *This,
39 IN BOOLEAN ExtendedVerification
40 )
41{
42 return EFI_UNSUPPORTED;
43}
44
45/**
46 Modifies or resets the current station address, if supported.
47
48 @param This The protocol instance pointer.
49 @param Reset Flag used to reset the station address to the network
50 interfaces permanent address.
51 @param New The new station address to be used for the network interface.
52
53 @retval EFI_SUCCESS The network interfaces station address was
54 updated.
55 @retval EFI_NOT_STARTED The network interface has not been started.
56 @retval EFI_INVALID_PARAMETER One or more of the parameters has an
57 unsupported value.
58 @retval EFI_DEVICE_ERROR The command could not be sent to the network
59 interface.
60 @retval EFI_UNSUPPORTED This function is not supported by the network
61 interface.
62
63**/
64EFI_STATUS
65EFIAPI
66VirtioNetStationAddress (
67 IN EFI_SIMPLE_NETWORK_PROTOCOL *This,
68 IN BOOLEAN Reset,
69 IN EFI_MAC_ADDRESS *New OPTIONAL
70 )
71{
72 return EFI_UNSUPPORTED;
73}
74
75/**
76 Resets or collects the statistics on a network interface.
77
78 @param This Protocol instance pointer.
79 @param Reset Set to TRUE to reset the statistics for the network
80 interface.
81 @param StatisticsSize On input the size, in bytes, of StatisticsTable. On
82 output the size, in bytes, of the resulting table of
83 statistics.
84 @param StatisticsTable A pointer to the EFI_NETWORK_STATISTICS structure
85 that contains the statistics.
86
87 @retval EFI_SUCCESS The statistics were collected from the network
88 interface.
89 @retval EFI_NOT_STARTED The network interface has not been started.
90 @retval EFI_BUFFER_TOO_SMALL The Statistics buffer was too small. The
91 current buffer size needed to hold the
92 statistics is returned in StatisticsSize.
93 @retval EFI_INVALID_PARAMETER One or more of the parameters has an
94 unsupported value.
95 @retval EFI_DEVICE_ERROR The command could not be sent to the network
96 interface.
97 @retval EFI_UNSUPPORTED This function is not supported by the network
98 interface.
99
100**/
101EFI_STATUS
102EFIAPI
103VirtioNetStatistics (
104 IN EFI_SIMPLE_NETWORK_PROTOCOL *This,
105 IN BOOLEAN Reset,
106 IN OUT UINTN *StatisticsSize OPTIONAL,
107 OUT EFI_NETWORK_STATISTICS *StatisticsTable OPTIONAL
108 )
109{
110 return EFI_UNSUPPORTED;
111}
112
113/**
114 Performs read and write operations on the NVRAM device attached to a network
115 interface.
116
117 @param This The protocol instance pointer.
118 @param ReadWrite TRUE for read operations, FALSE for write operations.
119 @param Offset Byte offset in the NVRAM device at which to start the read
120 or write operation. This must be a multiple of
121 NvRamAccessSize and less than NvRamSize.
122 @param BufferSize The number of bytes to read or write from the NVRAM
123 device. This must also be a multiple of NvramAccessSize.
124 @param Buffer A pointer to the data buffer.
125
126 @retval EFI_SUCCESS The NVRAM access was performed.
127 @retval EFI_NOT_STARTED The network interface has not been started.
128 @retval EFI_INVALID_PARAMETER One or more of the parameters has an
129 unsupported value.
130 @retval EFI_DEVICE_ERROR The command could not be sent to the network
131 interface.
132 @retval EFI_UNSUPPORTED This function is not supported by the network
133 interface.
134
135**/
136EFI_STATUS
137EFIAPI
138VirtioNetNvData (
139 IN EFI_SIMPLE_NETWORK_PROTOCOL *This,
140 IN BOOLEAN ReadWrite,
141 IN UINTN Offset,
142 IN UINTN BufferSize,
143 IN OUT VOID *Buffer
144 )
145{
146 return EFI_UNSUPPORTED;
147}
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette