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_OEM_H 32 #define IPMI_OEM_H 33 34 #include <ipmitool/ipmi.h> 35 36 /* oem handler, see lib/ipmi_oem.c */ 37 struct ipmi_oem_handle { 38 const char * name; 39 const char * desc; 40 int (*setup)(struct ipmi_intf * intf); 41 }; 42 43 void ipmi_oem_print(void); 44 int ipmi_oem_setup(struct ipmi_intf * intf, char * oemtype); 45 int ipmi_oem_active(struct ipmi_intf * intf, const char * oemtype); 46 47 #endif /*IPMI_OEM_H*/ 48