xref: /openbmc/ipmitool/include/ipmitool/ipmi_sdradd.h (revision c18ec02f3304ce2a889a50e378f07a4168af3884)
1 /*
2  * Redistribution and use in source and binary forms, with or without
3  * modification, are permitted provided that the following conditions
4  * are met:
5  *
6  * Redistribution of source code must retain the above copyright
7  * notice, this list of conditions and the following disclaimer.
8  *
9  * Redistribution in binary form must reproduce the above copyright
10  * notice, this list of conditions and the following disclaimer in the
11  * documentation and/or other materials provided with the distribution.
12  *
13  * Neither the name of Sun Microsystems, Inc. or the names of
14  * contributors may be used to endorse or promote products derived
15  * from this software without specific prior written permission.
16  *
17  * This software is provided "AS IS," without a warranty of any kind.
18  * ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
19  * INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
20  * PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
21  * SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE
22  * FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
23  * OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.  IN NO EVENT WILL
24  * SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
25  * OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
26  * PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
27  * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
28  * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
29  */
30 
31 #ifndef IPMI_SDRADD_H
32 #define IPMI_SDRADD_H
33 
34 /*
35  * Methods to add SDRs to repository from built-in sensors or files
36  */
37 int
38 ipmi_sdr_add_from_sensors(struct ipmi_intf *intf, int maxslot);
39 
40 int
41 ipmi_sdr_add_from_file(struct ipmi_intf *intf, const char *ifile);
42 
43 int
44 ipmi_sdr_add_from_list(struct ipmi_intf *intf, const char *rangeList);
45 
46 #endif /* IPMI_SDRADD_H */
47