Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.13.1.2
openapi_green_ethernet.h
Go to the documentation of this file.
1 
9 /*********************************************************************
10 *
11 * Copyright 2016-2023 Broadcom.
12 *
13 * Licensed under the Apache License, Version 2.0 (the "License");
14 * you may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at
16 *
17 * http://www.apache.org/licenses/LICENSE-2.0
18 *
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
24 *
25 **********************************************************************
26 *
27 * @filename openapi_green_ethernet.h
28 *
29 * @purpose Green Ethernet API
30 *
31 * @component OpEN
32 *
33 * @create 05/31/2023
34 *
35 * @end
36 *
37 **********************************************************************/
38 #ifndef OPENAPI_GREEN_ETHERNET_H
39 #define OPENAPI_GREEN_ETHERNET_H
40 
41 typedef enum
42 {
56 
57 
58 /*****************************************************************/
73  uint32_t *intIfNum);
74 
75 /*****************************************************************/
91  uint32_t prevIfNum,
92  uint32_t *intIfNum);
93 
94 /*****************************************************************/
110  uint32_t intIfNum,
111  OPEN_BOOL_t *valid);
112 
113 /*****************************************************************/
129  uint32_t intIfNum,
130  OPEN_BOOL_t *valid);
131 
132 /*****************************************************************/
149  uint32_t intIfNum,
150  OPEN_CONTROL_t mode);
151 
152 /*****************************************************************/
169  uint32_t intIfNum,
170  OPEN_BOOL_t mode);
171 
172 /*****************************************************************/
189  uint32_t intIfNum,
190  OPEN_BOOL_t mode);
191 
192 /*****************************************************************/
209  uint32_t intIfNum,
210  OPEN_CONTROL_t *mode);
211 
212 /*****************************************************************/
229  uint32_t intIfNum,
230  OPEN_BOOL_t *mode);
231 
232 /*****************************************************************/
249  uint32_t intIfNum,
250  OPEN_BOOL_t *mode);
251 
252 /*****************************************************************/
270  uint32_t intIfNum,
271  OPEN_BOOL_t *oprStatus,
273 
274 /*****************************************************************/
292  uint32_t intIfNum,
293  OPEN_BOOL_t *oprStatus,
295 
296 /*****************************************************************/
314  uint32_t intIfNum,
315  OPEN_BOOL_t *oprStatus,
316  open_buffdesc *reasonStr);
317 
318 /*****************************************************************/
336  uint32_t intIfNum,
337  OPEN_BOOL_t *oprStatus,
338  open_buffdesc *bufd);
339 
340 /*****************************************************************/
356  OPEN_CONTROL_t *adminMode);
357 
358 /*****************************************************************/
374  OPEN_CONTROL_t adminMode);
375 
376 /*****************************************************************/
392  OPEN_CONTROL_t *adminMode);
393 
394 /*****************************************************************/
410  OPEN_CONTROL_t adminMode);
411 #endif /* OPENAPI_GREEN_ETHERNET_H */
412 
open_error_t openapiGreenEthrEnergyDetectOprStatusGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_BOOL_t *oprStatus, OPEN_GREEN_ETH_OPER_STATUS_t *reason)
Get the energy-detect operational status and reason.
open_error_t openapiGreenEthrGlobalShortReachModeSet(openapiClientHandle_t *client_handle, OPEN_CONTROL_t adminMode)
Set the global auto short reach administrative mode.
open_error_t openapiGreenEthrValidIntfFirstGet(openapiClientHandle_t *client_handle, uint32_t *intIfNum)
Get the first interface that is valid for green ethernet.
open_error_t openapiGreenEthrEnergyDetectOprStatusStrGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_BOOL_t *oprStatus, open_buffdesc *reasonStr)
Get the energy-detect operational status and reason.
open_error_t
OPEN uses these enumerators to indicate the error codes.
open_error_t openapiGreenEthrGlobalShortReachModeGet(openapiClientHandle_t *client_handle, OPEN_CONTROL_t *adminMode)
Get the global auto short reach administrative mode.
open_error_t openapiGreenEthrGlobalEnergyDetectModeGet(openapiClientHandle_t *client_handle, OPEN_CONTROL_t *adminMode)
Get the global energy detect administrative mode.
open_error_t openapiGreenEthrShrtRchAutoModeSet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_BOOL_t mode)
Set the short-reach auto mode.
open_error_t openapiGreenEthrShrtRchForceAdminModeGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_BOOL_t *mode)
Get the short-reach force admin mode.
open_error_t openapiGreenEthrValidIntfNextGet(openapiClientHandle_t *client_handle, uint32_t prevIfNum, uint32_t *intIfNum)
Get the next interface that is valid for green ethernet.
OPEN_CONTROL_t
OPEN uses these enumerators to indicate enable or disable for a given config or status parameter...
OPEN_BOOL_t
OPEN uses these enumerators to indicate true or false for a given config or status parameter...
open_error_t openapiGreenEthrEnergyDetectAdminModeGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_CONTROL_t *mode)
Get the energy detect admin mode.
open_error_t openapiGreenEthrIsValidIntfType(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_BOOL_t *valid)
Determine if the interface is valid for green ethernet operation.
open_error_t openapiGreenEthrIsIntfEEECapable(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_BOOL_t *valid)
Determine if the interface is EEE capable.
open_error_t openapiGreenEthrShrtRchOprStatusStrGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_BOOL_t *oprStatus, open_buffdesc *bufd)
Get the short-reach operational status and reason.
open_error_t openapiGreenEthrShrtRchForceModeSet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_BOOL_t mode)
Set the short-reach into force mode.
open_error_t openapiGreenEthrShrtRchAutoAdminModeGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_BOOL_t *mode)
Get the short-reach auto admin mode.
open_error_t openapiGreenEthrGlobalEnergyDetectModeSet(openapiClientHandle_t *client_handle, OPEN_CONTROL_t adminMode)
Set the global energy detect administrative mode.
OPEN_GREEN_ETH_OPER_STATUS_t
open_error_t openapiGreenEthrShrtRchOprStatusGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_BOOL_t *oprStatus, OPEN_GREEN_ETH_OPER_STATUS_t *reason)
Get the short-reach operational status and reason.
open_error_t openapiGreenEthrEnergyDetectModeSet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_CONTROL_t mode)
Set the energy-detect mode.