]>
Commit | Line | Data |
---|---|---|
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 | |
d0e5ff0a LE |
35 | EFI_STATUS\r |
36 | EFIAPI\r | |
37 | VirtioNetReset (\r | |
ac0a286f MK |
38 | IN EFI_SIMPLE_NETWORK_PROTOCOL *This,\r |
39 | IN BOOLEAN ExtendedVerification\r | |
d0e5ff0a LE |
40 | )\r |
41 | {\r | |
42 | return EFI_UNSUPPORTED;\r | |
43 | }\r | |
44 | \r | |
d0e5ff0a LE |
45 | /**\r |
46 | Modifies or resets the current station address, if supported.\r | |
47 | \r | |
48 | @param This The protocol instance pointer.\r | |
49 | @param Reset Flag used to reset the station address to the network\r | |
50 | interfaces permanent address.\r | |
51 | @param New The new station address to be used for the network interface.\r | |
52 | \r | |
53 | @retval EFI_SUCCESS The network interfaces station address was\r | |
54 | updated.\r | |
55 | @retval EFI_NOT_STARTED The network interface has not been started.\r | |
56 | @retval EFI_INVALID_PARAMETER One or more of the parameters has an\r | |
57 | unsupported value.\r | |
58 | @retval EFI_DEVICE_ERROR The command could not be sent to the network\r | |
59 | interface.\r | |
60 | @retval EFI_UNSUPPORTED This function is not supported by the network\r | |
61 | interface.\r | |
62 | \r | |
63 | **/\r | |
d0e5ff0a LE |
64 | EFI_STATUS\r |
65 | EFIAPI\r | |
66 | VirtioNetStationAddress (\r | |
ac0a286f MK |
67 | IN EFI_SIMPLE_NETWORK_PROTOCOL *This,\r |
68 | IN BOOLEAN Reset,\r | |
69 | IN EFI_MAC_ADDRESS *New OPTIONAL\r | |
d0e5ff0a LE |
70 | )\r |
71 | {\r | |
72 | return EFI_UNSUPPORTED;\r | |
73 | }\r | |
74 | \r | |
d0e5ff0a LE |
75 | /**\r |
76 | Resets or collects the statistics on a network interface.\r | |
77 | \r | |
78 | @param This Protocol instance pointer.\r | |
79 | @param Reset Set to TRUE to reset the statistics for the network\r | |
80 | interface.\r | |
81 | @param StatisticsSize On input the size, in bytes, of StatisticsTable. On\r | |
82 | output the size, in bytes, of the resulting table of\r | |
83 | statistics.\r | |
84 | @param StatisticsTable A pointer to the EFI_NETWORK_STATISTICS structure\r | |
85 | that contains the statistics.\r | |
86 | \r | |
87 | @retval EFI_SUCCESS The statistics were collected from the network\r | |
88 | interface.\r | |
89 | @retval EFI_NOT_STARTED The network interface has not been started.\r | |
90 | @retval EFI_BUFFER_TOO_SMALL The Statistics buffer was too small. The\r | |
91 | current buffer size needed to hold the\r | |
92 | statistics is returned in StatisticsSize.\r | |
93 | @retval EFI_INVALID_PARAMETER One or more of the parameters has an\r | |
94 | unsupported value.\r | |
95 | @retval EFI_DEVICE_ERROR The command could not be sent to the network\r | |
96 | interface.\r | |
97 | @retval EFI_UNSUPPORTED This function is not supported by the network\r | |
98 | interface.\r | |
99 | \r | |
100 | **/\r | |
d0e5ff0a LE |
101 | EFI_STATUS\r |
102 | EFIAPI\r | |
103 | VirtioNetStatistics (\r | |
ac0a286f MK |
104 | IN EFI_SIMPLE_NETWORK_PROTOCOL *This,\r |
105 | IN BOOLEAN Reset,\r | |
106 | IN OUT UINTN *StatisticsSize OPTIONAL,\r | |
107 | OUT EFI_NETWORK_STATISTICS *StatisticsTable OPTIONAL\r | |
d0e5ff0a LE |
108 | )\r |
109 | {\r | |
110 | return EFI_UNSUPPORTED;\r | |
111 | }\r | |
112 | \r | |
d0e5ff0a LE |
113 | /**\r |
114 | Performs read and write operations on the NVRAM device attached to a network\r | |
115 | interface.\r | |
116 | \r | |
117 | @param This The protocol instance pointer.\r | |
118 | @param ReadWrite TRUE for read operations, FALSE for write operations.\r | |
119 | @param Offset Byte offset in the NVRAM device at which to start the read\r | |
120 | or write operation. This must be a multiple of\r | |
121 | NvRamAccessSize and less than NvRamSize.\r | |
122 | @param BufferSize The number of bytes to read or write from the NVRAM\r | |
123 | device. This must also be a multiple of NvramAccessSize.\r | |
124 | @param Buffer A pointer to the data buffer.\r | |
125 | \r | |
126 | @retval EFI_SUCCESS The NVRAM access was performed.\r | |
127 | @retval EFI_NOT_STARTED The network interface has not been started.\r | |
128 | @retval EFI_INVALID_PARAMETER One or more of the parameters has an\r | |
129 | unsupported value.\r | |
130 | @retval EFI_DEVICE_ERROR The command could not be sent to the network\r | |
131 | interface.\r | |
132 | @retval EFI_UNSUPPORTED This function is not supported by the network\r | |
133 | interface.\r | |
134 | \r | |
135 | **/\r | |
d0e5ff0a LE |
136 | EFI_STATUS\r |
137 | EFIAPI\r | |
138 | VirtioNetNvData (\r | |
ac0a286f MK |
139 | IN EFI_SIMPLE_NETWORK_PROTOCOL *This,\r |
140 | IN BOOLEAN ReadWrite,\r | |
141 | IN UINTN Offset,\r | |
142 | IN UINTN BufferSize,\r | |
143 | IN OUT VOID *Buffer\r | |
d0e5ff0a LE |
144 | )\r |
145 | {\r | |
146 | return EFI_UNSUPPORTED;\r | |
147 | }\r |