VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/E1kNetDxe/SnpUnsupported.c

Last change on this file was 89462, checked in by vboxsync, 3 years ago

EFI: Beginnings of a e1000 network driver to support network boot with our e1000 emulation, not built right now.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.5 KB
Line 
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) 2021, Oracle and/or its affiliates.
8 Copyright (C) 2013, Red Hat, Inc.
9 Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
10
11 SPDX-License-Identifier: BSD-2-Clause-Patent
12
13**/
14
15#include "E1kNet.h"
16
17/**
18 Resets a network adapter and re-initializes it with the parameters that were
19 provided in the previous call to Initialize().
20
21 @param This The protocol instance pointer.
22 @param ExtendedVerification Indicates that the driver may perform a more
23 exhaustive verification operation of the device
24 during reset.
25
26 @retval EFI_SUCCESS The network interface was reset.
27 @retval EFI_NOT_STARTED The network interface has not been started.
28 @retval EFI_INVALID_PARAMETER One or more of the parameters has an
29 unsupported value.
30 @retval EFI_DEVICE_ERROR The command could not be sent to the network
31 interface.
32 @retval EFI_UNSUPPORTED This function is not supported by the network
33 interface.
34
35**/
36
37EFI_STATUS
38EFIAPI
39E1kNetReset (
40 IN EFI_SIMPLE_NETWORK_PROTOCOL *This,
41 IN BOOLEAN ExtendedVerification
42 )
43{
44 return EFI_UNSUPPORTED;
45}
46
47
48/**
49 Modifies or resets the current station address, if supported.
50
51 @param This The protocol instance pointer.
52 @param Reset Flag used to reset the station address to the network
53 interfaces permanent address.
54 @param New The new station address to be used for the network interface.
55
56 @retval EFI_SUCCESS The network interfaces station address was
57 updated.
58 @retval EFI_NOT_STARTED The network interface has not been started.
59 @retval EFI_INVALID_PARAMETER One or more of the parameters has an
60 unsupported value.
61 @retval EFI_DEVICE_ERROR The command could not be sent to the network
62 interface.
63 @retval EFI_UNSUPPORTED This function is not supported by the network
64 interface.
65
66**/
67
68EFI_STATUS
69EFIAPI
70E1kNetStationAddress (
71 IN EFI_SIMPLE_NETWORK_PROTOCOL *This,
72 IN BOOLEAN Reset,
73 IN EFI_MAC_ADDRESS *New OPTIONAL
74 )
75{
76 return EFI_UNSUPPORTED;
77}
78
79
80/**
81 Resets or collects the statistics on a network interface.
82
83 @param This Protocol instance pointer.
84 @param Reset Set to TRUE to reset the statistics for the network
85 interface.
86 @param StatisticsSize On input the size, in bytes, of StatisticsTable. On
87 output the size, in bytes, of the resulting table of
88 statistics.
89 @param StatisticsTable A pointer to the EFI_NETWORK_STATISTICS structure
90 that contains the statistics.
91
92 @retval EFI_SUCCESS The statistics were collected from the network
93 interface.
94 @retval EFI_NOT_STARTED The network interface has not been started.
95 @retval EFI_BUFFER_TOO_SMALL The Statistics buffer was too small. The
96 current buffer size needed to hold the
97 statistics is returned in StatisticsSize.
98 @retval EFI_INVALID_PARAMETER One or more of the parameters has an
99 unsupported value.
100 @retval EFI_DEVICE_ERROR The command could not be sent to the network
101 interface.
102 @retval EFI_UNSUPPORTED This function is not supported by the network
103 interface.
104
105**/
106
107EFI_STATUS
108EFIAPI
109E1kNetStatistics (
110 IN EFI_SIMPLE_NETWORK_PROTOCOL *This,
111 IN BOOLEAN Reset,
112 IN OUT UINTN *StatisticsSize OPTIONAL,
113 OUT EFI_NETWORK_STATISTICS *StatisticsTable OPTIONAL
114 )
115{
116 return EFI_UNSUPPORTED;
117}
118
119
120/**
121 Performs read and write operations on the NVRAM device attached to a network
122 interface.
123
124 @param This The protocol instance pointer.
125 @param ReadWrite TRUE for read operations, FALSE for write operations.
126 @param Offset Byte offset in the NVRAM device at which to start the read
127 or write operation. This must be a multiple of
128 NvRamAccessSize and less than NvRamSize.
129 @param BufferSize The number of bytes to read or write from the NVRAM
130 device. This must also be a multiple of NvramAccessSize.
131 @param Buffer A pointer to the data buffer.
132
133 @retval EFI_SUCCESS The NVRAM access was performed.
134 @retval EFI_NOT_STARTED The network interface has not been started.
135 @retval EFI_INVALID_PARAMETER One or more of the parameters has an
136 unsupported value.
137 @retval EFI_DEVICE_ERROR The command could not be sent to the network
138 interface.
139 @retval EFI_UNSUPPORTED This function is not supported by the network
140 interface.
141
142**/
143
144EFI_STATUS
145EFIAPI
146E1kNetNvData (
147 IN EFI_SIMPLE_NETWORK_PROTOCOL *This,
148 IN BOOLEAN ReadWrite,
149 IN UINTN Offset,
150 IN UINTN BufferSize,
151 IN OUT VOID *Buffer
152 )
153{
154 return EFI_UNSUPPORTED;
155}
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use