Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.12.0.1
openapi_green_ethernet_eee_api.h
Go to the documentation of this file.
1 
10 /*********************************************************************
11 *
12 * Copyright 2016-2023 Broadcom.
13 *
14 * Licensed under the Apache License, Version 2.0 (the "License");
15 * you may not use this file except in compliance with the License.
16 * You may obtain a copy of the License at
17 *
18 * http://www.apache.org/licenses/LICENSE-2.0
19 *
20 * Unless required by applicable law or agreed to in writing, software
21 * distributed under the License is distributed on an "AS IS" BASIS,
22 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23 * See the License for the specific language governing permissions and
24 * limitations under the License.
25 *
26 **********************************************************************
27 *
28 * @filename openapi_green_ethernet_eee_api.h
29 *
30 * @purpose Green Mode EEE API
31 *
32 * @component OpEN
33 *
34 * @create 05/31/2023
35 *
36 * @end
37 *
38 **********************************************************************/
39 #ifndef OPENAPI_GREEN_ETHERNET_EEE_API_H
40 #define OPENAPI_GREEN_ETHERNET_EEE_API_H
41 
42 /*****************************************************************/
58  uint32_t intIfNum, OPEN_BOOL_t *valid);
59 
60 /*****************************************************************/
75  uint32_t *intIfNum);
76 
77 /*****************************************************************/
93  uint32_t prevIfNum, uint32_t *intIfNum);
94 
95 /**********************************************************************/
113  uint32_t intIfNum, OPEN_CONTROL_t *adminMode);
114 
115 /**********************************************************************/
133  uint32_t intIfNum, uint32_t *eeeTxIdleTime);
134 
135 /**********************************************************************/
153  uint32_t intIfNum, uint32_t *eeeTxWakeTime);
154 
155 /**********************************************************************/
173  uint32_t intIfNum, OPEN_CONTROL_t adminMode);
174 
175 /**********************************************************************/
193  uint32_t intIfNum, uint32_t eeeTxIdleTime);
194 
195 /**********************************************************************/
213  uint32_t intIfNum, uint32_t eeeTxWakeTime);
214 
215 /**********************************************************************/
232  uint32_t intIfNum);
233 
234 /**********************************************************************/
252  uint32_t intIfNum, uint32_t *count);
253 
254 /**********************************************************************/
273  uint32_t intIfNum, uint32_t *high,
274  uint32_t *low);
275 
276 /**********************************************************************/
294  uint32_t intIfNum, uint32_t *count);
295 
296 /**********************************************************************/
315  uint32_t intIfNum, uint32_t *high,
316  uint32_t *low);
317 
318 /**********************************************************************/
336  uint32_t intIfNum, uint32_t *txTwsys);
337 
338 /**********************************************************************/
356  uint32_t intIfNum, uint32_t *rxTwsys);
357 
358 /*****************************************************************/
376  uint32_t intIfNum, uint32_t *fbTwsys);
377 
378 /*****************************************************************/
396  uint32_t intIfNum, uint32_t *echoTxTwsys);
397 
398 /*****************************************************************/
416  uint32_t intIfNum, uint32_t *echoRxTwsys);
417 
418 /*****************************************************************/
438  uint32_t intIfNum, uint32_t remIndex,
439  uint32_t timestamp, uint32_t *remTxTwsys);
440 
441 /*****************************************************************/
461  uint32_t intIfNum, uint32_t remIndex,
462  uint32_t timestamp, uint32_t *remTxTwsysEcho);
463 
464 /*****************************************************************/
484  uint32_t intIfNum, uint32_t remIndex,
485  uint32_t timestamp, uint32_t *remRxTwsys);
486 
487 /*****************************************************************/
507  uint32_t intIfNum, uint32_t remIndex,
508  uint32_t timestamp, uint32_t *remRxTwsysEcho);
509 
510 /*****************************************************************/
530  uint32_t intIfNum, uint32_t remIndex,
531  uint32_t timestamp, uint32_t *remFbTwsys);
532 
533 /*****************************************************************/
552  uint32_t intIfNum, OPEN_BOOL_t *enable);
553 
554 /*****************************************************************/
573  uint32_t intIfNum, OPEN_BOOL_t *ready);
574 
575 /*****************************************************************/
594  uint32_t intIfNum, OPEN_BOOL_t *enable);
595 
596 /*****************************************************************/
615  uint32_t intIfNum, OPEN_BOOL_t *ready);
616 
617 /*****************************************************************/
634  uint32_t intIfNum, uint64_t *value);
635 
636 /*****************************************************************/
655  uint32_t intIfNum, uint32_t *days,
656  uint32_t *hours, uint32_t *minutes,
657  uint32_t *seconds);
658 
659 /**********************************************************************/
676  uint32_t *lpiTotalTime);
677 
678 /**********************************************************************/
705  uint32_t intIfNum,
706  uint32_t *twSysTx,
707  uint32_t *twSysTxEcho,
708  uint32_t *twSysRx,
709  uint32_t *twSysRxEcho,
710  uint32_t *twSysTxFallback,
711  uint32_t *txDllEnabled,
712  uint32_t *txDllReady,
713  uint32_t *rxDllEnabled,
714  uint32_t *rxDllReady);
715 
716 /**********************************************************************/
739  uint32_t intIfNum,
740  uint32_t *twSysTx,
741  uint32_t *twSysTxEcho,
742  uint32_t *twSysRx,
743  uint32_t *twSysRxEcho,
744  uint32_t *twSysTxFallback);
745 
746 /*****************************************************************/
763  uint32_t unit, open_buffdesc *featureString);
764 
765 /**********************************************************************/
782  OPEN_CONTROL_t *adminMode);
783 
784 /**********************************************************************/
801  OPEN_CONTROL_t adminMode);
802 
803 #endif /* OPENAPI_GREEN_ETHERNET_EEE_API_H */
804 
open_error_t openapiGreenEthrEeeLocalSummaryGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t *twSysTx, uint32_t *twSysTxEcho, uint32_t *twSysRx, uint32_t *twSysRxEcho, uint32_t *twSysTxFallback, uint32_t *txDllEnabled, uint32_t *txDllReady, uint32_t *rxDllEnabled, uint32_t *rxDllReady)
Get some common green ethernet eee counters for the given local interface.
open_error_t openapiGreenEthrEeeRemTxTwsysGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t remIndex, uint32_t timestamp, uint32_t *remTxTwsys)
Get the remote port's EEE transmit Twsys.
open_error_t openapiGreenEthrEeeTxTwsysGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t *txTwsys)
Get EEE transmit Tw_sys (uSec)
open_error_t openapiGreenEthrGlobalEeeAdminModeGet(openapiClientHandle_t *client_handle, OPEN_CONTROL_t *adminMode)
Get the global EEE administrative mode.
open_error_t openapiGreenEthrEeeAdminModeSet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_CONTROL_t adminMode)
Set EEE administrative mode.
open_error_t openapiGreenEthrEeeTxWakeTimeGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t *eeeTxWakeTime)
Get EEE transmit Wake Time.
open_error_t openapiGreenEthrEeeTimeSinceLastStatsResetGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint64_t *value)
Determine time of last stats reset.
open_error_t openapiGreenEthrEeeValidIntfFirstGet(openapiClientHandle_t *client_handle, uint32_t *intIfNum)
Get the first interface that is valid for green Ethernet EEE.
open_error_t
OPEN uses these enumerators to indicate the error codes.
open_error_t openapiGreenEthrEeeRxDllEnableGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_BOOL_t *enable)
Get the receive DLL enable status.
open_error_t openapiGreenEthrEeeFbTwsysGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t *fbTwsys)
Get the port's EEE fallback receive Twsys.
open_error_t openapiGreenEthrEeeTxIdleTimeGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t *eeeTxIdleTime)
Get EEE transmit Idle Time.
open_error_t openapiGreenEthrEeeRxDllReadyGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_BOOL_t *ready)
Get the receive DLL ready status.
open_error_t openapiGreenEthrEeeTotalLpiTimeGet(openapiClientHandle_t *client_handle, uint32_t *lpiTotalTime)
Get percentage of total LPI time spent for all interfaces in stack.
open_error_t openapiGreenEthrEeeRemoteSummaryGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t *twSysTx, uint32_t *twSysTxEcho, uint32_t *twSysRx, uint32_t *twSysRxEcho, uint32_t *twSysTxFallback)
Get some common green ethernet eee counters for the given remote interface.
open_error_t openapiGreenEthrEeeEchoRxTwsysGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t *echoRxTwsys)
Get the port's EEE echo receive Twsys.
open_error_t openapiGreenEthrGlobalEeeAdminModeSet(openapiClientHandle_t *client_handle, OPEN_CONTROL_t adminMode)
Set the global EEE administrative mode.
open_error_t openapiGreenEthrEeeTxEventsGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t *count)
Get EEE transmit LPI event count.
open_error_t openapiGreenEthrEeeTxWakeTimeSet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t eeeTxWakeTime)
Set EEE transmit wake time.
open_error_t openapiGreenEthrEeeRxTwsysGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t *rxTwsys)
Get EEE receive Tw_sys (uSec)
OPEN_CONTROL_t
OPEN uses these enumerators to indicate enable or disable for a given config or status parameter...
open_error_t openapiGreenEthrFeaturesSupportedGet(openapiClientHandle_t *client_handle, uint32_t unit, open_buffdesc *featureString)
Get the port's green feature list supported.
open_error_t openapiGreenEthrEeeTxIdleTimeSet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t eeeTxIdleTime)
Set EEE transmit idle time.
OPEN_BOOL_t
OPEN uses these enumerators to indicate true or false for a given config or status parameter...
open_error_t openapiGreenEthrEeeRemFbTwsysGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t remIndex, uint32_t timestamp, uint32_t *remFbTwsys)
Get the remote port's EEE fallback Twsys.
open_error_t openapiGreenEthrEeeRemRxTwsysEchoGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t remIndex, uint32_t timestamp, uint32_t *remRxTwsysEcho)
Get the remote port's EEE receive Twsys echo.
open_error_t openapiGreenEthrEeeIsValidIntf(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_BOOL_t *valid)
Determine if the interface is valid.
open_error_t openapiGreenEthrEeeRemTxTwsysEchoGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t remIndex, uint32_t timestamp, uint32_t *remTxTwsysEcho)
Get the remote port's EEE transmit Twsys echo.
open_error_t openapiGreenEthrEeeStatisticsClear(openapiClientHandle_t *client_handle, uint32_t intIfNum)
Clear EEE statistics counters.
open_error_t openapixGreenEthrEeeTimeSinceLastStatsResetGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t *days, uint32_t *hours, uint32_t *minutes, uint32_t *seconds)
Determine time of last stats reset.
open_error_t openapiGreenEthrEeeEchoTxTwsysGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t *echoTxTwsys)
Get the port's EEE echo transmit Twsys.
open_error_t openapiGreenEthrEeeTxDurationGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t *high, uint32_t *low)
Get EEE transmit LPI duration (counts in 10usec increments)
open_error_t openapiGreenEthrEeeTxDllReadyGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_BOOL_t *ready)
Get the transmit DLL ready status.
open_error_t openapiGreenEthrEeeRemRxTwsysGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t remIndex, uint32_t timestamp, uint32_t *remRxTwsys)
Get the remote port's EEE receive Twsys.
open_error_t openapiGreenEthrEeeValidIntfNextGet(openapiClientHandle_t *client_handle, uint32_t prevIfNum, uint32_t *intIfNum)
Get the next interface that is valid for Green Ethernet EEE.
open_error_t openapiGreenEthrEeeAdminModeGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_CONTROL_t *adminMode)
Get EEE admin mode.
open_error_t openapiGreenEthrEeeRxDurationGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t *high, uint32_t *low)
Get EEE receive LPI duration (counts in 10usec increments)
open_error_t openapiGreenEthrEeeRxEventsGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t *count)
Get EEE receive LPI event count.
open_error_t openapiGreenEthrEeeTxDllEnableGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_BOOL_t *enable)
Get the transmit DLL enable status.