ONLP
Open Network Linux Platform APIs
fani.h
Go to the documentation of this file.
1 /************************************************************
2  * <bsn.cl fy=2014 v=onl>
3  *
4  * Copyright 2014, 2015 Big Switch Networks, Inc.
5  *
6  * Licensed under the Eclipse Public License, Version 1.0 (the
7  * "License"); you may not use this file except in compliance
8  * with the License. You may obtain a copy of the License at
9  *
10  * http://www.eclipse.org/legal/epl-v10.html
11  *
12  * Unless required by applicable law or agreed to in writing,
13  * software distributed under the License is distributed on an
14  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
15  * either express or implied. See the License for the specific
16  * language governing permissions and limitations under the
17  * License.
18  *
19  * </bsn.cl>
20  ********************************************************/
28 #ifndef __ONLP_FANI_H__
29 #define __ONLP_FANI_H__
30 
31 #include <onlp/fan.h>
32 
36 int onlp_fani_sw_init(void);
37 
42 int onlp_fani_hw_init(uint32_t flags);
43 
50 int onlp_fani_sw_denit(void);
51 
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
int onlp_fani_hw_init(uint32_t flags)
Hardware initialization of the Fan module.
int onlp_fani_rpm_set(onlp_oid_id_t id, int rpm)
Set the fan speed in RPM.
Fan Management.
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&#39;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:296