Blame include/ipmitool/ipmi_sunoem.h

Packit Service ed0f68
/*
Packit Service ed0f68
 * Copyright (c) 2009, 2014, Oracle and/or its affiliates. All rights reserved.
Packit Service ed0f68
 * 
Packit Service ed0f68
 * Redistribution and use in source and binary forms, with or without
Packit Service ed0f68
 * modification, are permitted provided that the following conditions
Packit Service ed0f68
 * are met:
Packit Service ed0f68
 * 
Packit Service ed0f68
 * Redistribution of source code must retain the above copyright
Packit Service ed0f68
 * notice, this list of conditions and the following disclaimer.
Packit Service ed0f68
 * 
Packit Service ed0f68
 * Redistribution in binary form must reproduce the above copyright
Packit Service ed0f68
 * notice, this list of conditions and the following disclaimer in the
Packit Service ed0f68
 * documentation and/or other materials provided with the distribution.
Packit Service ed0f68
 * 
Packit Service ed0f68
 * Neither the name of Sun Microsystems, Inc. or the names of
Packit Service ed0f68
 * contributors may be used to endorse or promote products derived
Packit Service ed0f68
 * from this software without specific prior written permission.
Packit Service ed0f68
 * 
Packit Service ed0f68
 * This software is provided "AS IS," without a warranty of any kind.
Packit Service ed0f68
 * ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
Packit Service ed0f68
 * INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
Packit Service ed0f68
 * PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
Packit Service ed0f68
 * SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE
Packit Service ed0f68
 * FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
Packit Service ed0f68
 * OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.  IN NO EVENT WILL
Packit Service ed0f68
 * SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
Packit Service ed0f68
 * OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
Packit Service ed0f68
 * PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
Packit Service ed0f68
 * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
Packit Service ed0f68
 * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
Packit Service ed0f68
 */
Packit Service ed0f68
Packit Service ed0f68
#ifndef IPMI_SUNOEM_H
Packit Service ed0f68
#define IPMI_SUNOEM_H
Packit Service ed0f68
Packit Service ed0f68
#if HAVE_CONFIG_H
Packit Service ed0f68
# include <config.h>
Packit Service ed0f68
#endif
Packit Service ed0f68
#include <ipmitool/ipmi.h>
Packit Service ed0f68
#include <ipmitool/ipmi_sdr.h>
Packit Service ed0f68
Packit Service ed0f68
#define IPMI_NETFN_SUNOEM				0x2e
Packit Service ed0f68
Packit Service ed0f68
#define IPMI_SUNOEM_SET_SSH_KEY				0x01
Packit Service ed0f68
#define IPMI_SUNOEM_DEL_SSH_KEY				0x02
Packit Service ed0f68
#define IPMI_SUNOEM_GET_HEALTH_STATUS			0x10
Packit Service ed0f68
#define IPMI_SUNOEM_CLI					0x19
Packit Service ed0f68
#define IPMI_SUNOEM_SET_FAN_SPEED			0x20
Packit Service ed0f68
#define IPMI_SUNOEM_LED_GET				0x21
Packit Service ed0f68
#define IPMI_SUNOEM_LED_SET				0x22
Packit Service ed0f68
#define IPMI_SUNOEM_ECHO				0x23
Packit Service ed0f68
#define IPMI_SUNOEM_VERSION				0x24
Packit Service ed0f68
#define IPMI_SUNOEM_NACNAME				0x29
Packit Service ed0f68
#define IPMI_SUNOEM_GETVAL				0x2A
Packit Service ed0f68
#define IPMI_SUNOEM_SETVAL				0x2C
Packit Service ed0f68
#define IPMI_SUNOEM_SENSOR_SET				0x3A
Packit Service ed0f68
#define IPMI_SUNOEM_SET_FAN_MODE			0x41
Packit Service ed0f68
#define IPMI_SUNOEM_CORE_TUNNEL                         0x44
Packit Service ed0f68
Packit Service ed0f68
/*
Packit Service ed0f68
 * Error codes of sunoem functions
Packit Service ed0f68
 */
Packit Service ed0f68
typedef enum {
Packit Service ed0f68
	SUNOEM_EC_SUCCESS            = 0,
Packit Service ed0f68
	SUNOEM_EC_INVALID_ARG        = 1,
Packit Service ed0f68
	SUNOEM_EC_BMC_NOT_RESPONDING = 2,
Packit Service ed0f68
	SUNOEM_EC_BMC_CCODE_NONZERO  = 3
Packit Service ed0f68
} sunoem_ec_t;
Packit Service ed0f68
Packit Service ed0f68
int ipmi_sunoem_main(struct ipmi_intf *, int, char **);
Packit Service ed0f68
Packit Service ed0f68
#endif /*IPMI_SUNOEM_H*/
Packit Service ed0f68