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
7 Copyright (C) 2013, Red Hat, Inc.
8 Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
10 SPDX-License-Identifier: BSD-2-Clause-Patent
14 #include "VirtioNet.h"
17 Resets a network adapter and re-initializes it with the parameters that were
18 provided in the previous call to Initialize().
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
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
29 @retval EFI_DEVICE_ERROR The command could not be sent to the network
31 @retval EFI_UNSUPPORTED This function is not supported by the network
38 IN EFI_SIMPLE_NETWORK_PROTOCOL
*This
,
39 IN BOOLEAN ExtendedVerification
42 return EFI_UNSUPPORTED
;
46 Modifies or resets the current station address, if supported.
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.
53 @retval EFI_SUCCESS The network interfaces station address was
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
58 @retval EFI_DEVICE_ERROR The command could not be sent to the network
60 @retval EFI_UNSUPPORTED This function is not supported by the network
66 VirtioNetStationAddress (
67 IN EFI_SIMPLE_NETWORK_PROTOCOL
*This
,
69 IN EFI_MAC_ADDRESS
*New OPTIONAL
72 return EFI_UNSUPPORTED
;
76 Resets or collects the statistics on a network interface.
78 @param This Protocol instance pointer.
79 @param Reset Set to TRUE to reset the statistics for the network
81 @param StatisticsSize On input the size, in bytes, of StatisticsTable. On
82 output the size, in bytes, of the resulting table of
84 @param StatisticsTable A pointer to the EFI_NETWORK_STATISTICS structure
85 that contains the statistics.
87 @retval EFI_SUCCESS The statistics were collected from the network
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
95 @retval EFI_DEVICE_ERROR The command could not be sent to the network
97 @retval EFI_UNSUPPORTED This function is not supported by the network
103 VirtioNetStatistics (
104 IN EFI_SIMPLE_NETWORK_PROTOCOL
*This
,
106 IN OUT UINTN
*StatisticsSize OPTIONAL
,
107 OUT EFI_NETWORK_STATISTICS
*StatisticsTable OPTIONAL
110 return EFI_UNSUPPORTED
;
114 Performs read and write operations on the NVRAM device attached to a network
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.
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
130 @retval EFI_DEVICE_ERROR The command could not be sent to the network
132 @retval EFI_UNSUPPORTED This function is not supported by the network
139 IN EFI_SIMPLE_NETWORK_PROTOCOL
*This
,
140 IN BOOLEAN ReadWrite
,
146 return EFI_UNSUPPORTED
;