From b2bd3c635bb5ccbfe2b697fe873bc4c6cf9833d6 Mon Sep 17 00:00:00 2001 From: Jeffrey Townsend Date: Thu, 28 Mar 2019 19:41:18 +0000 Subject: [PATCH] Doxygen updates. --- .../any/onlp/src/onlp/doc/html/annotated.html | 2 +- .../onlp/src/onlp/doc/html/attribute_8h.html | 5 +- .../onlp/doc/html/attribute_8h_source.html | 73 +- .../onlp/src/onlp/doc/html/attributei_8h.html | 145 ++++ .../onlp/doc/html/attributei_8h_source.html | 62 +- .../src/onlp/doc/html/base_8h_source.html | 60 +- .../onlp/src/onlp/doc/html/chassis_8h.html | 2 +- .../src/onlp/doc/html/chassis_8h_source.html | 4 +- .../onlp/src/onlp/doc/html/chassisi_8h.html | 2 +- .../src/onlp/doc/html/chassisi_8h_source.html | 4 +- .../any/onlp/src/onlp/doc/html/classes.html | 2 +- .../src/onlp/doc/html/debug_8h_source.html | 2 +- .../dir_72adef417dcbc5bf8193445c31305165.html | 2 +- .../dir_9b91cb305f6dfd5edb8153d5019adc55.html | 2 +- .../dir_a7b0466279106ea0b8f86f609f621680.html | 2 +- .../dir_ad96458042bbdd0196ba054c40055169.html | 13 +- .../any/onlp/src/onlp/doc/html/fan_8h.html | 35 +- .../onlp/src/onlp/doc/html/fan_8h_source.html | 145 ++-- .../any/onlp/src/onlp/doc/html/fani_8h.html | 8 +- .../src/onlp/doc/html/fani_8h_source.html | 38 +- .../any/onlp/src/onlp/doc/html/files.html | 55 +- .../any/onlp/src/onlp/doc/html/functions.html | 2 +- .../src/onlp/doc/html/functions_vars.html | 2 +- .../onlp/src/onlp/doc/html/generic_8h.html | 2 +- .../src/onlp/doc/html/generic_8h_source.html | 45 +- .../onlp/src/onlp/doc/html/generici_8h.html | 2 +- .../src/onlp/doc/html/generici_8h_source.html | 4 +- .../any/onlp/src/onlp/doc/html/globals.html | 203 ++++- .../onlp/src/onlp/doc/html/globals_defs.html | 53 +- .../onlp/src/onlp/doc/html/globals_enum.html | 2 +- .../onlp/src/onlp/doc/html/globals_func.html | 140 +++- .../onlp/src/onlp/doc/html/globals_type.html | 8 +- .../onlp/src/onlp/doc/html/globals_vars.html | 2 +- .../src/onlp/doc/html/group__attributei.html | 273 ++++++- .../src/onlp/doc/html/group__attributes.html | 24 +- .../src/onlp/doc/html/group__chassisi.html | 2 +- .../onlp/src/onlp/doc/html/group__fani.html | 71 +- .../src/onlp/doc/html/group__generici.html | 2 +- .../onlp/src/onlp/doc/html/group__ledi.html | 456 ++++++++++- .../doc/html/group__module-interfaces.html | 2 +- .../src/onlp/doc/html/group__modulei.html | 2 +- .../src/onlp/doc/html/group__oid-chassis.html | 2 +- .../src/onlp/doc/html/group__oid-fan.html | 100 ++- .../src/onlp/doc/html/group__oid-generic.html | 2 +- .../onlp/doc/html/group__oid-interfaces.html | 2 +- .../src/onlp/doc/html/group__oid-led.html | 88 ++- .../src/onlp/doc/html/group__oid-module.html | 2 +- .../src/onlp/doc/html/group__oid-psu.html | 26 +- .../src/onlp/doc/html/group__oid-sfp.html | 2 +- .../src/onlp/doc/html/group__oid-thermal.html | 2 +- .../src/onlp/doc/html/group__oid-types.html | 2 +- .../onlp/src/onlp/doc/html/group__oid.html | 746 ++++++++++++++++-- .../onlp/doc/html/group__onlp-appication.html | 2 +- .../src/onlp/doc/html/group__onlp-config.html | 2 +- .../src/onlp/doc/html/group__onlp-main.html | 2 +- .../onlp/doc/html/group__onlp-platform.html | 4 +- .../onlp/doc/html/group__onlp-porting.html | 2 +- .../src/onlp/doc/html/group__platform.html | 2 +- .../src/onlp/doc/html/group__platformi.html | 249 ++++++ .../onlp/src/onlp/doc/html/group__psui.html | 31 +- .../onlp/src/onlp/doc/html/group__sfpi.html | 2 +- .../src/onlp/doc/html/group__stdattrs.html | 2 +- .../doc/html/group__system-interfaces.html | 2 +- .../src/onlp/doc/html/group__thermali.html | 38 +- .../any/onlp/src/onlp/doc/html/index.html | 2 +- .../any/onlp/src/onlp/doc/html/led_8h.html | 29 +- .../onlp/src/onlp/doc/html/led_8h_source.html | 149 ++-- .../any/onlp/src/onlp/doc/html/ledi_8h.html | 154 ++++ .../src/onlp/doc/html/ledi_8h_source.html | 101 +-- .../any/onlp/src/onlp/doc/html/module_8h.html | 2 +- .../src/onlp/doc/html/module_8h_source.html | 4 +- .../onlp/src/onlp/doc/html/modulei_8h.html | 2 +- .../src/onlp/doc/html/modulei_8h_source.html | 4 +- .../any/onlp/src/onlp/doc/html/modules.html | 9 +- .../any/onlp/src/onlp/doc/html/oids_8h.html | 89 +-- .../src/onlp/doc/html/oids_8h_source.html | 362 +++++---- .../src/onlp/doc/html/onlp_8h_source.html | 2 +- .../src/onlp/doc/html/onlp__config_8h.html | 2 +- .../onlp/doc/html/onlp__config_8h_source.html | 2 +- .../onlp/doc/html/onlp__dox_8h_source.html | 4 +- .../src/onlp/doc/html/onlp__porting_8h.html | 2 +- .../doc/html/onlp__porting_8h_source.html | 2 +- .../onlp/src/onlp/doc/html/platform_8h.html | 2 +- .../src/onlp/doc/html/platform_8h_source.html | 2 +- .../onlp/src/onlp/doc/html/platformi_8h.html | 136 ++++ .../onlp/doc/html/platformi_8h_source.html | 54 +- .../any/onlp/src/onlp/doc/html/psu_8h.html | 14 +- .../onlp/src/onlp/doc/html/psu_8h_source.html | 12 +- .../any/onlp/src/onlp/doc/html/psui_8h.html | 5 +- .../src/onlp/doc/html/psui_8h_source.html | 39 +- .../onlp/src/onlp/doc/html/search/all_0.js | 1 + .../onlp/src/onlp/doc/html/search/all_9.js | 1 + .../onlp/src/onlp/doc/html/search/all_c.js | 83 +- .../onlp/src/onlp/doc/html/search/all_d.js | 2 + .../onlp/src/onlp/doc/html/search/files_0.js | 3 +- .../onlp/src/onlp/doc/html/search/files_4.js | 3 +- .../onlp/src/onlp/doc/html/search/files_7.js | 1 + .../src/onlp/doc/html/search/functions_0.js | 62 +- .../onlp/src/onlp/doc/html/search/groups_7.js | 1 + .../src/onlp/doc/html/search/typedefs_0.js | 2 + .../any/onlp/src/onlp/doc/html/sfp_8h.html | 2 +- .../onlp/src/onlp/doc/html/sfp_8h_source.html | 4 +- .../any/onlp/src/onlp/doc/html/sfpi_8h.html | 2 +- .../src/onlp/doc/html/sfpi_8h_source.html | 4 +- .../onlp/src/onlp/doc/html/stdattrs_8h.html | 2 +- .../src/onlp/doc/html/stdattrs_8h_source.html | 2 +- .../doc/html/structonlp__asset__info__s.html | 2 +- .../html/structonlp__chassis__info__s.html | 2 +- .../html/structonlp__config__settings__s.html | 2 +- .../doc/html/structonlp__fan__info__s.html | 4 +- .../html/structonlp__generic__info__s.html | 2 +- .../doc/html/structonlp__led__info__s.html | 4 +- .../doc/html/structonlp__module__info__s.html | 2 +- .../doc/html/structonlp__oid__hdr__s.html | 10 +- .../doc/html/structonlp__psu__info__t.html | 4 +- .../doc/html/structonlp__sfp__info__t.html | 2 +- .../html/structonlp__thermal__info__s.html | 4 +- .../onlp/src/onlp/doc/html/thermal_8h.html | 2 +- .../src/onlp/doc/html/thermal_8h_source.html | 4 +- .../onlp/src/onlp/doc/html/thermali_8h.html | 5 +- .../src/onlp/doc/html/thermali_8h_source.html | 53 +- .../any/onlp/src/onlp/module/inc/onlp/fan.h | 16 +- .../onlp/src/onlp/module/inc/onlp/generic.h | 1 - .../any/onlp/src/onlp/module/inc/onlp/led.h | 22 +- .../any/onlp/src/onlp/module/inc/onlp/oids.h | 70 +- .../onlp/src/onlp/module/inc/onlp/onlp_dox.h | 1 + .../module/inc/onlp/platformi/attributei.h | 8 +- .../src/onlp/module/inc/onlp/platformi/ledi.h | 16 +- .../module/inc/onlp/platformi/platformi.h | 16 +- .../any/onlp/src/onlp/module/inc/onlp/psu.h | 10 +- .../onlp/src/onlp/module/inc/onlp/thermal.h | 2 +- 131 files changed, 3874 insertions(+), 1022 deletions(-) create mode 100644 packages/base/any/onlp/src/onlp/doc/html/attributei_8h.html create mode 100644 packages/base/any/onlp/src/onlp/doc/html/group__platformi.html create mode 100644 packages/base/any/onlp/src/onlp/doc/html/ledi_8h.html create mode 100644 packages/base/any/onlp/src/onlp/doc/html/platformi_8h.html diff --git a/packages/base/any/onlp/src/onlp/doc/html/annotated.html b/packages/base/any/onlp/src/onlp/doc/html/annotated.html index 82494d48..79cd7b61 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/annotated.html +++ b/packages/base/any/onlp/src/onlp/doc/html/annotated.html @@ -104,7 +104,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/attribute_8h.html b/packages/base/any/onlp/src/onlp/doc/html/attribute_8h.html index f4a85560..48d46ab5 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/attribute_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/attribute_8h.html @@ -117,6 +117,9 @@ Functions int onlp_attribute_hw_init (uint32_t flags)  Hardware initialization of the attribute subsystem. More...
  +int onlp_attribute_sw_denit (void) + Deinitialize the attribute subsystem. More...
+  int onlp_attribute_supported (onlp_oid_t oid, const char *attribute)  Determine whether the OID supports the given attribute. More...
  @@ -165,7 +168,7 @@ Functions diff --git a/packages/base/any/onlp/src/onlp/doc/html/attribute_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/attribute_8h_source.html index b9447054..00d0b78f 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/attribute_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/attribute_8h_source.html @@ -121,49 +121,52 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
43 
50 int onlp_attribute_hw_init(uint32_t flags);
51 
-
57 int onlp_attribute_supported(onlp_oid_t oid, const char* attribute);
-
58 
-
65 int onlp_attribute_set(onlp_oid_t oid, const char* attribute, void* value);
+
58 int onlp_attribute_sw_denit(void);
+
59 
+
65 int onlp_attribute_supported(onlp_oid_t oid, const char* attribute);
66 
-
73 int onlp_attribute_get(onlp_oid_t oid, const char* attribute,
-
74  void** value);
-
75 
-
82 int onlp_attribute_free(onlp_oid_t oid, const char* attribute, void* value);
+
73 int onlp_attribute_set(onlp_oid_t oid, const char* attribute, void* value);
+
74 
+
81 int onlp_attribute_get(onlp_oid_t oid, const char* attribute,
+
82  void** value);
83 
-
87 #define ONLP_ATTRIBUTE_EQUALS(_a, _b) (!strcmp(_a, _b))
-
88 
-
89 /******************************************************************************
-
90  *
-
91  * These functions provide access to standard ONIE and Asset attributes.
-
92  * These are so common that they have their own interface for
-
93  * for both the user and the platform implementations.
-
94  *
-
95  *****************************************************************************/
-
102 int onlp_attribute_onie_info_get(onlp_oid_t oid, onlp_onie_info_t** rp);
-
103 
-
109 int onlp_attribute_onie_info_free(onlp_oid_t oid, onlp_onie_info_t* p);
-
110 
-
117 int onlp_attribute_onie_info_get_json(onlp_oid_t oid, cJSON** rp);
+
90 int onlp_attribute_free(onlp_oid_t oid, const char* attribute, void* value);
+
91 
+
95 #define ONLP_ATTRIBUTE_EQUALS(_a, _b) (!strcmp(_a, _b))
+
96 
+
97 /******************************************************************************
+
98  *
+
99  * These functions provide access to standard ONIE and Asset attributes.
+
100  * These are so common that they have their own interface for
+
101  * for both the user and the platform implementations.
+
102  *
+
103  *****************************************************************************/
+
110 int onlp_attribute_onie_info_get(onlp_oid_t oid, onlp_onie_info_t** rp);
+
111 
+
117 int onlp_attribute_onie_info_free(onlp_oid_t oid, onlp_onie_info_t* p);
118 
-
125 int onlp_attribute_onie_info_show(onlp_oid_t oid, aim_pvs_t* pvs);
+
125 int onlp_attribute_onie_info_get_json(onlp_oid_t oid, cJSON** rp);
126 
-
132 int onlp_attribute_onie_info_show_json(onlp_oid_t oid, aim_pvs_t* pvs);
-
133 
-
145 int onlp_attribute_asset_info_get(onlp_oid_t oid, onlp_asset_info_t** rp);
-
146 
-
152 int onlp_attribute_asset_info_free(onlp_oid_t oid, onlp_asset_info_t* p);
-
153 
-
160 int onlp_attribute_asset_info_get_json(onlp_oid_t oid, cJSON** rp);
+
133 int onlp_attribute_onie_info_show(onlp_oid_t oid, aim_pvs_t* pvs);
+
134 
+
140 int onlp_attribute_onie_info_show_json(onlp_oid_t oid, aim_pvs_t* pvs);
+
141 
+
153 int onlp_attribute_asset_info_get(onlp_oid_t oid, onlp_asset_info_t** rp);
+
154 
+
160 int onlp_attribute_asset_info_free(onlp_oid_t oid, onlp_asset_info_t* p);
161 
-
168 int onlp_attribute_asset_info_show(onlp_oid_t oid, aim_pvs_t* pvs);
+
168 int onlp_attribute_asset_info_get_json(onlp_oid_t oid, cJSON** rp);
169 
-
175 int onlp_attribute_asset_info_show_json(onlp_oid_t oid, aim_pvs_t* pvs);
-
176 
-
177 #endif /* __ONLP_ATTRIBUTE_H__ */
-
178 /* @} */
+
176 int onlp_attribute_asset_info_show(onlp_oid_t oid, aim_pvs_t* pvs);
+
177 
+
183 int onlp_attribute_asset_info_show_json(onlp_oid_t oid, aim_pvs_t* pvs);
+
184 
+
185 #endif /* __ONLP_ATTRIBUTE_H__ */
+
186 /* @} */
int onlp_attribute_onie_info_free(onlp_oid_t oid, onlp_onie_info_t *p)
Free an ONIE attribute pointer.
int onlp_attribute_asset_info_get_json(onlp_oid_t oid, cJSON **rp)
Request the asset attribute in JSON.
int onlp_attribute_onie_info_show(onlp_oid_t oid, aim_pvs_t *pvs)
Show the ONIE attribute.
+
int onlp_attribute_sw_denit(void)
Deinitialize the attribute subsystem.
Object Identifiers.
uint32_t onlp_oid_t
Definition: oids.h:52
int onlp_attribute_asset_info_show(onlp_oid_t oid, aim_pvs_t *pvs)
Show the asset attribute.
@@ -184,7 +187,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/attributei_8h.html b/packages/base/any/onlp/src/onlp/doc/html/attributei_8h.html new file mode 100644 index 00000000..2779d09b --- /dev/null +++ b/packages/base/any/onlp/src/onlp/doc/html/attributei_8h.html @@ -0,0 +1,145 @@ + + + + + + +ONLP: module/inc/onlp/platformi/attributei.h File Reference + + + + + + + + + +
+
+ + + + + + +
+
ONLP +
+
Open Network Linux Platform APIs
+
+
+ + + + + + + + + +
+ +
+ + +
+
+ +
+
attributei.h File Reference
+
+
+ +

Attribute Interface. +More...

+
#include <onlp/attribute.h>
+#include <onlp/onlp.h>
+
+

Go to the source code of this file.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

+int onlp_attributei_sw_init (void)
 Initialize the attribute subsystem.
 
+int onlp_attributei_hw_init (uint32_t flags)
 Initialize the attribute subsystem.
 
+int onlp_attributei_sw_denit (void)
 Deinitialize the attribute subsystem.
 
int onlp_attributei_supported (onlp_oid_t oid, const char *attribute)
 Determine whether the OID supports the given attributei. More...
 
int onlp_attributei_set (onlp_oid_t oid, const char *attribute, void *value)
 Set an attribute on the given OID. More...
 
int onlp_attributei_get (onlp_oid_t oid, const char *attribute, void **value)
 Get an attribute from the given OID. More...
 
int onlp_attributei_free (onlp_oid_t oid, const char *attribute, void *value)
 Free an attribute value returned from onlp_attributei_get(). More...
 
int onlp_attributei_onie_info_get (onlp_oid_t oid, onlp_onie_info_t *rv)
 Get an OID's ONIE attribute. More...
 
int onlp_attributei_asset_info_get (onlp_oid_t oid, onlp_asset_info_t *rv)
 Get an OID's Asset attribute. More...
 
+

Detailed Description

+

Attribute Interface.

+
+ + + + diff --git a/packages/base/any/onlp/src/onlp/doc/html/attributei_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/attributei_8h_source.html index 1079f596..f13fdfcf 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/attributei_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/attributei_8h_source.html @@ -89,7 +89,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
attributei.h
-
1 /************************************************************
+Go to the documentation of this file.
1 /************************************************************
2  * <bsn.cl fy=2017 v=onl>
3  *
4  * Copyright 2017 Big Switch Networks, Inc.
@@ -108,42 +108,50 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
17  * License.
18  *
19  * </bsn.cl>
-
20  ************************************************************
-
21  *
-
22  * Attribute Platform Implementation.
-
23  *
-
24  ***********************************************************/
-
25 #ifndef __ONLP_ATTRIBUTEI_H__
-
26 #define __ONLP_ATTRIBUTEI_H__
-
27 
-
28 #include <onlp/attribute.h>
-
29 #include <onlp/onlp.h>
+
20  ********************************************************/
+
28 #ifndef __ONLP_ATTRIBUTEI_H__
+
29 #define __ONLP_ATTRIBUTEI_H__
30 
-
34 int onlp_attributei_sw_init(void);
-
35 
-
39 int onlp_attributei_hw_init(uint32_t flags);
-
40 
-
46 int onlp_attributei_supported(onlp_oid_t oid, const char* attribute);
-
47 
-
54 int onlp_attributei_set(onlp_oid_t oid, const char* attribute, void* value);
+
31 #include <onlp/attribute.h>
+
32 #include <onlp/onlp.h>
+
33 
+
37 int onlp_attributei_sw_init(void);
+
38 
+
42 int onlp_attributei_hw_init(uint32_t flags);
+
43 
+
47 int onlp_attributei_sw_denit(void);
+
48 
+
54 int onlp_attributei_supported(onlp_oid_t oid, const char* attribute);
55 
-
62 int onlp_attributei_get(onlp_oid_t oid, const char* attribute,
-
63  void** value);
-
64 
-
71 int onlp_attributei_free(onlp_oid_t oid, const char* attribute, void* value);
+
62 int onlp_attributei_set(onlp_oid_t oid, const char* attribute, void* value);
+
63 
+
70 int onlp_attributei_get(onlp_oid_t oid, const char* attribute,
+
71  void** value);
72 
-
83 int onlp_attributei_onie_info_get(onlp_oid_t oid, onlp_onie_info_t* rv);
-
84 
-
91 int onlp_attributei_asset_info_get(onlp_oid_t oid, onlp_asset_info_t* rv);
+
79 int onlp_attributei_free(onlp_oid_t oid, const char* attribute, void* value);
+
80 
+
91 int onlp_attributei_onie_info_get(onlp_oid_t oid, onlp_onie_info_t* rv);
92 
-
93 #endif /* __ONLP_ATTRIBUTEI_H__ */
+ +
100 
+
101 #endif /* __ONLP_ATTRIBUTEI_H__ */
+
102 /* @} */
+
int onlp_attributei_hw_init(uint32_t flags)
Initialize the attribute subsystem.
uint32_t onlp_oid_t
Definition: oids.h:52
+
int onlp_attributei_sw_init(void)
Initialize the attribute subsystem.
Attributes.
+
int onlp_attributei_onie_info_get(onlp_oid_t oid, onlp_onie_info_t *rv)
Get an OID's ONIE attribute.
+
int onlp_attributei_free(onlp_oid_t oid, const char *attribute, void *value)
Free an attribute value returned from onlp_attributei_get().
+
int onlp_attributei_sw_denit(void)
Deinitialize the attribute subsystem.
+
int onlp_attributei_supported(onlp_oid_t oid, const char *attribute)
Determine whether the OID supports the given attributei.
+
int onlp_attributei_asset_info_get(onlp_oid_t oid, onlp_asset_info_t *rv)
Get an OID's Asset attribute.
This structure describes general asset information that may be associated with a particular OID...
Definition: stdattrs.h:40
+
int onlp_attributei_get(onlp_oid_t oid, const char *attribute, void **value)
Get an attribute from the given OID.
+
int onlp_attributei_set(onlp_oid_t oid, const char *attribute, void *value)
Set an attribute on the given OID.
diff --git a/packages/base/any/onlp/src/onlp/doc/html/base_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/base_8h_source.html index bcf5aff0..6c04229a 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/base_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/base_8h_source.html @@ -96,40 +96,42 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
5  * Interchange includes between subsystems
6  */
-
8 #include <onlp/platformi/attributei.h>
+
9 #include <onlp/platformi/fani.h>
10 #include <onlp/platformi/psui.h>
12 #include <onlp/platformi/sfpi.h>
-
13 #include <onlp/platformi/ledi.h>
-
14 #include <onlp/platformi/platformi.h>
-
15 #include <onlp/platformi/debugi.h>
-
16 
-
17 /*
-
18  * Common includes needed for subsystem implementations.
-
19  */
-
20 #include <onlplib/i2c.h>
-
21 #include <onlplib/file.h>
-
22 #include <onlplib/mmap.h>
-
23 
-
24 #include <unistd.h>
-
25 #include <fcntl.h>
-
26 #include <sys/mman.h>
-
27 #include <stdio.h>
-
28 #include <string.h>
+
13 #include <onlp/platformi/ledi.h>
+ +
15 
+
16 /*
+
17  * Common includes needed for subsystem implementations.
+
18  */
+
19 #include <onlplib/i2c.h>
+
20 #include <onlplib/file.h>
+
21 #include <onlplib/mmap.h>
+
22 
+
23 #include <unistd.h>
+
24 #include <fcntl.h>
+
25 #include <sys/mman.h>
+
26 #include <stdio.h>
+
27 #include <string.h>
+
28 
29 
-
30 
-
31 #define ONLP_OID_INFO_ASSIGN(_id, _array, _ptr) \
-
32  do { \
-
33  if(_id <= 0 || _id >= AIM_ARRAYSIZE(_array)) { \
-
34  AIM_LOG_ERROR("size=%d id=%d", AIM_ARRAYSIZE(_array), _id); \
-
35  return ONLP_STATUS_E_PARAM; \
-
36  } \
-
37  (*_ptr) = _array[_id]; \
-
38  } while(0)
-
39 
-
40 #endif /* __ONLP_PLATFORMI_COMMON_H__ */
+
30 #define ONLP_OID_INFO_ASSIGN(_id, _array, _ptr) \
+
31  do { \
+
32  if(_id <= 0 || _id >= AIM_ARRAYSIZE(_array)) { \
+
33  AIM_LOG_ERROR("size=%d id=%d", AIM_ARRAYSIZE(_array), _id); \
+
34  return ONLP_STATUS_E_PARAM; \
+
35  } \
+
36  (*_ptr) = _array[_id]; \
+
37  } while(0)
+
38 
+
39 #endif /* __ONLP_PLATFORMI_COMMON_H__ */
+
Platform Management Interface.
SFP Platform Implementation Interface. This interface must be implemented and available for all platf...
+
Attribute Interface.
+
Platform Management Interface.
Chassis Platform Interface.
Power Supply Management Implementation.
Fan Platform Implementation.
@@ -137,7 +139,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
diff --git a/packages/base/any/onlp/src/onlp/doc/html/chassis_8h.html b/packages/base/any/onlp/src/onlp/doc/html/chassis_8h.html index 321505e5..5f1a38d3 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/chassis_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/chassis_8h.html @@ -162,7 +162,7 @@ Functions diff --git a/packages/base/any/onlp/src/onlp/doc/html/chassis_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/chassis_8h_source.html index 0df5d3d5..6be22b88 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/chassis_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/chassis_8h_source.html @@ -175,12 +175,12 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
int onlp_chassis_sw_init(void)
Initialize the chassis software module.
int onlp_chassis_debug_show(aim_pvs_t *pvs)
Show the Chassis debug information. `*.
int onlp_chassis_info_get(onlp_oid_t oid, onlp_chassis_info_t *info)
Get the chassis info structure.
-
Definition: oids.h:282
+
Definition: oids.h:296
struct onlp_chassis_info_s onlp_chassis_info_t
Chassis Information Structure.
diff --git a/packages/base/any/onlp/src/onlp/doc/html/chassisi_8h.html b/packages/base/any/onlp/src/onlp/doc/html/chassisi_8h.html index ae4341f2..1c3faa8f 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/chassisi_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/chassisi_8h.html @@ -122,7 +122,7 @@ int  diff --git a/packages/base/any/onlp/src/onlp/doc/html/chassisi_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/chassisi_8h_source.html index 5ba0a38e..b93251a9 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/chassisi_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/chassisi_8h_source.html @@ -135,11 +135,11 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
int onlp_chassisi_hdr_get(onlp_oid_id_t id, onlp_oid_hdr_t *hdr)
Get the chassis hdr structure.
Chassis OID Interface.
int onlp_chassisi_sw_init(void)
Software initializaiton of the Chassis module.
-
Definition: oids.h:282
+
Definition: oids.h:296
diff --git a/packages/base/any/onlp/src/onlp/doc/html/classes.html b/packages/base/any/onlp/src/onlp/doc/html/classes.html index 9197979a..98942e6a 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/classes.html +++ b/packages/base/any/onlp/src/onlp/doc/html/classes.html @@ -98,7 +98,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/debug_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/debug_8h_source.html index de5d3d2c..c6c227bb 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/debug_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/debug_8h_source.html @@ -124,7 +124,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/dir_72adef417dcbc5bf8193445c31305165.html b/packages/base/any/onlp/src/onlp/doc/html/dir_72adef417dcbc5bf8193445c31305165.html index bb88a1a4..ed14825d 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/dir_72adef417dcbc5bf8193445c31305165.html +++ b/packages/base/any/onlp/src/onlp/doc/html/dir_72adef417dcbc5bf8193445c31305165.html @@ -143,7 +143,7 @@ Files diff --git a/packages/base/any/onlp/src/onlp/doc/html/dir_9b91cb305f6dfd5edb8153d5019adc55.html b/packages/base/any/onlp/src/onlp/doc/html/dir_9b91cb305f6dfd5edb8153d5019adc55.html index f6bb4029..dd062059 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/dir_9b91cb305f6dfd5edb8153d5019adc55.html +++ b/packages/base/any/onlp/src/onlp/doc/html/dir_9b91cb305f6dfd5edb8153d5019adc55.html @@ -92,7 +92,7 @@ Directories diff --git a/packages/base/any/onlp/src/onlp/doc/html/dir_a7b0466279106ea0b8f86f609f621680.html b/packages/base/any/onlp/src/onlp/doc/html/dir_a7b0466279106ea0b8f86f609f621680.html index ff07b4a7..48ff22fa 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/dir_a7b0466279106ea0b8f86f609f621680.html +++ b/packages/base/any/onlp/src/onlp/doc/html/dir_a7b0466279106ea0b8f86f609f621680.html @@ -92,7 +92,7 @@ Directories diff --git a/packages/base/any/onlp/src/onlp/doc/html/dir_ad96458042bbdd0196ba054c40055169.html b/packages/base/any/onlp/src/onlp/doc/html/dir_ad96458042bbdd0196ba054c40055169.html index 4eed3249..1271da1a 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/dir_ad96458042bbdd0196ba054c40055169.html +++ b/packages/base/any/onlp/src/onlp/doc/html/dir_ad96458042bbdd0196ba054c40055169.html @@ -86,27 +86,28 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); - + + - - - + + - + + @@ -121,7 +122,7 @@ Files diff --git a/packages/base/any/onlp/src/onlp/doc/html/fan_8h.html b/packages/base/any/onlp/src/onlp/doc/html/fan_8h.html index e9a276af..65690aea 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/fan_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/fan_8h.html @@ -177,21 +177,24 @@ int  - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + @@ -232,7 +235,7 @@ Variables diff --git a/packages/base/any/onlp/src/onlp/doc/html/fan_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/fan_8h_source.html index 7d52f1dd..b8a4fef4 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/fan_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/fan_8h_source.html @@ -163,91 +163,92 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
101 
108 int onlp_fan_sw_denit(void);
109 
-
115 int onlp_fan_hdr_get(onlp_oid_t id, onlp_oid_hdr_t* hdr);
+
115 int onlp_fan_hdr_get(onlp_oid_t oid, onlp_oid_hdr_t* hdr);
116 
-
122 int onlp_fan_info_get(onlp_oid_t id, onlp_fan_info_t* rv);
+
122 int onlp_fan_info_get(onlp_oid_t oid, onlp_fan_info_t* rv);
123 
-
130 int onlp_fan_rpm_set(onlp_oid_t id, int rpm);
-
131 
-
138 int onlp_fan_percentage_set(onlp_oid_t id, int p);
-
139 
-
146 int onlp_fan_dir_set(onlp_oid_t id, onlp_fan_dir_t dir);
-
147 
-
154 int onlp_fan_info_to_user_json(onlp_fan_info_t* info, cJSON** cj,
-
155  uint32_t flags);
-
156 
-
163 int onlp_fan_info_to_json(onlp_fan_info_t* info, cJSON** cj, uint32_t flags);
-
164 
-
170 int onlp_fan_info_from_json(cJSON* cj, onlp_fan_info_t* info);
+
129 int onlp_fan_caps_get(onlp_oid_t oid, uint32_t* caps);
+
130 
+
137 int onlp_fan_rpm_set(onlp_oid_t oid, int rpm);
+
138 
+
145 int onlp_fan_percentage_set(onlp_oid_t oid, int p);
+
146 
+
153 int onlp_fan_dir_set(onlp_oid_t oid, onlp_fan_dir_t dir);
+
154 
+
161 int onlp_fan_info_to_user_json(onlp_fan_info_t* info, cJSON** cj,
+
162  uint32_t flags);
+
163 
+
170 int onlp_fan_info_to_json(onlp_fan_info_t* info, cJSON** cj, uint32_t flags);
171 
-
172 
-
174 #define ONLP_FAN_STATUS_PRESENT(_fi) ((_fi).hdr.status & ONLP_OID_STATUS.PRESENT)
-
175 
-
177 #define ONLP_FAN_STATUS_MISSING(_fi) (!ONLP_FAN_INFO_PRESENT(_fi))
+
177 int onlp_fan_info_from_json(cJSON* cj, onlp_fan_info_t* info);
178 
-
180 #define ONLP_FAN_STATUS_FAILED(_fi) ( (_fi).hdr.status & ONLP_OID_STATUS.FAILED)
-
181 
-
183 #define ONLP_FAN_STATUS_NORMAL(_fi) ( ONLP_FAN_STATUS_PRESENT(_fi) && !ONLP_FAN_STATUS_FAILED(_fi) )
-
184 
+
179 
+
181 #define ONLP_FAN_STATUS_PRESENT(_fi) ((_fi).hdr.status & ONLP_OID_STATUS.PRESENT)
+
182 
+
184 #define ONLP_FAN_STATUS_MISSING(_fi) (!ONLP_FAN_INFO_PRESENT(_fi))
185 
-
186 /******************************************************************************
-
187  *
-
188  * Enumeration Support Definitions.
-
189  *
-
190  * Please do not add additional code beyond this point.
-
191  *
-
192  *****************************************************************************/
-
193 /* <auto.start.enum(tag:fan).supportheader> */
-
195 const char* onlp_fan_caps_name(onlp_fan_caps_t e);
-
196 
-
198 int onlp_fan_caps_value(const char* str, onlp_fan_caps_t* e, int substr);
-
199 
-
201 const char* onlp_fan_caps_desc(onlp_fan_caps_t e);
-
202 
-
204 int onlp_fan_caps_valid(onlp_fan_caps_t e);
-
205 
-
207 #define ONLP_FAN_CAPS_VALID(_e) \
-
208  (onlp_fan_caps_valid((_e)))
+
187 #define ONLP_FAN_STATUS_FAILED(_fi) ( (_fi).hdr.status & ONLP_OID_STATUS.FAILED)
+
188 
+
190 #define ONLP_FAN_STATUS_NORMAL(_fi) ( ONLP_FAN_STATUS_PRESENT(_fi) && !ONLP_FAN_STATUS_FAILED(_fi) )
+
191 
+
192 
+
193 /******************************************************************************
+
194  *
+
195  * Enumeration Support Definitions.
+
196  *
+
197  * Please do not add additional code beyond this point.
+
198  *
+
199  *****************************************************************************/
+
200 /* <auto.start.enum(tag:fan).supportheader> */
+
202 const char* onlp_fan_caps_name(onlp_fan_caps_t e);
+
203 
+
205 int onlp_fan_caps_value(const char* str, onlp_fan_caps_t* e, int substr);
+
206 
+
208 const char* onlp_fan_caps_desc(onlp_fan_caps_t e);
209 
-
211 extern aim_map_si_t onlp_fan_caps_map[];
-
213 extern aim_map_si_t onlp_fan_caps_desc_map[];
-
214 
-
216 #define ONLP_FAN_DIR_STRINGS \
-
217 {\
-
218  "UNKNOWN", \
-
219  "B2F", \
-
220  "F2B", \
-
221 }
-
222 
-
223 const char* onlp_fan_dir_name(onlp_fan_dir_t e);
-
224 
-
226 int onlp_fan_dir_value(const char* str, onlp_fan_dir_t* e, int substr);
-
227 
-
229 const char* onlp_fan_dir_desc(onlp_fan_dir_t e);
-
230 
-
232 #define ONLP_FAN_DIR_VALID(_e) \
-
233  ( (0 <= (_e)) && ((_e) <= ONLP_FAN_DIR_F2B))
+
211 int onlp_fan_caps_valid(onlp_fan_caps_t e);
+
212 
+
214 #define ONLP_FAN_CAPS_VALID(_e) \
+
215  (onlp_fan_caps_valid((_e)))
+
216 
+
218 extern aim_map_si_t onlp_fan_caps_map[];
+
220 extern aim_map_si_t onlp_fan_caps_desc_map[];
+
221 
+
223 #define ONLP_FAN_DIR_STRINGS \
+
224 {\
+
225  "UNKNOWN", \
+
226  "B2F", \
+
227  "F2B", \
+
228 }
+
229 
+
230 const char* onlp_fan_dir_name(onlp_fan_dir_t e);
+
231 
+
233 int onlp_fan_dir_value(const char* str, onlp_fan_dir_t* e, int substr);
234 
-
236 extern aim_map_si_t onlp_fan_dir_map[];
-
238 extern aim_map_si_t onlp_fan_dir_desc_map[];
-
239 /* <auto.end.enum(tag:fan).supportheader> */
-
240 
+
236 const char* onlp_fan_dir_desc(onlp_fan_dir_t e);
+
237 
+
239 #define ONLP_FAN_DIR_VALID(_e) \
+
240  ( (0 <= (_e)) && ((_e) <= ONLP_FAN_DIR_F2B))
241 
-
242 #endif /* __ONLP_FAN_H__ */
-
243 /* @} */
+
243 extern aim_map_si_t onlp_fan_dir_map[];
+
245 extern aim_map_si_t onlp_fan_dir_desc_map[];
+
246 /* <auto.end.enum(tag:fan).supportheader> */
+
247 
+
248 
+
249 #endif /* __ONLP_FAN_H__ */
+
250 /* @} */
char serial[ONLP_CONFIG_INFO_STR_MAX]
Definition: fan.h:81
struct onlp_fan_info_s onlp_fan_info_t
enum onlp_fan_caps_e onlp_fan_caps_t
-
int onlp_fan_rpm_set(onlp_oid_t id, int rpm)
Set the fan speed in RPMs.
+
int onlp_fan_rpm_set(onlp_oid_t oid, int rpm)
Set the fan speed in RPMs.
+
int onlp_fan_info_get(onlp_oid_t oid, onlp_fan_info_t *rv)
Retrieve fan information.
onlp_oid_hdr_t hdr
Definition: fan.h:63
int onlp_fan_info_from_json(cJSON *cj, onlp_fan_info_t *info)
Convert a JSON object to a fan info structure.
Definition: fan.h:61
onlp_fan_dir_t dir
Definition: fan.h:66
Object Identifiers.
int percentage
Definition: fan.h:75
-
int onlp_fan_info_get(onlp_oid_t id, onlp_fan_info_t *rv)
Retrieve fan information.
uint32_t onlp_oid_t
Definition: oids.h:52
-
int onlp_fan_percentage_set(onlp_oid_t id, int p)
Set the fan speed in percentage.
const char * onlp_fan_caps_name(onlp_fan_caps_t e)
aim_map_si_t onlp_fan_caps_map[]
onlp_fan_dir_e
Definition: fan.h:48
@@ -255,29 +256,31 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
int onlp_fan_info_to_json(onlp_fan_info_t *info, cJSON **cj, uint32_t flags)
Convert a fan info structure to JSON.
int onlp_fan_info_to_user_json(onlp_fan_info_t *info, cJSON **cj, uint32_t flags)
Convert a fan info structure to user JSON.
int onlp_fan_sw_denit(void)
Deinitialize the fan software module.
+
int onlp_fan_caps_get(onlp_oid_t oid, uint32_t *caps)
Retrieve the fan capabilities.
#define ONLP_CONFIG_INFO_STR_MAX
Definition: onlp_config.h:218
int onlp_fan_sw_init(void)
Software Initialization of the Fan module.
onlp_fan_caps_e
Definition: fan.h:38
+
int onlp_fan_dir_set(onlp_oid_t oid, onlp_fan_dir_t dir)
Set the fan direction.
const char * onlp_fan_dir_desc(onlp_fan_dir_t e)
aim_map_si_t onlp_fan_dir_map[]
-
int onlp_fan_dir_set(onlp_oid_t id, onlp_fan_dir_t dir)
Set the fan direction.
+
int onlp_fan_percentage_set(onlp_oid_t oid, int p)
Set the fan speed in percentage.
char model[ONLP_CONFIG_INFO_STR_MAX]
Definition: fan.h:78
enum onlp_fan_dir_e onlp_fan_dir_t
const char * onlp_fan_caps_desc(onlp_fan_caps_t e)
int onlp_fan_caps_value(const char *str, onlp_fan_caps_t *e, int substr)
uint32_t caps
Definition: fan.h:69
+
int onlp_fan_hdr_get(onlp_oid_t oid, onlp_oid_hdr_t *hdr)
Retrieve the fan's OID hdr.
int onlp_fan_hw_init(uint32_t flags)
Hardware Initialization of the Fan module.
aim_map_si_t onlp_fan_dir_desc_map[]
-
Definition: oids.h:282
+
Definition: oids.h:296
const char * onlp_fan_dir_name(onlp_fan_dir_t e)
aim_map_si_t onlp_fan_caps_desc_map[]
-
int onlp_fan_hdr_get(onlp_oid_t id, onlp_oid_hdr_t *hdr)
Retrieve the fan's OID hdr.
int rpm
Definition: fan.h:72
int onlp_fan_caps_valid(onlp_fan_caps_t e)
diff --git a/packages/base/any/onlp/src/onlp/doc/html/fani_8h.html b/packages/base/any/onlp/src/onlp/doc/html/fani_8h.html index 3c388e41..22ee6e97 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/fani_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/fani_8h.html @@ -110,12 +110,18 @@ int  + + + + + + @@ -131,7 +137,7 @@ int  - + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + +

Files

file  attributei.h [code]
file  attributei.h [code]
 Attribute Interface.
 
file  base.h [code]
 
file  chassisi.h [code]
 Chassis Platform Interface.
 
file  debugi.h [code]
 
file  fani.h [code]
 Fan Platform Implementation.
 
file  generici.h [code]
 Generic OID Platform Implementation.
 
file  ledi.h [code]
file  ledi.h [code]
 Platform Management Interface.
 
file  modulei.h [code]
 Module OID Platform Implementation.
 
file  platformi.h [code]
file  platformi.h [code]
 Platform Management Interface.
 
file  psui.h [code]
 Power Supply Management Implementation.
int onlp_fan_sw_denit (void)
 Deinitialize the fan software module. More...
 
int onlp_fan_hdr_get (onlp_oid_t id, onlp_oid_hdr_t *hdr)
 Retrieve the fan's OID hdr. More...
 
int onlp_fan_info_get (onlp_oid_t id, onlp_fan_info_t *rv)
 Retrieve fan information. More...
 
int onlp_fan_rpm_set (onlp_oid_t id, int rpm)
 Set the fan speed in RPMs. More...
 
int onlp_fan_percentage_set (onlp_oid_t id, int p)
 Set the fan speed in percentage. More...
 
int onlp_fan_dir_set (onlp_oid_t id, onlp_fan_dir_t dir)
 Set the fan direction. More...
 
int onlp_fan_hdr_get (onlp_oid_t oid, onlp_oid_hdr_t *hdr)
 Retrieve the fan's OID hdr. More...
 
int onlp_fan_info_get (onlp_oid_t oid, onlp_fan_info_t *rv)
 Retrieve fan information. More...
 
int onlp_fan_caps_get (onlp_oid_t oid, uint32_t *caps)
 Retrieve the fan capabilities. More...
 
int onlp_fan_rpm_set (onlp_oid_t oid, int rpm)
 Set the fan speed in RPMs. More...
 
int onlp_fan_percentage_set (onlp_oid_t oid, int p)
 Set the fan speed in percentage. More...
 
int onlp_fan_dir_set (onlp_oid_t oid, onlp_fan_dir_t dir)
 Set the fan direction. More...
 
int onlp_fan_info_to_user_json (onlp_fan_info_t *info, cJSON **cj, uint32_t flags)
 Convert a fan info structure to user JSON. More...
 
int onlp_fani_sw_denit (void)
 Deinitialize the fan software module. More...
 
int onlp_fani_id_validate (onlp_oid_id_t id)
 Validate a fan id. More...
 
int onlp_fani_hdr_get (onlp_oid_id_t id, onlp_oid_hdr_t *hdr)
 Retrieve the fan's OID hdr. More...
 
int onlp_fani_info_get (onlp_oid_id_t id, onlp_fan_info_t *rv)
 Get the information structure for the given fan OID. More...
 
int onlp_fani_caps_get (onlp_oid_id_t id, uint32_t *rv)
 Get the fan capabilities. More...
 
int onlp_fani_rpm_set (onlp_oid_id_t id, int rpm)
 Set the fan speed in RPM. More...
 
diff --git a/packages/base/any/onlp/src/onlp/doc/html/fani_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/fani_8h_source.html index 4fb69a86..d610bfc8 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/fani_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/fani_8h_source.html @@ -120,20 +120,24 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
43 
50 int onlp_fani_sw_denit(void);
51 
- -
58 
- -
65 
-
72 int onlp_fani_rpm_set(onlp_oid_id_t id, int rpm);
-
73 
-
74 
- -
82 
- -
89 
-
90 
-
91 #endif /* __ONLP_FANI_H__ */
-
92 /* @} */
+ +
57 
+ +
64 
+ +
71 
+
77 int onlp_fani_caps_get(onlp_oid_id_t id, uint32_t* rv);
+
78 
+
85 int onlp_fani_rpm_set(onlp_oid_id_t id, int rpm);
+
86 
+
87 
+ +
95 
+ +
102 
+
103 
+
104 #endif /* __ONLP_FANI_H__ */
+
105 /* @} */
int onlp_fani_dir_set(onlp_oid_id_t id, onlp_fan_dir_t dir)
Set the fan direction (if supported).
int onlp_fani_info_get(onlp_oid_id_t id, onlp_fan_info_t *rv)
Get the information structure for the given fan OID.
Definition: fan.h:61
@@ -143,14 +147,16 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
int onlp_fani_sw_init(void)
Software initialization of the Fan module.
uint32_t onlp_oid_id_t
Definition: oids.h:55
int onlp_fani_sw_denit(void)
Deinitialize the fan software module.
+
int onlp_fani_id_validate(onlp_oid_id_t id)
Validate a fan id.
int onlp_fani_hdr_get(onlp_oid_id_t id, onlp_oid_hdr_t *hdr)
Retrieve the fan's OID hdr.
+
int onlp_fani_caps_get(onlp_oid_id_t id, uint32_t *rv)
Get the fan capabilities.
enum onlp_fan_dir_e onlp_fan_dir_t
int onlp_fani_percentage_set(onlp_oid_id_t id, int p)
Set the fan speed in percentage.
-
Definition: oids.h:282
+
Definition: oids.h:296
diff --git a/packages/base/any/onlp/src/onlp/doc/html/files.html b/packages/base/any/onlp/src/onlp/doc/html/files.html index b040c2ec..db3e375a 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/files.html +++ b/packages/base/any/onlp/src/onlp/doc/html/files.html @@ -91,41 +91,40 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  inc
  onlp
  platformi
 attributei.h
 attributei.hAttribute Interface
 base.h
 chassisi.hChassis Platform Interface
 debugi.h
 fani.hFan Platform Implementation
 generici.hGeneric OID Platform Implementation
 ledi.h
 modulei.hModule OID Platform Implementation
 platformi.h
 psui.hPower Supply Management Implementation
 sfpi.hSFP Platform Implementation Interface. This interface must be implemented and available for all platforms that support SFP interfaces
 thermali.hThermal Sensor Platform Implementation
 attribute.hAttributes
 chassis.hChassis OID Interface
 debug.h
 fan.hFan Management
 generic.hGeneric OID Interface
 led.hLED Management
 module.hModule OID Interface
 oids.hObject Identifiers
 onlp.h
 onlp_config.hOnlp Configuration Header
 onlp_dox.h
 onlp_porting.hOnlp Porting Macros
 platform.hPlatform Management and Initialization
 psu.hPower Supply Management
 sfp.hSFP Management Interface
 stdattrs.hStandard OID Attributes
 thermal.hThermal Sensor Management
 fani.hFan Platform Implementation
 generici.hGeneric OID Platform Implementation
 ledi.hPlatform Management Interface
 modulei.hModule OID Platform Implementation
 platformi.hPlatform Management Interface
 psui.hPower Supply Management Implementation
 sfpi.hSFP Platform Implementation Interface. This interface must be implemented and available for all platforms that support SFP interfaces
 thermali.hThermal Sensor Platform Implementation
 attribute.hAttributes
 chassis.hChassis OID Interface
 debug.h
 fan.hFan Management
 generic.hGeneric OID Interface
 led.hLED Management
 module.hModule OID Interface
 oids.hObject Identifiers
 onlp.h
 onlp_config.hOnlp Configuration Header
 onlp_dox.h
 onlp_porting.hOnlp Porting Macros
 platform.hPlatform Management and Initialization
 psu.hPower Supply Management
 sfp.hSFP Management Interface
 stdattrs.hStandard OID Attributes
 thermal.hThermal Sensor Management
diff --git a/packages/base/any/onlp/src/onlp/doc/html/functions.html b/packages/base/any/onlp/src/onlp/doc/html/functions.html index ff94f732..c346c480 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/functions.html +++ b/packages/base/any/onlp/src/onlp/doc/html/functions.html @@ -326,7 +326,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/functions_vars.html b/packages/base/any/onlp/src/onlp/doc/html/functions_vars.html index 2ee681c2..40e19107 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/functions_vars.html +++ b/packages/base/any/onlp/src/onlp/doc/html/functions_vars.html @@ -326,7 +326,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/generic_8h.html b/packages/base/any/onlp/src/onlp/doc/html/generic_8h.html index 300091eb..5892ca13 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/generic_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/generic_8h.html @@ -149,7 +149,7 @@ Functions diff --git a/packages/base/any/onlp/src/onlp/doc/html/generic_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/generic_8h_source.html index da0cd13b..cbe4b456 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/generic_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/generic_8h_source.html @@ -122,27 +122,26 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
43  onlp_oid_hdr_t hdr;
44 
45  /* Generic objects have no dedicated fields. */
-
46 
-
47 } onlp_generic_info_t;
-
48 
-
54 int onlp_generic_sw_init(void);
-
55 
-
60 int onlp_generic_hw_init(uint32_t flags);
-
61 
-
68 int onlp_generic_sw_denit(void);
-
69 
-
75 int onlp_generic_hdr_get(onlp_oid_t oid, onlp_oid_hdr_t* hdr);
-
76 
-
82 int onlp_generic_info_get(onlp_oid_t oid, onlp_generic_info_t* info);
-
83 
-
90 int onlp_generic_info_to_user_json(onlp_generic_info_t* info, cJSON** cj, uint32_t flags);
-
91 
-
98 int onlp_generic_info_to_json(onlp_generic_info_t* info, cJSON** cj, uint32_t flags);
-
99 
-
105 int onlp_generic_info_from_json(cJSON* cj, onlp_generic_info_t* info);
-
106 
-
107 #endif /* __ONLP_GENERIC_H_ */
-
108 /* @} */
+
46 } onlp_generic_info_t;
+
47 
+
53 int onlp_generic_sw_init(void);
+
54 
+
59 int onlp_generic_hw_init(uint32_t flags);
+
60 
+
67 int onlp_generic_sw_denit(void);
+
68 
+
74 int onlp_generic_hdr_get(onlp_oid_t oid, onlp_oid_hdr_t* hdr);
+
75 
+
81 int onlp_generic_info_get(onlp_oid_t oid, onlp_generic_info_t* info);
+
82 
+
89 int onlp_generic_info_to_user_json(onlp_generic_info_t* info, cJSON** cj, uint32_t flags);
+
90 
+
97 int onlp_generic_info_to_json(onlp_generic_info_t* info, cJSON** cj, uint32_t flags);
+
98 
+
104 int onlp_generic_info_from_json(cJSON* cj, onlp_generic_info_t* info);
+
105 
+
106 #endif /* __ONLP_GENERIC_H_ */
+
107 /* @} */
onlp Configuration Header
int onlp_generic_sw_init(void)
Initialize the module software module.
struct onlp_generic_info_s onlp_generic_info_t
Generic OID Information Structure.
@@ -156,12 +155,12 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
int onlp_generic_hw_init(uint32_t flags)
Initialize the module.
int onlp_generic_hdr_get(onlp_oid_t oid, onlp_oid_hdr_t *hdr)
Get the generic header structure.
int onlp_generic_info_to_json(onlp_generic_info_t *info, cJSON **cj, uint32_t flags)
Convert a generic info structure to JSON.
-
Definition: oids.h:282
+
Definition: oids.h:296
int onlp_generic_info_from_json(cJSON *cj, onlp_generic_info_t *info)
Convert a JSON object to a generic info structure.
diff --git a/packages/base/any/onlp/src/onlp/doc/html/generici_8h.html b/packages/base/any/onlp/src/onlp/doc/html/generici_8h.html index 26b8fda6..b3c8735d 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/generici_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/generici_8h.html @@ -122,7 +122,7 @@ int  diff --git a/packages/base/any/onlp/src/onlp/doc/html/generici_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/generici_8h_source.html index ce3ee9bd..eb0f9da9 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/generici_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/generici_8h_source.html @@ -133,12 +133,12 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
int onlp_generici_sw_denit(void)
Deinitialize the generic software module.
int onlp_generici_hw_init(uint32_t flags)
Hardware initialization of the Generic module.
int onlp_generici_info_get(onlp_oid_id_t id, onlp_generic_info_t *rv)
Get the information for the given generic OID.
-
Definition: oids.h:282
+
Definition: oids.h:296
Generic OID Interface.
diff --git a/packages/base/any/onlp/src/onlp/doc/html/globals.html b/packages/base/any/onlp/src/onlp/doc/html/globals.html index cb32978d..b6430361 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/globals.html +++ b/packages/base/any/onlp/src/onlp/doc/html/globals.html @@ -159,9 +159,39 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_attribute_supported() : attribute.h
  • +
  • onlp_attribute_sw_denit() +: attribute.h +
  • onlp_attribute_sw_init() : attribute.h
  • +
  • onlp_attributei_asset_info_get() +: attributei.h +
  • +
  • onlp_attributei_free() +: attributei.h +
  • +
  • onlp_attributei_get() +: attributei.h +
  • +
  • onlp_attributei_hw_init() +: attributei.h +
  • +
  • onlp_attributei_onie_info_get() +: attributei.h +
  • +
  • onlp_attributei_set() +: attributei.h +
  • +
  • onlp_attributei_supported() +: attributei.h +
  • +
  • onlp_attributei_sw_denit() +: attributei.h +
  • +
  • onlp_attributei_sw_init() +: attributei.h +
  • onlp_chassis_debug_get_json() : chassis.h
  • @@ -198,6 +228,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_chassis_info_to_user_json() : chassis.h
  • +
  • ONLP_CHASSIS_LED_INFO_ENTRY_INIT +: ledi.h +
  • ONLP_CHASSIS_PSU_INFO_ENTRY_INIT : psui.h
  • @@ -306,6 +339,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_fan_caps_e : fan.h
  • +
  • onlp_fan_caps_get() +: fan.h +
  • onlp_fan_caps_map : fan.h
  • @@ -340,7 +376,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); : fan.h
  • onlp_fan_dir_set() -: fan.h +: fan.h
  • ONLP_FAN_DIR_STRINGS : fan.h @@ -355,7 +391,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); : fan.h
  • onlp_fan_hdr_get() -: fan.h +: fan.h
  • onlp_fan_hw_init() : fan.h @@ -370,7 +406,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); : fan.h
  • onlp_fan_info_get() -: fan.h +: fan.h
  • onlp_fan_info_t : fan.h @@ -381,11 +417,14 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_fan_info_to_user_json() : fan.h
  • +
  • ONLP_FAN_LED_INFO_ENTRY_INIT +: ledi.h +
  • onlp_fan_percentage_set() -: fan.h +: fan.h
  • onlp_fan_rpm_set() -: fan.h +: fan.h
  • ONLP_FAN_STATUS_FAILED : fan.h @@ -405,6 +444,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_fan_sw_init() : fan.h
  • +
  • onlp_fani_caps_get() +: fani.h +
  • onlp_fani_dir_set() : fani.h
  • @@ -414,6 +456,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_fani_hw_init() : fani.h
  • +
  • onlp_fani_id_validate() +: fani.h +
  • onlp_fani_info_get() : fani.h
  • @@ -483,6 +528,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_led_caps_e : led.h
  • +
  • onlp_led_caps_get() +: led.h +
  • onlp_led_caps_map : led.h
  • @@ -502,10 +550,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); : led.h
  • onlp_led_char_set() -: led.h +: led.h
  • onlp_led_hdr_get() -: led.h +: led.h
  • onlp_led_hw_init() : led.h @@ -513,11 +561,14 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • ONLP_LED_ID_CREATE : oids.h
  • +
  • ONLP_LED_INFO_ENTRY_INIT +: ledi.h +
  • onlp_led_info_from_json() : led.h
  • onlp_led_info_get() -: led.h +: led.h
  • onlp_led_info_t : led.h @@ -544,7 +595,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); : led.h
  • onlp_led_mode_set() -: led.h +: led.h
  • ONLP_LED_MODE_STRINGS : led.h @@ -564,6 +615,33 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_led_sw_init() : led.h
  • +
  • onlp_ledi_caps_get() +: ledi.h +
  • +
  • onlp_ledi_char_set() +: ledi.h +
  • +
  • onlp_ledi_hdr_get() +: ledi.h +
  • +
  • onlp_ledi_hw_init() +: ledi.h +
  • +
  • onlp_ledi_id_validate() +: ledi.h +
  • +
  • onlp_ledi_info_get() +: ledi.h +
  • +
  • onlp_ledi_mode_set() +: ledi.h +
  • +
  • onlp_ledi_sw_denit() +: ledi.h +
  • +
  • onlp_ledi_sw_init() +: ledi.h +
  • onlp_module_hdr_get() : module.h
  • @@ -621,6 +699,12 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • ONLP_OID_DESC_SIZE : oids.h
  • +
  • onlp_oid_desc_t +: oids.h +
  • +
  • ONLP_OID_FAILED +: oids.h +
  • ONLP_OID_FAN_VALIDATE : oids.h
  • @@ -633,6 +717,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • ONLP_OID_FAN_VALIDATE_NR : oids.h
  • +
  • onlp_oid_from_json() +: oids.h +
  • onlp_oid_from_str() : oids.h
  • @@ -648,12 +735,18 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • ONLP_OID_GENERIC_VALIDATE_NR : oids.h
  • +
  • onlp_oid_get_all_free() +: oids.h +
  • onlp_oid_hdr_from_json() : oids.h
  • onlp_oid_hdr_get() : oids.h
  • +
  • onlp_oid_hdr_get_all() +: oids.h +
  • onlp_oid_hdr_t : oids.h
  • @@ -666,9 +759,15 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_oid_id_t : oids.h
  • +
  • ONLP_OID_ID_VALIDATE_RANGE +: oids.h +
  • onlp_oid_info_get() : oids.h
  • +
  • onlp_oid_info_get_all() +: oids.h +
  • onlp_oid_info_to_json() : oids.h
  • @@ -709,7 +808,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); : oids.h
  • onlp_oid_iterate() -: oids.h +: oids.h
  • onlp_oid_iterate_f : oids.h @@ -795,6 +894,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • ONLP_OID_SFP_VALIDATE_NR : oids.h
  • +
  • ONLP_OID_STATUS_FLAG_CLR +: oids.h +
  • onlp_oid_status_flag_desc() : oids.h
  • @@ -804,12 +906,27 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_oid_status_flag_e : oids.h
  • +
  • ONLP_OID_STATUS_FLAG_GET_VALUE +: oids.h +
  • +
  • ONLP_OID_STATUS_FLAG_IS_SET +: oids.h +
  • onlp_oid_status_flag_map : oids.h
  • onlp_oid_status_flag_name() : oids.h
  • +
  • ONLP_OID_STATUS_FLAG_NOT_SET +: oids.h +
  • +
  • ONLP_OID_STATUS_FLAG_SET +: oids.h +
  • +
  • ONLP_OID_STATUS_FLAG_SET_VALUE +: oids.h +
  • onlp_oid_status_flag_t : oids.h
  • @@ -822,6 +939,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_oid_status_flag_value() : oids.h
  • +
  • ONLP_OID_STATUS_FLAGS_CLR +: oids.h +
  • ONLP_OID_STATUS_FLAGS_GET : oids.h
  • @@ -831,6 +951,12 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_oid_t : oids.h
  • +
  • ONLP_OID_TABLE_CLEAR +: oids.h +
  • +
  • ONLP_OID_TABLE_COPY +: oids.h +
  • onlp_oid_table_from_json() : oids.h
  • @@ -843,6 +969,15 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • ONLP_OID_TABLE_ITER_TYPE : oids.h
  • +
  • ONLP_OID_TABLE_SIZE +: oids.h +
  • +
  • ONLP_OID_TABLE_SIZE_BYTES +: oids.h +
  • +
  • onlp_oid_table_t +: oids.h +
  • onlp_oid_table_to_json() : oids.h
  • @@ -861,12 +996,18 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • ONLP_OID_THERMAL_VALIDATE_NR : oids.h
  • +
  • onlp_oid_to_json() +: oids.h +
  • onlp_oid_to_str() : oids.h
  • onlp_oid_to_user_json() : oids.h
  • +
  • onlp_oid_to_user_str() +: oids.h +
  • ONLP_OID_TYPE_CREATE : oids.h
  • @@ -972,6 +1113,27 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_platform_sw_init() : platform.h
  • +
  • onlp_platformi_get() +: platformi.h +
  • +
  • onlp_platformi_hw_init() +: platformi.h +
  • +
  • onlp_platformi_manage_fans() +: platformi.h +
  • +
  • onlp_platformi_manage_init() +: platformi.h +
  • +
  • onlp_platformi_manage_leds() +: platformi.h +
  • +
  • onlp_platformi_set() +: platformi.h +
  • +
  • onlp_platformi_sw_init() +: platformi.h +
  • onlp_psu_caps_desc() : psu.h
  • @@ -990,17 +1152,17 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_psu_caps_t : psu.h
  • -
  • ONLP_PSU_CAPS_VALID -: psu.h -
  • onlp_psu_caps_valid() : psu.h
  • +
  • ONLP_PSU_CAPS_VALID +: psu.h +
  • onlp_psu_caps_value() : psu.h
  • onlp_psu_hdr_get() -: psu.h +: psu.h
  • onlp_psu_hw_init() : psu.h @@ -1015,7 +1177,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); : psu.h
  • onlp_psu_info_get() -: psu.h +: psu.h
  • onlp_psu_info_t : psu.h @@ -1026,6 +1188,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_psu_info_to_user_json() : psu.h
  • +
  • ONLP_PSU_LED_INFO_ENTRY_INIT +: ledi.h +
  • ONLP_PSU_STATUS_FAILED : psu.h
  • @@ -1077,6 +1242,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_psui_hw_init() : psui.h
  • +
  • onlp_psui_id_validate() +: psui.h +
  • onlp_psui_info_get() : psui.h
  • @@ -1431,6 +1599,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_thermali_hw_init() : thermali.h
  • +
  • onlp_thermali_id_validate() +: thermali.h +
  • onlp_thermali_info_get() : thermali.h
  • @@ -1444,7 +1615,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/globals_defs.html b/packages/base/any/onlp/src/onlp/doc/html/globals_defs.html index afba94d1..f6f51931 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/globals_defs.html +++ b/packages/base/any/onlp/src/onlp/doc/html/globals_defs.html @@ -105,6 +105,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • ONLP_CHASSIS_ID_CREATE : oids.h
  • +
  • ONLP_CHASSIS_LED_INFO_ENTRY_INIT +: ledi.h +
  • ONLP_CHASSIS_PSU_INFO_ENTRY_INIT : psui.h
  • @@ -186,6 +189,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • ONLP_FAN_INFO_CAP_IS_SET : fan.h
  • +
  • ONLP_FAN_LED_INFO_ENTRY_INIT +: ledi.h +
  • ONLP_FAN_STATUS_FAILED : fan.h
  • @@ -207,6 +213,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • ONLP_LED_ID_CREATE : oids.h
  • +
  • ONLP_LED_INFO_ENTRY_INIT +: ledi.h +
  • ONLP_LED_MODE_STRINGS : led.h
  • @@ -228,6 +237,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • ONLP_OID_DESC_SIZE : oids.h
  • +
  • ONLP_OID_FAILED +: oids.h +
  • ONLP_OID_FAN_VALIDATE : oids.h
  • @@ -255,6 +267,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • ONLP_OID_ID_GET : oids.h
  • +
  • ONLP_OID_ID_VALIDATE_RANGE +: oids.h +
  • ONLP_OID_IS_CHASSIS : oids.h
  • @@ -342,12 +357,39 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • ONLP_OID_SFP_VALIDATE_NR : oids.h
  • +
  • ONLP_OID_STATUS_FLAG_CLR +: oids.h +
  • +
  • ONLP_OID_STATUS_FLAG_GET_VALUE +: oids.h +
  • +
  • ONLP_OID_STATUS_FLAG_IS_SET +: oids.h +
  • +
  • ONLP_OID_STATUS_FLAG_NOT_SET +: oids.h +
  • +
  • ONLP_OID_STATUS_FLAG_SET +: oids.h +
  • +
  • ONLP_OID_STATUS_FLAG_SET_VALUE +: oids.h +
  • ONLP_OID_STATUS_FLAG_VALID : oids.h
  • +
  • ONLP_OID_STATUS_FLAGS_CLR +: oids.h +
  • ONLP_OID_STATUS_FLAGS_GET : oids.h
  • +
  • ONLP_OID_TABLE_CLEAR +: oids.h +
  • +
  • ONLP_OID_TABLE_COPY +: oids.h +
  • ONLP_OID_TABLE_ITER : oids.h
  • @@ -357,6 +399,12 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • ONLP_OID_TABLE_ITER_TYPE : oids.h
  • +
  • ONLP_OID_TABLE_SIZE +: oids.h +
  • +
  • ONLP_OID_TABLE_SIZE_BYTES +: oids.h +
  • ONLP_OID_THERMAL_ENTRY : oids.h
  • @@ -405,6 +453,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • ONLP_PSU_INFO_CAP_IS_SET : psu.h
  • +
  • ONLP_PSU_LED_INFO_ENTRY_INIT +: ledi.h +
  • ONLP_PSU_STATUS_FAILED : psu.h
  • @@ -472,7 +523,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/globals_enum.html b/packages/base/any/onlp/src/onlp/doc/html/globals_enum.html index 6a50354e..08844a3e 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/globals_enum.html +++ b/packages/base/any/onlp/src/onlp/doc/html/globals_enum.html @@ -141,7 +141,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/globals_func.html b/packages/base/any/onlp/src/onlp/doc/html/globals_func.html index 1970da64..1539ec34 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/globals_func.html +++ b/packages/base/any/onlp/src/onlp/doc/html/globals_func.html @@ -153,9 +153,39 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_attribute_supported() : attribute.h
  • +
  • onlp_attribute_sw_denit() +: attribute.h +
  • onlp_attribute_sw_init() : attribute.h
  • +
  • onlp_attributei_asset_info_get() +: attributei.h +
  • +
  • onlp_attributei_free() +: attributei.h +
  • +
  • onlp_attributei_get() +: attributei.h +
  • +
  • onlp_attributei_hw_init() +: attributei.h +
  • +
  • onlp_attributei_onie_info_get() +: attributei.h +
  • +
  • onlp_attributei_set() +: attributei.h +
  • +
  • onlp_attributei_supported() +: attributei.h +
  • +
  • onlp_attributei_sw_denit() +: attributei.h +
  • +
  • onlp_attributei_sw_init() +: attributei.h +
  • onlp_chassis_debug_get_json() : chassis.h
  • @@ -216,6 +246,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_fan_caps_desc() : fan.h
  • +
  • onlp_fan_caps_get() +: fan.h +
  • onlp_fan_caps_name() : fan.h
  • @@ -232,13 +265,13 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); : fan.h
  • onlp_fan_dir_set() -: fan.h +: fan.h
  • onlp_fan_dir_value() : fan.h
  • onlp_fan_hdr_get() -: fan.h +: fan.h
  • onlp_fan_hw_init() : fan.h @@ -247,7 +280,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); : fan.h
  • onlp_fan_info_get() -: fan.h +: fan.h
  • onlp_fan_info_to_json() : fan.h @@ -256,10 +289,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); : fan.h
  • onlp_fan_percentage_set() -: fan.h +: fan.h
  • onlp_fan_rpm_set() -: fan.h +: fan.h
  • onlp_fan_sw_denit() : fan.h @@ -267,6 +300,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_fan_sw_init() : fan.h
  • +
  • onlp_fani_caps_get() +: fani.h +
  • onlp_fani_dir_set() : fani.h
  • @@ -276,6 +312,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_fani_hw_init() : fani.h
  • +
  • onlp_fani_id_validate() +: fani.h +
  • onlp_fani_info_get() : fani.h
  • @@ -333,6 +372,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_led_caps_desc() : led.h
  • +
  • onlp_led_caps_get() +: led.h +
  • onlp_led_caps_name() : led.h
  • @@ -343,10 +385,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); : led.h
  • onlp_led_char_set() -: led.h +: led.h
  • onlp_led_hdr_get() -: led.h +: led.h
  • onlp_led_hw_init() : led.h @@ -355,7 +397,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); : led.h
  • onlp_led_info_get() -: led.h +: led.h
  • onlp_led_info_to_json() : led.h @@ -370,7 +412,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); : led.h
  • onlp_led_mode_set() -: led.h +: led.h
  • onlp_led_mode_value() : led.h @@ -381,6 +423,33 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_led_sw_init() : led.h
  • +
  • onlp_ledi_caps_get() +: ledi.h +
  • +
  • onlp_ledi_char_set() +: ledi.h +
  • +
  • onlp_ledi_hdr_get() +: ledi.h +
  • +
  • onlp_ledi_hw_init() +: ledi.h +
  • +
  • onlp_ledi_id_validate() +: ledi.h +
  • +
  • onlp_ledi_info_get() +: ledi.h +
  • +
  • onlp_ledi_mode_set() +: ledi.h +
  • +
  • onlp_ledi_sw_denit() +: ledi.h +
  • +
  • onlp_ledi_sw_init() +: ledi.h +
  • onlp_module_hdr_get() : module.h
  • @@ -420,21 +489,33 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_modulei_sw_init() : modulei.h
  • +
  • onlp_oid_from_json() +: oids.h +
  • onlp_oid_from_str() : oids.h
  • +
  • onlp_oid_get_all_free() +: oids.h +
  • onlp_oid_hdr_from_json() : oids.h
  • onlp_oid_hdr_get() : oids.h
  • +
  • onlp_oid_hdr_get_all() +: oids.h +
  • onlp_oid_hdr_to_json() : oids.h
  • onlp_oid_info_get() : oids.h
  • +
  • onlp_oid_info_get_all() +: oids.h +
  • onlp_oid_info_to_json() : oids.h
  • @@ -442,7 +523,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); : oids.h
  • onlp_oid_iterate() -: oids.h +: oids.h
  • onlp_oid_json_flag_desc() : oids.h @@ -477,12 +558,18 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_oid_table_to_json() : oids.h
  • +
  • onlp_oid_to_json() +: oids.h +
  • onlp_oid_to_str() : oids.h
  • onlp_oid_to_user_json() : oids.h
  • +
  • onlp_oid_to_user_str() +: oids.h +
  • onlp_oid_type_desc() : oids.h
  • @@ -537,6 +624,27 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_platform_sw_init() : platform.h
  • +
  • onlp_platformi_get() +: platformi.h +
  • +
  • onlp_platformi_hw_init() +: platformi.h +
  • +
  • onlp_platformi_manage_fans() +: platformi.h +
  • +
  • onlp_platformi_manage_init() +: platformi.h +
  • +
  • onlp_platformi_manage_leds() +: platformi.h +
  • +
  • onlp_platformi_set() +: platformi.h +
  • +
  • onlp_platformi_sw_init() +: platformi.h +
  • onlp_psu_caps_desc() : psu.h
  • @@ -550,7 +658,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); : psu.h
  • onlp_psu_hdr_get() -: psu.h +: psu.h
  • onlp_psu_hw_init() : psu.h @@ -559,7 +667,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); : psu.h
  • onlp_psu_info_get() -: psu.h +: psu.h
  • onlp_psu_info_to_json() : psu.h @@ -588,6 +696,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_psui_hw_init() : psui.h
  • +
  • onlp_psui_id_validate() +: psui.h +
  • onlp_psui_info_get() : psui.h
  • @@ -828,6 +939,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_thermali_hw_init() : thermali.h
  • +
  • onlp_thermali_id_validate() +: thermali.h +
  • onlp_thermali_info_get() : thermali.h
  • @@ -841,7 +955,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/globals_type.html b/packages/base/any/onlp/src/onlp/doc/html/globals_type.html index d7c4792f..e8d897a8 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/globals_type.html +++ b/packages/base/any/onlp/src/onlp/doc/html/globals_type.html @@ -132,6 +132,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_module_info_t : module.h
  • +
  • onlp_oid_desc_t +: oids.h +
  • onlp_oid_hdr_t : oids.h
  • @@ -153,6 +156,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_oid_t : oids.h
  • +
  • onlp_oid_table_t +: oids.h +
  • onlp_oid_type_flag_t : oids.h
  • @@ -199,7 +205,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/globals_vars.html b/packages/base/any/onlp/src/onlp/doc/html/globals_vars.html index 23b997ac..0cd9ab77 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/globals_vars.html +++ b/packages/base/any/onlp/src/onlp/doc/html/globals_vars.html @@ -196,7 +196,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__attributei.html b/packages/base/any/onlp/src/onlp/doc/html/group__attributei.html index 20dd2fbe..ec3f2929 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__attributei.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__attributei.html @@ -75,14 +75,285 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    +int onlp_attributei_sw_init (void)
     Initialize the attribute subsystem.
     
    +int onlp_attributei_hw_init (uint32_t flags)
     Initialize the attribute subsystem.
     
    +int onlp_attributei_sw_denit (void)
     Deinitialize the attribute subsystem.
     
    int onlp_attributei_supported (onlp_oid_t oid, const char *attribute)
     Determine whether the OID supports the given attributei. More...
     
    int onlp_attributei_set (onlp_oid_t oid, const char *attribute, void *value)
     Set an attribute on the given OID. More...
     
    int onlp_attributei_get (onlp_oid_t oid, const char *attribute, void **value)
     Get an attribute from the given OID. More...
     
    int onlp_attributei_free (onlp_oid_t oid, const char *attribute, void *value)
     Free an attribute value returned from onlp_attributei_get(). More...
     
    int onlp_attributei_onie_info_get (onlp_oid_t oid, onlp_onie_info_t *rv)
     Get an OID's ONIE attribute. More...
     
    int onlp_attributei_asset_info_get (onlp_oid_t oid, onlp_asset_info_t *rv)
     Get an OID's Asset attribute. More...
     
    +

    Detailed Description

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    int onlp_attributei_asset_info_get (onlp_oid_t oid,
    onlp_asset_info_trv 
    )
    +
    + +

    Get an OID's Asset attribute.

    +
    Parameters
    + + + +
    oidThe target OID.
    rv[out] Receives the Asset information if supported.
    +
    +
    +
    Note
    if rv is NULL you should only return whether the attribute is supported.
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    int onlp_attributei_free (onlp_oid_t oid,
    const char * attribute,
    void * value 
    )
    +
    + +

    Free an attribute value returned from onlp_attributei_get().

    +
    Parameters
    + + + + +
    oidThe OID.
    attributeThe attribute.
    valueThe value.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    int onlp_attributei_get (onlp_oid_t oid,
    const char * attribute,
    void ** value 
    )
    +
    + +

    Get an attribute from the given OID.

    +
    Parameters
    + + + + +
    oidThe OID.
    attributeThe attribute to retrieve.
    [out]valueReceives the attributei's value.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    int onlp_attributei_onie_info_get (onlp_oid_t oid,
    onlp_onie_info_t * rv 
    )
    +
    + +

    Get an OID's ONIE attribute.

    +

    Access to standard attributes.

    Parameters
    + + + +
    oidThe target OID
    rv[out] Receives the ONIE information if supported.
    +
    +
    +
    Note
    if rv is NULL you should only return whether the attribute is supported.
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    int onlp_attributei_set (onlp_oid_t oid,
    const char * attribute,
    void * value 
    )
    +
    + +

    Set an attribute on the given OID.

    +
    Parameters
    + + + + +
    oidThe OID.
    attributeThe attribute name.
    valueA pointer to the value.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    int onlp_attributei_supported (onlp_oid_t oid,
    const char * attribute 
    )
    +
    + +

    Determine whether the OID supports the given attributei.

    +
    Parameters
    + + + +
    oidThe OID.
    attributeThe attribute name.
    +
    +
    + +
    +
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__attributes.html b/packages/base/any/onlp/src/onlp/doc/html/group__attributes.html index 2ceeee06..5fe1fe56 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__attributes.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__attributes.html @@ -98,6 +98,9 @@ Functions int onlp_attribute_hw_init (uint32_t flags)  Hardware initialization of the attribute subsystem. More...
      +int onlp_attribute_sw_denit (void) + Deinitialize the attribute subsystem. More...
    +  int onlp_attribute_supported (onlp_oid_t oid, const char *attribute)  Determine whether the OID supports the given attribute. More...
      @@ -690,6 +693,25 @@ Functions + + + +
    +
    + + + + + + + + +
    int onlp_attribute_sw_denit (void )
    +
    + +

    Deinitialize the attribute subsystem.

    +
    Note
    The primary purpose of this API is to properly deallocate any resources used by the module in order faciliate detection of real resouce leaks.
    +
    @@ -714,7 +736,7 @@ Functions diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__chassisi.html b/packages/base/any/onlp/src/onlp/doc/html/group__chassisi.html index 7d4e4fa4..bc95fba7 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__chassisi.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__chassisi.html @@ -219,7 +219,7 @@ int  diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__fani.html b/packages/base/any/onlp/src/onlp/doc/html/group__fani.html index 5dc1e7c2..f99361cd 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__fani.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__fani.html @@ -94,12 +94,18 @@ int int onlp_fani_sw_denit (void)  Deinitialize the fan software module. More...
      +int onlp_fani_id_validate (onlp_oid_id_t id) + Validate a fan id. More...
    +  int onlp_fani_hdr_get (onlp_oid_id_t id, onlp_oid_hdr_t *hdr)  Retrieve the fan's OID hdr. More...
      int onlp_fani_info_get (onlp_oid_id_t id, onlp_fan_info_t *rv)  Get the information structure for the given fan OID. More...
      +int onlp_fani_caps_get (onlp_oid_id_t id, uint32_t *rv) + Get the fan capabilities. More...
    +  int onlp_fani_rpm_set (onlp_oid_id_t id, int rpm)  Set the fan speed in RPM. More...
      @@ -112,6 +118,41 @@ int 

    Detailed Description

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    int onlp_fani_caps_get (onlp_oid_id_t id,
    uint32_t * rv 
    )
    +
    + +

    Get the fan capabilities.

    +
    Parameters
    + + + +
    idThe fan id.
    [out]rvThe fan capabilities
    +
    +
    + +
    +
    @@ -174,7 +215,7 @@ int 
    Parameters
    - +
    idThe fan OID.
    idThe fan id.
    [out]hdrReceives the OID header.
    @@ -204,6 +245,30 @@ int 
    +
    +
    + + + + + + + + +
    int onlp_fani_id_validate (onlp_oid_id_t id)
    +
    + +

    Validate a fan id.

    +
    Parameters
    + + +
    idThe fan id.
    +
    +
    +
    @@ -233,7 +298,7 @@ int 
    Parameters
    - +
    idThe fan OID
    idThe fan id
    [out]rvReceives the fan information.
    @@ -335,7 +400,7 @@ int 
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__generici.html b/packages/base/any/onlp/src/onlp/doc/html/group__generici.html index d0d0de84..f981f094 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__generici.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__generici.html @@ -219,7 +219,7 @@ int  diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__ledi.html b/packages/base/any/onlp/src/onlp/doc/html/group__ledi.html index 31529c6c..a5f9587f 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__ledi.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__ledi.html @@ -75,14 +75,468 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    + + + + + + + + + + +

    +Macros

    #define ONLP_LED_INFO_ENTRY_INIT(_id, _desc, _parent, _caps)
     
    #define ONLP_CHASSIS_LED_INFO_ENTRY_INIT(_id, _desc, _caps)   ONLP_LED_INFO_ENTRY_INIT(_id, _desc, ONLP_OID_CHASSIS, _caps)
     
    #define ONLP_PSU_LED_INFO_ENTRY_INIT(_id, _desc, _psu_id, _caps)   ONLP_LED_INFO_ENTRY_INIT(_id, _desc, ONLP_PSU_ID_CREATE(_psu_id), _caps)
     
    #define ONLP_FAN_LED_INFO_ENTRY_INIT(_id, _desc, _fan_id, _caps)   ONLP_LED_INFO_ENTRY_INIT(_id, _desc, ONLP_FAN_ID_CREATE(_fan_id), _caps)
     
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    +int onlp_ledi_sw_init (void)
     Software initialization of the LED module.
     
    int onlp_ledi_hw_init (uint32_t flags)
     Hardware initialization of the LED module. More...
     
    int onlp_ledi_sw_denit (void)
     Deinitialize the led software module. More...
     
    int onlp_ledi_id_validate (onlp_oid_id_t id)
     Validate an LED id. More...
     
    int onlp_ledi_hdr_get (onlp_oid_id_t id, onlp_oid_hdr_t *rv)
     Get the LED header. More...
     
    int onlp_ledi_info_get (onlp_oid_id_t id, onlp_led_info_t *rv)
     Get the information for the given LED. More...
     
    int onlp_ledi_caps_get (onlp_oid_id_t id, uint32_t *rv)
     Get the caps for the given LED. More...
     
    int onlp_ledi_mode_set (onlp_oid_id_t id, onlp_led_mode_t mode)
     Set the LED mode. More...
     
    int onlp_ledi_char_set (onlp_oid_id_t id, char c)
     Set the LED character. More...
     
    +

    Detailed Description

    +

    Macro Definition Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    #define ONLP_CHASSIS_LED_INFO_ENTRY_INIT( _id,
     _desc,
     _caps 
    )   ONLP_LED_INFO_ENTRY_INIT(_id, _desc, ONLP_OID_CHASSIS, _caps)
    +
    +

    Initialize a static chassis LED OID entry

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    #define ONLP_FAN_LED_INFO_ENTRY_INIT( _id,
     _desc,
     _fan_id,
     _caps 
    )   ONLP_LED_INFO_ENTRY_INIT(_id, _desc, ONLP_FAN_ID_CREATE(_fan_id), _caps)
    +
    +

    Initialize a static Fan LED OID Entry

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    #define ONLP_LED_INFO_ENTRY_INIT( _id,
     _desc,
     _parent,
     _caps 
    )
    +
    +Value:
    { \
    +
    { \
    +
    .id = ONLP_LED_ID_CREATE(_id), \
    +
    .description = _desc, \
    +
    .poid = ONLP_OID_CHASSIS, \
    +
    .status = ONLP_OID_STATUS_FLAG_PRESENT, \
    +
    }, \
    +
    .caps = _caps, \
    +
    }
    +
    #define ONLP_OID_CHASSIS
    Definition: oids.h:260
    +
    #define ONLP_LED_ID_CREATE(_id)
    Definition: oids.h:159
    +

    Initialize an LED static OID entry

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    #define ONLP_PSU_LED_INFO_ENTRY_INIT( _id,
     _desc,
     _psu_id,
     _caps 
    )   ONLP_LED_INFO_ENTRY_INIT(_id, _desc, ONLP_PSU_ID_CREATE(_psu_id), _caps)
    +
    +

    Initialize a static PSU LED OID Entry

    + +
    +
    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    int onlp_ledi_caps_get (onlp_oid_id_t id,
    uint32_t * rv 
    )
    +
    + +

    Get the caps for the given LED.

    +
    Parameters
    + + + +
    idThe LED ID
    [out]rvReceives the caps.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    int onlp_ledi_char_set (onlp_oid_id_t id,
    char c 
    )
    +
    + +

    Set the LED character.

    +
    Parameters
    + + + +
    idThe LED OID
    cThe character..
    +
    +
    +
    Note
    Only called if the char capability is set.
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    int onlp_ledi_hdr_get (onlp_oid_id_t id,
    onlp_oid_hdr_trv 
    )
    +
    + +

    Get the LED header.

    +
    Parameters
    + + + +
    idThe LED OID
    [out]rvReceives the header.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    int onlp_ledi_hw_init (uint32_t flags)
    +
    + +

    Hardware initialization of the LED module.

    +
    Parameters
    + + +
    flagsThe hardware initialization flags.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    int onlp_ledi_id_validate (onlp_oid_id_t id)
    +
    + +

    Validate an LED id.

    +
    Parameters
    + + +
    idThe id.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    int onlp_ledi_info_get (onlp_oid_id_t id,
    onlp_led_info_trv 
    )
    +
    + +

    Get the information for the given LED.

    +
    Parameters
    + + + +
    idThe LED OID
    [out]rvReceives the LED information.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    int onlp_ledi_mode_set (onlp_oid_id_t id,
    onlp_led_mode_t mode 
    )
    +
    + +

    Set the LED mode.

    +
    Parameters
    + + + +
    idThe LED OID
    modeThe new mode.
    +
    +
    +
    Note
    Only called if the mode is advertised in the LED capabilities.
    + +
    +
    + +
    +
    + + + + + + + + +
    int onlp_ledi_sw_denit (void )
    +
    + +

    Deinitialize the led software module.

    +
    Note
    The primary purpose of this API is to properly deallocate any resources used by the module in order faciliate detection of real resouce leaks.
    + +
    +
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__module-interfaces.html b/packages/base/any/onlp/src/onlp/doc/html/group__module-interfaces.html index be5fc819..4b3646b4 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__module-interfaces.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__module-interfaces.html @@ -93,7 +93,7 @@ Modules
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__modulei.html b/packages/base/any/onlp/src/onlp/doc/html/group__modulei.html index 43a7dede..777c9560 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__modulei.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__modulei.html @@ -219,7 +219,7 @@ int  diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__oid-chassis.html b/packages/base/any/onlp/src/onlp/doc/html/group__oid-chassis.html index b97a2fa4..fb192b2a 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__oid-chassis.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__oid-chassis.html @@ -513,7 +513,7 @@ Functions diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__oid-fan.html b/packages/base/any/onlp/src/onlp/doc/html/group__oid-fan.html index 8ae2cdcb..e9e9d891 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__oid-fan.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__oid-fan.html @@ -159,21 +159,24 @@ int int onlp_fan_sw_denit (void)  Deinitialize the fan software module. More...
      -int onlp_fan_hdr_get (onlp_oid_t id, onlp_oid_hdr_t *hdr) - Retrieve the fan's OID hdr. More...
    -  -int onlp_fan_info_get (onlp_oid_t id, onlp_fan_info_t *rv) - Retrieve fan information. More...
    -  -int onlp_fan_rpm_set (onlp_oid_t id, int rpm) - Set the fan speed in RPMs. More...
    -  -int onlp_fan_percentage_set (onlp_oid_t id, int p) - Set the fan speed in percentage. More...
    -  -int onlp_fan_dir_set (onlp_oid_t id, onlp_fan_dir_t dir) - Set the fan direction. More...
    -  +int onlp_fan_hdr_get (onlp_oid_t oid, onlp_oid_hdr_t *hdr) + Retrieve the fan's OID hdr. More...
    +  +int onlp_fan_info_get (onlp_oid_t oid, onlp_fan_info_t *rv) + Retrieve fan information. More...
    +  +int onlp_fan_caps_get (onlp_oid_t oid, uint32_t *caps) + Retrieve the fan capabilities. More...
    +  +int onlp_fan_rpm_set (onlp_oid_t oid, int rpm) + Set the fan speed in RPMs. More...
    +  +int onlp_fan_percentage_set (onlp_oid_t oid, int p) + Set the fan speed in percentage. More...
    +  +int onlp_fan_dir_set (onlp_oid_t oid, onlp_fan_dir_t dir) + Set the fan direction. More...
    +  int onlp_fan_info_to_user_json (onlp_fan_info_t *info, cJSON **cj, uint32_t flags)  Convert a fan info structure to user JSON. More...
      @@ -414,6 +417,41 @@ Variables

    Enum descriptions.

    +
    + + +
    +
    + + + + + + + + + + + + + + + + + + +
    int onlp_fan_caps_get (onlp_oid_t oid,
    uint32_t * caps 
    )
    +
    + +

    Retrieve the fan capabilities.

    +
    Parameters
    + + + +
    oidThe fan OID.
    [out]capsReceives the fan capabilities.
    +
    +
    +
    @@ -517,7 +555,7 @@ Variables - +
    @@ -525,7 +563,7 @@ Variables - + @@ -544,7 +582,7 @@ Variables

    Set the fan direction.

    Parameters
    int onlp_fan_dir_set ( onlp_oid_t id, oid,
    - +
    idThe fan OID.
    oidThe fan OID.
    dirThe fan direction (B2F or F2B)
    @@ -586,7 +624,7 @@ Variables
    - +
    @@ -594,7 +632,7 @@ Variables - + @@ -613,7 +651,7 @@ Variables

    Retrieve the fan's OID hdr.

    Parameters
    int onlp_fan_hdr_get ( onlp_oid_t id, oid,
    - +
    idThe fan OID.
    oidThe fan OID.
    [out]hdrReceives the OID header.
    @@ -680,7 +718,7 @@ Variables
    - +
    @@ -688,7 +726,7 @@ Variables - + @@ -707,7 +745,7 @@ Variables

    Retrieve fan information.

    Parameters
    int onlp_fan_info_get ( onlp_oid_t id, oid,
    - +
    idThe fan OID.
    oidThe fan OID.
    [out]rvReceives the fan information.
    @@ -799,7 +837,7 @@ Variables
    - +
    @@ -807,7 +845,7 @@ Variables - + @@ -826,7 +864,7 @@ Variables

    Set the fan speed in percentage.

    Parameters
    int onlp_fan_percentage_set ( onlp_oid_t id, oid,
    - +
    idThe fan OID.
    oidThe fan OID.
    pThe percentage.
    @@ -835,7 +873,7 @@ Variables
    - +
    @@ -843,7 +881,7 @@ Variables - + @@ -862,7 +900,7 @@ Variables

    Set the fan speed in RPMs.

    Parameters
    int onlp_fan_rpm_set ( onlp_oid_t id, oid,
    - +
    idThe fan OID.
    oidThe fan OID.
    rpmThe new RPM.
    @@ -946,7 +984,7 @@ Variables
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__oid-generic.html b/packages/base/any/onlp/src/onlp/doc/html/group__oid-generic.html index c3e4af7c..95032182 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__oid-generic.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__oid-generic.html @@ -380,7 +380,7 @@ Functions
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__oid-interfaces.html b/packages/base/any/onlp/src/onlp/doc/html/group__oid-interfaces.html index 8aae5d70..2411ef7f 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__oid-interfaces.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__oid-interfaces.html @@ -94,7 +94,7 @@ Modules diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__oid-led.html b/packages/base/any/onlp/src/onlp/doc/html/group__oid-led.html index de3d2116..a338b93d 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__oid-led.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__oid-led.html @@ -176,18 +176,21 @@ int int onlp_led_sw_denit (void)  Deinitialize the led software module. More...
      -int onlp_led_hdr_get (onlp_oid_t id, onlp_oid_hdr_t *rv) - Get the LED header. More...
    -  -int onlp_led_info_get (onlp_oid_t id, onlp_led_info_t *rv) - Get LED information. More...
    -  -int onlp_led_mode_set (onlp_oid_t id, onlp_led_mode_t mode) - Set the LED mode. More...
    -  -int onlp_led_char_set (onlp_oid_t id, char c) - Set the LED char. More...
    -  +int onlp_led_hdr_get (onlp_oid_t oid, onlp_oid_hdr_t *rv) + Get the LED header. More...
    +  +int onlp_led_info_get (onlp_oid_t oid, onlp_led_info_t *rv) + Get LED information. More...
    +  +int onlp_led_caps_get (onlp_oid_t oid, uint32_t *caps) + Get the LED caps. More...
    +  +int onlp_led_mode_set (onlp_oid_t oid, onlp_led_mode_t mode) + Set the LED mode. More...
    +  +int onlp_led_char_set (onlp_oid_t oid, char c) + Set the LED char. More...
    +  int onlp_led_info_to_user_json (onlp_led_info_t *info, cJSON **cj, uint32_t flags)  Convert an LED info structure to user JSON. More...
      @@ -373,6 +376,41 @@ Variables

    Enum descriptions.

    +
    + + +
    +
    + + + + + + + + + + + + + + + + + + +
    int onlp_led_caps_get (onlp_oid_t oid,
    uint32_t * caps 
    )
    +
    + +

    Get the LED caps.

    +
    Parameters
    + + + +
    oidThe LED OID.
    [out]capsReceives the caps.
    +
    +
    +
    @@ -442,7 +480,7 @@ Variables - +
    @@ -450,7 +488,7 @@ Variables - + @@ -469,7 +507,7 @@ Variables

    Set the LED char.

    Parameters
    int onlp_led_char_set ( onlp_oid_t id, oid,
    - +
    idThe LED OID
    oidThe LED OID
    cThe character.
    @@ -478,7 +516,7 @@ Variables
    - +
    @@ -486,7 +524,7 @@ Variables - + @@ -505,7 +543,7 @@ Variables

    Get the LED header.

    Parameters
    int onlp_led_hdr_get ( onlp_oid_t id, oid,
    - +
    idThe LED OID
    oidThe LED OID
    [out]rvReceives the header.
    @@ -548,7 +586,7 @@ Variables
    - +
    @@ -556,7 +594,7 @@ Variables - + @@ -575,7 +613,7 @@ Variables

    Get LED information.

    Parameters
    int onlp_led_info_get ( onlp_oid_t id, oid,
    - +
    idThe LED OID.
    oidThe LED OID.
    [out]rvReceives the information structure.
    @@ -701,7 +739,7 @@ Variables
    - +
    @@ -709,7 +747,7 @@ Variables - + @@ -728,7 +766,7 @@ Variables

    Set the LED mode.

    Parameters
    int onlp_led_mode_set ( onlp_oid_t id, oid,
    - +
    idThe LED OID.
    oidThe LED OID.
    modeThe mode. .
    @@ -845,7 +883,7 @@ Variables
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__oid-module.html b/packages/base/any/onlp/src/onlp/doc/html/group__oid-module.html index e0795526..21ec8409 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__oid-module.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__oid-module.html @@ -380,7 +380,7 @@ Functions
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__oid-psu.html b/packages/base/any/onlp/src/onlp/doc/html/group__oid-psu.html index f76af89d..abd76453 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__oid-psu.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__oid-psu.html @@ -156,12 +156,12 @@ int int onlp_psu_sw_denit (void)  Deinitialize the psu software module. More...
      -int onlp_psu_hdr_get (onlp_oid_t id, onlp_oid_hdr_t *rv) - Get the PSU's oid header. More...
    -  -int onlp_psu_info_get (onlp_oid_t id, onlp_psu_info_t *rv) - Get the PSU information. More...
    -  +int onlp_psu_hdr_get (onlp_oid_t oid, onlp_oid_hdr_t *rv) + Get the PSU's oid header. More...
    +  +int onlp_psu_info_get (onlp_oid_t oid, onlp_psu_info_t *rv) + Get the PSU information. More...
    +  int onlp_psu_info_to_user_json (onlp_psu_info_t *info, cJSON **cj, uint32_t flags)  Convert a PSU info structure to user JSON. More...
      @@ -481,7 +481,7 @@ Variables - +
    @@ -489,7 +489,7 @@ Variables - + @@ -508,7 +508,7 @@ Variables

    Get the PSU's oid header.

    Parameters
    int onlp_psu_hdr_get ( onlp_oid_t id, oid,
    - +
    idThe PSU OID.
    oidThe PSU OID.
    [out]rvReceives the header.
    @@ -575,7 +575,7 @@ Variables
    - +
    @@ -583,7 +583,7 @@ Variables - + @@ -602,7 +602,7 @@ Variables

    Get the PSU information.

    Parameters
    int onlp_psu_info_get ( onlp_oid_t id, oid,
    - +
    idThe PSU OID.
    oidThe PSU OID.
    [out]rvReceives the information structure.
    @@ -836,7 +836,7 @@ Variables
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__oid-sfp.html b/packages/base/any/onlp/src/onlp/doc/html/group__oid-sfp.html index 0fadfc66..827adc0b 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__oid-sfp.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__oid-sfp.html @@ -1769,7 +1769,7 @@ Variables
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__oid-thermal.html b/packages/base/any/onlp/src/onlp/doc/html/group__oid-thermal.html index 3bfa260f..cac771e6 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__oid-thermal.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__oid-thermal.html @@ -819,7 +819,7 @@ Variables diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__oid-types.html b/packages/base/any/onlp/src/onlp/doc/html/group__oid-types.html index 6e2793e7..46700892 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__oid-types.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__oid-types.html @@ -106,7 +106,7 @@ Modules diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__oid.html b/packages/base/any/onlp/src/onlp/doc/html/group__oid.html index 0898ba59..197bb9c1 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__oid.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__oid.html @@ -206,48 +206,41 @@ Macros   #define ONLP_OID_GENERIC_VALIDATE_GET_ID_NR(_oid, _id)   ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_GENERIC, _oid, _id)   +#define ONLP_OID_ID_VALIDATE_RANGE(_id, _min, _max)   ( (_id) >= (_min) && (_id) <= (_max)) ? ONLP_STATUS_OK : ONLP_STATUS_E_INVALID +  #define ONLP_OID_CHASSIS   ONLP_OID_TYPE_CREATE(ONLP_OID_TYPE_CHASSIS, 1)   #define ONLP_OID_DESC_SIZE   128   - -#define ONLP_OID_TABLE_SIZE   256 +#define ONLP_OID_TABLE_SIZE   256   - -#define ONLP_OID_TABLE_SIZE_BYTES   (sizeof(onlp_oid_t)*ONLP_OID_TABLE_SIZE) +#define ONLP_OID_TABLE_SIZE_BYTES   (sizeof(onlp_oid_t)*ONLP_OID_TABLE_SIZE)   - -#define ONLP_OID_TABLE_COPY(_dst, _src)   memcpy(_dst, _src, ONLP_OID_TABLE_SIZE_BYTES) +#define ONLP_OID_TABLE_COPY(_dst, _src)   memcpy(_dst, _src, ONLP_OID_TABLE_SIZE_BYTES)   - -#define ONLP_OID_TABLE_CLEAR(_table)   memset(_table, 0, ONLP_OID_TABLE_SIZE_BYTES) +#define ONLP_OID_TABLE_CLEAR(_table)   memset(_table, 0, ONLP_OID_TABLE_SIZE_BYTES)   #define ONLP_OID_THERMAL_ENTRY(_id, _desc, _parent_type, _parent_id)   { ONLP_THERMAL_ID_CREATE(_id), _desc, ONLP_OID_TYPE_CREATE(_parent_type, _parent_id) }   #define ONLP_OID_STATUS_FLAGS_GET(_ptr)   (((onlp_oid_hdr_t*)_ptr)->status)   - -#define ONLP_OID_STATUS_FLAG_GET_VALUE(_ptr, _name)   AIM_FLAG_GET_VALUE(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name) +#define ONLP_OID_STATUS_FLAGS_CLR(_ptr)   ONLP_OID_STATUS_FLAGS_GET(_ptr) = 0 +  +#define ONLP_OID_STATUS_FLAG_GET_VALUE(_ptr, _name)   AIM_FLAG_GET_VALUE(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)   - -#define ONLP_OID_STATUS_FLAG_SET_VALUE(_ptr, _name, _value)   AIM_FLAG_SET_VALUE(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name, _value) +#define ONLP_OID_STATUS_FLAG_SET_VALUE(_ptr, _name, _value)   AIM_FLAG_SET_VALUE(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name, _value)   - -#define ONLP_OID_STATUS_FLAG_SET(_ptr, _name)   AIM_FLAG_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name) +#define ONLP_OID_STATUS_FLAG_SET(_ptr, _name)   AIM_FLAG_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)   - -#define ONLP_OID_STATUS_FLAG_CLR(_ptr, _name)   AIM_FLAG_CLR(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name) +#define ONLP_OID_STATUS_FLAG_CLR(_ptr, _name)   AIM_FLAG_CLR(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)   - -#define ONLP_OID_STATUS_FLAG_IS_SET(_ptr, _name)   AIM_FLAG_IS_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name) +#define ONLP_OID_STATUS_FLAG_IS_SET(_ptr, _name)   AIM_FLAG_IS_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)   - -#define ONLP_OID_STATUS_FLAG_NOT_SET(_ptr, _name)   AIM_FLAG_NOT_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name) +#define ONLP_OID_STATUS_FLAG_NOT_SET(_ptr, _name)   AIM_FLAG_NOT_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)   -#define ONLP_OID_PRESENT(_ptr)   ONLP_OID_STATUS_FLAG_IS_SET(_ptr, PRESENT) +#define ONLP_OID_PRESENT(_ptr)   ONLP_OID_STATUS_FLAG_IS_SET(_ptr, PRESENT)   - -#define ONLP_OID_FAILED(_ptr)   ONLP_OID_STATUS_FLAG_IS_SET(_ptr, FAILED) +#define ONLP_OID_FAILED(_ptr)   ONLP_OID_STATUS_FLAG_IS_SET(_ptr, FAILED)   #define ONLP_OID_TABLE_ITER_EXPR(_table, _oidp, _expr)  Iterate over all OIDS in the given table that match the given expression. More...
    @@ -285,11 +278,9 @@ Typedefs   typedef uint32_t onlp_oid_status_flags_t   - -typedef char onlp_oid_desc_t [ONLP_OID_DESC_SIZE] +typedef char onlp_oid_desc_t [ONLP_OID_DESC_SIZE]   - -typedef onlp_oid_t onlp_oid_table_t [ONLP_OID_TABLE_SIZE] +typedef onlp_oid_t onlp_oid_table_t [ONLP_OID_TABLE_SIZE]   typedef struct onlp_oid_hdr_s onlp_oid_hdr_t   @@ -344,37 +335,34 @@ Functions int onlp_oid_info_get (onlp_oid_t oid, onlp_oid_hdr_t **info)  Get the information structure for a given OID. More...
      -int onlp_oid_iterate (onlp_oid_t oid, onlp_oid_type_flags_t types, onlp_oid_iterate_f itf, void *cookie) - Iterate over all platform OIDs. More...
    -  - -int onlp_oid_info_get_all (onlp_oid_t root, onlp_oid_type_flags_t types, uint32_t flags, biglist_t **list) +int onlp_oid_iterate (onlp_oid_t root, onlp_oid_type_flags_t types, onlp_oid_iterate_f itf, void *cookie) + Iterate over all platform OIDs. More...
    +  +int onlp_oid_info_get_all (onlp_oid_t root, onlp_oid_type_flags_t types, uint32_t flags, biglist_t **list) + Iterate over all given OID types and return their info structures. More...
      - -int onlp_oid_hdr_get_all (onlp_oid_t root, onlp_oid_type_flags_t types, uint32_t flags, biglist_t **list) +int onlp_oid_hdr_get_all (onlp_oid_t root, onlp_oid_type_flags_t types, uint32_t flags, biglist_t **list) + Iterate over all given OID types and return their hdr structures. More...
      - -int onlp_oid_get_all_free (biglist_t *list) +int onlp_oid_get_all_free (biglist_t *list) + Free a list returned by onlp_oid_info_get_all() or onlp_oid_hdr_get_all() More...
      int onlp_oid_is_present (onlp_oid_t *oid)  Return whether an OID is present or not.
      - -int onlp_oid_to_str (onlp_oid_t oid, char *rstr) - OID -> String Representation.
    +int onlp_oid_to_str (onlp_oid_t oid, char *rstr)   - -int onlp_oid_to_user_str (onlp_oid_t oid, char *rstr) +int onlp_oid_to_user_str (onlp_oid_t oid, char *rstr)   int onlp_oid_from_str (char *str, onlp_oid_t *roid)  String Represenation -> OID.
      -int onlp_oid_table_to_json (onlp_oid_table_t table, cJSON **cjp) +int onlp_oid_table_to_json (onlp_oid_table_t table, cJSON **cjp)  OID Table -> JSON. More...
      -int onlp_oid_table_from_json (cJSON *cj, onlp_oid_table_t table) +int onlp_oid_table_from_json (cJSON *cj, onlp_oid_table_t table)  JSON -> OID Table. More...
      int onlp_oid_hdr_to_json (onlp_oid_hdr_t *hdr, cJSON **cj, uint32_t flags) @@ -386,15 +374,14 @@ int int onlp_oid_info_to_json (onlp_oid_hdr_t *info, cJSON **cj, uint32_t flags)  OID Info Structure -> JSON. More...
      - -int onlp_oid_to_user_json (onlp_oid_t oid, cJSON **rv, uint32_t flags) - OID -> JSON.
    +int onlp_oid_to_user_json (onlp_oid_t oid, cJSON **rv, uint32_t flags) + OID -> JSON. More...
      - -int onlp_oid_to_json (onlp_oid_t oid, cJSON **rv, uint32_t flags) +int onlp_oid_to_json (onlp_oid_t oid, cJSON **rv, uint32_t flags) + OID -> User JSON. More...
      - -int onlp_oid_from_json (cJSON *cj, onlp_oid_hdr_t **hdr, biglist_t **all, uint32_t flags) +int onlp_oid_from_json (cJSON *cj, onlp_oid_hdr_t **hdr, biglist_t **all, uint32_t flags) + JSON -> OID Information structures. More...
      int onlp_oid_json_verify (onlp_oid_t oid)   @@ -595,6 +582,23 @@ Variables

    All OIDs have user-level description strings:

    +
    + + +
    +
    + + + + + + + + +
    #define ONLP_OID_FAILED( _ptr)   ONLP_OID_STATUS_FLAG_IS_SET(_ptr, FAILED)
    +
    +

    Shortcut - OID has failed.

    +
    @@ -788,6 +792,39 @@ Variables

    Get the ID from an OID

    +
    + + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    #define ONLP_OID_ID_VALIDATE_RANGE( _id,
     _min,
     _max 
    )   ( (_id) >= (_min) && (_id) <= (_max)) ? ONLP_STATUS_OK : ONLP_STATUS_E_INVALID
    +
    +

    Validate an ID is within a given range.

    +
    @@ -1209,11 +1246,11 @@ Variables (   _ptr) -    ONLP_OID_STATUS_FLAG_IS_SET(_ptr, PRESENT) +    ONLP_OID_STATUS_FLAG_IS_SET(_ptr, PRESENT)
    -

    Common Shorthands

    +

    Shortcut - OID is present.

    @@ -1391,6 +1428,174 @@ Variables

    Validate that the given OID is an SFP

    +
    + + +
    +
    + + + + + + + + + + + + + + + + + + +
    #define ONLP_OID_STATUS_FLAG_CLR( _ptr,
     _name 
    )   AIM_FLAG_CLR(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)
    +
    +

    Clear a given flag.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    #define ONLP_OID_STATUS_FLAG_GET_VALUE( _ptr,
     _name 
    )   AIM_FLAG_GET_VALUE(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)
    +
    +

    Get the value of a given flag.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    #define ONLP_OID_STATUS_FLAG_IS_SET( _ptr,
     _name 
    )   AIM_FLAG_IS_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)
    +
    +

    Determine if a flag is set.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    #define ONLP_OID_STATUS_FLAG_NOT_SET( _ptr,
     _name 
    )   AIM_FLAG_NOT_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)
    +
    +

    Determine if a flag is cleared.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    #define ONLP_OID_STATUS_FLAG_SET( _ptr,
     _name 
    )   AIM_FLAG_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)
    +
    +

    Set a given flag.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    #define ONLP_OID_STATUS_FLAG_SET_VALUE( _ptr,
     _name,
     _value 
    )   AIM_FLAG_SET_VALUE(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name, _value)
    +
    +

    Set the value of a given flag.

    +
    @@ -1408,6 +1613,23 @@ Variables

    validator

    +
    + + +
    +
    + + + + + + + + +
    #define ONLP_OID_STATUS_FLAGS_CLR( _ptr)   ONLP_OID_STATUS_FLAGS_GET(_ptr) = 0
    +
    +

    Clear all status flags

    +
    @@ -1425,6 +1647,50 @@ Variables

    Manipulating OID Status Flags

    +
    + + +
    +
    + + + + + + + + +
    #define ONLP_OID_TABLE_CLEAR( _table)   memset(_table, 0, ONLP_OID_TABLE_SIZE_BYTES)
    +
    +

    Clear an OID table.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    #define ONLP_OID_TABLE_COPY( _dst,
     _src 
    )   memcpy(_dst, _src, ONLP_OID_TABLE_SIZE_BYTES)
    +
    +

    Copy an OID table.

    +
    @@ -1491,8 +1757,9 @@ Variables
    -Value:
    for(_oidp = _table; _oidp < (_table+ONLP_OID_TABLE_SIZE); _oidp++) \
    +Value:
    for(_oidp = _table; _oidp < (_table+ONLP_OID_TABLE_SIZE); _oidp++) \
    if( (*_oidp) && (_expr) )
    +
    #define ONLP_OID_TABLE_SIZE
    Definition: oids.h:271

    Iterate over all OIDS in the given table that match the given expression.

    Parameters
    @@ -1546,6 +1813,32 @@ Variables
    +
    +
    + +
    +
    + + + + +
    #define ONLP_OID_TABLE_SIZE   256
    +
    +

    The maximum OID child table size

    + +
    +
    + +
    +
    + + + + +
    #define ONLP_OID_TABLE_SIZE_BYTES   (sizeof(onlp_oid_t)*ONLP_OID_TABLE_SIZE)
    +
    +

    The size of the current OID table

    +
    @@ -1949,6 +2242,19 @@ Variables

    Typedef Documentation

    + +
    +
    + + + + +
    typedef char onlp_oid_desc_t[ONLP_OID_DESC_SIZE]
    +
    +

    OID description array.

    + +
    +
    @@ -2039,6 +2345,19 @@ Variables

    System peripherals are identified by a 32bit OID.

    The First byte is the object-class identifier: Thermal sensor object Fan object PSU object LED object MODULE object etc.. The remaining bytes are the object id.

    +
    +
    + +
    +
    + + + + +
    typedef onlp_oid_t onlp_oid_table_t[ONLP_OID_TABLE_SIZE]
    +
    +

    A table of OIDs

    +
    @@ -2134,6 +2453,79 @@ Variables

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    int onlp_oid_from_json (cJSON * cj,
    onlp_oid_hdr_t ** hdr,
    biglist_t ** all,
    uint32_t flags 
    )
    +
    + +

    JSON -> OID Information structures.

    +
    Parameters
    + + + + + +
    cjThe source JSON structure.
    [out]hdrReceives the information structure.
    [out]allReceives a list of all structures if not NULL and the JSON contains multiple objects.
    flagsThe JSON flags.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    int onlp_oid_get_all_free (biglist_t * list)
    +
    + +

    Free a list returned by onlp_oid_info_get_all() or onlp_oid_hdr_get_all()

    +
    Parameters
    + + +
    listThe list to free.
    +
    +
    + +
    +
    @@ -2202,6 +2594,55 @@ Variables +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    int onlp_oid_hdr_get_all (onlp_oid_t root,
    onlp_oid_type_flags_t types,
    uint32_t flags,
    biglist_t ** list 
    )
    +
    + +

    Iterate over all given OID types and return their hdr structures.

    +
    Parameters
    + + + + + +
    rootThe root OID.
    typesThe OID types filter (optional)
    flagsThe iterator flags.
    [out]listReceives a list of all hdr structures.
    +
    +
    +
    @@ -2279,6 +2720,55 @@ Variables + + + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    int onlp_oid_info_get_all (onlp_oid_t root,
    onlp_oid_type_flags_t types,
    uint32_t flags,
    biglist_t ** list 
    )
    +
    + +

    Iterate over all given OID types and return their info structures.

    +
    Parameters
    + + + + + +
    rootThe root OID.
    typesThe OID types filter (optional)
    flagsThe iterator flags.
    [out]listReceives a list of all info structures.
    +
    +
    +
    @@ -2323,7 +2813,7 @@ Variables - +
    @@ -2331,7 +2821,7 @@ Variables - + @@ -2362,7 +2852,7 @@ Variables

    Iterate over all platform OIDs.

    Parameters
    int onlp_oid_iterate ( onlp_oid_t oid, root,
    - + @@ -2570,7 +3060,7 @@ Variables - + @@ -2599,7 +3089,7 @@ Variables - + @@ -2625,6 +3115,144 @@ Variables + + + +
    +
    +
    oidThe root OID.
    rootThe root OID.
    typesThe OID types filter (optional)
    itfThe iterator function.
    cookieThe cookie.
    onlp_oid_table_t onlp_oid_table_t  table 
    int onlp_oid_table_to_json (onlp_oid_table_t onlp_oid_table_t  table,
    + + + + + + + + + + + + + + + + + + + + + + + +
    int onlp_oid_to_json (onlp_oid_t oid,
    cJSON ** rv,
    uint32_t flags 
    )
    +
    + +

    OID -> User JSON.

    +
    Parameters
    + + + + +
    oidThe OID.
    [out]rvReceives the JSON structure.
    flagsThe format flags.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    int onlp_oid_to_str (onlp_oid_t oid,
    char * rstr 
    )
    +
    +

    OID -> String Representation

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    int onlp_oid_to_user_json (onlp_oid_t oid,
    cJSON ** rv,
    uint32_t flags 
    )
    +
    + +

    OID -> JSON.

    +
    Parameters
    + + + + +
    oidThe OID.
    [out]rvReceives the JSON structure.
    flagsThe format flags.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    int onlp_oid_to_user_str (onlp_oid_t oid,
    char * rstr 
    )
    +
    +

    OID -> User representation.

    +
    @@ -2903,7 +3531,7 @@ Variables diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__onlp-appication.html b/packages/base/any/onlp/src/onlp/doc/html/group__onlp-appication.html index 6d27a12a..24860fbe 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__onlp-appication.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__onlp-appication.html @@ -95,7 +95,7 @@ Modules diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__onlp-config.html b/packages/base/any/onlp/src/onlp/doc/html/group__onlp-config.html index 9e4fc809..e068616f 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__onlp-config.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__onlp-config.html @@ -516,7 +516,7 @@ Variables diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__onlp-main.html b/packages/base/any/onlp/src/onlp/doc/html/group__onlp-main.html index c33542e5..9339d1e7 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__onlp-main.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__onlp-main.html @@ -95,7 +95,7 @@ Modules diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__onlp-platform.html b/packages/base/any/onlp/src/onlp/doc/html/group__onlp-platform.html index 21fef3aa..491e35bd 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__onlp-platform.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__onlp-platform.html @@ -102,13 +102,15 @@ Modules    attributei   + platformi

    Detailed Description

    These document the requires for implementing the platform interfaces.

    diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__onlp-porting.html b/packages/base/any/onlp/src/onlp/doc/html/group__onlp-porting.html index 8955ba09..3cbcebf9 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__onlp-porting.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__onlp-porting.html @@ -82,7 +82,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__platform.html b/packages/base/any/onlp/src/onlp/doc/html/group__platform.html index ae59b2a8..39d3d748 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__platform.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__platform.html @@ -235,7 +235,7 @@ int  diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__platformi.html b/packages/base/any/onlp/src/onlp/doc/html/group__platformi.html new file mode 100644 index 00000000..f1b93127 --- /dev/null +++ b/packages/base/any/onlp/src/onlp/doc/html/group__platformi.html @@ -0,0 +1,249 @@ + + + + + + +ONLP: platformi + + + + + + + + + +
    +
    + + + + + + +
    +
    ONLP +
    +
    Open Network Linux Platform APIs
    +
    +
    + + + + +
    + +
    + All Data Structures Files Functions Variables Typedefs Enumerations Modules Pages
    + + +
    + +
    + +
    + + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    const char * onlp_platformi_get (void)
     Return the name of the the platform implementation. More...
     
    int onlp_platformi_set (const char *platform)
     Set the platform explicitly if necessary. More...
     
    int onlp_platformi_sw_init (void)
     Initialize the platform software module. More...
     
    int onlp_platformi_hw_init (uint32_t flags)
     Platform module hardware initialization. More...
     
    +int onlp_platformi_manage_init (void)
     Initialize the platform manager features.
     
    int onlp_platformi_manage_fans (void)
     Perform necessary platform fan management. More...
     
    int onlp_platformi_manage_leds (void)
     Perform necessary platform LED management. More...
     
    +

    Detailed Description

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    const char* onlp_platformi_get (void )
    +
    + +

    Return the name of the the platform implementation.

    +
    Note
    This will be called prior to any other calls into the platform driver, including the onlp_platformi_sw_init() function below.
    +

    The platform implementation name should match the current ONLP platform name.

    +

    IF the platform implementation name equals the current platform name, initialization will continue.

    +

    If the platform implementation name does not match, the following will be attempted:

    +

    onlp_platformi_set(current_platform_name); If this call is successful, initialization will continue. If this call fails, platform initialization will abort().

    +

    The onlp_platformi_set() function is optional. The onlp_platformi_get() is not optional.

    + +
    +
    + +
    +
    + + + + + + + + +
    int onlp_platformi_hw_init (uint32_t flags)
    +
    + +

    Platform module hardware initialization.

    +
    Parameters
    + + +
    flagsThe initialization flags.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    int onlp_platformi_manage_fans (void )
    +
    + +

    Perform necessary platform fan management.

    +
    Note
    This function should automatically adjust the FAN speeds according to the platform conditions.
    + +
    +
    + +
    +
    + + + + + + + + +
    int onlp_platformi_manage_leds (void )
    +
    + +

    Perform necessary platform LED management.

    +
    Note
    This function should automatically adjust the LED indicators according to the platform conditions.
    + +
    +
    + +
    +
    + + + + + + + + +
    int onlp_platformi_set (const char * platform)
    +
    + +

    Set the platform explicitly if necessary.

    +
    Parameters
    + + +
    platformThe platform name.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    int onlp_platformi_sw_init (void )
    +
    + +

    Initialize the platform software module.

    +
    Note
    This should not touch the hardware.
    + +
    +
    +
    + + + + diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__psui.html b/packages/base/any/onlp/src/onlp/doc/html/group__psui.html index 40806385..cab44ffc 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__psui.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__psui.html @@ -101,6 +101,9 @@ int int onlp_psui_sw_denit (void)  Deinitialize the psu software module. More...
      +int onlp_psui_id_validate (onlp_oid_id_t id) + Validate a PSU OID. More...
    +  int onlp_psui_hdr_get (onlp_oid_id_t id, onlp_oid_hdr_t *rv)  Get the PSU's oid header. More...
      @@ -140,7 +143,7 @@ int  .poid = ONLP_OID_CHASSIS, \
    }, \
    }
    -
    #define ONLP_OID_CHASSIS
    Definition: oids.h:255
    +
    #define ONLP_OID_CHASSIS
    Definition: oids.h:260

    Initialize a static PSU info structure.

    @@ -204,6 +207,30 @@ int  +
    +
    + + + + + + + + +
    int onlp_psui_id_validate (onlp_oid_id_t id)
    +
    + +

    Validate a PSU OID.

    +
    Parameters
    + + +
    idThe id.
    +
    +
    +
    @@ -263,7 +290,7 @@ int  diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__sfpi.html b/packages/base/any/onlp/src/onlp/doc/html/group__sfpi.html index 6d51681b..df95dc79 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__sfpi.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__sfpi.html @@ -861,7 +861,7 @@ An error condition. diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__stdattrs.html b/packages/base/any/onlp/src/onlp/doc/html/group__stdattrs.html index ef81cef0..3891a781 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__stdattrs.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__stdattrs.html @@ -116,7 +116,7 @@ int  diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__system-interfaces.html b/packages/base/any/onlp/src/onlp/doc/html/group__system-interfaces.html index 8c87b6d6..2ec5499c 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__system-interfaces.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__system-interfaces.html @@ -94,7 +94,7 @@ Modules diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__thermali.html b/packages/base/any/onlp/src/onlp/doc/html/group__thermali.html index 13e0f037..ef31e0fe 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__thermali.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__thermali.html @@ -104,6 +104,9 @@ int int onlp_thermali_sw_denit (void)  Deinitialize the thermal software module. More...
      +int onlp_thermali_id_validate (onlp_oid_id_t id) + Validate a thermal oid. More...
    +  int onlp_thermali_hdr_get (onlp_oid_id_t id, onlp_oid_hdr_t *rv)  Retrieve the thermal's oid header. More...
      @@ -208,12 +211,11 @@ int  .description = _desc, \
    .poid = ONLP_OID_CHASSIS, \
    .status = ONLP_OID_STATUS_FLAG_PRESENT, \
    -
    }, \
    -
    .caps = ONLP_THERMAL_CAPS_ALL, \
    -
    }
    +
    }, \
    +
    .caps = ONLP_THERMAL_CAPS_GET_TEMPERATURE, \
    +
    }
    #define ONLP_THERMAL_ID_CREATE(_id)
    Definition: oids.h:153
    -
    #define ONLP_OID_CHASSIS
    Definition: oids.h:255
    -
    #define ONLP_THERMAL_CAPS_ALL
    Definition: thermal.h:55
    +
    #define ONLP_OID_CHASSIS
    Definition: oids.h:260

    This macro should be used in your implementation to declare your static chassis thermal sensors.

    @@ -276,6 +278,30 @@ int  +
    +
    + + + + + + + + +
    int onlp_thermali_id_validate (onlp_oid_id_t id)
    +
    + +

    Validate a thermal oid.

    +
    Parameters
    + + +
    idThe thermal id.
    +
    +
    +
    @@ -335,7 +361,7 @@ int  diff --git a/packages/base/any/onlp/src/onlp/doc/html/index.html b/packages/base/any/onlp/src/onlp/doc/html/index.html index 0cbf3cef..938f7604 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/index.html +++ b/packages/base/any/onlp/src/onlp/doc/html/index.html @@ -89,7 +89,7 @@ Section2 diff --git a/packages/base/any/onlp/src/onlp/doc/html/led_8h.html b/packages/base/any/onlp/src/onlp/doc/html/led_8h.html index 0c339364..24c86d82 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/led_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/led_8h.html @@ -193,18 +193,21 @@ int int onlp_led_sw_denit (void)  Deinitialize the led software module. More...
      -int onlp_led_hdr_get (onlp_oid_t id, onlp_oid_hdr_t *rv) - Get the LED header. More...
    -  -int onlp_led_info_get (onlp_oid_t id, onlp_led_info_t *rv) - Get LED information. More...
    -  -int onlp_led_mode_set (onlp_oid_t id, onlp_led_mode_t mode) - Set the LED mode. More...
    -  -int onlp_led_char_set (onlp_oid_t id, char c) - Set the LED char. More...
    -  +int onlp_led_hdr_get (onlp_oid_t oid, onlp_oid_hdr_t *rv) + Get the LED header. More...
    +  +int onlp_led_info_get (onlp_oid_t oid, onlp_led_info_t *rv) + Get LED information. More...
    +  +int onlp_led_caps_get (onlp_oid_t oid, uint32_t *caps) + Get the LED caps. More...
    +  +int onlp_led_mode_set (onlp_oid_t oid, onlp_led_mode_t mode) + Set the LED mode. More...
    +  +int onlp_led_char_set (onlp_oid_t oid, char c) + Set the LED char. More...
    +  int onlp_led_info_to_user_json (onlp_led_info_t *info, cJSON **cj, uint32_t flags)  Convert an LED info structure to user JSON. More...
      @@ -245,7 +248,7 @@ Variables diff --git a/packages/base/any/onlp/src/onlp/doc/html/led_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/led_8h_source.html index 4e319254..4f788c15 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/led_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/led_8h_source.html @@ -176,102 +176,105 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    107 
    114 int onlp_led_sw_denit(void);
    115 
    -
    121 int onlp_led_hdr_get(onlp_oid_t id, onlp_oid_hdr_t* rv);
    +
    121 int onlp_led_hdr_get(onlp_oid_t oid, onlp_oid_hdr_t* rv);
    122 
    123 
    -
    129 int onlp_led_info_get(onlp_oid_t id, onlp_led_info_t* rv);
    +
    129 int onlp_led_info_get(onlp_oid_t oid, onlp_led_info_t* rv);
    130 
    -
    137 int onlp_led_mode_set(onlp_oid_t id, onlp_led_mode_t mode);
    -
    138 
    -
    139 
    -
    146 int onlp_led_char_set(onlp_oid_t id, char c);
    -
    147 
    -
    154 int onlp_led_info_to_user_json(onlp_led_info_t* info, cJSON** cj, uint32_t flags);
    -
    155 
    -
    162 int onlp_led_info_to_json(onlp_led_info_t* info, cJSON** cj, uint32_t flags);
    -
    163 
    -
    169 int onlp_led_info_from_json(cJSON* cj, onlp_led_info_t* info);
    +
    136 int onlp_led_caps_get(onlp_oid_t oid, uint32_t* caps);
    +
    137 
    +
    144 int onlp_led_mode_set(onlp_oid_t oid, onlp_led_mode_t mode);
    +
    145 
    +
    146 
    +
    153 int onlp_led_char_set(onlp_oid_t oid, char c);
    +
    154 
    +
    161 int onlp_led_info_to_user_json(onlp_led_info_t* info, cJSON** cj, uint32_t flags);
    +
    162 
    +
    169 int onlp_led_info_to_json(onlp_led_info_t* info, cJSON** cj, uint32_t flags);
    170 
    -
    171 /******************************************************************************
    -
    172  *
    -
    173  * Enumeration Support Definitions.
    -
    174  *
    -
    175  * Please do not add additional code beyond this point.
    -
    176  *
    -
    177  *****************************************************************************/
    -
    178 /* <auto.start.enum(tag:led).supportheader> */
    -
    180 const char* onlp_led_caps_name(onlp_led_caps_t e);
    -
    181 
    -
    183 int onlp_led_caps_value(const char* str, onlp_led_caps_t* e, int substr);
    -
    184 
    -
    186 const char* onlp_led_caps_desc(onlp_led_caps_t e);
    -
    187 
    -
    189 int onlp_led_caps_valid(onlp_led_caps_t e);
    -
    190 
    -
    192 #define ONLP_LED_CAPS_VALID(_e) \
    -
    193  (onlp_led_caps_valid((_e)))
    +
    176 int onlp_led_info_from_json(cJSON* cj, onlp_led_info_t* info);
    +
    177 
    +
    178 /******************************************************************************
    +
    179  *
    +
    180  * Enumeration Support Definitions.
    +
    181  *
    +
    182  * Please do not add additional code beyond this point.
    +
    183  *
    +
    184  *****************************************************************************/
    +
    185 /* <auto.start.enum(tag:led).supportheader> */
    +
    187 const char* onlp_led_caps_name(onlp_led_caps_t e);
    +
    188 
    +
    190 int onlp_led_caps_value(const char* str, onlp_led_caps_t* e, int substr);
    +
    191 
    +
    193 const char* onlp_led_caps_desc(onlp_led_caps_t e);
    194 
    -
    196 extern aim_map_si_t onlp_led_caps_map[];
    -
    198 extern aim_map_si_t onlp_led_caps_desc_map[];
    -
    199 
    -
    201 #define ONLP_LED_MODE_STRINGS \
    -
    202 {\
    -
    203  "OFF", \
    -
    204  "AUTO", \
    -
    205  "AUTO_BLINKING", \
    -
    206  "CHAR", \
    -
    207  "RED", \
    -
    208  "RED_BLINKING", \
    -
    209  "ORANGE", \
    -
    210  "ORANGE_BLINKING", \
    -
    211  "YELLOW", \
    -
    212  "YELLOW_BLINKING", \
    -
    213  "GREEN", \
    -
    214  "GREEN_BLINKING", \
    -
    215  "BLUE", \
    -
    216  "BLUE_BLINKING", \
    -
    217  "PURPLE", \
    -
    218  "PURPLE_BLINKING", \
    -
    219 }
    -
    220 
    -
    221 const char* onlp_led_mode_name(onlp_led_mode_t e);
    -
    222 
    -
    224 int onlp_led_mode_value(const char* str, onlp_led_mode_t* e, int substr);
    -
    225 
    -
    227 const char* onlp_led_mode_desc(onlp_led_mode_t e);
    -
    228 
    -
    230 #define ONLP_LED_MODE_VALID(_e) \
    -
    231  ( (0 <= (_e)) && ((_e) <= ONLP_LED_MODE_PURPLE_BLINKING))
    +
    196 int onlp_led_caps_valid(onlp_led_caps_t e);
    +
    197 
    +
    199 #define ONLP_LED_CAPS_VALID(_e) \
    +
    200  (onlp_led_caps_valid((_e)))
    +
    201 
    +
    203 extern aim_map_si_t onlp_led_caps_map[];
    +
    205 extern aim_map_si_t onlp_led_caps_desc_map[];
    +
    206 
    +
    208 #define ONLP_LED_MODE_STRINGS \
    +
    209 {\
    +
    210  "OFF", \
    +
    211  "AUTO", \
    +
    212  "AUTO_BLINKING", \
    +
    213  "CHAR", \
    +
    214  "RED", \
    +
    215  "RED_BLINKING", \
    +
    216  "ORANGE", \
    +
    217  "ORANGE_BLINKING", \
    +
    218  "YELLOW", \
    +
    219  "YELLOW_BLINKING", \
    +
    220  "GREEN", \
    +
    221  "GREEN_BLINKING", \
    +
    222  "BLUE", \
    +
    223  "BLUE_BLINKING", \
    +
    224  "PURPLE", \
    +
    225  "PURPLE_BLINKING", \
    +
    226 }
    +
    227 
    +
    228 const char* onlp_led_mode_name(onlp_led_mode_t e);
    +
    229 
    +
    231 int onlp_led_mode_value(const char* str, onlp_led_mode_t* e, int substr);
    232 
    -
    234 extern aim_map_si_t onlp_led_mode_map[];
    -
    236 extern aim_map_si_t onlp_led_mode_desc_map[];
    -
    237 /* <auto.end.enum(tag:led).supportheader> */
    -
    238 
    -
    239 #endif /* __ONLP_LED_H__ */
    -
    240 /* @} */
    +
    234 const char* onlp_led_mode_desc(onlp_led_mode_t e);
    +
    235 
    +
    237 #define ONLP_LED_MODE_VALID(_e) \
    +
    238  ( (0 <= (_e)) && ((_e) <= ONLP_LED_MODE_PURPLE_BLINKING))
    +
    239 
    +
    241 extern aim_map_si_t onlp_led_mode_map[];
    +
    243 extern aim_map_si_t onlp_led_mode_desc_map[];
    +
    244 /* <auto.end.enum(tag:led).supportheader> */
    +
    245 
    +
    246 #endif /* __ONLP_LED_H__ */
    +
    247 /* @} */
    onlp_led_mode_t mode
    Definition: led.h:91
    onlp_oid_hdr_t hdr
    Definition: led.h:85
    -
    int onlp_led_hdr_get(onlp_oid_t id, onlp_oid_hdr_t *rv)
    Get the LED header.
    +
    int onlp_led_hdr_get(onlp_oid_t oid, onlp_oid_hdr_t *rv)
    Get the LED header.
    int onlp_led_info_to_user_json(onlp_led_info_t *info, cJSON **cj, uint32_t flags)
    Convert an LED info structure to user JSON.
    const char * onlp_led_caps_desc(onlp_led_caps_t e)
    -
    int onlp_led_mode_set(onlp_oid_t id, onlp_led_mode_t mode)
    Set the LED mode.
    +
    int onlp_led_caps_get(onlp_oid_t oid, uint32_t *caps)
    Get the LED caps.
    int onlp_led_info_from_json(cJSON *cj, onlp_led_info_t *info)
    Convert a JSON object to an LED info structure.
    const char * onlp_led_mode_name(onlp_led_mode_t e)
    Object Identifiers.
    int onlp_led_sw_denit(void)
    Deinitialize the led software module.
    uint32_t onlp_oid_t
    Definition: oids.h:52
    const char * onlp_led_caps_name(onlp_led_caps_t e)
    +
    int onlp_led_info_get(onlp_oid_t oid, onlp_led_info_t *rv)
    Get LED information.
    uint32_t caps
    Definition: led.h:88
    const char * onlp_led_mode_desc(onlp_led_mode_t e)
    aim_map_si_t onlp_led_caps_map[]
    +
    int onlp_led_char_set(onlp_oid_t oid, char c)
    Set the LED char.
    onlp_led_caps_e
    Definition: led.h:36
    aim_map_si_t onlp_led_caps_desc_map[]
    +
    int onlp_led_mode_set(onlp_oid_t oid, onlp_led_mode_t mode)
    Set the LED mode.
    int onlp_led_caps_value(const char *str, onlp_led_caps_t *e, int substr)
    aim_map_si_t onlp_led_mode_map[]
    char character
    Definition: led.h:94
    aim_map_si_t onlp_led_mode_desc_map[]
    -
    int onlp_led_char_set(onlp_oid_t id, char c)
    Set the LED char.
    -
    int onlp_led_info_get(onlp_oid_t id, onlp_led_info_t *rv)
    Get LED information.
    int onlp_led_mode_value(const char *str, onlp_led_mode_t *e, int substr)
    enum onlp_led_mode_e onlp_led_mode_t
    int onlp_led_caps_valid(onlp_led_caps_t e)
    @@ -281,12 +284,12 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    enum onlp_led_caps_e onlp_led_caps_t
    struct onlp_led_info_s onlp_led_info_t
    onlp_led_mode_e
    Definition: led.h:56
    -
    Definition: oids.h:282
    +
    Definition: oids.h:296
    int onlp_led_hw_init(uint32_t flags)
    Hardware initialization of the LED module.
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/ledi_8h.html b/packages/base/any/onlp/src/onlp/doc/html/ledi_8h.html new file mode 100644 index 00000000..b0adaba3 --- /dev/null +++ b/packages/base/any/onlp/src/onlp/doc/html/ledi_8h.html @@ -0,0 +1,154 @@ + + + + + + +ONLP: module/inc/onlp/platformi/ledi.h File Reference + + + + + + + + + +
    +
    + + + + + + +
    +
    ONLP +
    +
    Open Network Linux Platform APIs
    +
    +
    + + + + + + + + + +
    + +
    + + +
    +
    + +
    +
    ledi.h File Reference
    +
    +
    + +

    Platform Management Interface. +More...

    +
    #include <onlp/led.h>
    +
    +

    Go to the source code of this file.

    + + + + + + + + + + +

    +Macros

    #define ONLP_LED_INFO_ENTRY_INIT(_id, _desc, _parent, _caps)
     
    #define ONLP_CHASSIS_LED_INFO_ENTRY_INIT(_id, _desc, _caps)   ONLP_LED_INFO_ENTRY_INIT(_id, _desc, ONLP_OID_CHASSIS, _caps)
     
    #define ONLP_PSU_LED_INFO_ENTRY_INIT(_id, _desc, _psu_id, _caps)   ONLP_LED_INFO_ENTRY_INIT(_id, _desc, ONLP_PSU_ID_CREATE(_psu_id), _caps)
     
    #define ONLP_FAN_LED_INFO_ENTRY_INIT(_id, _desc, _fan_id, _caps)   ONLP_LED_INFO_ENTRY_INIT(_id, _desc, ONLP_FAN_ID_CREATE(_fan_id), _caps)
     
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    +int onlp_ledi_sw_init (void)
     Software initialization of the LED module.
     
    int onlp_ledi_hw_init (uint32_t flags)
     Hardware initialization of the LED module. More...
     
    int onlp_ledi_sw_denit (void)
     Deinitialize the led software module. More...
     
    int onlp_ledi_id_validate (onlp_oid_id_t id)
     Validate an LED id. More...
     
    int onlp_ledi_hdr_get (onlp_oid_id_t id, onlp_oid_hdr_t *rv)
     Get the LED header. More...
     
    int onlp_ledi_info_get (onlp_oid_id_t id, onlp_led_info_t *rv)
     Get the information for the given LED. More...
     
    int onlp_ledi_caps_get (onlp_oid_id_t id, uint32_t *rv)
     Get the caps for the given LED. More...
     
    int onlp_ledi_mode_set (onlp_oid_id_t id, onlp_led_mode_t mode)
     Set the LED mode. More...
     
    int onlp_ledi_char_set (onlp_oid_id_t id, char c)
     Set the LED character. More...
     
    +

    Detailed Description

    +

    Platform Management Interface.

    +
    + + + + diff --git a/packages/base/any/onlp/src/onlp/doc/html/ledi_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/ledi_8h_source.html index ed40b137..1919f37f 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/ledi_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/ledi_8h_source.html @@ -89,7 +89,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    ledi.h
    -
    1 /************************************************************
    +Go to the documentation of this file.
    1 /************************************************************
    2  * <bsn.cl fy=2014 v=onl>
    3  *
    4  * Copyright 2014, 2015 Big Switch Networks, Inc.
    @@ -108,57 +108,70 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    17  * License.
    18  *
    19  * </bsn.cl>
    -
    20  ************************************************************
    -
    21  *
    -
    22  * LED Platform Implementation.
    -
    23  *
    -
    24  ***********************************************************/
    -
    25 #ifndef __ONLP_LEDI_H__
    -
    26 #define __ONLP_LEDI_H__
    -
    27 
    -
    28 #include <onlp/led.h>
    -
    29 
    -
    33 int onlp_ledi_sw_init(void);
    -
    34 
    -
    39 int onlp_ledi_hw_init(uint32_t flags);
    -
    40 
    -
    47 int onlp_ledi_sw_denit(void);
    -
    48 
    -
    54 int onlp_ledi_hdr_get(onlp_oid_id_t id, onlp_oid_hdr_t* rv);
    -
    55 
    -
    61 int onlp_ledi_info_get(onlp_oid_id_t id, onlp_led_info_t* rv);
    -
    62 
    -
    69 int onlp_ledi_mode_set(onlp_oid_id_t id, onlp_led_mode_t mode);
    -
    70 
    -
    77 int onlp_ledi_char_set(onlp_oid_id_t id, char c);
    +
    20  ********************************************************/
    +
    28 #ifndef __ONLP_LEDI_H__
    +
    29 #define __ONLP_LEDI_H__
    +
    30 
    +
    31 #include <onlp/led.h>
    +
    32 
    +
    36 int onlp_ledi_sw_init(void);
    +
    37 
    +
    42 int onlp_ledi_hw_init(uint32_t flags);
    +
    43 
    +
    50 int onlp_ledi_sw_denit(void);
    +
    51 
    + +
    57 
    + +
    64 
    + +
    71 
    +
    77 int onlp_ledi_caps_get(onlp_oid_id_t id, uint32_t* rv);
    78 
    -
    79 #define ONLP_LED_INFO_ENTRY_INIT(_id, _desc, _parent, _caps) \
    -
    80  { \
    -
    81  { \
    -
    82  .id = ONLP_LED_ID_CREATE(_id), \
    -
    83  .description = _desc, \
    -
    84  .poid = ONLP_OID_CHASSIS, \
    -
    85  .status = ONLP_OID_STATUS_FLAG_PRESENT, \
    -
    86  }, \
    -
    87  .caps = _caps, \
    -
    88  }
    -
    89 
    -
    90 #define ONLP_CHASSIS_LED_INFO_ENTRY_INIT(_id, _desc, _caps) \
    -
    91  ONLP_LED_INFO_ENTRY_INIT(_id, _desc, ONLP_OID_CHASSIS, _caps)
    -
    92 
    -
    93 #define ONLP_PSU_LED_INFO_ENTRY_INIT(_id, _desc, _psu_id, _caps) \
    -
    94  ONLP_LED_INFO_ENTRY_INIT(_id, _desc, ONLP_PSU_ID_CREATE(_psu_id), _caps)
    -
    95 
    -
    96 #endif /* __ONLP_LED_H__ */
    + +
    86 
    +
    93 int onlp_ledi_char_set(onlp_oid_id_t id, char c);
    +
    94 
    +
    96 #define ONLP_LED_INFO_ENTRY_INIT(_id, _desc, _parent, _caps) \
    +
    97  { \
    +
    98  { \
    +
    99  .id = ONLP_LED_ID_CREATE(_id), \
    +
    100  .description = _desc, \
    +
    101  .poid = ONLP_OID_CHASSIS, \
    +
    102  .status = ONLP_OID_STATUS_FLAG_PRESENT, \
    +
    103  }, \
    +
    104  .caps = _caps, \
    +
    105  }
    +
    106 
    +
    108 #define ONLP_CHASSIS_LED_INFO_ENTRY_INIT(_id, _desc, _caps) \
    +
    109  ONLP_LED_INFO_ENTRY_INIT(_id, _desc, ONLP_OID_CHASSIS, _caps)
    +
    110 
    +
    112 #define ONLP_PSU_LED_INFO_ENTRY_INIT(_id, _desc, _psu_id, _caps) \
    +
    113  ONLP_LED_INFO_ENTRY_INIT(_id, _desc, ONLP_PSU_ID_CREATE(_psu_id), _caps)
    +
    114 
    +
    116 #define ONLP_FAN_LED_INFO_ENTRY_INIT(_id, _desc, _fan_id, _caps) \
    +
    117  ONLP_LED_INFO_ENTRY_INIT(_id, _desc, ONLP_FAN_ID_CREATE(_fan_id), _caps)
    +
    118 
    +
    119 #endif /* __ONLP_LED_H__ */
    +
    120 /* @} */
    +
    int onlp_ledi_info_get(onlp_oid_id_t id, onlp_led_info_t *rv)
    Get the information for the given LED.
    +
    int onlp_ledi_char_set(onlp_oid_id_t id, char c)
    Set the LED character.
    +
    int onlp_ledi_id_validate(onlp_oid_id_t id)
    Validate an LED id.
    uint32_t onlp_oid_id_t
    Definition: oids.h:55
    +
    int onlp_ledi_sw_init(void)
    Software initialization of the LED module.
    +
    int onlp_ledi_caps_get(onlp_oid_id_t id, uint32_t *rv)
    Get the caps for the given LED.
    enum onlp_led_mode_e onlp_led_mode_t
    +
    int onlp_ledi_hw_init(uint32_t flags)
    Hardware initialization of the LED module.
    +
    int onlp_ledi_mode_set(onlp_oid_id_t id, onlp_led_mode_t mode)
    Set the LED mode.
    +
    int onlp_ledi_sw_denit(void)
    Deinitialize the led software module.
    LED Management.
    Definition: led.h:83
    -
    Definition: oids.h:282
    +
    Definition: oids.h:296
    +
    int onlp_ledi_hdr_get(onlp_oid_id_t id, onlp_oid_hdr_t *rv)
    Get the LED header.
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/module_8h.html b/packages/base/any/onlp/src/onlp/doc/html/module_8h.html index 2ded3b2c..3eb519b8 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/module_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/module_8h.html @@ -149,7 +149,7 @@ Functions
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/module_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/module_8h_source.html index c395dda5..ebd1aeb3 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/module_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/module_8h_source.html @@ -154,14 +154,14 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    onlp_oid_hdr_t hdr
    Definition: module.h:43
    int onlp_module_hdr_get(onlp_oid_t oid, onlp_oid_hdr_t *hdr)
    Get the module header structure.
    Module OID Information Structure.
    Definition: module.h:41
    -
    Definition: oids.h:282
    +
    Definition: oids.h:296
    struct onlp_module_info_s onlp_module_info_t
    Module OID Information Structure.
    int onlp_module_sw_denit(void)
    Deinitialize the module software module.
    int onlp_module_info_get(onlp_oid_t oid, onlp_module_info_t *info)
    Get the module info structure.
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/modulei_8h.html b/packages/base/any/onlp/src/onlp/doc/html/modulei_8h.html index 063cf7f0..41327e2c 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/modulei_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/modulei_8h.html @@ -122,7 +122,7 @@ int  diff --git a/packages/base/any/onlp/src/onlp/doc/html/modulei_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/modulei_8h_source.html index 3922ebac..24811345 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/modulei_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/modulei_8h_source.html @@ -134,11 +134,11 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    int onlp_modulei_sw_init(void)
    Software initialization of the Module module.
    int onlp_modulei_hdr_get(onlp_oid_id_t id, onlp_oid_hdr_t *rv)
    Retrieve the module's oid header.
    Module OID Interface.
    -
    Definition: oids.h:282
    +
    Definition: oids.h:296
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/modules.html b/packages/base/any/onlp/src/onlp/doc/html/modules.html index 08dcc324..c804e8c1 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/modules.html +++ b/packages/base/any/onlp/src/onlp/doc/html/modules.html @@ -108,15 +108,16 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');  ledi  generici  attributei - Module Documentation - Compile Time Configuration - Porting Macros + platformi + Module Documentation + Compile Time Configuration + Porting Macros diff --git a/packages/base/any/onlp/src/onlp/doc/html/oids_8h.html b/packages/base/any/onlp/src/onlp/doc/html/oids_8h.html index cd661fec..316d1530 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/oids_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/oids_8h.html @@ -227,48 +227,41 @@ Macros   #define ONLP_OID_GENERIC_VALIDATE_GET_ID_NR(_oid, _id)   ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_GENERIC, _oid, _id)   +#define ONLP_OID_ID_VALIDATE_RANGE(_id, _min, _max)   ( (_id) >= (_min) && (_id) <= (_max)) ? ONLP_STATUS_OK : ONLP_STATUS_E_INVALID +  #define ONLP_OID_CHASSIS   ONLP_OID_TYPE_CREATE(ONLP_OID_TYPE_CHASSIS, 1)   #define ONLP_OID_DESC_SIZE   128   - -#define ONLP_OID_TABLE_SIZE   256 +#define ONLP_OID_TABLE_SIZE   256   - -#define ONLP_OID_TABLE_SIZE_BYTES   (sizeof(onlp_oid_t)*ONLP_OID_TABLE_SIZE) +#define ONLP_OID_TABLE_SIZE_BYTES   (sizeof(onlp_oid_t)*ONLP_OID_TABLE_SIZE)   - -#define ONLP_OID_TABLE_COPY(_dst, _src)   memcpy(_dst, _src, ONLP_OID_TABLE_SIZE_BYTES) +#define ONLP_OID_TABLE_COPY(_dst, _src)   memcpy(_dst, _src, ONLP_OID_TABLE_SIZE_BYTES)   - -#define ONLP_OID_TABLE_CLEAR(_table)   memset(_table, 0, ONLP_OID_TABLE_SIZE_BYTES) +#define ONLP_OID_TABLE_CLEAR(_table)   memset(_table, 0, ONLP_OID_TABLE_SIZE_BYTES)   #define ONLP_OID_THERMAL_ENTRY(_id, _desc, _parent_type, _parent_id)   { ONLP_THERMAL_ID_CREATE(_id), _desc, ONLP_OID_TYPE_CREATE(_parent_type, _parent_id) }   #define ONLP_OID_STATUS_FLAGS_GET(_ptr)   (((onlp_oid_hdr_t*)_ptr)->status)   - -#define ONLP_OID_STATUS_FLAG_GET_VALUE(_ptr, _name)   AIM_FLAG_GET_VALUE(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name) +#define ONLP_OID_STATUS_FLAGS_CLR(_ptr)   ONLP_OID_STATUS_FLAGS_GET(_ptr) = 0 +  +#define ONLP_OID_STATUS_FLAG_GET_VALUE(_ptr, _name)   AIM_FLAG_GET_VALUE(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)   - -#define ONLP_OID_STATUS_FLAG_SET_VALUE(_ptr, _name, _value)   AIM_FLAG_SET_VALUE(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name, _value) +#define ONLP_OID_STATUS_FLAG_SET_VALUE(_ptr, _name, _value)   AIM_FLAG_SET_VALUE(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name, _value)   - -#define ONLP_OID_STATUS_FLAG_SET(_ptr, _name)   AIM_FLAG_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name) +#define ONLP_OID_STATUS_FLAG_SET(_ptr, _name)   AIM_FLAG_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)   - -#define ONLP_OID_STATUS_FLAG_CLR(_ptr, _name)   AIM_FLAG_CLR(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name) +#define ONLP_OID_STATUS_FLAG_CLR(_ptr, _name)   AIM_FLAG_CLR(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)   - -#define ONLP_OID_STATUS_FLAG_IS_SET(_ptr, _name)   AIM_FLAG_IS_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name) +#define ONLP_OID_STATUS_FLAG_IS_SET(_ptr, _name)   AIM_FLAG_IS_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)   - -#define ONLP_OID_STATUS_FLAG_NOT_SET(_ptr, _name)   AIM_FLAG_NOT_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name) +#define ONLP_OID_STATUS_FLAG_NOT_SET(_ptr, _name)   AIM_FLAG_NOT_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)   -#define ONLP_OID_PRESENT(_ptr)   ONLP_OID_STATUS_FLAG_IS_SET(_ptr, PRESENT) +#define ONLP_OID_PRESENT(_ptr)   ONLP_OID_STATUS_FLAG_IS_SET(_ptr, PRESENT)   - -#define ONLP_OID_FAILED(_ptr)   ONLP_OID_STATUS_FLAG_IS_SET(_ptr, FAILED) +#define ONLP_OID_FAILED(_ptr)   ONLP_OID_STATUS_FLAG_IS_SET(_ptr, FAILED)   #define ONLP_OID_TABLE_ITER_EXPR(_table, _oidp, _expr)  Iterate over all OIDS in the given table that match the given expression. More...
    @@ -306,11 +299,9 @@ Typedefs   typedef uint32_t onlp_oid_status_flags_t   - -typedef char onlp_oid_desc_t [ONLP_OID_DESC_SIZE] +typedef char onlp_oid_desc_t [ONLP_OID_DESC_SIZE]   - -typedef onlp_oid_t onlp_oid_table_t [ONLP_OID_TABLE_SIZE] +typedef onlp_oid_t onlp_oid_table_t [ONLP_OID_TABLE_SIZE]   typedef struct onlp_oid_hdr_s onlp_oid_hdr_t   @@ -365,37 +356,34 @@ Functions int onlp_oid_info_get (onlp_oid_t oid, onlp_oid_hdr_t **info)  Get the information structure for a given OID. More...
      -int onlp_oid_iterate (onlp_oid_t oid, onlp_oid_type_flags_t types, onlp_oid_iterate_f itf, void *cookie) - Iterate over all platform OIDs. More...
    -  - -int onlp_oid_info_get_all (onlp_oid_t root, onlp_oid_type_flags_t types, uint32_t flags, biglist_t **list) +int onlp_oid_iterate (onlp_oid_t root, onlp_oid_type_flags_t types, onlp_oid_iterate_f itf, void *cookie) + Iterate over all platform OIDs. More...
    +  +int onlp_oid_info_get_all (onlp_oid_t root, onlp_oid_type_flags_t types, uint32_t flags, biglist_t **list) + Iterate over all given OID types and return their info structures. More...
      - -int onlp_oid_hdr_get_all (onlp_oid_t root, onlp_oid_type_flags_t types, uint32_t flags, biglist_t **list) +int onlp_oid_hdr_get_all (onlp_oid_t root, onlp_oid_type_flags_t types, uint32_t flags, biglist_t **list) + Iterate over all given OID types and return their hdr structures. More...
      - -int onlp_oid_get_all_free (biglist_t *list) +int onlp_oid_get_all_free (biglist_t *list) + Free a list returned by onlp_oid_info_get_all() or onlp_oid_hdr_get_all() More...
      int onlp_oid_is_present (onlp_oid_t *oid)  Return whether an OID is present or not.
      - -int onlp_oid_to_str (onlp_oid_t oid, char *rstr) - OID -> String Representation.
    +int onlp_oid_to_str (onlp_oid_t oid, char *rstr)   - -int onlp_oid_to_user_str (onlp_oid_t oid, char *rstr) +int onlp_oid_to_user_str (onlp_oid_t oid, char *rstr)   int onlp_oid_from_str (char *str, onlp_oid_t *roid)  String Represenation -> OID.
      -int onlp_oid_table_to_json (onlp_oid_table_t table, cJSON **cjp) +int onlp_oid_table_to_json (onlp_oid_table_t table, cJSON **cjp)  OID Table -> JSON. More...
      -int onlp_oid_table_from_json (cJSON *cj, onlp_oid_table_t table) +int onlp_oid_table_from_json (cJSON *cj, onlp_oid_table_t table)  JSON -> OID Table. More...
      int onlp_oid_hdr_to_json (onlp_oid_hdr_t *hdr, cJSON **cj, uint32_t flags) @@ -407,15 +395,14 @@ int int onlp_oid_info_to_json (onlp_oid_hdr_t *info, cJSON **cj, uint32_t flags)  OID Info Structure -> JSON. More...
      - -int onlp_oid_to_user_json (onlp_oid_t oid, cJSON **rv, uint32_t flags) - OID -> JSON.
    +int onlp_oid_to_user_json (onlp_oid_t oid, cJSON **rv, uint32_t flags) + OID -> JSON. More...
      - -int onlp_oid_to_json (onlp_oid_t oid, cJSON **rv, uint32_t flags) +int onlp_oid_to_json (onlp_oid_t oid, cJSON **rv, uint32_t flags) + OID -> User JSON. More...
      - -int onlp_oid_from_json (cJSON *cj, onlp_oid_hdr_t **hdr, biglist_t **all, uint32_t flags) +int onlp_oid_from_json (cJSON *cj, onlp_oid_hdr_t **hdr, biglist_t **all, uint32_t flags) + JSON -> OID Information structures. More...
      int onlp_oid_json_verify (onlp_oid_t oid)   @@ -476,7 +463,7 @@ Variables diff --git a/packages/base/any/onlp/src/onlp/doc/html/oids_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/oids_8h_source.html index b51d52a6..3d5a9c35 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/oids_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/oids_8h_source.html @@ -296,245 +296,267 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    249 
    250 #define ONLP_OID_GENERIC_VALIDATE_GET_ID_NR(_oid, _id) ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_GENERIC, _oid, _id)
    251 
    -
    255 #define ONLP_OID_CHASSIS ONLP_OID_TYPE_CREATE(ONLP_OID_TYPE_CHASSIS, 1)
    +
    252 
    +
    254 #define ONLP_OID_ID_VALIDATE_RANGE(_id, _min, _max) \
    +
    255  ( (_id) >= (_min) && (_id) <= (_max)) ? ONLP_STATUS_OK : ONLP_STATUS_E_INVALID
    256 
    -
    260 #define ONLP_OID_DESC_SIZE 128
    +
    260 #define ONLP_OID_CHASSIS ONLP_OID_TYPE_CREATE(ONLP_OID_TYPE_CHASSIS, 1)
    261 
    -
    262 typedef char onlp_oid_desc_t[ONLP_OID_DESC_SIZE];
    -
    263 
    -
    264 /* fixme */
    -
    265 #define ONLP_OID_TABLE_SIZE 256
    -
    266 typedef onlp_oid_t onlp_oid_table_t[ONLP_OID_TABLE_SIZE];
    -
    267 #define ONLP_OID_TABLE_SIZE_BYTES (sizeof(onlp_oid_t)*ONLP_OID_TABLE_SIZE)
    -
    268 #define ONLP_OID_TABLE_COPY(_dst, _src) memcpy(_dst, _src, ONLP_OID_TABLE_SIZE_BYTES)
    -
    269 #define ONLP_OID_TABLE_CLEAR(_table) memset(_table, 0, ONLP_OID_TABLE_SIZE_BYTES)
    -
    270 
    -
    271 
    -
    275 #define ONLP_OID_THERMAL_ENTRY(_id, _desc, _parent_type, _parent_id) \
    -
    276  { ONLP_THERMAL_ID_CREATE(_id), _desc, ONLP_OID_TYPE_CREATE(_parent_type, _parent_id) }
    -
    277 
    +
    265 #define ONLP_OID_DESC_SIZE 128
    +
    266 
    +
    268 typedef char onlp_oid_desc_t[ONLP_OID_DESC_SIZE];
    +
    269 
    +
    271 #define ONLP_OID_TABLE_SIZE 256
    +
    272 
    +
    274 typedef onlp_oid_t onlp_oid_table_t[ONLP_OID_TABLE_SIZE];
    +
    275 
    +
    277 #define ONLP_OID_TABLE_SIZE_BYTES (sizeof(onlp_oid_t)*ONLP_OID_TABLE_SIZE)
    278 
    -
    282 typedef struct onlp_oid_hdr_s {
    -
    284  onlp_oid_t id;
    -
    286  onlp_oid_desc_t description;
    -
    288  onlp_oid_t poid;
    -
    290  onlp_oid_table_t coids;
    +
    280 #define ONLP_OID_TABLE_COPY(_dst, _src) memcpy(_dst, _src, ONLP_OID_TABLE_SIZE_BYTES)
    +
    281 
    +
    283 #define ONLP_OID_TABLE_CLEAR(_table) memset(_table, 0, ONLP_OID_TABLE_SIZE_BYTES)
    +
    284 
    +
    285 
    +
    289 #define ONLP_OID_THERMAL_ENTRY(_id, _desc, _parent_type, _parent_id) \
    +
    290  { ONLP_THERMAL_ID_CREATE(_id), _desc, ONLP_OID_TYPE_CREATE(_parent_type, _parent_id) }
    291 
    -
    293  onlp_oid_status_flags_t status;
    -
    294 
    -
    295 } onlp_oid_hdr_t;
    -
    296 
    -
    297 
    -
    303 int onlp_oid_hdr_get(onlp_oid_t oid, onlp_oid_hdr_t* hdr);
    -
    304 
    -
    310 int onlp_oid_info_get(onlp_oid_t oid, onlp_oid_hdr_t** info);
    +
    292 
    +
    296 typedef struct onlp_oid_hdr_s {
    +
    298  onlp_oid_t id;
    +
    300  onlp_oid_desc_t description;
    +
    302  onlp_oid_t poid;
    +
    304  onlp_oid_table_t coids;
    +
    305 
    +
    307  onlp_oid_status_flags_t status;
    +
    308 
    +
    309 } onlp_oid_hdr_t;
    +
    310 
    311 
    -
    312 
    -
    316 typedef int (*onlp_oid_iterate_f)(onlp_oid_t oid, void* cookie);
    -
    317 
    -
    325 int onlp_oid_iterate(onlp_oid_t oid, onlp_oid_type_flags_t types,
    -
    326  onlp_oid_iterate_f itf, void* cookie);
    -
    327 
    -
    328 
    -
    329 int onlp_oid_info_get_all(onlp_oid_t root, onlp_oid_type_flags_t types,
    -
    330  uint32_t flags, biglist_t** list);
    +
    317 int onlp_oid_hdr_get(onlp_oid_t oid, onlp_oid_hdr_t* hdr);
    +
    318 
    +
    324 int onlp_oid_info_get(onlp_oid_t oid, onlp_oid_hdr_t** info);
    +
    325 
    +
    326 
    +
    330 typedef int (*onlp_oid_iterate_f)(onlp_oid_t oid, void* cookie);
    331 
    -
    332 int onlp_oid_hdr_get_all(onlp_oid_t root, onlp_oid_type_flags_t types,
    -
    333  uint32_t flags, biglist_t** list);
    -
    334 
    -
    335 int onlp_oid_get_all_free(biglist_t* list);
    -
    336 
    -
    340 #define ONLP_OID_STATUS_FLAGS_GET(_ptr) \
    -
    341  (((onlp_oid_hdr_t*)_ptr)->status)
    +
    339 int onlp_oid_iterate(onlp_oid_t root, onlp_oid_type_flags_t types,
    +
    340  onlp_oid_iterate_f itf, void* cookie);
    +
    341 
    342 
    -
    343 #define ONLP_OID_STATUS_FLAG_GET_VALUE(_ptr, _name) \
    -
    344  AIM_FLAG_GET_VALUE(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)
    -
    345 
    -
    346 #define ONLP_OID_STATUS_FLAG_SET_VALUE(_ptr, _name, _value) \
    -
    347  AIM_FLAG_SET_VALUE(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name, _value)
    -
    348 
    -
    349 #define ONLP_OID_STATUS_FLAG_SET(_ptr, _name) \
    -
    350  AIM_FLAG_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)
    -
    351 
    -
    352 #define ONLP_OID_STATUS_FLAG_CLR(_ptr, _name) \
    -
    353  AIM_FLAG_CLR(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)
    -
    354 
    -
    355 #define ONLP_OID_STATUS_FLAG_IS_SET(_ptr, _name) \
    -
    356  AIM_FLAG_IS_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)
    -
    357 
    -
    358 #define ONLP_OID_STATUS_FLAG_NOT_SET(_ptr, _name) \
    -
    359  AIM_FLAG_NOT_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)
    -
    360 
    -
    364 #define ONLP_OID_PRESENT(_ptr) \
    -
    365  ONLP_OID_STATUS_FLAG_IS_SET(_ptr, PRESENT)
    -
    366 
    -
    367 #define ONLP_OID_FAILED(_ptr) \
    -
    368  ONLP_OID_STATUS_FLAG_IS_SET(_ptr, FAILED)
    -
    369 
    -
    376 #define ONLP_OID_TABLE_ITER_EXPR(_table, _oidp, _expr) \
    -
    377  for(_oidp = _table; _oidp < (_table+ONLP_OID_TABLE_SIZE); _oidp++) \
    -
    378  if( (*_oidp) && (_expr) )
    -
    379 
    -
    385 #define ONLP_OID_TABLE_ITER(_table, _oidp) ONLP_OID_TABLE_ITER_EXPR(_table, _oidp, 1)
    +
    350 int onlp_oid_info_get_all(onlp_oid_t root, onlp_oid_type_flags_t types,
    +
    351  uint32_t flags, biglist_t** list);
    +
    352 
    +
    360 int onlp_oid_hdr_get_all(onlp_oid_t root, onlp_oid_type_flags_t types,
    +
    361  uint32_t flags, biglist_t** list);
    +
    362 
    +
    367 int onlp_oid_get_all_free(biglist_t* list);
    +
    368 
    +
    372 #define ONLP_OID_STATUS_FLAGS_GET(_ptr) \
    +
    373  (((onlp_oid_hdr_t*)_ptr)->status)
    +
    374 
    +
    376 #define ONLP_OID_STATUS_FLAGS_CLR(_ptr) \
    +
    377  ONLP_OID_STATUS_FLAGS_GET(_ptr) = 0
    +
    378 
    +
    380 #define ONLP_OID_STATUS_FLAG_GET_VALUE(_ptr, _name) \
    +
    381  AIM_FLAG_GET_VALUE(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)
    +
    382 
    +
    384 #define ONLP_OID_STATUS_FLAG_SET_VALUE(_ptr, _name, _value) \
    +
    385  AIM_FLAG_SET_VALUE(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name, _value)
    386 
    -
    394 #define ONLP_OID_TABLE_ITER_TYPE(_table, _oidp, _type) \
    -
    395  ONLP_OID_TABLE_ITER_EXPR(_table, _oidp, ONLP_OID_IS_TYPE(ONLP_OID_TYPE_##_type, *_oidp))
    -
    396 
    -
    397 
    -
    401 int onlp_oid_is_present(onlp_oid_t* oid);
    +
    388 #define ONLP_OID_STATUS_FLAG_SET(_ptr, _name) \
    +
    389  AIM_FLAG_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)
    +
    390 
    +
    392 #define ONLP_OID_STATUS_FLAG_CLR(_ptr, _name) \
    +
    393  AIM_FLAG_CLR(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)
    +
    394 
    +
    396 #define ONLP_OID_STATUS_FLAG_IS_SET(_ptr, _name) \
    +
    397  AIM_FLAG_IS_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)
    +
    398 
    +
    400 #define ONLP_OID_STATUS_FLAG_NOT_SET(_ptr, _name) \
    +
    401  AIM_FLAG_NOT_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)
    402 
    -
    403 
    -
    407 int onlp_oid_to_str(onlp_oid_t oid, char* rstr);
    -
    408 int onlp_oid_to_user_str(onlp_oid_t oid, char* rstr);
    -
    409 
    -
    413 int onlp_oid_from_str(char* str, onlp_oid_t* roid);
    -
    414 
    -
    420 int onlp_oid_table_to_json(onlp_oid_table_t table, cJSON** cjp);
    -
    421 
    -
    427 int onlp_oid_table_from_json(cJSON* cj, onlp_oid_table_t table);
    -
    428 
    -
    435 int onlp_oid_hdr_to_json(onlp_oid_hdr_t* hdr, cJSON** cj, uint32_t flags);
    -
    436 
    -
    442 int onlp_oid_hdr_from_json(cJSON* cj, onlp_oid_hdr_t* hdr);
    +
    404 #define ONLP_OID_PRESENT(_ptr) \
    +
    405  ONLP_OID_STATUS_FLAG_IS_SET(_ptr, PRESENT)
    +
    406 
    +
    408 #define ONLP_OID_FAILED(_ptr) \
    +
    409  ONLP_OID_STATUS_FLAG_IS_SET(_ptr, FAILED)
    +
    410 
    +
    417 #define ONLP_OID_TABLE_ITER_EXPR(_table, _oidp, _expr) \
    +
    418  for(_oidp = _table; _oidp < (_table+ONLP_OID_TABLE_SIZE); _oidp++) \
    +
    419  if( (*_oidp) && (_expr) )
    +
    420 
    +
    426 #define ONLP_OID_TABLE_ITER(_table, _oidp) ONLP_OID_TABLE_ITER_EXPR(_table, _oidp, 1)
    +
    427 
    +
    435 #define ONLP_OID_TABLE_ITER_TYPE(_table, _oidp, _type) \
    +
    436  ONLP_OID_TABLE_ITER_EXPR(_table, _oidp, ONLP_OID_IS_TYPE(ONLP_OID_TYPE_##_type, *_oidp))
    +
    437 
    +
    438 
    +
    442 int onlp_oid_is_present(onlp_oid_t* oid);
    443 
    -
    450 int onlp_oid_info_to_json(onlp_oid_hdr_t* info, cJSON** cj, uint32_t flags);
    -
    451 
    -
    455 int onlp_oid_to_user_json(onlp_oid_t oid, cJSON** rv, uint32_t flags);
    -
    456 int onlp_oid_to_json(onlp_oid_t oid, cJSON** rv, uint32_t flags);
    -
    457 int onlp_oid_from_json(cJSON* cj, onlp_oid_hdr_t** hdr, biglist_t** all, uint32_t flags);
    -
    458 
    -
    462 int onlp_oid_json_verify(onlp_oid_t oid);
    -
    463 
    -
    464 /******************************************************************************
    -
    465  *
    -
    466  * Enumeration Support Definitions.
    -
    467  *
    -
    468  * Please do not add additional code beyond this point.
    -
    469  *
    -
    470  *****************************************************************************/
    -
    471 /* <auto.start.enum(tag:oid).supportheader> */
    -
    473 const char* onlp_oid_json_flag_name(onlp_oid_json_flag_t e);
    -
    474 
    -
    476 int onlp_oid_json_flag_value(const char* str, onlp_oid_json_flag_t* e, int substr);
    +
    444 
    +
    446 int onlp_oid_to_str(onlp_oid_t oid, char* rstr);
    +
    447 
    +
    449 int onlp_oid_to_user_str(onlp_oid_t oid, char* rstr);
    +
    450 
    +
    454 int onlp_oid_from_str(char* str, onlp_oid_t* roid);
    +
    455 
    +
    461 int onlp_oid_table_to_json(onlp_oid_table_t table, cJSON** cjp);
    +
    462 
    +
    468 int onlp_oid_table_from_json(cJSON* cj, onlp_oid_table_t table);
    +
    469 
    +
    476 int onlp_oid_hdr_to_json(onlp_oid_hdr_t* hdr, cJSON** cj, uint32_t flags);
    477 
    -
    479 const char* onlp_oid_json_flag_desc(onlp_oid_json_flag_t e);
    -
    480 
    -
    482 int onlp_oid_json_flag_valid(onlp_oid_json_flag_t e);
    -
    483 
    -
    485 #define ONLP_OID_JSON_FLAG_VALID(_e) \
    -
    486  (onlp_oid_json_flag_valid((_e)))
    -
    487 
    -
    489 extern aim_map_si_t onlp_oid_json_flag_map[];
    -
    491 extern aim_map_si_t onlp_oid_json_flag_desc_map[];
    +
    483 int onlp_oid_hdr_from_json(cJSON* cj, onlp_oid_hdr_t* hdr);
    +
    484 
    +
    491 int onlp_oid_info_to_json(onlp_oid_hdr_t* info, cJSON** cj, uint32_t flags);
    492 
    -
    494 const char* onlp_oid_status_flag_name(onlp_oid_status_flag_t e);
    -
    495 
    -
    497 int onlp_oid_status_flag_value(const char* str, onlp_oid_status_flag_t* e, int substr);
    -
    498 
    -
    500 const char* onlp_oid_status_flag_desc(onlp_oid_status_flag_t e);
    -
    501 
    -
    503 int onlp_oid_status_flag_valid(onlp_oid_status_flag_t e);
    -
    504 
    -
    506 #define ONLP_OID_STATUS_FLAG_VALID(_e) \
    -
    507  (onlp_oid_status_flag_valid((_e)))
    +
    499 int onlp_oid_to_user_json(onlp_oid_t oid, cJSON** rv, uint32_t flags);
    +
    500 
    +
    507 int onlp_oid_to_json(onlp_oid_t oid, cJSON** rv, uint32_t flags);
    508 
    -
    510 extern aim_map_si_t onlp_oid_status_flag_map[];
    -
    512 extern aim_map_si_t onlp_oid_status_flag_desc_map[];
    -
    513 
    -
    515 const char* onlp_oid_type_name(onlp_oid_type_t e);
    -
    516 
    -
    518 int onlp_oid_type_value(const char* str, onlp_oid_type_t* e, int substr);
    -
    519 
    -
    521 const char* onlp_oid_type_desc(onlp_oid_type_t e);
    -
    522 
    -
    524 int onlp_oid_type_valid(onlp_oid_type_t e);
    -
    525 
    -
    527 #define ONLP_OID_TYPE_VALID(_e) \
    -
    528  (onlp_oid_type_valid((_e)))
    -
    529 
    -
    531 extern aim_map_si_t onlp_oid_type_map[];
    -
    533 extern aim_map_si_t onlp_oid_type_desc_map[];
    +
    517 int onlp_oid_from_json(cJSON* cj, onlp_oid_hdr_t** hdr, biglist_t** all, uint32_t flags);
    +
    518 
    +
    522 int onlp_oid_json_verify(onlp_oid_t oid);
    +
    523 
    +
    524 /******************************************************************************
    +
    525  *
    +
    526  * Enumeration Support Definitions.
    +
    527  *
    +
    528  * Please do not add additional code beyond this point.
    +
    529  *
    +
    530  *****************************************************************************/
    +
    531 /* <auto.start.enum(tag:oid).supportheader> */
    +
    533 const char* onlp_oid_json_flag_name(onlp_oid_json_flag_t e);
    534 
    -
    536 const char* onlp_oid_type_flag_name(onlp_oid_type_flag_t e);
    +
    536 int onlp_oid_json_flag_value(const char* str, onlp_oid_json_flag_t* e, int substr);
    537 
    -
    539 int onlp_oid_type_flag_value(const char* str, onlp_oid_type_flag_t* e, int substr);
    +
    539 const char* onlp_oid_json_flag_desc(onlp_oid_json_flag_t e);
    540 
    -
    542 const char* onlp_oid_type_flag_desc(onlp_oid_type_flag_t e);
    +
    542 int onlp_oid_json_flag_valid(onlp_oid_json_flag_t e);
    543 
    -
    545 int onlp_oid_type_flag_valid(onlp_oid_type_flag_t e);
    -
    546 
    -
    548 #define ONLP_OID_TYPE_FLAG_VALID(_e) \
    -
    549  (onlp_oid_type_flag_valid((_e)))
    -
    550 
    -
    552 extern aim_map_si_t onlp_oid_type_flag_map[];
    -
    554 extern aim_map_si_t onlp_oid_type_flag_desc_map[];
    -
    555 /* <auto.end.enum(tag:oid).supportheader> */
    -
    556 
    -
    557 #endif /* __ONLP_OID_H__ */
    -
    558 /* @} */
    +
    545 #define ONLP_OID_JSON_FLAG_VALID(_e) \
    +
    546  (onlp_oid_json_flag_valid((_e)))
    +
    547 
    +
    549 extern aim_map_si_t onlp_oid_json_flag_map[];
    +
    551 extern aim_map_si_t onlp_oid_json_flag_desc_map[];
    +
    552 
    +
    554 const char* onlp_oid_status_flag_name(onlp_oid_status_flag_t e);
    +
    555 
    +
    557 int onlp_oid_status_flag_value(const char* str, onlp_oid_status_flag_t* e, int substr);
    +
    558 
    +
    560 const char* onlp_oid_status_flag_desc(onlp_oid_status_flag_t e);
    +
    561 
    +
    563 int onlp_oid_status_flag_valid(onlp_oid_status_flag_t e);
    +
    564 
    +
    566 #define ONLP_OID_STATUS_FLAG_VALID(_e) \
    +
    567  (onlp_oid_status_flag_valid((_e)))
    +
    568 
    +
    570 extern aim_map_si_t onlp_oid_status_flag_map[];
    +
    572 extern aim_map_si_t onlp_oid_status_flag_desc_map[];
    +
    573 
    +
    575 const char* onlp_oid_type_name(onlp_oid_type_t e);
    +
    576 
    +
    578 int onlp_oid_type_value(const char* str, onlp_oid_type_t* e, int substr);
    +
    579 
    +
    581 const char* onlp_oid_type_desc(onlp_oid_type_t e);
    +
    582 
    +
    584 int onlp_oid_type_valid(onlp_oid_type_t e);
    +
    585 
    +
    587 #define ONLP_OID_TYPE_VALID(_e) \
    +
    588  (onlp_oid_type_valid((_e)))
    +
    589 
    +
    591 extern aim_map_si_t onlp_oid_type_map[];
    +
    593 extern aim_map_si_t onlp_oid_type_desc_map[];
    +
    594 
    +
    596 const char* onlp_oid_type_flag_name(onlp_oid_type_flag_t e);
    +
    597 
    +
    599 int onlp_oid_type_flag_value(const char* str, onlp_oid_type_flag_t* e, int substr);
    +
    600 
    +
    602 const char* onlp_oid_type_flag_desc(onlp_oid_type_flag_t e);
    +
    603 
    +
    605 int onlp_oid_type_flag_valid(onlp_oid_type_flag_t e);
    +
    606 
    +
    608 #define ONLP_OID_TYPE_FLAG_VALID(_e) \
    +
    609  (onlp_oid_type_flag_valid((_e)))
    +
    610 
    +
    612 extern aim_map_si_t onlp_oid_type_flag_map[];
    +
    614 extern aim_map_si_t onlp_oid_type_flag_desc_map[];
    +
    615 /* <auto.end.enum(tag:oid).supportheader> */
    +
    616 
    +
    617 #endif /* __ONLP_OID_H__ */
    +
    618 /* @} */
    onlp Configuration Header
    const char * onlp_oid_json_flag_name(onlp_oid_json_flag_t e)
    struct onlp_oid_hdr_s onlp_oid_hdr_t
    int onlp_oid_status_flag_value(const char *str, onlp_oid_status_flag_t *e, int substr)
    -
    onlp_oid_status_flags_t status
    Definition: oids.h:293
    +
    onlp_oid_status_flags_t status
    Definition: oids.h:307
    int onlp_oid_info_get(onlp_oid_t oid, onlp_oid_hdr_t **info)
    Get the information structure for a given OID.
    aim_map_si_t onlp_oid_json_flag_desc_map[]
    +
    onlp_oid_t onlp_oid_table_t[ONLP_OID_TABLE_SIZE]
    Definition: oids.h:274
    int onlp_oid_info_to_json(onlp_oid_hdr_t *info, cJSON **cj, uint32_t flags)
    OID Info Structure -> JSON.
    int onlp_oid_type_flag_value(const char *str, onlp_oid_type_flag_t *e, int substr)
    const char * onlp_oid_status_flag_desc(onlp_oid_status_flag_t e)
    aim_map_si_t onlp_oid_status_flag_map[]
    const char * onlp_oid_type_desc(onlp_oid_type_t e)
    +
    int onlp_oid_iterate(onlp_oid_t root, onlp_oid_type_flags_t types, onlp_oid_iterate_f itf, void *cookie)
    Iterate over all platform OIDs.
    enum onlp_oid_type_flag_e onlp_oid_type_flag_t
    aim_map_si_t onlp_oid_json_flag_map[]
    +
    int onlp_oid_from_json(cJSON *cj, onlp_oid_hdr_t **hdr, biglist_t **all, uint32_t flags)
    JSON -> OID Information structures.
    enum onlp_oid_type_e onlp_oid_type_t
    uint32_t onlp_oid_t
    Definition: oids.h:52
    onlp_oid_status_flag_e
    Definition: oids.h:66
    int onlp_oid_to_user_json(onlp_oid_t oid, cJSON **rv, uint32_t flags)
    OID -> JSON.
    int onlp_oid_hdr_get(onlp_oid_t oid, onlp_oid_hdr_t *hdr)
    Get the OID header for a given OID.
    +
    char onlp_oid_desc_t[ONLP_OID_DESC_SIZE]
    Definition: oids.h:268
    int onlp_oid_hdr_from_json(cJSON *cj, onlp_oid_hdr_t *hdr)
    JSON -> OID Header.
    +
    int onlp_oid_hdr_get_all(onlp_oid_t root, onlp_oid_type_flags_t types, uint32_t flags, biglist_t **list)
    Iterate over all given OID types and return their hdr structures.
    int onlp_oid_type_value(const char *str, onlp_oid_type_t *e, int substr)
    int onlp_oid_type_valid(onlp_oid_type_t e)
    onlp_oid_type_flag_e
    Definition: oids.h:86
    aim_map_si_t onlp_oid_type_flag_desc_map[]
    int onlp_oid_hdr_to_json(onlp_oid_hdr_t *hdr, cJSON **cj, uint32_t flags)
    OID Header -> JSON.
    +
    int onlp_oid_info_get_all(onlp_oid_t root, onlp_oid_type_flags_t types, uint32_t flags, biglist_t **list)
    Iterate over all given OID types and return their info structures.
    int onlp_oid_from_str(char *str, onlp_oid_t *roid)
    String Represenation -> OID.
    aim_map_si_t onlp_oid_type_map[]
    -
    int onlp_oid_to_str(onlp_oid_t oid, char *rstr)
    OID -> String Representation.
    +
    int onlp_oid_to_str(onlp_oid_t oid, char *rstr)
    aim_map_si_t onlp_oid_status_flag_desc_map[]
    int onlp_oid_table_from_json(cJSON *cj, onlp_oid_table_t table)
    JSON -> OID Table.
    uint32_t onlp_oid_id_t
    Definition: oids.h:55
    -
    onlp_oid_table_t coids
    Definition: oids.h:290
    +
    onlp_oid_table_t coids
    Definition: oids.h:304
    +
    int onlp_oid_to_json(onlp_oid_t oid, cJSON **rv, uint32_t flags)
    OID -> User JSON.
    aim_map_si_t onlp_oid_type_flag_map[]
    aim_map_si_t onlp_oid_type_desc_map[]
    enum onlp_oid_status_flag_e onlp_oid_status_flag_t
    -
    onlp_oid_t id
    Definition: oids.h:284
    +
    onlp_oid_t id
    Definition: oids.h:298
    onlp_oid_json_flag_e
    Definition: oids.h:59
    int onlp_oid_table_to_json(onlp_oid_table_t table, cJSON **cjp)
    OID Table -> JSON.
    +
    #define ONLP_OID_TABLE_SIZE
    Definition: oids.h:271
    const char * onlp_oid_json_flag_desc(onlp_oid_json_flag_t e)
    const char * onlp_oid_status_flag_name(onlp_oid_status_flag_t e)
    const char * onlp_oid_type_flag_name(onlp_oid_type_flag_t e)
    uint32_t onlp_oid_status_flags_t
    Definition: oids.h:106
    int onlp_oid_json_flag_valid(onlp_oid_json_flag_t e)
    onlp_oid_type_e
    Definition: oids.h:74
    -
    #define ONLP_OID_DESC_SIZE
    Definition: oids.h:260
    +
    #define ONLP_OID_DESC_SIZE
    Definition: oids.h:265
    int onlp_oid_json_flag_value(const char *str, onlp_oid_json_flag_t *e, int substr)
    -
    onlp_oid_desc_t description
    Definition: oids.h:286
    -
    onlp_oid_t poid
    Definition: oids.h:288
    +
    onlp_oid_desc_t description
    Definition: oids.h:300
    +
    onlp_oid_t poid
    Definition: oids.h:302
    int onlp_oid_json_verify(onlp_oid_t oid)
    int onlp_oid_type_flag_valid(onlp_oid_type_flag_t e)
    uint32_t onlp_oid_type_flags_t
    Definition: oids.h:101
    int onlp_oid_status_flag_valid(onlp_oid_status_flag_t e)
    -
    int onlp_oid_iterate(onlp_oid_t oid, onlp_oid_type_flags_t types, onlp_oid_iterate_f itf, void *cookie)
    Iterate over all platform OIDs.
    +
    int onlp_oid_get_all_free(biglist_t *list)
    Free a list returned by onlp_oid_info_get_all() or onlp_oid_hdr_get_all()
    +
    int onlp_oid_to_user_str(onlp_oid_t oid, char *rstr)
    enum onlp_oid_json_flag_e onlp_oid_json_flag_t
    -
    int(* onlp_oid_iterate_f)(onlp_oid_t oid, void *cookie)
    Definition: oids.h:316
    -
    Definition: oids.h:282
    +
    int(* onlp_oid_iterate_f)(onlp_oid_t oid, void *cookie)
    Definition: oids.h:330
    +
    Definition: oids.h:296
    const char * onlp_oid_type_name(onlp_oid_type_t e)
    int onlp_oid_is_present(onlp_oid_t *oid)
    Return whether an OID is present or not.
    const char * onlp_oid_type_flag_desc(onlp_oid_type_flag_t e)
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/onlp_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/onlp_8h_source.html index 0ffebb08..49bd342c 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/onlp_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/onlp_8h_source.html @@ -209,7 +209,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/onlp__config_8h.html b/packages/base/any/onlp/src/onlp/doc/html/onlp__config_8h.html index 9bec27e8..1cda3e76 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/onlp__config_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/onlp__config_8h.html @@ -176,7 +176,7 @@ Variables diff --git a/packages/base/any/onlp/src/onlp/doc/html/onlp__config_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/onlp__config_8h_source.html index a42199ee..94234a6c 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/onlp__config_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/onlp__config_8h_source.html @@ -231,7 +231,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/onlp__dox_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/onlp__dox_8h_source.html index 0094630b..ddfd4c28 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/onlp__dox_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/onlp__dox_8h_source.html @@ -116,11 +116,11 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    25 #ifndef __ONLP_DOX_H__
    26 #define __ONLP_DOX_H__
    27 
    -
    94 #endif /* __ONLP_DOX_H__ */
    +
    95 #endif /* __ONLP_DOX_H__ */
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/onlp__porting_8h.html b/packages/base/any/onlp/src/onlp/doc/html/onlp__porting_8h.html index c6f9f552..3d8b418a 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/onlp__porting_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/onlp__porting_8h.html @@ -104,7 +104,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/onlp__porting_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/onlp__porting_8h_source.html index e68c95ba..784833f3 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/onlp__porting_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/onlp__porting_8h_source.html @@ -176,7 +176,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/platform_8h.html b/packages/base/any/onlp/src/onlp/doc/html/platform_8h.html index 349eec46..fa73c4ab 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/platform_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/platform_8h.html @@ -143,7 +143,7 @@ int  diff --git a/packages/base/any/onlp/src/onlp/doc/html/platform_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/platform_8h_source.html index 3c4b488e..c76da22f 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/platform_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/platform_8h_source.html @@ -154,7 +154,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/platformi_8h.html b/packages/base/any/onlp/src/onlp/doc/html/platformi_8h.html new file mode 100644 index 00000000..faf7a179 --- /dev/null +++ b/packages/base/any/onlp/src/onlp/doc/html/platformi_8h.html @@ -0,0 +1,136 @@ + + + + + + +ONLP: module/inc/onlp/platformi/platformi.h File Reference + + + + + + + + + +
    +
    + + + + + + +
    +
    ONLP +
    +
    Open Network Linux Platform APIs
    +
    +
    + + + + + + + + + +
    + +
    + + +
    +
    + +
    +
    platformi.h File Reference
    +
    +
    + +

    Platform Management Interface. +More...

    +
    #include <onlp/platform.h>
    +
    +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    const char * onlp_platformi_get (void)
     Return the name of the the platform implementation. More...
     
    int onlp_platformi_set (const char *platform)
     Set the platform explicitly if necessary. More...
     
    int onlp_platformi_sw_init (void)
     Initialize the platform software module. More...
     
    int onlp_platformi_hw_init (uint32_t flags)
     Platform module hardware initialization. More...
     
    +int onlp_platformi_manage_init (void)
     Initialize the platform manager features.
     
    int onlp_platformi_manage_fans (void)
     Perform necessary platform fan management. More...
     
    int onlp_platformi_manage_leds (void)
     Perform necessary platform LED management. More...
     
    +

    Detailed Description

    +

    Platform Management Interface.

    +
    + + + + diff --git a/packages/base/any/onlp/src/onlp/doc/html/platformi_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/platformi_8h_source.html index 0b1ef23c..45048a97 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/platformi_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/platformi_8h_source.html @@ -89,7 +89,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    platformi.h
    -
    1 /************************************************************
    +Go to the documentation of this file.
    1 /************************************************************
    2  * <bsn.cl fy=2014 v=onl>
    3  *
    4  * Copyright 2014, 2015 Big Switch Networks, Inc.
    @@ -108,37 +108,41 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    17  * License.
    18  *
    19  * </bsn.cl>
    -
    20  ************************************************************
    -
    21  *
    -
    22  * Platform Interface.
    -
    23  *
    -
    24  ***********************************************************/
    -
    25 #ifndef __ONLP_PLATFORMI_H__
    -
    26 #define __ONLP_PLATFORMI_H__
    -
    27 
    -
    28 #include <onlp/platform.h>
    -
    29 
    -
    51 const char* onlp_platformi_get(void);
    -
    52 
    -
    53 int onlp_platformi_set(const char* platform);
    -
    54 
    -
    59 int onlp_platformi_sw_init(void);
    -
    60 
    -
    65 int onlp_platformi_hw_init(uint32_t flags);
    -
    66 
    +
    20  ********************************************************/
    +
    28 #ifndef __ONLP_PLATFORMI_H__
    +
    29 #define __ONLP_PLATFORMI_H__
    +
    30 
    +
    31 #include <onlp/platform.h>
    +
    32 
    +
    54 const char* onlp_platformi_get(void);
    +
    55 
    +
    60 int onlp_platformi_set(const char* platform);
    +
    61 
    +
    66 int onlp_platformi_sw_init(void);
    67 
    -
    71 int onlp_platformi_manage_init(void);
    -
    72 
    -
    78 int onlp_platformi_manage_fans(void);
    +
    72 int onlp_platformi_hw_init(uint32_t flags);
    +
    73 
    +
    74 
    +
    79 
    -
    85 int onlp_platformi_manage_leds(void);
    +
    86 
    -
    87 #endif /* __ONLP_PLATFORMI_H__ */
    + +
    93 
    +
    94 #endif /* __ONLP_PLATFORMI_H__ */
    +
    95 /* @} */
    +
    int onlp_platformi_manage_fans(void)
    Perform necessary platform fan management.
    +
    int onlp_platformi_hw_init(uint32_t flags)
    Platform module hardware initialization.
    +
    int onlp_platformi_manage_leds(void)
    Perform necessary platform LED management.
    Platform Management and Initialization.
    +
    int onlp_platformi_manage_init(void)
    Initialize the platform manager features.
    +
    int onlp_platformi_sw_init(void)
    Initialize the platform software module.
    +
    int onlp_platformi_set(const char *platform)
    Set the platform explicitly if necessary.
    +
    const char * onlp_platformi_get(void)
    Return the name of the the platform implementation.
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/psu_8h.html b/packages/base/any/onlp/src/onlp/doc/html/psu_8h.html index 7311dd12..d6bfcce3 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/psu_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/psu_8h.html @@ -173,12 +173,12 @@ int int onlp_psu_sw_denit (void)  Deinitialize the psu software module. More...
      -int onlp_psu_hdr_get (onlp_oid_t id, onlp_oid_hdr_t *rv) - Get the PSU's oid header. More...
    -  -int onlp_psu_info_get (onlp_oid_t id, onlp_psu_info_t *rv) - Get the PSU information. More...
    -  +int onlp_psu_hdr_get (onlp_oid_t oid, onlp_oid_hdr_t *rv) + Get the PSU's oid header. More...
    +  +int onlp_psu_info_get (onlp_oid_t oid, onlp_psu_info_t *rv) + Get the PSU information. More...
    +  int onlp_psu_info_to_user_json (onlp_psu_info_t *info, cJSON **cj, uint32_t flags)  Convert a PSU info structure to user JSON. More...
      @@ -219,7 +219,7 @@ Variables
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/psu_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/psu_8h_source.html index c9298c5d..43233c50 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/psu_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/psu_8h_source.html @@ -172,9 +172,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    114 
    121 int onlp_psu_sw_denit(void);
    122 
    -
    128 int onlp_psu_hdr_get(onlp_oid_t id, onlp_oid_hdr_t* rv);
    +
    128 int onlp_psu_hdr_get(onlp_oid_t oid, onlp_oid_hdr_t* rv);
    129 
    -
    135 int onlp_psu_info_get(onlp_oid_t id, onlp_psu_info_t* rv);
    +
    135 int onlp_psu_info_get(onlp_oid_t oid, onlp_psu_info_t* rv);
    136 
    143 int onlp_psu_info_to_user_json(onlp_psu_info_t* info, cJSON** cj, uint32_t flags);
    144 
    @@ -237,7 +237,6 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    228 /* @} */
    aim_map_si_t onlp_psu_type_map[]
    aim_map_si_t onlp_psu_caps_map[]
    -
    int onlp_psu_hdr_get(onlp_oid_t id, onlp_oid_hdr_t *rv)
    Get the PSU's oid header.
    onlp_psu_type_e
    Definition: psu.h:47
    int mvout
    Definition: psu.h:81
    int onlp_psu_caps_value(const char *str, onlp_psu_caps_t *e, int substr)
    @@ -255,16 +254,17 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    int onlp_psu_sw_init(void)
    Software initialization of the PSU module.
    enum onlp_psu_caps_e onlp_psu_caps_t
    int onlp_psu_info_to_json(onlp_psu_info_t *info, cJSON **cj, uint32_t flags)
    Convert a PSU info structure to JSON.
    +
    int onlp_psu_hdr_get(onlp_oid_t oid, onlp_oid_hdr_t *rv)
    Get the PSU's oid header.
    int onlp_psu_caps_valid(onlp_psu_caps_t e)
    const char * onlp_psu_caps_desc(onlp_psu_caps_t e)
    int onlp_psu_hw_init(uint32_t flags)
    Hardware initialization of the PSU module.
    const char * onlp_psu_caps_name(onlp_psu_caps_t e)
    const char * onlp_psu_type_name(onlp_psu_type_t e)
    +
    int onlp_psu_info_get(onlp_oid_t oid, onlp_psu_info_t *rv)
    Get the PSU information.
    const char * onlp_psu_type_desc(onlp_psu_type_t e)
    int onlp_psu_type_value(const char *str, onlp_psu_type_t *e, int substr)
    int miout
    Definition: psu.h:87
    Definition: psu.h:61
    -
    int onlp_psu_info_get(onlp_oid_t id, onlp_psu_info_t *rv)
    Get the PSU information.
    onlp_oid_hdr_t hdr
    Definition: psu.h:63
    onlp_psu_type_t type
    Definition: psu.h:75
    struct onlp_psu_info_t onlp_psu_info_t
    @@ -272,13 +272,13 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    aim_map_si_t onlp_psu_caps_desc_map[]
    int onlp_psu_info_from_json(cJSON *cj, onlp_psu_info_t *info)
    Convert a JSON object to a PSU info structure.
    aim_map_si_t onlp_psu_type_desc_map[]
    -
    Definition: oids.h:282
    +
    Definition: oids.h:296
    char model[ONLP_CONFIG_INFO_STR_MAX]
    Definition: psu.h:66
    int mpout
    Definition: psu.h:93
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/psui_8h.html b/packages/base/any/onlp/src/onlp/doc/html/psui_8h.html index a5699248..c18d125b 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/psui_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/psui_8h.html @@ -117,6 +117,9 @@ int int onlp_psui_sw_denit (void)  Deinitialize the psu software module. More...
      +int onlp_psui_id_validate (onlp_oid_id_t id) + Validate a PSU OID. More...
    +  int onlp_psui_hdr_get (onlp_oid_id_t id, onlp_oid_hdr_t *rv)  Get the PSU's oid header. More...
      @@ -129,7 +132,7 @@ int  diff --git a/packages/base/any/onlp/src/onlp/doc/html/psui_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/psui_8h_source.html index 110f5dcf..a8ec8a51 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/psui_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/psui_8h_source.html @@ -120,35 +120,38 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    43 
    50 int onlp_psui_sw_denit(void);
    51 
    -
    57 int onlp_psui_hdr_get(onlp_oid_id_t id, onlp_oid_hdr_t* rv);
    -
    58 
    -
    64 int onlp_psui_info_get(onlp_oid_id_t id, onlp_psu_info_t* rv);
    -
    65 
    -
    66 
    -
    70 #define ONLP_CHASSIS_PSU_INFO_ENTRY_INIT(_id, _desc) \
    -
    71  { \
    -
    72  { \
    -
    73  .id = _id, \
    -
    74  .description = _desc, \
    -
    75  .poid = ONLP_OID_CHASSIS, \
    -
    76  }, \
    -
    77  }
    -
    78 
    -
    79 #endif /* __ONLP_PSUI_H__ */
    -
    80 /* @} */
    +
    56 int onlp_psui_id_validate(onlp_oid_id_t id);
    +
    57 
    +
    63 int onlp_psui_hdr_get(onlp_oid_id_t id, onlp_oid_hdr_t* rv);
    +
    64 
    +
    70 int onlp_psui_info_get(onlp_oid_id_t id, onlp_psu_info_t* rv);
    +
    71 
    +
    72 
    +
    76 #define ONLP_CHASSIS_PSU_INFO_ENTRY_INIT(_id, _desc) \
    +
    77  { \
    +
    78  { \
    +
    79  .id = _id, \
    +
    80  .description = _desc, \
    +
    81  .poid = ONLP_OID_CHASSIS, \
    +
    82  }, \
    +
    83  }
    +
    84 
    +
    85 #endif /* __ONLP_PSUI_H__ */
    +
    86 /* @} */
    int onlp_psui_sw_init(void)
    Software initialization of the PSU module.
    int onlp_psui_hdr_get(onlp_oid_id_t id, onlp_oid_hdr_t *rv)
    Get the PSU's oid header.
    int onlp_psui_hw_init(uint32_t flags)
    Hardware initialization of the PSU module.
    int onlp_psui_sw_denit(void)
    Deinitialize the psu software module.
    +
    int onlp_psui_id_validate(onlp_oid_id_t id)
    Validate a PSU OID.
    uint32_t onlp_oid_id_t
    Definition: oids.h:55
    Power Supply Management.
    int onlp_psui_info_get(onlp_oid_id_t id, onlp_psu_info_t *rv)
    Get the information structure for the given PSU.
    Definition: psu.h:61
    -
    Definition: oids.h:282
    +
    Definition: oids.h:296
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/search/all_0.js b/packages/base/any/onlp/src/onlp/doc/html/search/all_0.js index f53091b2..a83ebfc6 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/search/all_0.js +++ b/packages/base/any/onlp/src/onlp/doc/html/search/all_0.js @@ -5,5 +5,6 @@ var searchData= ['additional',['additional',['../structonlp__asset__info__s.html#a0e49ff2e6e3830df96957e9ec9541e27',1,'onlp_asset_info_s']]], ['attribute_2eh',['attribute.h',['../attribute_8h.html',1,'']]], ['attributei',['attributei',['../group__attributei.html',1,'']]], + ['attributei_2eh',['attributei.h',['../attributei_8h.html',1,'']]], ['attribute_20interface',['Attribute Interface',['../group__attributes.html',1,'']]] ]; diff --git a/packages/base/any/onlp/src/onlp/doc/html/search/all_9.js b/packages/base/any/onlp/src/onlp/doc/html/search/all_9.js index 2e50479c..3b9c91bc 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/search/all_9.js +++ b/packages/base/any/onlp/src/onlp/doc/html/search/all_9.js @@ -2,5 +2,6 @@ var searchData= [ ['led_2eh',['led.h',['../led_8h.html',1,'']]], ['ledi',['ledi',['../group__ledi.html',1,'']]], + ['ledi_2eh',['ledi.h',['../ledi_8h.html',1,'']]], ['leds',['LEDs',['../group__oid-led.html',1,'']]] ]; diff --git a/packages/base/any/onlp/src/onlp/doc/html/search/all_c.js b/packages/base/any/onlp/src/onlp/doc/html/search/all_c.js index 3b1a2b66..7de5a9ae 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/search/all_c.js +++ b/packages/base/any/onlp/src/onlp/doc/html/search/all_c.js @@ -26,7 +26,17 @@ var searchData= ['onlp_5fattribute_5fonie_5finfo_5fshow_5fjson',['onlp_attribute_onie_info_show_json',['../group__attributes.html#ga2d33e5eed58c2f38dc91409bc5ec28c4',1,'attribute.h']]], ['onlp_5fattribute_5fset',['onlp_attribute_set',['../group__attributes.html#ga0e904eeda5dae7ae470d0ff9f93a4b99',1,'attribute.h']]], ['onlp_5fattribute_5fsupported',['onlp_attribute_supported',['../group__attributes.html#ga49731406c54119e74b511274b3f5100c',1,'attribute.h']]], + ['onlp_5fattribute_5fsw_5fdenit',['onlp_attribute_sw_denit',['../group__attributes.html#ga698b21499aaad2d039360c6e45fbcd51',1,'attribute.h']]], ['onlp_5fattribute_5fsw_5finit',['onlp_attribute_sw_init',['../group__attributes.html#gae555c656a095566aee6c0826b933193c',1,'attribute.h']]], + ['onlp_5fattributei_5fasset_5finfo_5fget',['onlp_attributei_asset_info_get',['../group__attributei.html#gaacc08958c1915162b5b0e004cfb724a7',1,'attributei.h']]], + ['onlp_5fattributei_5ffree',['onlp_attributei_free',['../group__attributei.html#gaa1ff39f9833ecd101e98b2d6a7f3c81b',1,'attributei.h']]], + ['onlp_5fattributei_5fget',['onlp_attributei_get',['../group__attributei.html#gaaecba73893c74bc1e994710bd4817b3e',1,'attributei.h']]], + ['onlp_5fattributei_5fhw_5finit',['onlp_attributei_hw_init',['../group__attributei.html#ga7d57c3e5b1796cef1f4723f965e6fe33',1,'attributei.h']]], + ['onlp_5fattributei_5fonie_5finfo_5fget',['onlp_attributei_onie_info_get',['../group__attributei.html#gab88e01ee2c3c443b071c063ed80bdd33',1,'attributei.h']]], + ['onlp_5fattributei_5fset',['onlp_attributei_set',['../group__attributei.html#ga31e4c462f109756375c7cf69b1139bba',1,'attributei.h']]], + ['onlp_5fattributei_5fsupported',['onlp_attributei_supported',['../group__attributei.html#gaabb6e25906d2ff17331ac7900cec62d9',1,'attributei.h']]], + ['onlp_5fattributei_5fsw_5fdenit',['onlp_attributei_sw_denit',['../group__attributei.html#ga45f80dcf3c647e77062f0f09abcd8729',1,'attributei.h']]], + ['onlp_5fattributei_5fsw_5finit',['onlp_attributei_sw_init',['../group__attributei.html#ga4e9095cbcec19cf629fc4ce70a644c13',1,'attributei.h']]], ['onlp_5fchassis_5fdebug_5fget_5fjson',['onlp_chassis_debug_get_json',['../group__oid-chassis.html#gae34313148ba9282bb4b07f8ecf643850',1,'chassis.h']]], ['onlp_5fchassis_5fdebug_5fshow',['onlp_chassis_debug_show',['../group__oid-chassis.html#ga42ade9b99df7d9d6c3b0636722afa4db',1,'chassis.h']]], ['onlp_5fchassis_5fenvironment_5fshow',['onlp_chassis_environment_show',['../group__oid-chassis.html#ga339fe374150c13c8daa056333d7725cc',1,'chassis.h']]], @@ -40,6 +50,7 @@ var searchData= ['onlp_5fchassis_5finfo_5ft',['onlp_chassis_info_t',['../group__oid-chassis.html#ga0bfbfeceae612049706739aebe8e2b08',1,'chassis.h']]], ['onlp_5fchassis_5finfo_5fto_5fjson',['onlp_chassis_info_to_json',['../group__oid-chassis.html#ga106d4baebe8dbec41766cd2358ac3145',1,'chassis.h']]], ['onlp_5fchassis_5finfo_5fto_5fuser_5fjson',['onlp_chassis_info_to_user_json',['../group__oid-chassis.html#gafc4d443dd97fd926547d69336249a7a6',1,'chassis.h']]], + ['onlp_5fchassis_5fled_5finfo_5fentry_5finit',['ONLP_CHASSIS_LED_INFO_ENTRY_INIT',['../group__ledi.html#gabb59c61a0dbc132001bb46faa24020c3',1,'ledi.h']]], ['onlp_5fchassis_5fpsu_5finfo_5fentry_5finit',['ONLP_CHASSIS_PSU_INFO_ENTRY_INIT',['../group__psui.html#gaba33f5e3da076bc11c4b0a107ea5bfd6',1,'psui.h']]], ['onlp_5fchassis_5fsw_5fdenit',['onlp_chassis_sw_denit',['../group__oid-chassis.html#ga8ac7640a8bde84f78803c412d20f74f1',1,'chassis.h']]], ['onlp_5fchassis_5fsw_5finit',['onlp_chassis_sw_init',['../group__oid-chassis.html#ga4b5e90ffb94e4801136e233ca89e27d5',1,'chassis.h']]], @@ -78,6 +89,7 @@ var searchData= ['onlp_5ffan_5fcaps_5fdesc',['onlp_fan_caps_desc',['../group__oid-fan.html#gab15da3fde6256a249a718130bcd625b2',1,'fan.h']]], ['onlp_5ffan_5fcaps_5fdesc_5fmap',['onlp_fan_caps_desc_map',['../group__oid-fan.html#gaae011c1d2b8c11d0ff4103d724ba71bf',1,'fan.h']]], ['onlp_5ffan_5fcaps_5fe',['onlp_fan_caps_e',['../group__oid-fan.html#gaa35303e454d5c1ca0f671b449fd90e9b',1,'fan.h']]], + ['onlp_5ffan_5fcaps_5fget',['onlp_fan_caps_get',['../group__oid-fan.html#gad788bd4831436f04edce4b6359afbfb9',1,'fan.h']]], ['onlp_5ffan_5fcaps_5fmap',['onlp_fan_caps_map',['../group__oid-fan.html#ga1c1e380f9acceaf65df901adca662eee',1,'fan.h']]], ['onlp_5ffan_5fcaps_5fname',['onlp_fan_caps_name',['../group__oid-fan.html#ga921eeb1b9362119c7de5138774f17e91',1,'fan.h']]], ['onlp_5ffan_5fcaps_5ft',['onlp_fan_caps_t',['../group__oid-fan.html#ga5248dd4b89567e49e80bb322acf1f164',1,'fan.h']]], @@ -88,32 +100,35 @@ var searchData= ['onlp_5ffan_5fdir_5fe',['onlp_fan_dir_e',['../group__oid-fan.html#gaa08d0df284450a8715a175b410a78cc8',1,'fan.h']]], ['onlp_5ffan_5fdir_5fmap',['onlp_fan_dir_map',['../group__oid-fan.html#ga4b356b7971d13e969659a7f1d52aca59',1,'fan.h']]], ['onlp_5ffan_5fdir_5fname',['onlp_fan_dir_name',['../group__oid-fan.html#ga7d8f1f3db2a0f7486f188e2ca2442165',1,'fan.h']]], - ['onlp_5ffan_5fdir_5fset',['onlp_fan_dir_set',['../group__oid-fan.html#gac1409d618b163077a4b2aea154b88db2',1,'fan.h']]], + ['onlp_5ffan_5fdir_5fset',['onlp_fan_dir_set',['../group__oid-fan.html#gacf1aac93cb4849aef4d13e940755f7b2',1,'fan.h']]], ['onlp_5ffan_5fdir_5fstrings',['ONLP_FAN_DIR_STRINGS',['../group__oid-fan.html#gaa1234770e6e24a018bc85569f6e8166a',1,'fan.h']]], ['onlp_5ffan_5fdir_5ft',['onlp_fan_dir_t',['../group__oid-fan.html#gae3c4db300fd87f5b3d531185f369a0fd',1,'fan.h']]], ['onlp_5ffan_5fdir_5fvalid',['ONLP_FAN_DIR_VALID',['../group__oid-fan.html#ga633419c09c7473bc228350b22db8db7f',1,'fan.h']]], ['onlp_5ffan_5fdir_5fvalue',['onlp_fan_dir_value',['../group__oid-fan.html#ga30e1ad218af51ebc771f7d2c17530b4e',1,'fan.h']]], - ['onlp_5ffan_5fhdr_5fget',['onlp_fan_hdr_get',['../group__oid-fan.html#ga0cff703e958970c3e716e6ac28098f66',1,'fan.h']]], + ['onlp_5ffan_5fhdr_5fget',['onlp_fan_hdr_get',['../group__oid-fan.html#ga0c46e1c68d0fcb17fa47e670f8242623',1,'fan.h']]], ['onlp_5ffan_5fhw_5finit',['onlp_fan_hw_init',['../group__oid-fan.html#gadbaed334e7be33a4801adcf1b45c2d0c',1,'fan.h']]], ['onlp_5ffan_5fid_5fcreate',['ONLP_FAN_ID_CREATE',['../group__oid.html#ga8e6b51420509038b582a32fc75d3fda7',1,'oids.h']]], ['onlp_5ffan_5finfo_5fcap_5fis_5fset',['ONLP_FAN_INFO_CAP_IS_SET',['../group__oid-fan.html#gae79e6808d83d95e4386151d6211b999c',1,'fan.h']]], ['onlp_5ffan_5finfo_5ffrom_5fjson',['onlp_fan_info_from_json',['../group__oid-fan.html#gab4e2b7a1f60efa4dc7e4fc481de35271',1,'fan.h']]], - ['onlp_5ffan_5finfo_5fget',['onlp_fan_info_get',['../group__oid-fan.html#ga34da9a1a3774e74b53ff450c17f34ad2',1,'fan.h']]], + ['onlp_5ffan_5finfo_5fget',['onlp_fan_info_get',['../group__oid-fan.html#ga0939578df6374332931e7c289175a6f6',1,'fan.h']]], ['onlp_5ffan_5finfo_5fs',['onlp_fan_info_s',['../structonlp__fan__info__s.html',1,'']]], ['onlp_5ffan_5finfo_5ft',['onlp_fan_info_t',['../group__oid-fan.html#gafaba5a99a4668595c0442bb1e1ece3bf',1,'fan.h']]], ['onlp_5ffan_5finfo_5fto_5fjson',['onlp_fan_info_to_json',['../group__oid-fan.html#ga3119d07b3fc57e08e7c6d12eb6f785ad',1,'fan.h']]], ['onlp_5ffan_5finfo_5fto_5fuser_5fjson',['onlp_fan_info_to_user_json',['../group__oid-fan.html#ga7bf17f792c118a18e2fdd5bffbcf51b4',1,'fan.h']]], - ['onlp_5ffan_5fpercentage_5fset',['onlp_fan_percentage_set',['../group__oid-fan.html#ga4202cfe1cddb551e583bb36856468902',1,'fan.h']]], - ['onlp_5ffan_5frpm_5fset',['onlp_fan_rpm_set',['../group__oid-fan.html#ga8aadc96f3b61b9264fdb691477ea6c7e',1,'fan.h']]], + ['onlp_5ffan_5fled_5finfo_5fentry_5finit',['ONLP_FAN_LED_INFO_ENTRY_INIT',['../group__ledi.html#ga4535ed79efa96ab0c10fa760cbeb0c13',1,'ledi.h']]], + ['onlp_5ffan_5fpercentage_5fset',['onlp_fan_percentage_set',['../group__oid-fan.html#ga7f15886960ca8b34d3d447265de4235e',1,'fan.h']]], + ['onlp_5ffan_5frpm_5fset',['onlp_fan_rpm_set',['../group__oid-fan.html#gaae2d755e9beade6d56d4283374d44673',1,'fan.h']]], ['onlp_5ffan_5fstatus_5ffailed',['ONLP_FAN_STATUS_FAILED',['../group__oid-fan.html#gaf098846dbdefbecab905e947505bca33',1,'fan.h']]], ['onlp_5ffan_5fstatus_5fmissing',['ONLP_FAN_STATUS_MISSING',['../group__oid-fan.html#ga7f723bf2496882733dae10f963a4a7cc',1,'fan.h']]], ['onlp_5ffan_5fstatus_5fnormal',['ONLP_FAN_STATUS_NORMAL',['../group__oid-fan.html#gaa58b94fed05eb8ff816039478480f92e',1,'fan.h']]], ['onlp_5ffan_5fstatus_5fpresent',['ONLP_FAN_STATUS_PRESENT',['../group__oid-fan.html#gae583f8e97e9b72dfc1eec1e35ef2241e',1,'fan.h']]], ['onlp_5ffan_5fsw_5fdenit',['onlp_fan_sw_denit',['../group__oid-fan.html#gadd7ca7fdc99b5d97acea388928d52ae0',1,'fan.h']]], ['onlp_5ffan_5fsw_5finit',['onlp_fan_sw_init',['../group__oid-fan.html#gaef948ec38bffbb162650cbbad766cf6d',1,'fan.h']]], + ['onlp_5ffani_5fcaps_5fget',['onlp_fani_caps_get',['../group__fani.html#gaf2c0cefc7cf9576cb54a0ca679b5be43',1,'fani.h']]], ['onlp_5ffani_5fdir_5fset',['onlp_fani_dir_set',['../group__fani.html#gae7d7be9181bec187f8d6b84bb093c6fd',1,'fani.h']]], ['onlp_5ffani_5fhdr_5fget',['onlp_fani_hdr_get',['../group__fani.html#gaadf65a5e35759bf0178e2a58067e8ac4',1,'fani.h']]], ['onlp_5ffani_5fhw_5finit',['onlp_fani_hw_init',['../group__fani.html#ga97678f1bb8c068bbc43f9fb3c921579f',1,'fani.h']]], + ['onlp_5ffani_5fid_5fvalidate',['onlp_fani_id_validate',['../group__fani.html#ga724518aeb17d57b47ed7ce3dc99b1eb7',1,'fani.h']]], ['onlp_5ffani_5finfo_5fget',['onlp_fani_info_get',['../group__fani.html#gac5cdbba1d0aba261d5b23d1680972b7c',1,'fani.h']]], ['onlp_5ffani_5fpercentage_5fset',['onlp_fani_percentage_set',['../group__fani.html#ga587beb237351298776775cf6261193de',1,'fani.h']]], ['onlp_5ffani_5frpm_5fset',['onlp_fani_rpm_set',['../group__fani.html#ga200ea1d0ae5d67e60240a605498e5a6e',1,'fani.h']]], @@ -138,17 +153,19 @@ var searchData= ['onlp_5fled_5fcaps_5fdesc',['onlp_led_caps_desc',['../group__oid-led.html#gaaf41313dcfdbb0cdde99e248ca055b77',1,'led.h']]], ['onlp_5fled_5fcaps_5fdesc_5fmap',['onlp_led_caps_desc_map',['../group__oid-led.html#ga00e008cec6186da03a466eca835e4023',1,'led.h']]], ['onlp_5fled_5fcaps_5fe',['onlp_led_caps_e',['../group__oid-led.html#ga52beae08f5bad6f90b9e9c590445c41a',1,'led.h']]], + ['onlp_5fled_5fcaps_5fget',['onlp_led_caps_get',['../group__oid-led.html#ga1705ebda784d0501d9d08c504dec083f',1,'led.h']]], ['onlp_5fled_5fcaps_5fmap',['onlp_led_caps_map',['../group__oid-led.html#ga4be1b0683745e93f1d0e64227b69337c',1,'led.h']]], ['onlp_5fled_5fcaps_5fname',['onlp_led_caps_name',['../group__oid-led.html#gab101123b97271b6c50da64f063ce2828',1,'led.h']]], ['onlp_5fled_5fcaps_5ft',['onlp_led_caps_t',['../group__oid-led.html#gae3a76402a7e442a610689b63f77f889c',1,'led.h']]], ['onlp_5fled_5fcaps_5fvalid',['ONLP_LED_CAPS_VALID',['../group__oid-led.html#gab798a7b75562474eb9884dd66a8174b8',1,'ONLP_LED_CAPS_VALID(): led.h'],['../group__oid-led.html#gaee0c3cbe12d548c8b5d2f4e2cee3dd63',1,'onlp_led_caps_valid(onlp_led_caps_t e): led.h']]], ['onlp_5fled_5fcaps_5fvalue',['onlp_led_caps_value',['../group__oid-led.html#gaa1db04c7e0f80ee0d1437706c5d5d509',1,'led.h']]], - ['onlp_5fled_5fchar_5fset',['onlp_led_char_set',['../group__oid-led.html#gaf07101a3ab41b715353ad3226c2d5a82',1,'led.h']]], - ['onlp_5fled_5fhdr_5fget',['onlp_led_hdr_get',['../group__oid-led.html#ga7e754636257160be6fe2f3a8b7bdec76',1,'led.h']]], + ['onlp_5fled_5fchar_5fset',['onlp_led_char_set',['../group__oid-led.html#gaaa115f1dece6e6f2ae5b91f22d8c0285',1,'led.h']]], + ['onlp_5fled_5fhdr_5fget',['onlp_led_hdr_get',['../group__oid-led.html#ga53165ca64c6a2982aef41aca06c483a6',1,'led.h']]], ['onlp_5fled_5fhw_5finit',['onlp_led_hw_init',['../group__oid-led.html#gab10b338ace2bcf68eac58daa1d8f62c5',1,'led.h']]], ['onlp_5fled_5fid_5fcreate',['ONLP_LED_ID_CREATE',['../group__oid.html#ga25c38d86a2153230f5016cfd527aee07',1,'oids.h']]], + ['onlp_5fled_5finfo_5fentry_5finit',['ONLP_LED_INFO_ENTRY_INIT',['../group__ledi.html#ga16f79f7d1bad6cc6abecf2f06dc277ec',1,'ledi.h']]], ['onlp_5fled_5finfo_5ffrom_5fjson',['onlp_led_info_from_json',['../group__oid-led.html#gabca22ca2fb17f5680744703a11ea0495',1,'led.h']]], - ['onlp_5fled_5finfo_5fget',['onlp_led_info_get',['../group__oid-led.html#gaae644b2c5d0aee5d14ce7878b76b019f',1,'led.h']]], + ['onlp_5fled_5finfo_5fget',['onlp_led_info_get',['../group__oid-led.html#ga6d31fcabe06bbb1bd7e9a45266f11fb6',1,'led.h']]], ['onlp_5fled_5finfo_5fs',['onlp_led_info_s',['../structonlp__led__info__s.html',1,'']]], ['onlp_5fled_5finfo_5ft',['onlp_led_info_t',['../group__oid-led.html#ga2321afb93c45d03f1d950c53ca1b3e1d',1,'led.h']]], ['onlp_5fled_5finfo_5fto_5fjson',['onlp_led_info_to_json',['../group__oid-led.html#ga311a7e9fe75add6a5cd8982ebfe455a5',1,'led.h']]], @@ -158,13 +175,22 @@ var searchData= ['onlp_5fled_5fmode_5fe',['onlp_led_mode_e',['../group__oid-led.html#gad1fad4b641eca2d277999706c947fe83',1,'led.h']]], ['onlp_5fled_5fmode_5fmap',['onlp_led_mode_map',['../group__oid-led.html#ga60376015f0bed1e1c71c9a8dde6cd6d5',1,'led.h']]], ['onlp_5fled_5fmode_5fname',['onlp_led_mode_name',['../group__oid-led.html#ga1ef0a41cc4cff5cfc027e270298424c7',1,'led.h']]], - ['onlp_5fled_5fmode_5fset',['onlp_led_mode_set',['../group__oid-led.html#gaa071fbbace5f46da4c885cf992a0494b',1,'led.h']]], + ['onlp_5fled_5fmode_5fset',['onlp_led_mode_set',['../group__oid-led.html#ga7512a0d4eea0f86030928f6a82f7ed83',1,'led.h']]], ['onlp_5fled_5fmode_5fstrings',['ONLP_LED_MODE_STRINGS',['../group__oid-led.html#ga8bc04968373b8114e1c42f77563cc5fe',1,'led.h']]], ['onlp_5fled_5fmode_5ft',['onlp_led_mode_t',['../group__oid-led.html#ga4f3ff42e0e51b11a8049bb735e81680b',1,'led.h']]], ['onlp_5fled_5fmode_5fvalid',['ONLP_LED_MODE_VALID',['../group__oid-led.html#gae8b8c27c6c52359304d4a026f33d2962',1,'led.h']]], ['onlp_5fled_5fmode_5fvalue',['onlp_led_mode_value',['../group__oid-led.html#gaa933a4981848d508d2d27cf34a456820',1,'led.h']]], ['onlp_5fled_5fsw_5fdenit',['onlp_led_sw_denit',['../group__oid-led.html#ga183de8de9b4d262bb57e6bbc10c8d7fa',1,'led.h']]], ['onlp_5fled_5fsw_5finit',['onlp_led_sw_init',['../group__oid-led.html#ga8780a120f66a293c095de90c3399c6a0',1,'led.h']]], + ['onlp_5fledi_5fcaps_5fget',['onlp_ledi_caps_get',['../group__ledi.html#gae6d88c49f8174ded8f642cd21ffbdc30',1,'ledi.h']]], + ['onlp_5fledi_5fchar_5fset',['onlp_ledi_char_set',['../group__ledi.html#gac56e81fc85142652444010936f61bdcb',1,'ledi.h']]], + ['onlp_5fledi_5fhdr_5fget',['onlp_ledi_hdr_get',['../group__ledi.html#ga9b4078166857dbe4be51115cff7c6c41',1,'ledi.h']]], + ['onlp_5fledi_5fhw_5finit',['onlp_ledi_hw_init',['../group__ledi.html#ga86c339967bb328f57c14d8145cc33bd2',1,'ledi.h']]], + ['onlp_5fledi_5fid_5fvalidate',['onlp_ledi_id_validate',['../group__ledi.html#ga7a9062bf9279f6cfe8a492e8c39688d2',1,'ledi.h']]], + ['onlp_5fledi_5finfo_5fget',['onlp_ledi_info_get',['../group__ledi.html#gacfdd1547137932b756e9fc5e30aa83b4',1,'ledi.h']]], + ['onlp_5fledi_5fmode_5fset',['onlp_ledi_mode_set',['../group__ledi.html#ga817c7aa9a7472dd94af002c9706324dc',1,'ledi.h']]], + ['onlp_5fledi_5fsw_5fdenit',['onlp_ledi_sw_denit',['../group__ledi.html#ga5439d6d2efedec0deedcf9b13852d2af',1,'ledi.h']]], + ['onlp_5fledi_5fsw_5finit',['onlp_ledi_sw_init',['../group__ledi.html#gae8a2c938a73331e4dbf2231561af340b',1,'ledi.h']]], ['onlp_5fmodule_5fhdr_5fget',['onlp_module_hdr_get',['../group__oid-module.html#gac1703816dc97c5bc733eaefd64274405',1,'module.h']]], ['onlp_5fmodule_5fhw_5finit',['onlp_module_hw_init',['../group__oid-module.html#ga4eb92a50197927c4073ad9834f63313f',1,'module.h']]], ['onlp_5fmodule_5fid_5fcreate',['ONLP_MODULE_ID_CREATE',['../group__oid.html#ga002ebcbfeecd6f48aa37e9d5c67ea3f2',1,'oids.h']]], @@ -185,23 +211,30 @@ var searchData= ['onlp_5foid_5fchassis_5fvalidate',['ONLP_OID_CHASSIS_VALIDATE',['../group__oid.html#ga6bfcf34ba72b53864e2b686cc1a1a575',1,'oids.h']]], ['onlp_5foid_5fchassis_5fvalidate_5fnr',['ONLP_OID_CHASSIS_VALIDATE_NR',['../group__oid.html#ga291f053450c585d9a5356c6833c2d1df',1,'oids.h']]], ['onlp_5foid_5fdesc_5fsize',['ONLP_OID_DESC_SIZE',['../group__oid.html#ga2bdd7dcf1493bf2d557e74d38007ca36',1,'oids.h']]], + ['onlp_5foid_5fdesc_5ft',['onlp_oid_desc_t',['../group__oid.html#ga0d5e709ef7f16a5e89acbaf8d2df5c64',1,'oids.h']]], + ['onlp_5foid_5ffailed',['ONLP_OID_FAILED',['../group__oid.html#ga21ce504ae9d06c8c750bab7ca30d61a1',1,'oids.h']]], ['onlp_5foid_5ffan_5fvalidate',['ONLP_OID_FAN_VALIDATE',['../group__oid.html#ga47cf687227cc19e03782867e2e2a2a83',1,'oids.h']]], ['onlp_5foid_5ffan_5fvalidate_5fget_5fid',['ONLP_OID_FAN_VALIDATE_GET_ID',['../group__oid.html#ga3cbd36040dd6b6dc50cc560f947410bc',1,'oids.h']]], ['onlp_5foid_5ffan_5fvalidate_5fget_5fid_5fnr',['ONLP_OID_FAN_VALIDATE_GET_ID_NR',['../group__oid.html#ga9dfe43731cde70ab7b8554334871cd3a',1,'oids.h']]], ['onlp_5foid_5ffan_5fvalidate_5fnr',['ONLP_OID_FAN_VALIDATE_NR',['../group__oid.html#ga14ee5172219a7d00f6e096f98cc65659',1,'oids.h']]], + ['onlp_5foid_5ffrom_5fjson',['onlp_oid_from_json',['../group__oid.html#gaca4e14bf64f462412be55db1630b9de7',1,'oids.h']]], ['onlp_5foid_5ffrom_5fstr',['onlp_oid_from_str',['../group__oid.html#gaaee5d0adf57df99e61c7fa98bcde6c52',1,'oids.h']]], ['onlp_5foid_5fgeneric_5fvalidate',['ONLP_OID_GENERIC_VALIDATE',['../group__oid.html#ga450a8765801e797bb9692efa3caad7f5',1,'oids.h']]], ['onlp_5foid_5fgeneric_5fvalidate_5fget_5fid',['ONLP_OID_GENERIC_VALIDATE_GET_ID',['../group__oid.html#ga5ebd9530d48e8ca25849e60b8404c1e9',1,'oids.h']]], ['onlp_5foid_5fgeneric_5fvalidate_5fget_5fid_5fnr',['ONLP_OID_GENERIC_VALIDATE_GET_ID_NR',['../group__oid.html#gaf3dba2e55f717b919b96cfc612098c96',1,'oids.h']]], ['onlp_5foid_5fgeneric_5fvalidate_5fnr',['ONLP_OID_GENERIC_VALIDATE_NR',['../group__oid.html#ga51c4c834fc4902bc14797ab5920796a8',1,'oids.h']]], + ['onlp_5foid_5fget_5fall_5ffree',['onlp_oid_get_all_free',['../group__oid.html#gaceb5b41129f54efc7fcaa33cb9e4a895',1,'oids.h']]], ['onlp_5foid_5fhdr_5ffrom_5fjson',['onlp_oid_hdr_from_json',['../group__oid.html#ga57ad4b774e5b848c96d12362bdaf6a89',1,'oids.h']]], ['onlp_5foid_5fhdr_5fget',['onlp_oid_hdr_get',['../group__oid.html#ga58bc61bfa3245a6ff481e158a48057a1',1,'oids.h']]], + ['onlp_5foid_5fhdr_5fget_5fall',['onlp_oid_hdr_get_all',['../group__oid.html#ga2b5ae7532449a853335ca32a9cfd21ba',1,'oids.h']]], ['onlp_5foid_5fhdr_5fs',['onlp_oid_hdr_s',['../structonlp__oid__hdr__s.html',1,'']]], ['onlp_5foid_5fhdr_5ft',['onlp_oid_hdr_t',['../group__oid.html#ga6496740949b7893b4122857837e26b37',1,'oids.h']]], ['onlp_5foid_5fhdr_5fto_5fjson',['onlp_oid_hdr_to_json',['../group__oid.html#ga949ba468a25f72b43c4ba2ea3eced717',1,'oids.h']]], ['onlp_5foid_5fid_5fget',['ONLP_OID_ID_GET',['../group__oid.html#gac184cdebe8c6d9d016e7029248855703',1,'oids.h']]], ['onlp_5foid_5fid_5ft',['onlp_oid_id_t',['../group__oid.html#gafeead7b8b6e6434d56d2ee5a66c02f71',1,'oids.h']]], + ['onlp_5foid_5fid_5fvalidate_5frange',['ONLP_OID_ID_VALIDATE_RANGE',['../group__oid.html#ga6075616d039e2c1847cd9f62bb60b8a4',1,'oids.h']]], ['onlp_5foid_5finfo_5fget',['onlp_oid_info_get',['../group__oid.html#gac51dc68f4de1337b408a3bac84066014',1,'oids.h']]], + ['onlp_5foid_5finfo_5fget_5fall',['onlp_oid_info_get_all',['../group__oid.html#ga24832fa818bd7043cf680dfdf6868ebb',1,'oids.h']]], ['onlp_5foid_5finfo_5fto_5fjson',['onlp_oid_info_to_json',['../group__oid.html#ga153351e35d7c15ae410bb28e3714c2eb',1,'oids.h']]], ['onlp_5foid_5fis_5fchassis',['ONLP_OID_IS_CHASSIS',['../group__oid.html#ga10823d6ebcca675cebd199f0adffd851',1,'oids.h']]], ['onlp_5foid_5fis_5ffan',['ONLP_OID_IS_FAN',['../group__oid.html#ga6b7ca2801564bd7e9c919c8957661826',1,'oids.h']]], @@ -215,7 +248,7 @@ var searchData= ['onlp_5foid_5fis_5ftype',['ONLP_OID_IS_TYPE',['../group__oid.html#gaeb2e11ebb24c87c68ebf71bdb05b3abb',1,'oids.h']]], ['onlp_5foid_5fis_5ftype_5fflags',['ONLP_OID_IS_TYPE_FLAGS',['../group__oid.html#gaa0b8bb4be0bc16bf88256ed331980b43',1,'oids.h']]], ['onlp_5foid_5fis_5ftype_5fflagsz',['ONLP_OID_IS_TYPE_FLAGSZ',['../group__oid.html#gaeb23b9a5cc47b390aaf053621428bb58',1,'oids.h']]], - ['onlp_5foid_5fiterate',['onlp_oid_iterate',['../group__oid.html#gaaf632d0d7e8f7efd0e945e533d5f8cc2',1,'oids.h']]], + ['onlp_5foid_5fiterate',['onlp_oid_iterate',['../group__oid.html#ga2a96a7d21b2261d20b6390ea640e94a7',1,'oids.h']]], ['onlp_5foid_5fiterate_5ff',['onlp_oid_iterate_f',['../group__oid.html#ga30a21c186874b19d2ffe2ac7e42689da',1,'oids.h']]], ['onlp_5foid_5fjson_5fflag_5fdesc',['onlp_oid_json_flag_desc',['../group__oid.html#gaaeda891e338cb4c3c305d0e3568ba909',1,'oids.h']]], ['onlp_5foid_5fjson_5fflag_5fdesc_5fmap',['onlp_oid_json_flag_desc_map',['../group__oid.html#ga097e7c523395520c56816492c3eff343',1,'oids.h']]], @@ -243,29 +276,43 @@ var searchData= ['onlp_5foid_5fsfp_5fvalidate_5fget_5fid',['ONLP_OID_SFP_VALIDATE_GET_ID',['../group__oid.html#gadd01414f4910d781a14a386559f81e7e',1,'oids.h']]], ['onlp_5foid_5fsfp_5fvalidate_5fget_5fid_5fnr',['ONLP_OID_SFP_VALIDATE_GET_ID_NR',['../group__oid.html#ga4a8cba45250e50568406a10d382f4ca0',1,'oids.h']]], ['onlp_5foid_5fsfp_5fvalidate_5fnr',['ONLP_OID_SFP_VALIDATE_NR',['../group__oid.html#gaa72b17468326720f00a21c822c124212',1,'oids.h']]], + ['onlp_5foid_5fstatus_5fflag_5fclr',['ONLP_OID_STATUS_FLAG_CLR',['../group__oid.html#ga411a384a6232b93a3fb79b440e4fd234',1,'oids.h']]], ['onlp_5foid_5fstatus_5fflag_5fdesc',['onlp_oid_status_flag_desc',['../group__oid.html#gaf69d4042750fd73e85a290d7bfefb4d1',1,'oids.h']]], ['onlp_5foid_5fstatus_5fflag_5fdesc_5fmap',['onlp_oid_status_flag_desc_map',['../group__oid.html#ga06e2c1a51ab76484a5f06b5ea9a88b15',1,'oids.h']]], ['onlp_5foid_5fstatus_5fflag_5fe',['onlp_oid_status_flag_e',['../group__oid.html#ga8c4d39e3f86319310dd3c4839aa152c1',1,'oids.h']]], + ['onlp_5foid_5fstatus_5fflag_5fget_5fvalue',['ONLP_OID_STATUS_FLAG_GET_VALUE',['../group__oid.html#ga21e4189763bc8b542a8f7f12b8b8588c',1,'oids.h']]], + ['onlp_5foid_5fstatus_5fflag_5fis_5fset',['ONLP_OID_STATUS_FLAG_IS_SET',['../group__oid.html#gaffe364479c1ef58bc2d3312148d0e430',1,'oids.h']]], ['onlp_5foid_5fstatus_5fflag_5fmap',['onlp_oid_status_flag_map',['../group__oid.html#gaebac343a99512c7bcb2c9e0c9029c706',1,'oids.h']]], ['onlp_5foid_5fstatus_5fflag_5fname',['onlp_oid_status_flag_name',['../group__oid.html#ga5ed64bdb1bc77e56d06e52e465fb1a11',1,'oids.h']]], + ['onlp_5foid_5fstatus_5fflag_5fnot_5fset',['ONLP_OID_STATUS_FLAG_NOT_SET',['../group__oid.html#ga0fad45417e896402f4f1948e3635b8ae',1,'oids.h']]], + ['onlp_5foid_5fstatus_5fflag_5fset',['ONLP_OID_STATUS_FLAG_SET',['../group__oid.html#ga7107df7b7ce4afefe27ed2b666624153',1,'oids.h']]], + ['onlp_5foid_5fstatus_5fflag_5fset_5fvalue',['ONLP_OID_STATUS_FLAG_SET_VALUE',['../group__oid.html#gacae64f99f7688ac46949ee96c55832b7',1,'oids.h']]], ['onlp_5foid_5fstatus_5fflag_5ft',['onlp_oid_status_flag_t',['../group__oid.html#ga432b393f0f3ef3e3f1eb1f9ac2931e9d',1,'oids.h']]], ['onlp_5foid_5fstatus_5fflag_5fvalid',['ONLP_OID_STATUS_FLAG_VALID',['../group__oid.html#ga4ddd35e76a784528b275af852b9c0c6a',1,'ONLP_OID_STATUS_FLAG_VALID(): oids.h'],['../group__oid.html#ga5d7a30cd396b8abf41dee208cb428a81',1,'onlp_oid_status_flag_valid(onlp_oid_status_flag_t e): oids.h']]], ['onlp_5foid_5fstatus_5fflag_5fvalue',['onlp_oid_status_flag_value',['../group__oid.html#ga0a57970a12f88fec652108a480c5d9f2',1,'oids.h']]], + ['onlp_5foid_5fstatus_5fflags_5fclr',['ONLP_OID_STATUS_FLAGS_CLR',['../group__oid.html#gab8ac6322cd4983a8d233151fc1d48941',1,'oids.h']]], ['onlp_5foid_5fstatus_5fflags_5fget',['ONLP_OID_STATUS_FLAGS_GET',['../group__oid.html#ga8a09a333a38a365d3849d75079eaab16',1,'oids.h']]], ['onlp_5foid_5fstatus_5fflags_5ft',['onlp_oid_status_flags_t',['../group__oid.html#ga5242c44f094a2dc8708df5f6a1d6573e',1,'oids.h']]], ['onlp_5foid_5ft',['onlp_oid_t',['../group__oid.html#gae6a6c9be0f593051fa446ce33afcf98f',1,'oids.h']]], + ['onlp_5foid_5ftable_5fclear',['ONLP_OID_TABLE_CLEAR',['../group__oid.html#ga65cb6a479d8b7e14132854d00650bb28',1,'oids.h']]], + ['onlp_5foid_5ftable_5fcopy',['ONLP_OID_TABLE_COPY',['../group__oid.html#ga483521a9800ebca8a5d57c57a69f31fc',1,'oids.h']]], ['onlp_5foid_5ftable_5ffrom_5fjson',['onlp_oid_table_from_json',['../group__oid.html#ga08d80f1a4e1eff0d541dcc4cd3a454cb',1,'oids.h']]], ['onlp_5foid_5ftable_5fiter',['ONLP_OID_TABLE_ITER',['../group__oid.html#gafa4789b87b0417023c1ad79cce8ee357',1,'oids.h']]], ['onlp_5foid_5ftable_5fiter_5fexpr',['ONLP_OID_TABLE_ITER_EXPR',['../group__oid.html#ga558671a0dfcf83e35735e98142de6d11',1,'oids.h']]], ['onlp_5foid_5ftable_5fiter_5ftype',['ONLP_OID_TABLE_ITER_TYPE',['../group__oid.html#ga4e9e2ba86f209e6891d41125463145e9',1,'oids.h']]], + ['onlp_5foid_5ftable_5fsize',['ONLP_OID_TABLE_SIZE',['../group__oid.html#gacc9a3d7b409b2d533447a62ddb1c2f71',1,'oids.h']]], + ['onlp_5foid_5ftable_5fsize_5fbytes',['ONLP_OID_TABLE_SIZE_BYTES',['../group__oid.html#ga06a21f1cd6059ecb11eed5742fc5d74e',1,'oids.h']]], + ['onlp_5foid_5ftable_5ft',['onlp_oid_table_t',['../group__oid.html#ga888285f6ebc43f3c0c7db1610fb3994b',1,'oids.h']]], ['onlp_5foid_5ftable_5fto_5fjson',['onlp_oid_table_to_json',['../group__oid.html#ga836c8ad8a5fc3727d6d671087890930b',1,'oids.h']]], ['onlp_5foid_5fthermal_5fentry',['ONLP_OID_THERMAL_ENTRY',['../group__oid.html#gace9b18ec885fb7308ba511b6f62f1034',1,'oids.h']]], ['onlp_5foid_5fthermal_5fvalidate',['ONLP_OID_THERMAL_VALIDATE',['../group__oid.html#gab3eec7395627edaf33024201564b0855',1,'oids.h']]], ['onlp_5foid_5fthermal_5fvalidate_5fget_5fid',['ONLP_OID_THERMAL_VALIDATE_GET_ID',['../group__oid.html#gafe9a66cedb7762fea87648975b6912b9',1,'oids.h']]], ['onlp_5foid_5fthermal_5fvalidate_5fget_5fid_5fnr',['ONLP_OID_THERMAL_VALIDATE_GET_ID_NR',['../group__oid.html#ga677aa310a3ddfc009b37b876c0b9cebc',1,'oids.h']]], ['onlp_5foid_5fthermal_5fvalidate_5fnr',['ONLP_OID_THERMAL_VALIDATE_NR',['../group__oid.html#ga788fc2dc251469f5be82ec8e19e51b1d',1,'oids.h']]], + ['onlp_5foid_5fto_5fjson',['onlp_oid_to_json',['../group__oid.html#ga366b6fdba2adc0d64c154e8bdd5de662',1,'oids.h']]], ['onlp_5foid_5fto_5fstr',['onlp_oid_to_str',['../group__oid.html#ga58498fce6f1aab693f89e2be2fa91d12',1,'oids.h']]], ['onlp_5foid_5fto_5fuser_5fjson',['onlp_oid_to_user_json',['../group__oid.html#ga1670cae385917c4800fbee76a95467c8',1,'oids.h']]], + ['onlp_5foid_5fto_5fuser_5fstr',['onlp_oid_to_user_str',['../group__oid.html#gad7761ba29a97e36cedc927f39f54f7ec',1,'oids.h']]], ['onlp_5foid_5ftype_5fcreate',['ONLP_OID_TYPE_CREATE',['../group__oid.html#ga067f622cf9a1757eca1447b6efbc4e1d',1,'oids.h']]], ['onlp_5foid_5ftype_5fdesc',['onlp_oid_type_desc',['../group__oid.html#gacbfe498ef470e74c08e9ed52741c2253',1,'oids.h']]], ['onlp_5foid_5ftype_5fdesc_5fmap',['onlp_oid_type_desc_map',['../group__oid.html#ga734a9c25fe2a167b08adf8327ba2db89',1,'oids.h']]], @@ -299,6 +346,13 @@ var searchData= ['onlp_5fplatform_5fname_5fget',['onlp_platform_name_get',['../group__platform.html#gab9348712282242c2b232930e1f27804e',1,'platform.h']]], ['onlp_5fplatform_5fsw_5fdenit',['onlp_platform_sw_denit',['../group__platform.html#ga0751b3edb27df40cb8567ebff99e16de',1,'platform.h']]], ['onlp_5fplatform_5fsw_5finit',['onlp_platform_sw_init',['../group__platform.html#gafb130dc1086c4fc528280915e2400933',1,'platform.h']]], + ['onlp_5fplatformi_5fget',['onlp_platformi_get',['../group__platformi.html#ga120a19f90e53a900ced917788ceae047',1,'platformi.h']]], + ['onlp_5fplatformi_5fhw_5finit',['onlp_platformi_hw_init',['../group__platformi.html#ga9e377f21e52b918a6a2bbbb53f515eb9',1,'platformi.h']]], + ['onlp_5fplatformi_5fmanage_5ffans',['onlp_platformi_manage_fans',['../group__platformi.html#ga7d1db6d7fdcd2b68a340e957e7824913',1,'platformi.h']]], + ['onlp_5fplatformi_5fmanage_5finit',['onlp_platformi_manage_init',['../group__platformi.html#ga3f044c30a9cdb9b7d6841433c4e8d318',1,'platformi.h']]], + ['onlp_5fplatformi_5fmanage_5fleds',['onlp_platformi_manage_leds',['../group__platformi.html#ga444150b527536aad7fe7fcb2ac1655a6',1,'platformi.h']]], + ['onlp_5fplatformi_5fset',['onlp_platformi_set',['../group__platformi.html#ga98a98891eef309fd779a7984c65969f6',1,'platformi.h']]], + ['onlp_5fplatformi_5fsw_5finit',['onlp_platformi_sw_init',['../group__platformi.html#gab512072ac97686d555348ba4c8048575',1,'platformi.h']]], ['onlp_5fporting_2eh',['onlp_porting.h',['../onlp__porting_8h.html',1,'']]], ['onlp_5fpsu_5fcaps_5fdesc',['onlp_psu_caps_desc',['../group__oid-psu.html#ga38280bb55905958c3966059af244e707',1,'psu.h']]], ['onlp_5fpsu_5fcaps_5fdesc_5fmap',['onlp_psu_caps_desc_map',['../group__oid-psu.html#ga0db5f2ef0e61d2af19a093da16cfdac1',1,'psu.h']]], @@ -306,17 +360,18 @@ var searchData= ['onlp_5fpsu_5fcaps_5fmap',['onlp_psu_caps_map',['../group__oid-psu.html#ga5a15784398faa7998a5453e0cc0a5da9',1,'psu.h']]], ['onlp_5fpsu_5fcaps_5fname',['onlp_psu_caps_name',['../group__oid-psu.html#ga672c5a2f5b63a48b1e8bf6a8dc4a9391',1,'psu.h']]], ['onlp_5fpsu_5fcaps_5ft',['onlp_psu_caps_t',['../group__oid-psu.html#ga5216b462cd966b7e8a7b60bb4f7edb3c',1,'psu.h']]], - ['onlp_5fpsu_5fcaps_5fvalid',['ONLP_PSU_CAPS_VALID',['../group__oid-psu.html#ga9ae51dbe38792bdba2ebca18cec08a07',1,'ONLP_PSU_CAPS_VALID(): psu.h'],['../group__oid-psu.html#ga9fc8b05cd2e00ce40ab79f36915e8a83',1,'onlp_psu_caps_valid(onlp_psu_caps_t e): psu.h']]], + ['onlp_5fpsu_5fcaps_5fvalid',['onlp_psu_caps_valid',['../group__oid-psu.html#ga9fc8b05cd2e00ce40ab79f36915e8a83',1,'onlp_psu_caps_valid(onlp_psu_caps_t e): psu.h'],['../group__oid-psu.html#ga9ae51dbe38792bdba2ebca18cec08a07',1,'ONLP_PSU_CAPS_VALID(): psu.h']]], ['onlp_5fpsu_5fcaps_5fvalue',['onlp_psu_caps_value',['../group__oid-psu.html#ga75b459b893e21dc6e24b44461312a01c',1,'psu.h']]], - ['onlp_5fpsu_5fhdr_5fget',['onlp_psu_hdr_get',['../group__oid-psu.html#ga92999b5dea1b92e35941bf9ac2acfa9d',1,'psu.h']]], + ['onlp_5fpsu_5fhdr_5fget',['onlp_psu_hdr_get',['../group__oid-psu.html#ga7bc72707ae38a55c0be4bbce1b4d9cc0',1,'psu.h']]], ['onlp_5fpsu_5fhw_5finit',['onlp_psu_hw_init',['../group__oid-psu.html#ga44cb63826a53ee5f13489a08a51ab885',1,'psu.h']]], ['onlp_5fpsu_5fid_5fcreate',['ONLP_PSU_ID_CREATE',['../group__oid.html#ga81743a563ed2ca6a4487c895bb32ff2f',1,'oids.h']]], ['onlp_5fpsu_5finfo_5fcap_5fis_5fset',['ONLP_PSU_INFO_CAP_IS_SET',['../group__oid-psu.html#ga7d5833adba7294ce2e1c5b313d97c30d',1,'psu.h']]], ['onlp_5fpsu_5finfo_5ffrom_5fjson',['onlp_psu_info_from_json',['../group__oid-psu.html#ga870991253d44f35ef9c6c395c3bc7451',1,'psu.h']]], - ['onlp_5fpsu_5finfo_5fget',['onlp_psu_info_get',['../group__oid-psu.html#ga8677e4a71d8a4438606110c2ef9fc60e',1,'psu.h']]], + ['onlp_5fpsu_5finfo_5fget',['onlp_psu_info_get',['../group__oid-psu.html#ga6bf8b6ccae16f88cbb790f1ff80aed68',1,'psu.h']]], ['onlp_5fpsu_5finfo_5ft',['onlp_psu_info_t',['../structonlp__psu__info__t.html',1,'onlp_psu_info_t'],['../group__oid-psu.html#ga0c73830bfa1abf8ff6013f0e522071a6',1,'onlp_psu_info_t(): psu.h']]], ['onlp_5fpsu_5finfo_5fto_5fjson',['onlp_psu_info_to_json',['../group__oid-psu.html#ga2dbe37ac3924e60dafe6135157b37bb6',1,'psu.h']]], ['onlp_5fpsu_5finfo_5fto_5fuser_5fjson',['onlp_psu_info_to_user_json',['../group__oid-psu.html#gac3450d83ebaedba241c43000ce860d97',1,'psu.h']]], + ['onlp_5fpsu_5fled_5finfo_5fentry_5finit',['ONLP_PSU_LED_INFO_ENTRY_INIT',['../group__ledi.html#gac599280d5cef3488c7ffa7669ff7e5a5',1,'ledi.h']]], ['onlp_5fpsu_5fstatus_5ffailed',['ONLP_PSU_STATUS_FAILED',['../group__oid-psu.html#gab44371b0a34d4d0ff98acbd2cb8d0a6d',1,'psu.h']]], ['onlp_5fpsu_5fstatus_5fmissing',['ONLP_PSU_STATUS_MISSING',['../group__oid-psu.html#ga70eec015cc1f809bde536e47c176032e',1,'psu.h']]], ['onlp_5fpsu_5fstatus_5fpresent',['ONLP_PSU_STATUS_PRESENT',['../group__oid-psu.html#ga1fdb945c034ffcb2d3e1a5645003e665',1,'psu.h']]], @@ -334,6 +389,7 @@ var searchData= ['onlp_5fpsu_5ftype_5fvalue',['onlp_psu_type_value',['../group__oid-psu.html#ga10194c8cc758924547524561fd15cd6e',1,'psu.h']]], ['onlp_5fpsui_5fhdr_5fget',['onlp_psui_hdr_get',['../group__psui.html#gabfc93ced2b1436db99357b22c9c1ef61',1,'psui.h']]], ['onlp_5fpsui_5fhw_5finit',['onlp_psui_hw_init',['../group__psui.html#ga48757edc28f58f1602c4cc7ca2e9ef9c',1,'psui.h']]], + ['onlp_5fpsui_5fid_5fvalidate',['onlp_psui_id_validate',['../group__psui.html#ga9c3c4dfab92db6ae33b29b6a6bf2aa55',1,'psui.h']]], ['onlp_5fpsui_5finfo_5fget',['onlp_psui_info_get',['../group__psui.html#gaf5fbee43118662c54cb80de997c68361',1,'psui.h']]], ['onlp_5fpsui_5fsw_5fdenit',['onlp_psui_sw_denit',['../group__psui.html#ga69f99c6a90fbb5d1c03349b47970fa98',1,'psui.h']]], ['onlp_5fpsui_5fsw_5finit',['onlp_psui_sw_init',['../group__psui.html#gaf67bedb47907fd5c8548784b92813c79',1,'psui.h']]], @@ -450,6 +506,7 @@ var searchData= ['onlp_5fthermal_5fthreshold_5fvalue',['onlp_thermal_threshold_value',['../group__oid-thermal.html#ga669136096981abfb4bdf7aa0a489b28c',1,'thermal.h']]], ['onlp_5fthermali_5fhdr_5fget',['onlp_thermali_hdr_get',['../group__thermali.html#ga2f66502008cbd30edeedb075d10abc4b',1,'thermali.h']]], ['onlp_5fthermali_5fhw_5finit',['onlp_thermali_hw_init',['../group__thermali.html#ga2d9449f582f13c5b5845ce966e0aeca6',1,'thermali.h']]], + ['onlp_5fthermali_5fid_5fvalidate',['onlp_thermali_id_validate',['../group__thermali.html#gaa5fc0ea296caecb44434d855e799191e',1,'thermali.h']]], ['onlp_5fthermali_5finfo_5fget',['onlp_thermali_info_get',['../group__thermali.html#gaec311760f5ff6e68ef3a41d059c66ede',1,'thermali.h']]], ['onlp_5fthermali_5fsw_5fdenit',['onlp_thermali_sw_denit',['../group__thermali.html#ga3f45029467c7bb2093d43abb95e84b4b',1,'thermali.h']]], ['onlp_5fthermali_5fsw_5finit',['onlp_thermali_sw_init',['../group__thermali.html#ga3e6c3d1d4bc9ebe98d16a772c5806120',1,'thermali.h']]] diff --git a/packages/base/any/onlp/src/onlp/doc/html/search/all_d.js b/packages/base/any/onlp/src/onlp/doc/html/search/all_d.js index 9ea8ec2d..ad760305 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/search/all_d.js +++ b/packages/base/any/onlp/src/onlp/doc/html/search/all_d.js @@ -7,6 +7,8 @@ var searchData= ['percentage',['percentage',['../structonlp__fan__info__s.html#ae70e4ebc2e465899ea385644d4612d4d',1,'onlp_fan_info_s']]], ['platform_20initialization_20and_20management',['Platform Initialization and Management',['../group__platform.html',1,'']]], ['platform_2eh',['platform.h',['../platform_8h.html',1,'']]], + ['platformi',['platformi',['../group__platformi.html',1,'']]], + ['platformi_2eh',['platformi.h',['../platformi_8h.html',1,'']]], ['poid',['poid',['../structonlp__oid__hdr__s.html#af428fdd4d8d0d6332b8f196448984061',1,'onlp_oid_hdr_s']]], ['psu_2eh',['psu.h',['../psu_8h.html',1,'']]], ['psui',['psui',['../group__psui.html',1,'']]], diff --git a/packages/base/any/onlp/src/onlp/doc/html/search/files_0.js b/packages/base/any/onlp/src/onlp/doc/html/search/files_0.js index 509af354..9d0f6ad5 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/search/files_0.js +++ b/packages/base/any/onlp/src/onlp/doc/html/search/files_0.js @@ -1,4 +1,5 @@ var searchData= [ - ['attribute_2eh',['attribute.h',['../attribute_8h.html',1,'']]] + ['attribute_2eh',['attribute.h',['../attribute_8h.html',1,'']]], + ['attributei_2eh',['attributei.h',['../attributei_8h.html',1,'']]] ]; diff --git a/packages/base/any/onlp/src/onlp/doc/html/search/files_4.js b/packages/base/any/onlp/src/onlp/doc/html/search/files_4.js index 13ca8156..0f0eafd2 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/search/files_4.js +++ b/packages/base/any/onlp/src/onlp/doc/html/search/files_4.js @@ -1,4 +1,5 @@ var searchData= [ - ['led_2eh',['led.h',['../led_8h.html',1,'']]] + ['led_2eh',['led.h',['../led_8h.html',1,'']]], + ['ledi_2eh',['ledi.h',['../ledi_8h.html',1,'']]] ]; diff --git a/packages/base/any/onlp/src/onlp/doc/html/search/files_7.js b/packages/base/any/onlp/src/onlp/doc/html/search/files_7.js index 630776b9..3c41bd07 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/search/files_7.js +++ b/packages/base/any/onlp/src/onlp/doc/html/search/files_7.js @@ -1,6 +1,7 @@ var searchData= [ ['platform_2eh',['platform.h',['../platform_8h.html',1,'']]], + ['platformi_2eh',['platformi.h',['../platformi_8h.html',1,'']]], ['psu_2eh',['psu.h',['../psu_8h.html',1,'']]], ['psui_2eh',['psui.h',['../psui_8h.html',1,'']]] ]; diff --git a/packages/base/any/onlp/src/onlp/doc/html/search/functions_0.js b/packages/base/any/onlp/src/onlp/doc/html/search/functions_0.js index c1bc843c..a9b294b0 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/search/functions_0.js +++ b/packages/base/any/onlp/src/onlp/doc/html/search/functions_0.js @@ -18,7 +18,17 @@ var searchData= ['onlp_5fattribute_5fonie_5finfo_5fshow_5fjson',['onlp_attribute_onie_info_show_json',['../group__attributes.html#ga2d33e5eed58c2f38dc91409bc5ec28c4',1,'attribute.h']]], ['onlp_5fattribute_5fset',['onlp_attribute_set',['../group__attributes.html#ga0e904eeda5dae7ae470d0ff9f93a4b99',1,'attribute.h']]], ['onlp_5fattribute_5fsupported',['onlp_attribute_supported',['../group__attributes.html#ga49731406c54119e74b511274b3f5100c',1,'attribute.h']]], + ['onlp_5fattribute_5fsw_5fdenit',['onlp_attribute_sw_denit',['../group__attributes.html#ga698b21499aaad2d039360c6e45fbcd51',1,'attribute.h']]], ['onlp_5fattribute_5fsw_5finit',['onlp_attribute_sw_init',['../group__attributes.html#gae555c656a095566aee6c0826b933193c',1,'attribute.h']]], + ['onlp_5fattributei_5fasset_5finfo_5fget',['onlp_attributei_asset_info_get',['../group__attributei.html#gaacc08958c1915162b5b0e004cfb724a7',1,'attributei.h']]], + ['onlp_5fattributei_5ffree',['onlp_attributei_free',['../group__attributei.html#gaa1ff39f9833ecd101e98b2d6a7f3c81b',1,'attributei.h']]], + ['onlp_5fattributei_5fget',['onlp_attributei_get',['../group__attributei.html#gaaecba73893c74bc1e994710bd4817b3e',1,'attributei.h']]], + ['onlp_5fattributei_5fhw_5finit',['onlp_attributei_hw_init',['../group__attributei.html#ga7d57c3e5b1796cef1f4723f965e6fe33',1,'attributei.h']]], + ['onlp_5fattributei_5fonie_5finfo_5fget',['onlp_attributei_onie_info_get',['../group__attributei.html#gab88e01ee2c3c443b071c063ed80bdd33',1,'attributei.h']]], + ['onlp_5fattributei_5fset',['onlp_attributei_set',['../group__attributei.html#ga31e4c462f109756375c7cf69b1139bba',1,'attributei.h']]], + ['onlp_5fattributei_5fsupported',['onlp_attributei_supported',['../group__attributei.html#gaabb6e25906d2ff17331ac7900cec62d9',1,'attributei.h']]], + ['onlp_5fattributei_5fsw_5fdenit',['onlp_attributei_sw_denit',['../group__attributei.html#ga45f80dcf3c647e77062f0f09abcd8729',1,'attributei.h']]], + ['onlp_5fattributei_5fsw_5finit',['onlp_attributei_sw_init',['../group__attributei.html#ga4e9095cbcec19cf629fc4ce70a644c13',1,'attributei.h']]], ['onlp_5fchassis_5fdebug_5fget_5fjson',['onlp_chassis_debug_get_json',['../group__oid-chassis.html#gae34313148ba9282bb4b07f8ecf643850',1,'chassis.h']]], ['onlp_5fchassis_5fdebug_5fshow',['onlp_chassis_debug_show',['../group__oid-chassis.html#ga42ade9b99df7d9d6c3b0636722afa4db',1,'chassis.h']]], ['onlp_5fchassis_5fenvironment_5fshow',['onlp_chassis_environment_show',['../group__oid-chassis.html#ga339fe374150c13c8daa056333d7725cc',1,'chassis.h']]], @@ -39,26 +49,29 @@ var searchData= ['onlp_5fconfig_5flookup',['onlp_config_lookup',['../group__onlp-config.html#ga91b2fd9cbf7ef094f3ed58e383a62c1d',1,'onlp_config.h']]], ['onlp_5fconfig_5fshow',['onlp_config_show',['../group__onlp-config.html#ga9faf27984de75c1bfc093ad68e9167d9',1,'onlp_config.h']]], ['onlp_5ffan_5fcaps_5fdesc',['onlp_fan_caps_desc',['../group__oid-fan.html#gab15da3fde6256a249a718130bcd625b2',1,'fan.h']]], + ['onlp_5ffan_5fcaps_5fget',['onlp_fan_caps_get',['../group__oid-fan.html#gad788bd4831436f04edce4b6359afbfb9',1,'fan.h']]], ['onlp_5ffan_5fcaps_5fname',['onlp_fan_caps_name',['../group__oid-fan.html#ga921eeb1b9362119c7de5138774f17e91',1,'fan.h']]], ['onlp_5ffan_5fcaps_5fvalid',['onlp_fan_caps_valid',['../group__oid-fan.html#ga7e2461a963a91dd52a481f4fc84b0118',1,'fan.h']]], ['onlp_5ffan_5fcaps_5fvalue',['onlp_fan_caps_value',['../group__oid-fan.html#ga6d1a2ad784d73bf9ab0c059b7827d2dd',1,'fan.h']]], ['onlp_5ffan_5fdir_5fdesc',['onlp_fan_dir_desc',['../group__oid-fan.html#ga510fae515858e49a4dccf5a9d50ac1d1',1,'fan.h']]], ['onlp_5ffan_5fdir_5fname',['onlp_fan_dir_name',['../group__oid-fan.html#ga7d8f1f3db2a0f7486f188e2ca2442165',1,'fan.h']]], - ['onlp_5ffan_5fdir_5fset',['onlp_fan_dir_set',['../group__oid-fan.html#gac1409d618b163077a4b2aea154b88db2',1,'fan.h']]], + ['onlp_5ffan_5fdir_5fset',['onlp_fan_dir_set',['../group__oid-fan.html#gacf1aac93cb4849aef4d13e940755f7b2',1,'fan.h']]], ['onlp_5ffan_5fdir_5fvalue',['onlp_fan_dir_value',['../group__oid-fan.html#ga30e1ad218af51ebc771f7d2c17530b4e',1,'fan.h']]], - ['onlp_5ffan_5fhdr_5fget',['onlp_fan_hdr_get',['../group__oid-fan.html#ga0cff703e958970c3e716e6ac28098f66',1,'fan.h']]], + ['onlp_5ffan_5fhdr_5fget',['onlp_fan_hdr_get',['../group__oid-fan.html#ga0c46e1c68d0fcb17fa47e670f8242623',1,'fan.h']]], ['onlp_5ffan_5fhw_5finit',['onlp_fan_hw_init',['../group__oid-fan.html#gadbaed334e7be33a4801adcf1b45c2d0c',1,'fan.h']]], ['onlp_5ffan_5finfo_5ffrom_5fjson',['onlp_fan_info_from_json',['../group__oid-fan.html#gab4e2b7a1f60efa4dc7e4fc481de35271',1,'fan.h']]], - ['onlp_5ffan_5finfo_5fget',['onlp_fan_info_get',['../group__oid-fan.html#ga34da9a1a3774e74b53ff450c17f34ad2',1,'fan.h']]], + ['onlp_5ffan_5finfo_5fget',['onlp_fan_info_get',['../group__oid-fan.html#ga0939578df6374332931e7c289175a6f6',1,'fan.h']]], ['onlp_5ffan_5finfo_5fto_5fjson',['onlp_fan_info_to_json',['../group__oid-fan.html#ga3119d07b3fc57e08e7c6d12eb6f785ad',1,'fan.h']]], ['onlp_5ffan_5finfo_5fto_5fuser_5fjson',['onlp_fan_info_to_user_json',['../group__oid-fan.html#ga7bf17f792c118a18e2fdd5bffbcf51b4',1,'fan.h']]], - ['onlp_5ffan_5fpercentage_5fset',['onlp_fan_percentage_set',['../group__oid-fan.html#ga4202cfe1cddb551e583bb36856468902',1,'fan.h']]], - ['onlp_5ffan_5frpm_5fset',['onlp_fan_rpm_set',['../group__oid-fan.html#ga8aadc96f3b61b9264fdb691477ea6c7e',1,'fan.h']]], + ['onlp_5ffan_5fpercentage_5fset',['onlp_fan_percentage_set',['../group__oid-fan.html#ga7f15886960ca8b34d3d447265de4235e',1,'fan.h']]], + ['onlp_5ffan_5frpm_5fset',['onlp_fan_rpm_set',['../group__oid-fan.html#gaae2d755e9beade6d56d4283374d44673',1,'fan.h']]], ['onlp_5ffan_5fsw_5fdenit',['onlp_fan_sw_denit',['../group__oid-fan.html#gadd7ca7fdc99b5d97acea388928d52ae0',1,'fan.h']]], ['onlp_5ffan_5fsw_5finit',['onlp_fan_sw_init',['../group__oid-fan.html#gaef948ec38bffbb162650cbbad766cf6d',1,'fan.h']]], + ['onlp_5ffani_5fcaps_5fget',['onlp_fani_caps_get',['../group__fani.html#gaf2c0cefc7cf9576cb54a0ca679b5be43',1,'fani.h']]], ['onlp_5ffani_5fdir_5fset',['onlp_fani_dir_set',['../group__fani.html#gae7d7be9181bec187f8d6b84bb093c6fd',1,'fani.h']]], ['onlp_5ffani_5fhdr_5fget',['onlp_fani_hdr_get',['../group__fani.html#gaadf65a5e35759bf0178e2a58067e8ac4',1,'fani.h']]], ['onlp_5ffani_5fhw_5finit',['onlp_fani_hw_init',['../group__fani.html#ga97678f1bb8c068bbc43f9fb3c921579f',1,'fani.h']]], + ['onlp_5ffani_5fid_5fvalidate',['onlp_fani_id_validate',['../group__fani.html#ga724518aeb17d57b47ed7ce3dc99b1eb7',1,'fani.h']]], ['onlp_5ffani_5finfo_5fget',['onlp_fani_info_get',['../group__fani.html#gac5cdbba1d0aba261d5b23d1680972b7c',1,'fani.h']]], ['onlp_5ffani_5fpercentage_5fset',['onlp_fani_percentage_set',['../group__fani.html#ga587beb237351298776775cf6261193de',1,'fani.h']]], ['onlp_5ffani_5frpm_5fset',['onlp_fani_rpm_set',['../group__fani.html#ga200ea1d0ae5d67e60240a605498e5a6e',1,'fani.h']]], @@ -78,22 +91,32 @@ var searchData= ['onlp_5fgenerici_5fsw_5fdenit',['onlp_generici_sw_denit',['../group__generici.html#ga3e6830e8861e5c2ae8cc531aa33c144f',1,'generici.h']]], ['onlp_5fgenerici_5fsw_5finit',['onlp_generici_sw_init',['../group__generici.html#gadf30acc3764fde4bcd4a35100e2957ae',1,'generici.h']]], ['onlp_5fled_5fcaps_5fdesc',['onlp_led_caps_desc',['../group__oid-led.html#gaaf41313dcfdbb0cdde99e248ca055b77',1,'led.h']]], + ['onlp_5fled_5fcaps_5fget',['onlp_led_caps_get',['../group__oid-led.html#ga1705ebda784d0501d9d08c504dec083f',1,'led.h']]], ['onlp_5fled_5fcaps_5fname',['onlp_led_caps_name',['../group__oid-led.html#gab101123b97271b6c50da64f063ce2828',1,'led.h']]], ['onlp_5fled_5fcaps_5fvalid',['onlp_led_caps_valid',['../group__oid-led.html#gaee0c3cbe12d548c8b5d2f4e2cee3dd63',1,'led.h']]], ['onlp_5fled_5fcaps_5fvalue',['onlp_led_caps_value',['../group__oid-led.html#gaa1db04c7e0f80ee0d1437706c5d5d509',1,'led.h']]], - ['onlp_5fled_5fchar_5fset',['onlp_led_char_set',['../group__oid-led.html#gaf07101a3ab41b715353ad3226c2d5a82',1,'led.h']]], - ['onlp_5fled_5fhdr_5fget',['onlp_led_hdr_get',['../group__oid-led.html#ga7e754636257160be6fe2f3a8b7bdec76',1,'led.h']]], + ['onlp_5fled_5fchar_5fset',['onlp_led_char_set',['../group__oid-led.html#gaaa115f1dece6e6f2ae5b91f22d8c0285',1,'led.h']]], + ['onlp_5fled_5fhdr_5fget',['onlp_led_hdr_get',['../group__oid-led.html#ga53165ca64c6a2982aef41aca06c483a6',1,'led.h']]], ['onlp_5fled_5fhw_5finit',['onlp_led_hw_init',['../group__oid-led.html#gab10b338ace2bcf68eac58daa1d8f62c5',1,'led.h']]], ['onlp_5fled_5finfo_5ffrom_5fjson',['onlp_led_info_from_json',['../group__oid-led.html#gabca22ca2fb17f5680744703a11ea0495',1,'led.h']]], - ['onlp_5fled_5finfo_5fget',['onlp_led_info_get',['../group__oid-led.html#gaae644b2c5d0aee5d14ce7878b76b019f',1,'led.h']]], + ['onlp_5fled_5finfo_5fget',['onlp_led_info_get',['../group__oid-led.html#ga6d31fcabe06bbb1bd7e9a45266f11fb6',1,'led.h']]], ['onlp_5fled_5finfo_5fto_5fjson',['onlp_led_info_to_json',['../group__oid-led.html#ga311a7e9fe75add6a5cd8982ebfe455a5',1,'led.h']]], ['onlp_5fled_5finfo_5fto_5fuser_5fjson',['onlp_led_info_to_user_json',['../group__oid-led.html#gaa64ab0547dc4536d2f4dbfd8f3dff0c0',1,'led.h']]], ['onlp_5fled_5fmode_5fdesc',['onlp_led_mode_desc',['../group__oid-led.html#gab32ec0afbe4d22ebbe57b9dffe4a33ea',1,'led.h']]], ['onlp_5fled_5fmode_5fname',['onlp_led_mode_name',['../group__oid-led.html#ga1ef0a41cc4cff5cfc027e270298424c7',1,'led.h']]], - ['onlp_5fled_5fmode_5fset',['onlp_led_mode_set',['../group__oid-led.html#gaa071fbbace5f46da4c885cf992a0494b',1,'led.h']]], + ['onlp_5fled_5fmode_5fset',['onlp_led_mode_set',['../group__oid-led.html#ga7512a0d4eea0f86030928f6a82f7ed83',1,'led.h']]], ['onlp_5fled_5fmode_5fvalue',['onlp_led_mode_value',['../group__oid-led.html#gaa933a4981848d508d2d27cf34a456820',1,'led.h']]], ['onlp_5fled_5fsw_5fdenit',['onlp_led_sw_denit',['../group__oid-led.html#ga183de8de9b4d262bb57e6bbc10c8d7fa',1,'led.h']]], ['onlp_5fled_5fsw_5finit',['onlp_led_sw_init',['../group__oid-led.html#ga8780a120f66a293c095de90c3399c6a0',1,'led.h']]], + ['onlp_5fledi_5fcaps_5fget',['onlp_ledi_caps_get',['../group__ledi.html#gae6d88c49f8174ded8f642cd21ffbdc30',1,'ledi.h']]], + ['onlp_5fledi_5fchar_5fset',['onlp_ledi_char_set',['../group__ledi.html#gac56e81fc85142652444010936f61bdcb',1,'ledi.h']]], + ['onlp_5fledi_5fhdr_5fget',['onlp_ledi_hdr_get',['../group__ledi.html#ga9b4078166857dbe4be51115cff7c6c41',1,'ledi.h']]], + ['onlp_5fledi_5fhw_5finit',['onlp_ledi_hw_init',['../group__ledi.html#ga86c339967bb328f57c14d8145cc33bd2',1,'ledi.h']]], + ['onlp_5fledi_5fid_5fvalidate',['onlp_ledi_id_validate',['../group__ledi.html#ga7a9062bf9279f6cfe8a492e8c39688d2',1,'ledi.h']]], + ['onlp_5fledi_5finfo_5fget',['onlp_ledi_info_get',['../group__ledi.html#gacfdd1547137932b756e9fc5e30aa83b4',1,'ledi.h']]], + ['onlp_5fledi_5fmode_5fset',['onlp_ledi_mode_set',['../group__ledi.html#ga817c7aa9a7472dd94af002c9706324dc',1,'ledi.h']]], + ['onlp_5fledi_5fsw_5fdenit',['onlp_ledi_sw_denit',['../group__ledi.html#ga5439d6d2efedec0deedcf9b13852d2af',1,'ledi.h']]], + ['onlp_5fledi_5fsw_5finit',['onlp_ledi_sw_init',['../group__ledi.html#gae8a2c938a73331e4dbf2231561af340b',1,'ledi.h']]], ['onlp_5fmodule_5fhdr_5fget',['onlp_module_hdr_get',['../group__oid-module.html#gac1703816dc97c5bc733eaefd64274405',1,'module.h']]], ['onlp_5fmodule_5fhw_5finit',['onlp_module_hw_init',['../group__oid-module.html#ga4eb92a50197927c4073ad9834f63313f',1,'module.h']]], ['onlp_5fmodule_5finfo_5ffrom_5fjson',['onlp_module_info_from_json',['../group__oid-module.html#gae20051e9ae1b103aefadb85a32331aa2',1,'module.h']]], @@ -107,14 +130,18 @@ var searchData= ['onlp_5fmodulei_5finfo_5fget',['onlp_modulei_info_get',['../group__modulei.html#ga9dcdcd462f191c8ff92d6dbfee956a81',1,'modulei.h']]], ['onlp_5fmodulei_5fsw_5fdenit',['onlp_modulei_sw_denit',['../group__modulei.html#ga0629d528fb9d62e9453674f274d767cc',1,'modulei.h']]], ['onlp_5fmodulei_5fsw_5finit',['onlp_modulei_sw_init',['../group__modulei.html#ga965774c575282a7653b80433ae59307a',1,'modulei.h']]], + ['onlp_5foid_5ffrom_5fjson',['onlp_oid_from_json',['../group__oid.html#gaca4e14bf64f462412be55db1630b9de7',1,'oids.h']]], ['onlp_5foid_5ffrom_5fstr',['onlp_oid_from_str',['../group__oid.html#gaaee5d0adf57df99e61c7fa98bcde6c52',1,'oids.h']]], + ['onlp_5foid_5fget_5fall_5ffree',['onlp_oid_get_all_free',['../group__oid.html#gaceb5b41129f54efc7fcaa33cb9e4a895',1,'oids.h']]], ['onlp_5foid_5fhdr_5ffrom_5fjson',['onlp_oid_hdr_from_json',['../group__oid.html#ga57ad4b774e5b848c96d12362bdaf6a89',1,'oids.h']]], ['onlp_5foid_5fhdr_5fget',['onlp_oid_hdr_get',['../group__oid.html#ga58bc61bfa3245a6ff481e158a48057a1',1,'oids.h']]], + ['onlp_5foid_5fhdr_5fget_5fall',['onlp_oid_hdr_get_all',['../group__oid.html#ga2b5ae7532449a853335ca32a9cfd21ba',1,'oids.h']]], ['onlp_5foid_5fhdr_5fto_5fjson',['onlp_oid_hdr_to_json',['../group__oid.html#ga949ba468a25f72b43c4ba2ea3eced717',1,'oids.h']]], ['onlp_5foid_5finfo_5fget',['onlp_oid_info_get',['../group__oid.html#gac51dc68f4de1337b408a3bac84066014',1,'oids.h']]], + ['onlp_5foid_5finfo_5fget_5fall',['onlp_oid_info_get_all',['../group__oid.html#ga24832fa818bd7043cf680dfdf6868ebb',1,'oids.h']]], ['onlp_5foid_5finfo_5fto_5fjson',['onlp_oid_info_to_json',['../group__oid.html#ga153351e35d7c15ae410bb28e3714c2eb',1,'oids.h']]], ['onlp_5foid_5fis_5fpresent',['onlp_oid_is_present',['../group__oid.html#gacd775219c684b7f02a73aed4a1e54c6a',1,'oids.h']]], - ['onlp_5foid_5fiterate',['onlp_oid_iterate',['../group__oid.html#gaaf632d0d7e8f7efd0e945e533d5f8cc2',1,'oids.h']]], + ['onlp_5foid_5fiterate',['onlp_oid_iterate',['../group__oid.html#ga2a96a7d21b2261d20b6390ea640e94a7',1,'oids.h']]], ['onlp_5foid_5fjson_5fflag_5fdesc',['onlp_oid_json_flag_desc',['../group__oid.html#gaaeda891e338cb4c3c305d0e3568ba909',1,'oids.h']]], ['onlp_5foid_5fjson_5fflag_5fname',['onlp_oid_json_flag_name',['../group__oid.html#gaa8d1ca2dc360a78a524d11160dbaa586',1,'oids.h']]], ['onlp_5foid_5fjson_5fflag_5fvalid',['onlp_oid_json_flag_valid',['../group__oid.html#gaea7754a2133ca3b4ca2aa594930bc9c0',1,'oids.h']]], @@ -126,8 +153,10 @@ var searchData= ['onlp_5foid_5fstatus_5fflag_5fvalue',['onlp_oid_status_flag_value',['../group__oid.html#ga0a57970a12f88fec652108a480c5d9f2',1,'oids.h']]], ['onlp_5foid_5ftable_5ffrom_5fjson',['onlp_oid_table_from_json',['../group__oid.html#ga08d80f1a4e1eff0d541dcc4cd3a454cb',1,'oids.h']]], ['onlp_5foid_5ftable_5fto_5fjson',['onlp_oid_table_to_json',['../group__oid.html#ga836c8ad8a5fc3727d6d671087890930b',1,'oids.h']]], + ['onlp_5foid_5fto_5fjson',['onlp_oid_to_json',['../group__oid.html#ga366b6fdba2adc0d64c154e8bdd5de662',1,'oids.h']]], ['onlp_5foid_5fto_5fstr',['onlp_oid_to_str',['../group__oid.html#ga58498fce6f1aab693f89e2be2fa91d12',1,'oids.h']]], ['onlp_5foid_5fto_5fuser_5fjson',['onlp_oid_to_user_json',['../group__oid.html#ga1670cae385917c4800fbee76a95467c8',1,'oids.h']]], + ['onlp_5foid_5fto_5fuser_5fstr',['onlp_oid_to_user_str',['../group__oid.html#gad7761ba29a97e36cedc927f39f54f7ec',1,'oids.h']]], ['onlp_5foid_5ftype_5fdesc',['onlp_oid_type_desc',['../group__oid.html#gacbfe498ef470e74c08e9ed52741c2253',1,'oids.h']]], ['onlp_5foid_5ftype_5fflag_5fdesc',['onlp_oid_type_flag_desc',['../group__oid.html#ga36b8090f172a792140a0f0fb806b0d60',1,'oids.h']]], ['onlp_5foid_5ftype_5fflag_5fname',['onlp_oid_type_flag_name',['../group__oid.html#gaefa1605ac22ae74c5dbff93f35e6e660',1,'oids.h']]], @@ -146,14 +175,21 @@ var searchData= ['onlp_5fplatform_5fname_5fget',['onlp_platform_name_get',['../group__platform.html#gab9348712282242c2b232930e1f27804e',1,'platform.h']]], ['onlp_5fplatform_5fsw_5fdenit',['onlp_platform_sw_denit',['../group__platform.html#ga0751b3edb27df40cb8567ebff99e16de',1,'platform.h']]], ['onlp_5fplatform_5fsw_5finit',['onlp_platform_sw_init',['../group__platform.html#gafb130dc1086c4fc528280915e2400933',1,'platform.h']]], + ['onlp_5fplatformi_5fget',['onlp_platformi_get',['../group__platformi.html#ga120a19f90e53a900ced917788ceae047',1,'platformi.h']]], + ['onlp_5fplatformi_5fhw_5finit',['onlp_platformi_hw_init',['../group__platformi.html#ga9e377f21e52b918a6a2bbbb53f515eb9',1,'platformi.h']]], + ['onlp_5fplatformi_5fmanage_5ffans',['onlp_platformi_manage_fans',['../group__platformi.html#ga7d1db6d7fdcd2b68a340e957e7824913',1,'platformi.h']]], + ['onlp_5fplatformi_5fmanage_5finit',['onlp_platformi_manage_init',['../group__platformi.html#ga3f044c30a9cdb9b7d6841433c4e8d318',1,'platformi.h']]], + ['onlp_5fplatformi_5fmanage_5fleds',['onlp_platformi_manage_leds',['../group__platformi.html#ga444150b527536aad7fe7fcb2ac1655a6',1,'platformi.h']]], + ['onlp_5fplatformi_5fset',['onlp_platformi_set',['../group__platformi.html#ga98a98891eef309fd779a7984c65969f6',1,'platformi.h']]], + ['onlp_5fplatformi_5fsw_5finit',['onlp_platformi_sw_init',['../group__platformi.html#gab512072ac97686d555348ba4c8048575',1,'platformi.h']]], ['onlp_5fpsu_5fcaps_5fdesc',['onlp_psu_caps_desc',['../group__oid-psu.html#ga38280bb55905958c3966059af244e707',1,'psu.h']]], ['onlp_5fpsu_5fcaps_5fname',['onlp_psu_caps_name',['../group__oid-psu.html#ga672c5a2f5b63a48b1e8bf6a8dc4a9391',1,'psu.h']]], ['onlp_5fpsu_5fcaps_5fvalid',['onlp_psu_caps_valid',['../group__oid-psu.html#ga9fc8b05cd2e00ce40ab79f36915e8a83',1,'psu.h']]], ['onlp_5fpsu_5fcaps_5fvalue',['onlp_psu_caps_value',['../group__oid-psu.html#ga75b459b893e21dc6e24b44461312a01c',1,'psu.h']]], - ['onlp_5fpsu_5fhdr_5fget',['onlp_psu_hdr_get',['../group__oid-psu.html#ga92999b5dea1b92e35941bf9ac2acfa9d',1,'psu.h']]], + ['onlp_5fpsu_5fhdr_5fget',['onlp_psu_hdr_get',['../group__oid-psu.html#ga7bc72707ae38a55c0be4bbce1b4d9cc0',1,'psu.h']]], ['onlp_5fpsu_5fhw_5finit',['onlp_psu_hw_init',['../group__oid-psu.html#ga44cb63826a53ee5f13489a08a51ab885',1,'psu.h']]], ['onlp_5fpsu_5finfo_5ffrom_5fjson',['onlp_psu_info_from_json',['../group__oid-psu.html#ga870991253d44f35ef9c6c395c3bc7451',1,'psu.h']]], - ['onlp_5fpsu_5finfo_5fget',['onlp_psu_info_get',['../group__oid-psu.html#ga8677e4a71d8a4438606110c2ef9fc60e',1,'psu.h']]], + ['onlp_5fpsu_5finfo_5fget',['onlp_psu_info_get',['../group__oid-psu.html#ga6bf8b6ccae16f88cbb790f1ff80aed68',1,'psu.h']]], ['onlp_5fpsu_5finfo_5fto_5fjson',['onlp_psu_info_to_json',['../group__oid-psu.html#ga2dbe37ac3924e60dafe6135157b37bb6',1,'psu.h']]], ['onlp_5fpsu_5finfo_5fto_5fuser_5fjson',['onlp_psu_info_to_user_json',['../group__oid-psu.html#gac3450d83ebaedba241c43000ce860d97',1,'psu.h']]], ['onlp_5fpsu_5fsw_5fdenit',['onlp_psu_sw_denit',['../group__oid-psu.html#ga129a21fa7eb314964c2db4fd8d660572',1,'psu.h']]], @@ -163,6 +199,7 @@ var searchData= ['onlp_5fpsu_5ftype_5fvalue',['onlp_psu_type_value',['../group__oid-psu.html#ga10194c8cc758924547524561fd15cd6e',1,'psu.h']]], ['onlp_5fpsui_5fhdr_5fget',['onlp_psui_hdr_get',['../group__psui.html#gabfc93ced2b1436db99357b22c9c1ef61',1,'psui.h']]], ['onlp_5fpsui_5fhw_5finit',['onlp_psui_hw_init',['../group__psui.html#ga48757edc28f58f1602c4cc7ca2e9ef9c',1,'psui.h']]], + ['onlp_5fpsui_5fid_5fvalidate',['onlp_psui_id_validate',['../group__psui.html#ga9c3c4dfab92db6ae33b29b6a6bf2aa55',1,'psui.h']]], ['onlp_5fpsui_5finfo_5fget',['onlp_psui_info_get',['../group__psui.html#gaf5fbee43118662c54cb80de997c68361',1,'psui.h']]], ['onlp_5fpsui_5fsw_5fdenit',['onlp_psui_sw_denit',['../group__psui.html#ga69f99c6a90fbb5d1c03349b47970fa98',1,'psui.h']]], ['onlp_5fpsui_5fsw_5finit',['onlp_psui_sw_init',['../group__psui.html#gaf67bedb47907fd5c8548784b92813c79',1,'psui.h']]], @@ -243,6 +280,7 @@ var searchData= ['onlp_5fthermal_5fthreshold_5fvalue',['onlp_thermal_threshold_value',['../group__oid-thermal.html#ga669136096981abfb4bdf7aa0a489b28c',1,'thermal.h']]], ['onlp_5fthermali_5fhdr_5fget',['onlp_thermali_hdr_get',['../group__thermali.html#ga2f66502008cbd30edeedb075d10abc4b',1,'thermali.h']]], ['onlp_5fthermali_5fhw_5finit',['onlp_thermali_hw_init',['../group__thermali.html#ga2d9449f582f13c5b5845ce966e0aeca6',1,'thermali.h']]], + ['onlp_5fthermali_5fid_5fvalidate',['onlp_thermali_id_validate',['../group__thermali.html#gaa5fc0ea296caecb44434d855e799191e',1,'thermali.h']]], ['onlp_5fthermali_5finfo_5fget',['onlp_thermali_info_get',['../group__thermali.html#gaec311760f5ff6e68ef3a41d059c66ede',1,'thermali.h']]], ['onlp_5fthermali_5fsw_5fdenit',['onlp_thermali_sw_denit',['../group__thermali.html#ga3f45029467c7bb2093d43abb95e84b4b',1,'thermali.h']]], ['onlp_5fthermali_5fsw_5finit',['onlp_thermali_sw_init',['../group__thermali.html#ga3e6c3d1d4bc9ebe98d16a772c5806120',1,'thermali.h']]] diff --git a/packages/base/any/onlp/src/onlp/doc/html/search/groups_7.js b/packages/base/any/onlp/src/onlp/doc/html/search/groups_7.js index 62040539..87bfcb4f 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/search/groups_7.js +++ b/packages/base/any/onlp/src/onlp/doc/html/search/groups_7.js @@ -4,5 +4,6 @@ var searchData= ['platform_20implementation_20interfaces',['Platform Implementation Interfaces',['../group__onlp-platform.html',1,'']]], ['porting_20macros',['Porting Macros',['../group__onlp-porting.html',1,'']]], ['platform_20initialization_20and_20management',['Platform Initialization and Management',['../group__platform.html',1,'']]], + ['platformi',['platformi',['../group__platformi.html',1,'']]], ['psui',['psui',['../group__psui.html',1,'']]] ]; diff --git a/packages/base/any/onlp/src/onlp/doc/html/search/typedefs_0.js b/packages/base/any/onlp/src/onlp/doc/html/search/typedefs_0.js index 6f8650f4..04fa1484 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/search/typedefs_0.js +++ b/packages/base/any/onlp/src/onlp/doc/html/search/typedefs_0.js @@ -11,6 +11,7 @@ var searchData= ['onlp_5fled_5finfo_5ft',['onlp_led_info_t',['../group__oid-led.html#ga2321afb93c45d03f1d950c53ca1b3e1d',1,'led.h']]], ['onlp_5fled_5fmode_5ft',['onlp_led_mode_t',['../group__oid-led.html#ga4f3ff42e0e51b11a8049bb735e81680b',1,'led.h']]], ['onlp_5fmodule_5finfo_5ft',['onlp_module_info_t',['../group__oid-module.html#ga246953cdb6be7b83bac70f0b1d7c297a',1,'module.h']]], + ['onlp_5foid_5fdesc_5ft',['onlp_oid_desc_t',['../group__oid.html#ga0d5e709ef7f16a5e89acbaf8d2df5c64',1,'oids.h']]], ['onlp_5foid_5fhdr_5ft',['onlp_oid_hdr_t',['../group__oid.html#ga6496740949b7893b4122857837e26b37',1,'oids.h']]], ['onlp_5foid_5fid_5ft',['onlp_oid_id_t',['../group__oid.html#gafeead7b8b6e6434d56d2ee5a66c02f71',1,'oids.h']]], ['onlp_5foid_5fiterate_5ff',['onlp_oid_iterate_f',['../group__oid.html#ga30a21c186874b19d2ffe2ac7e42689da',1,'oids.h']]], @@ -18,6 +19,7 @@ var searchData= ['onlp_5foid_5fstatus_5fflag_5ft',['onlp_oid_status_flag_t',['../group__oid.html#ga432b393f0f3ef3e3f1eb1f9ac2931e9d',1,'oids.h']]], ['onlp_5foid_5fstatus_5fflags_5ft',['onlp_oid_status_flags_t',['../group__oid.html#ga5242c44f094a2dc8708df5f6a1d6573e',1,'oids.h']]], ['onlp_5foid_5ft',['onlp_oid_t',['../group__oid.html#gae6a6c9be0f593051fa446ce33afcf98f',1,'oids.h']]], + ['onlp_5foid_5ftable_5ft',['onlp_oid_table_t',['../group__oid.html#ga888285f6ebc43f3c0c7db1610fb3994b',1,'oids.h']]], ['onlp_5foid_5ftype_5fflag_5ft',['onlp_oid_type_flag_t',['../group__oid.html#ga24a13621d2a8e5374660e76d24e673d2',1,'oids.h']]], ['onlp_5foid_5ftype_5fflags_5ft',['onlp_oid_type_flags_t',['../group__oid.html#ga7456f922ad11e6a5fc6e8ab2c4ec6d1a',1,'oids.h']]], ['onlp_5foid_5ftype_5ft',['onlp_oid_type_t',['../group__oid.html#gabf663cc4c0716270eb95895dba38a6cf',1,'oids.h']]], diff --git a/packages/base/any/onlp/src/onlp/doc/html/sfp_8h.html b/packages/base/any/onlp/src/onlp/doc/html/sfp_8h.html index b9361e2b..a38d4c1b 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/sfp_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/sfp_8h.html @@ -320,7 +320,7 @@ Variables diff --git a/packages/base/any/onlp/src/onlp/doc/html/sfp_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/sfp_8h_source.html index d22370c2..3fe1e4fe 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/sfp_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/sfp_8h_source.html @@ -398,7 +398,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    int onlp_sfp_dev_readb(onlp_oid_t port, int devaddr, int addr)
    Read a byte from the target device on the given SFP port.
    int onlp_sfp_info_from_json(cJSON *cj, onlp_sfp_info_t *info)
    Convert a JSON object to an SFP info structure.
    struct onlp_sfp_info_t onlp_sfp_info_t
    -
    Definition: oids.h:282
    +
    Definition: oids.h:296
    int onlp_sfp_dev_writew(onlp_oid_t port, int devaddr, int addr, uint16_t value)
    Write a word to the target device on the given SFP port.
    #define ONLP_SFP_BLOCK_DATA_SIZE
    Definition: sfp.h:86
    aim_map_si_t onlp_sfp_control_flag_desc_map[]
    @@ -406,7 +406,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/sfpi_8h.html b/packages/base/any/onlp/src/onlp/doc/html/sfpi_8h.html index e37aacbd..6013edf7 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/sfpi_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/sfpi_8h.html @@ -169,7 +169,7 @@ int  diff --git a/packages/base/any/onlp/src/onlp/doc/html/sfpi_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/sfpi_8h_source.html index 0eb57f05..9706cc33 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/sfpi_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/sfpi_8h_source.html @@ -195,11 +195,11 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    int onlp_sfpi_rx_los_bitmap_get(onlp_sfp_bitmap_t *dst)
    Return the RX_LOS bitmap for all SFP ports.
    int onlp_sfpi_sw_init(void)
    Software initialization of the SFP module.
    int onlp_sfpi_control_set(onlp_oid_id_t id, onlp_sfp_control_t control, int value)
    Set an SFP control.
    -
    Definition: oids.h:282
    +
    Definition: oids.h:296
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/stdattrs_8h.html b/packages/base/any/onlp/src/onlp/doc/html/stdattrs_8h.html index 134ab381..d1642b13 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/stdattrs_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/stdattrs_8h.html @@ -135,7 +135,7 @@ int  diff --git a/packages/base/any/onlp/src/onlp/doc/html/stdattrs_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/stdattrs_8h_source.html index 185f076f..d8411e1c 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/stdattrs_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/stdattrs_8h_source.html @@ -172,7 +172,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/structonlp__asset__info__s.html b/packages/base/any/onlp/src/onlp/doc/html/structonlp__asset__info__s.html index 1d9a448e..4f9c67e0 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/structonlp__asset__info__s.html +++ b/packages/base/any/onlp/src/onlp/doc/html/structonlp__asset__info__s.html @@ -271,7 +271,7 @@ Data Fields diff --git a/packages/base/any/onlp/src/onlp/doc/html/structonlp__chassis__info__s.html b/packages/base/any/onlp/src/onlp/doc/html/structonlp__chassis__info__s.html index b83cfb48..e82ec599 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/structonlp__chassis__info__s.html +++ b/packages/base/any/onlp/src/onlp/doc/html/structonlp__chassis__info__s.html @@ -121,7 +121,7 @@ Data Fields diff --git a/packages/base/any/onlp/src/onlp/doc/html/structonlp__config__settings__s.html b/packages/base/any/onlp/src/onlp/doc/html/structonlp__config__settings__s.html index 6ab04ed6..9b824425 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/structonlp__config__settings__s.html +++ b/packages/base/any/onlp/src/onlp/doc/html/structonlp__config__settings__s.html @@ -133,7 +133,7 @@ Data Fields diff --git a/packages/base/any/onlp/src/onlp/doc/html/structonlp__fan__info__s.html b/packages/base/any/onlp/src/onlp/doc/html/structonlp__fan__info__s.html index 1a6fde9d..943d50ea 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/structonlp__fan__info__s.html +++ b/packages/base/any/onlp/src/onlp/doc/html/structonlp__fan__info__s.html @@ -120,7 +120,7 @@ Data Fields
    -

    Capabilities

    +

    Capabilities - a combination of onlp_fan_caps_t

    @@ -208,7 +208,7 @@ Data Fields diff --git a/packages/base/any/onlp/src/onlp/doc/html/structonlp__generic__info__s.html b/packages/base/any/onlp/src/onlp/doc/html/structonlp__generic__info__s.html index ad96a126..08321c32 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/structonlp__generic__info__s.html +++ b/packages/base/any/onlp/src/onlp/doc/html/structonlp__generic__info__s.html @@ -121,7 +121,7 @@ Data Fields diff --git a/packages/base/any/onlp/src/onlp/doc/html/structonlp__led__info__s.html b/packages/base/any/onlp/src/onlp/doc/html/structonlp__led__info__s.html index 1032c4ca..3c74f889 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/structonlp__led__info__s.html +++ b/packages/base/any/onlp/src/onlp/doc/html/structonlp__led__info__s.html @@ -114,7 +114,7 @@ Data Fields
    -

    Capabilities

    +

    Capabilities - a combination of onlp_led_caps_e

    @@ -163,7 +163,7 @@ Data Fields diff --git a/packages/base/any/onlp/src/onlp/doc/html/structonlp__module__info__s.html b/packages/base/any/onlp/src/onlp/doc/html/structonlp__module__info__s.html index 09b638f3..f5a96299 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/structonlp__module__info__s.html +++ b/packages/base/any/onlp/src/onlp/doc/html/structonlp__module__info__s.html @@ -121,7 +121,7 @@ Data Fields diff --git a/packages/base/any/onlp/src/onlp/doc/html/structonlp__oid__hdr__s.html b/packages/base/any/onlp/src/onlp/doc/html/structonlp__oid__hdr__s.html index fe770b86..e147da63 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/structonlp__oid__hdr__s.html +++ b/packages/base/any/onlp/src/onlp/doc/html/structonlp__oid__hdr__s.html @@ -95,11 +95,11 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); Data Fields onlp_oid_t id   -onlp_oid_desc_t description +onlp_oid_desc_t description   onlp_oid_t poid   -onlp_oid_table_t coids +onlp_oid_table_t coids   onlp_oid_status_flags_t status   @@ -112,7 +112,7 @@ Data Fields
    - +
    onlp_oid_table_t onlp_oid_hdr_s::coidsonlp_oid_table_t onlp_oid_hdr_s::coids
    @@ -125,7 +125,7 @@ Data Fields
    - +
    onlp_oid_desc_t onlp_oid_hdr_s::descriptiononlp_oid_desc_t onlp_oid_hdr_s::description
    @@ -178,7 +178,7 @@ Data Fields
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/structonlp__psu__info__t.html b/packages/base/any/onlp/src/onlp/doc/html/structonlp__psu__info__t.html index fb598db0..2b9c2dc5 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/structonlp__psu__info__t.html +++ b/packages/base/any/onlp/src/onlp/doc/html/structonlp__psu__info__t.html @@ -128,7 +128,7 @@ Data Fields
    -

    Capabilities

    +

    Capabilities - a combination of onlp_psu_caps_t

    @@ -268,7 +268,7 @@ Data Fields diff --git a/packages/base/any/onlp/src/onlp/doc/html/structonlp__sfp__info__t.html b/packages/base/any/onlp/src/onlp/doc/html/structonlp__sfp__info__t.html index 561d2b09..031c94c1 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/structonlp__sfp__info__t.html +++ b/packages/base/any/onlp/src/onlp/doc/html/structonlp__sfp__info__t.html @@ -225,7 +225,7 @@ Data Fields diff --git a/packages/base/any/onlp/src/onlp/doc/html/structonlp__thermal__info__s.html b/packages/base/any/onlp/src/onlp/doc/html/structonlp__thermal__info__s.html index 5b181c38..9abdaf05 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/structonlp__thermal__info__s.html +++ b/packages/base/any/onlp/src/onlp/doc/html/structonlp__thermal__info__s.html @@ -121,7 +121,7 @@ Data Fields
    -

    Capabilities

    +

    Capabilities - a combination of onlp_thermal_caps_t

    @@ -209,7 +209,7 @@ Data Fields diff --git a/packages/base/any/onlp/src/onlp/doc/html/thermal_8h.html b/packages/base/any/onlp/src/onlp/doc/html/thermal_8h.html index 2f4f2615..be536d59 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/thermal_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/thermal_8h.html @@ -209,7 +209,7 @@ Variables diff --git a/packages/base/any/onlp/src/onlp/doc/html/thermal_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/thermal_8h_source.html index c9530c1d..0342f193 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/thermal_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/thermal_8h_source.html @@ -256,14 +256,14 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    const char * onlp_thermal_caps_desc(onlp_thermal_caps_t e)
    int mcelsius
    Definition: thermal.h:85
    int onlp_thermal_threshold_value(const char *str, onlp_thermal_threshold_t *e, int substr)
    -
    Definition: oids.h:282
    +
    Definition: oids.h:296
    aim_map_si_t onlp_thermal_threshold_map[]
    int onlp_thermal_info_from_json(cJSON *cj, onlp_thermal_info_t *info)
    Convert a JSON object to a thermal info structure.
    aim_map_si_t onlp_thermal_caps_desc_map[]
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/thermali_8h.html b/packages/base/any/onlp/src/onlp/doc/html/thermali_8h.html index 24da6324..0a294e22 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/thermali_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/thermali_8h.html @@ -120,6 +120,9 @@ int int onlp_thermali_sw_denit (void)  Deinitialize the thermal software module. More...
      +int onlp_thermali_id_validate (onlp_oid_id_t id) + Validate a thermal oid. More...
    +  int onlp_thermali_hdr_get (onlp_oid_id_t id, onlp_oid_hdr_t *rv)  Retrieve the thermal's oid header. More...
      @@ -132,7 +135,7 @@ int  diff --git a/packages/base/any/onlp/src/onlp/doc/html/thermali_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/thermali_8h_source.html index fe9c3969..d2f6d09c 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/thermali_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/thermali_8h_source.html @@ -120,29 +120,32 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    43 
    50 int onlp_thermali_sw_denit(void);
    51 
    -
    57 int onlp_thermali_hdr_get(onlp_oid_id_t id, onlp_oid_hdr_t* rv);
    -
    58 
    -
    64 int onlp_thermali_info_get(onlp_oid_id_t id, onlp_thermal_info_t* rv);
    -
    65 
    -
    70 #define ONLP_THERMAL_INFO_ENTRY_INIT(_id, _desc, _parent) \
    -
    71  { \
    -
    72  { \
    -
    73  .id = ONLP_THERMAL_ID_CREATE(_id), \
    -
    74  .description = _desc, \
    -
    75  .poid = ONLP_OID_CHASSIS, \
    -
    76  .status = ONLP_OID_STATUS_FLAG_PRESENT, \
    -
    77  }, \
    -
    78  .caps = ONLP_THERMAL_CAPS_ALL, \
    -
    79  }
    -
    80 
    -
    85 #define ONLP_CHASSIS_THERMAL_INFO_ENTRY_INIT(_id, _desc) \
    -
    86  ONLP_THERMAL_INFO_ENTRY_INIT(_id, _desc, ONLP_OID_CHASSIS)
    -
    87 
    -
    92 #define ONLP_PSU_THERMAL_INFO_ENTRY_INIT(_id, _desc, _psu_id) \
    -
    93  ONLP_THERMAL_INFO_ENTRY_INIT(_id, _desc, ONLP_PSU_ID_CREATE(_psu_id))
    -
    94 
    -
    95 #endif /* __ONLP_THERMALI_H__ */
    -
    96 /* @} */
    +
    56 int onlp_thermali_id_validate(onlp_oid_id_t id);
    +
    57 
    +
    63 int onlp_thermali_hdr_get(onlp_oid_id_t id, onlp_oid_hdr_t* rv);
    +
    64 
    +
    70 int onlp_thermali_info_get(onlp_oid_id_t id, onlp_thermal_info_t* rv);
    +
    71 
    +
    76 #define ONLP_THERMAL_INFO_ENTRY_INIT(_id, _desc, _parent) \
    +
    77  { \
    +
    78  { \
    +
    79  .id = ONLP_THERMAL_ID_CREATE(_id), \
    +
    80  .description = _desc, \
    +
    81  .poid = ONLP_OID_CHASSIS, \
    +
    82  .status = ONLP_OID_STATUS_FLAG_PRESENT, \
    +
    83  }, \
    +
    84  .caps = ONLP_THERMAL_CAPS_GET_TEMPERATURE, \
    +
    85  }
    +
    86 
    +
    91 #define ONLP_CHASSIS_THERMAL_INFO_ENTRY_INIT(_id, _desc) \
    +
    92  ONLP_THERMAL_INFO_ENTRY_INIT(_id, _desc, ONLP_OID_CHASSIS)
    +
    93 
    +
    98 #define ONLP_PSU_THERMAL_INFO_ENTRY_INIT(_id, _desc, _psu_id) \
    +
    99  ONLP_THERMAL_INFO_ENTRY_INIT(_id, _desc, ONLP_PSU_ID_CREATE(_psu_id))
    +
    100 
    +
    101 #endif /* __ONLP_THERMALI_H__ */
    +
    102 /* @} */
    +
    int onlp_thermali_id_validate(onlp_oid_id_t id)
    Validate a thermal oid.
    int onlp_thermali_sw_denit(void)
    Deinitialize the thermal software module.
    Definition: thermal.h:76
    int onlp_thermali_sw_init(void)
    Software initialization of the Thermal module.
    @@ -151,11 +154,11 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    uint32_t onlp_oid_id_t
    Definition: oids.h:55
    int onlp_thermali_info_get(onlp_oid_id_t id, onlp_thermal_info_t *rv)
    Get the information for the given thermal OID.
    int onlp_thermali_hw_init(uint32_t flags)
    Hardware initialization of the Thermal module.
    -
    Definition: oids.h:282
    +
    Definition: oids.h:296
    diff --git a/packages/base/any/onlp/src/onlp/module/inc/onlp/fan.h b/packages/base/any/onlp/src/onlp/module/inc/onlp/fan.h index 5788c395..0abd83a3 100644 --- a/packages/base/any/onlp/src/onlp/module/inc/onlp/fan.h +++ b/packages/base/any/onlp/src/onlp/module/inc/onlp/fan.h @@ -65,7 +65,7 @@ typedef struct onlp_fan_info_s { /** Current direction */ onlp_fan_dir_t dir; - /** Capabilities */ + /** Capabilities - a combination of @ref onlp_fan_caps_t */ uint32_t caps; /** Current fan speed, in RPM, if available */ @@ -109,28 +109,28 @@ int onlp_fan_sw_denit(void); /** * @brief Retrieve the fan's OID hdr. - * @param id The fan OID. + * @param oid The fan OID. * @param[out] hdr Receives the OID header. */ int onlp_fan_hdr_get(onlp_oid_t oid, onlp_oid_hdr_t* hdr); /** * @brief Retrieve fan information. - * @param id The fan OID. + * @param oid The fan OID. * @param[out] rv Receives the fan information. */ int onlp_fan_info_get(onlp_oid_t oid, onlp_fan_info_t* rv); /** * @brief Retrieve the fan capabilities. - * @param id The fan OID. - * @param[out] rv Receives the fan capabilities. + * @param oid The fan OID. + * @param[out] caps Receives the fan capabilities. */ int onlp_fan_caps_get(onlp_oid_t oid, uint32_t* caps); /** * @brief Set the fan speed in RPMs. - * @param id The fan OID. + * @param oid The fan OID. * @param rpm The new RPM. * @note Only valid if the fan has the SET_RPM capability. */ @@ -138,7 +138,7 @@ int onlp_fan_rpm_set(onlp_oid_t oid, int rpm); /** * @brief Set the fan speed in percentage. - * @param id The fan OID. + * @param oid The fan OID. * @param p The percentage. * @note Only valid if the fan has the SET_PERCENTAGE capability. */ @@ -146,7 +146,7 @@ int onlp_fan_percentage_set(onlp_oid_t oid, int p); /** * @brief Set the fan direction. - * @param id The fan OID. + * @param oid The fan OID. * @param dir The fan direction (B2F or F2B) * @note Only called if both capabilities are set. */ diff --git a/packages/base/any/onlp/src/onlp/module/inc/onlp/generic.h b/packages/base/any/onlp/src/onlp/module/inc/onlp/generic.h index a92d1d3a..e3f07f87 100644 --- a/packages/base/any/onlp/src/onlp/module/inc/onlp/generic.h +++ b/packages/base/any/onlp/src/onlp/module/inc/onlp/generic.h @@ -43,7 +43,6 @@ typedef struct onlp_generic_info_s { onlp_oid_hdr_t hdr; /* Generic objects have no dedicated fields. */ - } onlp_generic_info_t; /** diff --git a/packages/base/any/onlp/src/onlp/module/inc/onlp/led.h b/packages/base/any/onlp/src/onlp/module/inc/onlp/led.h index 58e172ad..1af70e89 100644 --- a/packages/base/any/onlp/src/onlp/module/inc/onlp/led.h +++ b/packages/base/any/onlp/src/onlp/module/inc/onlp/led.h @@ -84,7 +84,7 @@ typedef struct onlp_led_info_s { /** Header */ onlp_oid_hdr_t hdr; - /** Capabilities */ + /** Capabilities - a combination of @ref onlp_led_caps_e */ uint32_t caps; /** Current mode, if capable. */ @@ -115,42 +115,42 @@ int onlp_led_sw_denit(void); /** * @brief Get the LED header. - * @param id The LED OID + * @param oid The LED OID * @param[out] rv Receives the header. */ -int onlp_led_hdr_get(onlp_oid_t id, onlp_oid_hdr_t* rv); +int onlp_led_hdr_get(onlp_oid_t oid, onlp_oid_hdr_t* rv); /** * @brief Get LED information. - * @param id The LED OID. + * @param oid The LED OID. * @param[out] rv Receives the information structure. */ -int onlp_led_info_get(onlp_oid_t id, onlp_led_info_t* rv); +int onlp_led_info_get(onlp_oid_t oid, onlp_led_info_t* rv); /** * @brief Get the LED caps. - * @param id The LED OID. - * @param[out] rv Receives the caps. + * @param oid The LED OID. + * @param[out] caps Receives the caps. */ int onlp_led_caps_get(onlp_oid_t oid, uint32_t* caps); /** * @brief Set the LED mode. - * @param id The LED OID. + * @param oid The LED OID. * @param mode The mode. . * @note Only relevant if the LED supports the color capability. */ -int onlp_led_mode_set(onlp_oid_t id, onlp_led_mode_t mode); +int onlp_led_mode_set(onlp_oid_t oid, onlp_led_mode_t mode); /** * @brief Set the LED char - * @param id The LED OID + * @param oid The LED OID * @param c The character. * @note Only relevant if the LED supports the char capability. */ -int onlp_led_char_set(onlp_oid_t id, char c); +int onlp_led_char_set(onlp_oid_t oid, char c); /** * @brief Convert an LED info structure to user JSON. diff --git a/packages/base/any/onlp/src/onlp/module/inc/onlp/oids.h b/packages/base/any/onlp/src/onlp/module/inc/onlp/oids.h index 895416ab..58eb9209 100644 --- a/packages/base/any/onlp/src/onlp/module/inc/onlp/oids.h +++ b/packages/base/any/onlp/src/onlp/module/inc/onlp/oids.h @@ -264,13 +264,22 @@ typedef uint32_t onlp_oid_status_flags_t; */ #define ONLP_OID_DESC_SIZE 128 +/** OID description array. */ typedef char onlp_oid_desc_t[ONLP_OID_DESC_SIZE]; -/* fixme */ +/** The maximum OID child table size */ #define ONLP_OID_TABLE_SIZE 256 + +/** A table of OIDs */ typedef onlp_oid_t onlp_oid_table_t[ONLP_OID_TABLE_SIZE]; + +/** The size of the current OID table */ #define ONLP_OID_TABLE_SIZE_BYTES (sizeof(onlp_oid_t)*ONLP_OID_TABLE_SIZE) + +/** Copy an OID table. */ #define ONLP_OID_TABLE_COPY(_dst, _src) memcpy(_dst, _src, ONLP_OID_TABLE_SIZE_BYTES) + +/** Clear an OID table. */ #define ONLP_OID_TABLE_CLEAR(_table) memset(_table, 0, ONLP_OID_TABLE_SIZE_BYTES) @@ -322,21 +331,39 @@ typedef int (*onlp_oid_iterate_f)(onlp_oid_t oid, void* cookie); /** * @brief Iterate over all platform OIDs. - * @param oid The root OID. + * @param root The root OID. * @param types The OID types filter (optional) * @param itf The iterator function. * @param cookie The cookie. */ -int onlp_oid_iterate(onlp_oid_t oid, onlp_oid_type_flags_t types, +int onlp_oid_iterate(onlp_oid_t root, onlp_oid_type_flags_t types, onlp_oid_iterate_f itf, void* cookie); +/** + * @brief Iterate over all given OID types and return their info structures. + * @param root The root OID. + * @param types The OID types filter (optional) + * @param flags The iterator flags. + * @param[out] list Receives a list of all info structures. + */ int onlp_oid_info_get_all(onlp_oid_t root, onlp_oid_type_flags_t types, uint32_t flags, biglist_t** list); +/** + * @brief Iterate over all given OID types and return their hdr structures. + * @param root The root OID. + * @param types The OID types filter (optional) + * @param flags The iterator flags. + * @param[out] list Receives a list of all hdr structures. + */ int onlp_oid_hdr_get_all(onlp_oid_t root, onlp_oid_type_flags_t types, uint32_t flags, biglist_t** list); +/** + * @brief Free a list returned by onlp_oid_info_get_all() or onlp_oid_hdr_get_all() + * @param list The list to free. + */ int onlp_oid_get_all_free(biglist_t* list); /** @@ -345,33 +372,39 @@ int onlp_oid_get_all_free(biglist_t* list); #define ONLP_OID_STATUS_FLAGS_GET(_ptr) \ (((onlp_oid_hdr_t*)_ptr)->status) +/** Clear all status flags */ #define ONLP_OID_STATUS_FLAGS_CLR(_ptr) \ ONLP_OID_STATUS_FLAGS_GET(_ptr) = 0 +/** Get the value of a given flag. */ #define ONLP_OID_STATUS_FLAG_GET_VALUE(_ptr, _name) \ AIM_FLAG_GET_VALUE(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name) +/** Set the value of a given flag. */ #define ONLP_OID_STATUS_FLAG_SET_VALUE(_ptr, _name, _value) \ AIM_FLAG_SET_VALUE(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name, _value) +/** Set a given flag.*/ #define ONLP_OID_STATUS_FLAG_SET(_ptr, _name) \ AIM_FLAG_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name) +/** Clear a given flag. */ #define ONLP_OID_STATUS_FLAG_CLR(_ptr, _name) \ AIM_FLAG_CLR(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name) +/** Determine if a flag is set. */ #define ONLP_OID_STATUS_FLAG_IS_SET(_ptr, _name) \ AIM_FLAG_IS_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name) +/** Determine if a flag is cleared. */ #define ONLP_OID_STATUS_FLAG_NOT_SET(_ptr, _name) \ AIM_FLAG_NOT_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name) -/** - * Common Shorthands - */ +/** Shortcut - OID is present. */ #define ONLP_OID_PRESENT(_ptr) \ ONLP_OID_STATUS_FLAG_IS_SET(_ptr, PRESENT) +/** Shortcut - OID has failed. */ #define ONLP_OID_FAILED(_ptr) \ ONLP_OID_STATUS_FLAG_IS_SET(_ptr, FAILED) @@ -409,10 +442,10 @@ int onlp_oid_get_all_free(biglist_t* list); int onlp_oid_is_present(onlp_oid_t* oid); -/** - * @brief OID -> String Representation - */ +/** OID -> String Representation */ int onlp_oid_to_str(onlp_oid_t oid, char* rstr); + +/** OID -> User representation. */ int onlp_oid_to_user_str(onlp_oid_t oid, char* rstr); /** @@ -459,9 +492,28 @@ int onlp_oid_info_to_json(onlp_oid_hdr_t* info, cJSON** cj, uint32_t flags); /** * @brief OID -> JSON + * @param oid The OID. + * @param[out] rv Receives the JSON structure. + * @param flags The format flags. */ int onlp_oid_to_user_json(onlp_oid_t oid, cJSON** rv, uint32_t flags); + +/** + * @brief OID -> User JSON + * @param oid The OID. + * @param[out] rv Receives the JSON structure. + * @param flags The format flags. + */ int onlp_oid_to_json(onlp_oid_t oid, cJSON** rv, uint32_t flags); + +/** + * @brief JSON -> OID Information structures. + * @param cj The source JSON structure. + * @param[out] hdr Receives the information structure. + * @param[out] all Receives a list of all structures if not NULL and the JSON + * contains multiple objects. + * @param flags The JSON flags. + */ int onlp_oid_from_json(cJSON* cj, onlp_oid_hdr_t** hdr, biglist_t** all, uint32_t flags); /** diff --git a/packages/base/any/onlp/src/onlp/module/inc/onlp/onlp_dox.h b/packages/base/any/onlp/src/onlp/module/inc/onlp/onlp_dox.h index 31429362..b9d1a283 100644 --- a/packages/base/any/onlp/src/onlp/module/inc/onlp/onlp_dox.h +++ b/packages/base/any/onlp/src/onlp/module/inc/onlp/onlp_dox.h @@ -80,6 +80,7 @@ Foobar2 @defgroup ledi ledi @defgroup generici generici @defgroup attributei attributei + @defgroup platformi platformi @} @defgroup module-interfaces Module Documentation diff --git a/packages/base/any/onlp/src/onlp/module/inc/onlp/platformi/attributei.h b/packages/base/any/onlp/src/onlp/module/inc/onlp/platformi/attributei.h index 977a2218..b0e73d32 100644 --- a/packages/base/any/onlp/src/onlp/module/inc/onlp/platformi/attributei.h +++ b/packages/base/any/onlp/src/onlp/module/inc/onlp/platformi/attributei.h @@ -17,9 +17,12 @@ * License. * * - ************************************************************ + ********************************************************//** * - * Attribute Platform Implementation. + * @file + * @brief Attribute Interface. + * @addtogroup attributei + * @{ * ***********************************************************/ #ifndef __ONLP_ATTRIBUTEI_H__ @@ -96,3 +99,4 @@ int onlp_attributei_onie_info_get(onlp_oid_t oid, onlp_onie_info_t* rv); int onlp_attributei_asset_info_get(onlp_oid_t oid, onlp_asset_info_t* rv); #endif /* __ONLP_ATTRIBUTEI_H__ */ +/* @} */ diff --git a/packages/base/any/onlp/src/onlp/module/inc/onlp/platformi/ledi.h b/packages/base/any/onlp/src/onlp/module/inc/onlp/platformi/ledi.h index c5499686..1b147a5b 100644 --- a/packages/base/any/onlp/src/onlp/module/inc/onlp/platformi/ledi.h +++ b/packages/base/any/onlp/src/onlp/module/inc/onlp/platformi/ledi.h @@ -17,9 +17,12 @@ * License. * * - ************************************************************ + ********************************************************//** * - * LED Platform Implementation. + * @file + * @brief Platform Management Interface. + * @addtogroup ledi + * @{ * ***********************************************************/ #ifndef __ONLP_LEDI_H__ @@ -77,7 +80,7 @@ int onlp_ledi_caps_get(onlp_oid_id_t id, uint32_t* rv); * @brief Set the LED mode. * @param id The LED OID * @param mode The new mode. - * @notes Only called if the mode is advertised in the LED capabilities. + * @note Only called if the mode is advertised in the LED capabilities. */ int onlp_ledi_mode_set(onlp_oid_id_t id, onlp_led_mode_t mode); @@ -85,10 +88,11 @@ int onlp_ledi_mode_set(onlp_oid_id_t id, onlp_led_mode_t mode); * @brief Set the LED character. * @param id The LED OID * @param c The character.. - * @notes Only called if the char capability is set. + * @note Only called if the char capability is set. */ int onlp_ledi_char_set(onlp_oid_id_t id, char c); +/** Initialize an LED static OID entry */ #define ONLP_LED_INFO_ENTRY_INIT(_id, _desc, _parent, _caps) \ { \ { \ @@ -100,13 +104,17 @@ int onlp_ledi_char_set(onlp_oid_id_t id, char c); .caps = _caps, \ } +/** Initialize a static chassis LED OID entry */ #define ONLP_CHASSIS_LED_INFO_ENTRY_INIT(_id, _desc, _caps) \ ONLP_LED_INFO_ENTRY_INIT(_id, _desc, ONLP_OID_CHASSIS, _caps) +/** Initialize a static PSU LED OID Entry */ #define ONLP_PSU_LED_INFO_ENTRY_INIT(_id, _desc, _psu_id, _caps) \ ONLP_LED_INFO_ENTRY_INIT(_id, _desc, ONLP_PSU_ID_CREATE(_psu_id), _caps) +/** Initialize a static Fan LED OID Entry */ #define ONLP_FAN_LED_INFO_ENTRY_INIT(_id, _desc, _fan_id, _caps) \ ONLP_LED_INFO_ENTRY_INIT(_id, _desc, ONLP_FAN_ID_CREATE(_fan_id), _caps) #endif /* __ONLP_LED_H__ */ +/* @} */ diff --git a/packages/base/any/onlp/src/onlp/module/inc/onlp/platformi/platformi.h b/packages/base/any/onlp/src/onlp/module/inc/onlp/platformi/platformi.h index 2403f4a2..1da0c6a5 100644 --- a/packages/base/any/onlp/src/onlp/module/inc/onlp/platformi/platformi.h +++ b/packages/base/any/onlp/src/onlp/module/inc/onlp/platformi/platformi.h @@ -17,9 +17,12 @@ * License. * * - ************************************************************ + ********************************************************//** * - * Platform Interface. + * @file + * @brief Platform Management Interface. + * @addtogroup platformi + * @{ * ***********************************************************/ #ifndef __ONLP_PLATFORMI_H__ @@ -29,7 +32,7 @@ /** * @brief Return the name of the the platform implementation. - * @notes This will be called prior to any other calls into the + * @note This will be called prior to any other calls into the * platform driver, including the onlp_platformi_sw_init() function below. * * The platform implementation name should match the current @@ -50,11 +53,15 @@ */ const char* onlp_platformi_get(void); +/** + * @brief Set the platform explicitly if necessary. + * @param platform The platform name. + */ int onlp_platformi_set(const char* platform); /** * @brief Initialize the platform software module. - * @param This should not touch the hardware. + * @note This should not touch the hardware. */ int onlp_platformi_sw_init(void); @@ -85,3 +92,4 @@ int onlp_platformi_manage_fans(void); int onlp_platformi_manage_leds(void); #endif /* __ONLP_PLATFORMI_H__ */ +/* @} */ diff --git a/packages/base/any/onlp/src/onlp/module/inc/onlp/psu.h b/packages/base/any/onlp/src/onlp/module/inc/onlp/psu.h index 26e646c8..d971c66a 100644 --- a/packages/base/any/onlp/src/onlp/module/inc/onlp/psu.h +++ b/packages/base/any/onlp/src/onlp/module/inc/onlp/psu.h @@ -68,7 +68,7 @@ typedef struct onlp_psu_info_t { /** Serial Number */ char serial[ONLP_CONFIG_INFO_STR_MAX]; - /** Capabilities */ + /** Capabilities - a combination of @ref onlp_psu_caps_t */ uint32_t caps; /** Type */ @@ -122,17 +122,17 @@ int onlp_psu_sw_denit(void); /** * @brief Get the PSU's oid header. - * @param id The PSU OID. + * @param oid The PSU OID. * @param[out] rv Receives the header. */ -int onlp_psu_hdr_get(onlp_oid_t id, onlp_oid_hdr_t* rv); +int onlp_psu_hdr_get(onlp_oid_t oid, onlp_oid_hdr_t* rv); /** * @brief Get the PSU information. - * @param id The PSU OID. + * @param oid The PSU OID. * @param[out] rv Receives the information structure. */ -int onlp_psu_info_get(onlp_oid_t id, onlp_psu_info_t* rv); +int onlp_psu_info_get(onlp_oid_t oid, onlp_psu_info_t* rv); /** * @brief Convert a PSU info structure to user JSON. diff --git a/packages/base/any/onlp/src/onlp/module/inc/onlp/thermal.h b/packages/base/any/onlp/src/onlp/module/inc/onlp/thermal.h index 4f4e6c8d..8bd41e45 100644 --- a/packages/base/any/onlp/src/onlp/module/inc/onlp/thermal.h +++ b/packages/base/any/onlp/src/onlp/module/inc/onlp/thermal.h @@ -78,7 +78,7 @@ typedef struct onlp_thermal_info_s { /** OID Header */ onlp_oid_hdr_t hdr; - /** Capabilities */ + /** Capabilities - a combination of @ref onlp_thermal_caps_t */ uint32_t caps; /** Current temperature in milli-celsius */