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