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 This program and the accompanying materials are licensed and made available
11 under the terms and conditions of the BSD License which accompanies this
12 distribution. The full text of the license may be found at
13 http://opensource.org/licenses/bsd-license.php
15 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT
16 WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
20 #include "VirtioNet.h"
23 Resets a network adapter and re-initializes it with the parameters that were
24 provided in the previous call to Initialize().
26 @param This The protocol instance pointer.
27 @param ExtendedVerification Indicates that the driver may perform a more
28 exhaustive verification operation of the device
31 @retval EFI_SUCCESS The network interface was reset.
32 @retval EFI_NOT_STARTED The network interface has not been started.
33 @retval EFI_INVALID_PARAMETER One or more of the parameters has an
35 @retval EFI_DEVICE_ERROR The command could not be sent to the network
37 @retval EFI_UNSUPPORTED This function is not supported by the network
45 IN EFI_SIMPLE_NETWORK_PROTOCOL
*This
,
46 IN BOOLEAN ExtendedVerification
49 return EFI_UNSUPPORTED
;
54 Modifies or resets the current station address, if supported.
56 @param This The protocol instance pointer.
57 @param Reset Flag used to reset the station address to the network
58 interfaces permanent address.
59 @param New The new station address to be used for the network interface.
61 @retval EFI_SUCCESS The network interfaces station address was
63 @retval EFI_NOT_STARTED The network interface has not been started.
64 @retval EFI_INVALID_PARAMETER One or more of the parameters has an
66 @retval EFI_DEVICE_ERROR The command could not be sent to the network
68 @retval EFI_UNSUPPORTED This function is not supported by the network
75 VirtioNetStationAddress (
76 IN EFI_SIMPLE_NETWORK_PROTOCOL
*This
,
78 IN EFI_MAC_ADDRESS
*New OPTIONAL
81 return EFI_UNSUPPORTED
;
86 Resets or collects the statistics on a network interface.
88 @param This Protocol instance pointer.
89 @param Reset Set to TRUE to reset the statistics for the network
91 @param StatisticsSize On input the size, in bytes, of StatisticsTable. On
92 output the size, in bytes, of the resulting table of
94 @param StatisticsTable A pointer to the EFI_NETWORK_STATISTICS structure
95 that contains the statistics.
97 @retval EFI_SUCCESS The statistics were collected from the network
99 @retval EFI_NOT_STARTED The network interface has not been started.
100 @retval EFI_BUFFER_TOO_SMALL The Statistics buffer was too small. The
101 current buffer size needed to hold the
102 statistics is returned in StatisticsSize.
103 @retval EFI_INVALID_PARAMETER One or more of the parameters has an
105 @retval EFI_DEVICE_ERROR The command could not be sent to the network
107 @retval EFI_UNSUPPORTED This function is not supported by the network
114 VirtioNetStatistics (
115 IN EFI_SIMPLE_NETWORK_PROTOCOL
*This
,
117 IN OUT UINTN
*StatisticsSize OPTIONAL
,
118 OUT EFI_NETWORK_STATISTICS
*StatisticsTable OPTIONAL
121 return EFI_UNSUPPORTED
;
126 Performs read and write operations on the NVRAM device attached to a network
129 @param This The protocol instance pointer.
130 @param ReadWrite TRUE for read operations, FALSE for write operations.
131 @param Offset Byte offset in the NVRAM device at which to start the read
132 or write operation. This must be a multiple of
133 NvRamAccessSize and less than NvRamSize.
134 @param BufferSize The number of bytes to read or write from the NVRAM
135 device. This must also be a multiple of NvramAccessSize.
136 @param Buffer A pointer to the data buffer.
138 @retval EFI_SUCCESS The NVRAM access was performed.
139 @retval EFI_NOT_STARTED The network interface has not been started.
140 @retval EFI_INVALID_PARAMETER One or more of the parameters has an
142 @retval EFI_DEVICE_ERROR The command could not be sent to the network
144 @retval EFI_UNSUPPORTED This function is not supported by the network
152 IN EFI_SIMPLE_NETWORK_PROTOCOL
*This
,
153 IN BOOLEAN ReadWrite
,
159 return EFI_UNSUPPORTED
;