Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.4.4.5
openapi_poe.h
Go to the documentation of this file.
1 
9 /*********************************************************************
10 *
11 * Copyright 2016-2018 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 
45 #define OPEN_MAX_POE_CARD_INFO_BUF_SIZE 128
46 
48 typedef enum
49 {
58 
60 typedef enum
61 {
70 
72 typedef enum
73 {
84 
86 typedef enum
87 {
98 
100 typedef enum
101 {
106 
108 typedef enum
109 {
120 
121 typedef enum
122 {
131 
132 typedef enum
133 {
143 
144 typedef enum
145 {
153 
154 
156 typedef enum
157 {
165 
166 
167 /*****************************************************************/
183  OPEN_POE_TYPE_t poeType, uint32_t unit,
184  uint32_t *ifNum);
185 
186 /*****************************************************************/
200  uint32_t unit, OPEN_BOOL_t *isSupported);
201 
202 /*****************************************************************/
217  OPEN_POE_TYPE_t poeType, uint32_t ifNum,
218  OPEN_BOOL_t *isValid);
219 
220 /*****************************************************************/
237  uint32_t ifNum, OPEN_CONTROL_t *adminMode);
238 
239 /*****************************************************************/
256  uint32_t ifNum, OPEN_CONTROL_t adminMode);
257 
258 /*****************************************************************/
276  uint32_t unit, uint32_t ifNum,
277  uint32_t *powerClass);
278 
279 /*****************************************************************/
299  uint32_t unit, uint32_t ifNum, uint32_t *power,
300  uint32_t *current, uint32_t *voltage, uint32_t *temperature);
301 
302 /*****************************************************************/
324  uint32_t unit, uint32_t ifNum,
325  uint32_t *detectionStatus);
326 
327 /*****************************************************************/
342  uint32_t ifNum, uint32_t *errorCode);
343 
344 /*****************************************************************/
363  uint32_t ifNum, uint32_t *mpsAbsentCtr,
364  uint32_t *invalidSignatureCtr, uint32_t *powerDeniedCtr,
365  uint32_t *overloadCtr, uint32_t *shortCtr);
366 
367 /*****************************************************************/
388  uint32_t unit,
389  OPEN_POE_POWER_MGMT_t *mode);
390 
391 
392 /*****************************************************************/
409  uint32_t unit,
410  OPEN_POE_POWER_MGMT_t mode);
411 
412 /*****************************************************************/
429  uint32_t unit, uint32_t ifNum,
430  uint32_t *maxPowerLimit);
431 
432 /*****************************************************************/
446  uint32_t unit, OPEN_POE_DETECTION_t *detectionMode);
447 
448 /*****************************************************************/
462  uint32_t unit, OPEN_POE_DETECTION_t detectionMode);
463 
464 /*****************************************************************/
480  uint32_t unit, uint32_t ifNum,
481  uint32_t *powerLimit);
482 
483 /*****************************************************************/
501  uint32_t unit, uint32_t ifNum,
502  uint32_t powerLimit);
503 
504 /*****************************************************************/
520  uint32_t unit, uint32_t ifNum,
521  OPEN_POE_PRIORITY_t *powerPriority);
522 
523 /*****************************************************************/
539  uint32_t unit, uint32_t ifNum,
540  OPEN_POE_PRIORITY_t powerPriority);
541 
542 /*****************************************************************/
559  uint32_t unit, uint32_t ifNum,
560  OPEN_POE_DETECTION_t *detectionMode);
561 
562 /*****************************************************************/
579  uint32_t unit, uint32_t ifNum,
580  OPEN_POE_DETECTION_t detectionMode);
581 
582 /*****************************************************************/
599  uint32_t unit, uint32_t ifNum,
600  OPEN_CONTROL_t *highPowerMode);
601 
602 /*****************************************************************/
619  uint32_t unit, uint32_t ifNum,
620  OPEN_CONTROL_t highPowerMode);
621 
622 /*****************************************************************/
639  uint32_t unit, uint32_t ifNum,
640  OPEN_POE_POWER_UP_MODE_t *powerUpMode);
641 
642 /*****************************************************************/
659  uint32_t unit, uint32_t ifNum,
660  OPEN_POE_POWER_UP_MODE_t powerUpMode);
661 
662 /*****************************************************************/
679  uint32_t unit, uint32_t ifNum,
680  OPEN_POE_LIMIT_TYPE_t *violationType);
681 
682 /*****************************************************************/
699  uint32_t unit, uint32_t ifNum,
700  OPEN_POE_LIMIT_TYPE_t violationType);
701 
702 /*****************************************************************/
716  uint32_t unit, uint32_t *threshold);
717 
718 /*****************************************************************/
734  uint32_t unit, uint32_t threshold);
735 
736 /*****************************************************************/
751  uint32_t unit,
752  uint32_t *power);
753 
754 /*****************************************************************/
771  uint32_t unit, open_buffdesc *version);
772 
773 /*****************************************************************/
788  uint32_t unit,
790 
791 /*****************************************************************/
808  uint32_t unit,
809  uint32_t *power);
810 
811 /*****************************************************************/
828  uint32_t unit,
829  uint32_t *power);
830 
831 /*****************************************************************/
846  uint32_t unit, OPEN_CONTROL_t *enabled);
847 #endif
848