ONLP
Open Network Linux Platform APIs
base.h
1 #ifndef __ONLP_PLATFORMI_COMMON_H__
2 #define __ONLP_PLATFORMI_COMMON_H__
3 
4 /*
5  * Interchange includes between subsystems
6  */
9 #include <onlp/platformi/fani.h>
10 #include <onlp/platformi/psui.h>
12 #include <onlp/platformi/sfpi.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 #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.
Thermal Sensor Platform Implementation.