Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.9.0.2
openapi_poe.h
Go to the documentation of this file.
1 
9 /*********************************************************************
10 *
11 * Copyright 2016-2019 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_poe.h
28 *
29 * @purpose PoE Configuration and Status
30 *
31 * @component OpEN
32 *
33 * @create 11/05/2015
34 *
35 * @end
36 *
37 **********************************************************************/
38 #ifndef OPENAPI_POE_H_INCLUDED
39 #define OPENAPI_POE_H_INCLUDED
40 
41 #include "openapi_common.h"
42 
43 #define OPEN_POE_PORT_LIMIT_DOT3AF 15400
44 #define OPEN_TIMERANGE_NAME_LEN_MAX 32
45 
46 #define OPEN_MAX_POE_CARD_INFO_BUF_SIZE 128
47 #define OPEN_MAX_POE_TIMER_NAME_BUF_LEN 32
48 
50 typedef enum
51 {
61 
63 typedef enum
64 {
77 
79 typedef enum
80 {
91 
93 typedef enum
94 {
105 
107 typedef enum
108 {
113 
115 typedef enum
116 {
129 
130 typedef enum
131 {
140 
141 typedef enum
142 {
155 
156 typedef enum
157 {
165 
166 
168 typedef enum
169 {
177 
178 
179 /*****************************************************************/
195  OPEN_POE_TYPE_t poeType, uint32_t unit,
196  uint32_t *ifNum);
197 
198 /*****************************************************************/
212  uint32_t unit, OPEN_BOOL_t *isSupported);
213 
214 /*****************************************************************/
229  OPEN_POE_TYPE_t poeType, uint32_t ifNum,
230  OPEN_BOOL_t *isValid);
231 
232 /*****************************************************************/
249  uint32_t ifNum, OPEN_CONTROL_t *adminMode);
250 
251 /*****************************************************************/
268  uint32_t ifNum, OPEN_CONTROL_t adminMode);
269 
270 /*****************************************************************/
288  uint32_t unit, uint32_t ifNum,
289  uint32_t *powerClass);
290 
291 /*****************************************************************/
311  uint32_t unit, uint32_t ifNum, uint32_t *power,
312  uint32_t *current, uint32_t *voltage, uint32_t *temperature);
313 
314 /*****************************************************************/
336  uint32_t unit, uint32_t ifNum,
337  uint32_t *detectionStatus);
338 
339 /*****************************************************************/
354  uint32_t ifNum, uint32_t *errorCode);
355 
356 /*****************************************************************/
375  uint32_t ifNum, uint32_t *mpsAbsentCtr,
376  uint32_t *invalidSignatureCtr, uint32_t *powerDeniedCtr,
377  uint32_t *overloadCtr, uint32_t *shortCtr);
378 
379 /*****************************************************************/
400  uint32_t unit,
401  OPEN_POE_POWER_MGMT_t *mode);
402 
403 
404 /*****************************************************************/
421  uint32_t unit,
422  OPEN_POE_POWER_MGMT_t mode);
423 
424 /*****************************************************************/
441  uint32_t unit, uint32_t ifNum,
442  uint32_t *maxPowerLimit);
443 
444 /*****************************************************************/
458  uint32_t unit, OPEN_POE_DETECTION_t *detectionMode);
459 
460 /*****************************************************************/
474  uint32_t unit, OPEN_POE_DETECTION_t detectionMode);
475 
476 /*****************************************************************/
492  uint32_t unit, uint32_t ifNum,
493  uint32_t *powerLimit);
494 
495 /*****************************************************************/
513  uint32_t unit, uint32_t ifNum,
514  uint32_t powerLimit);
515 
516 /*****************************************************************/
532  uint32_t unit, uint32_t ifNum,
533  OPEN_POE_PRIORITY_t *powerPriority);
534 
535 /*****************************************************************/
551  uint32_t unit, uint32_t ifNum,
552  OPEN_POE_PRIORITY_t powerPriority);
553 
554 /*****************************************************************/
571  uint32_t unit, uint32_t ifNum,
572  OPEN_POE_DETECTION_t *detectionMode);
573 
574 /*****************************************************************/
591  uint32_t unit, uint32_t ifNum,
592  OPEN_POE_DETECTION_t detectionMode);
593 
594 /*****************************************************************/
611  uint32_t unit, uint32_t ifNum,
612  OPEN_CONTROL_t *highPowerMode);
613 
614 /*****************************************************************/
631  uint32_t unit, uint32_t ifNum,
632  OPEN_CONTROL_t highPowerMode);
633 
634 /*****************************************************************/
651  uint32_t unit, uint32_t ifNum,
652  OPEN_POE_POWER_UP_MODE_t *powerUpMode);
653 
654 /*****************************************************************/
671  uint32_t unit, uint32_t ifNum,
672  OPEN_POE_POWER_UP_MODE_t powerUpMode);
673 
674 /*****************************************************************/
691  uint32_t unit, uint32_t ifNum,
692  OPEN_POE_LIMIT_TYPE_t *violationType);
693 
694 /*****************************************************************/
711  uint32_t unit, uint32_t ifNum,
712  OPEN_POE_LIMIT_TYPE_t violationType);
713 
714 /*****************************************************************/
728  uint32_t unit, uint32_t *threshold);
729 
730 /*****************************************************************/
746  uint32_t unit, uint32_t threshold);
747 
748 /*****************************************************************/
763  uint32_t unit,
764  uint32_t *power);
765 
766 /*****************************************************************/
783  uint32_t unit, open_buffdesc *version);
784 
785 /*****************************************************************/
800  uint32_t unit,
802 
803 /*****************************************************************/
820  uint32_t unit,
821  uint32_t *power);
822 
823 /*****************************************************************/
840  uint32_t unit,
841  uint32_t *power);
842 
843 /*****************************************************************/
858  uint32_t unit, OPEN_CONTROL_t *enabled);
859 
860 /*****************************************************************/
878  uint32_t unit, uint32_t ifNum,
879  open_buffdesc *timerName);
880 
881 /*****************************************************************/
900  uint32_t unit, uint32_t ifNum,
901  open_buffdesc *timerName);
902 
903 /*****************************************************************/
918  uint32_t unit, uint32_t ifNum);
919 
920 /*****************************************************************/
934  uint32_t unit);
935 
936 /*****************************************************************/
951  uint32_t unit, OPEN_CONTROL_t adminMode);
952 
953 /*****************************************************************/
968  uint32_t unit, OPEN_CONTROL_t enabled);
969 
970 /*****************************************************************/
986  uint32_t unit, OPEN_POE_PRIORITY_t powerPriority);
987 
988 /*****************************************************************/
1005  uint32_t unit, uint32_t powerLimit);
1006 
1007 /*****************************************************************/
1022  uint32_t ifNum);
1023 
1024 /*****************************************************************/
1040  uint32_t unit, uint32_t ifNum,
1041  OPEN_CONTROL_t *highPower);
1042 
1043 #endif
1044