/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
#include <libipmi.h>
#include <stdio.h>
#include <string.h>
#include "ipmi_impl.h"
{
return (ihp->ih_deviceid);
return (NULL);
return (NULL);
}
/*
* The devid response data may include additional data beyond the end of
* the normal structure, so we copy the entire response.
*/
return (NULL);
return (ihp->ih_deviceid);
}
/*
* Returns the firmware revision as a string. This does the work of converting
* the deviceid data into a human readable string (decoding the BCD values).
* It also encodes the fact that Sun ILOM includes the additional micro revision
* at the end of the deviceid information.
*/
const char *
{
int i;
return (ihp->ih_firmware_rev);
return (NULL);
/*
* Start with the major an minor revision numbers
*/
if (ipmi_is_sun_ilom(dp) &&
/*
* With Sun ILOM we have the micro revision at the end of the
* deviceid. The first two bytes of the aux revision field are
* the platform version and release version.
*/
for (i = 0; i < 2; i++) {
auxrev[i]);
}
}
return (NULL);
return (ihp->ih_firmware_rev);
}
/*
* Similar to ipmi_firmware_version, except the 4 components of the version are
* stored in uint8 bufs. This is to facilitate code that needs to do numeric
* comparisons against one or more components of the firmware version.
*
* This is designed for ILOM and will return an error (-1) if it is called
* against a version of firmware that is not ILOM.
*/
int
{
return (-1);
if (! ipmi_is_sun_ilom(dp))
return (-1);
/*
* Start with the major an minor revision numbers
*/
/*
* With Sun ILOM we have the micro revision at the end of the
* deviceid. The first two bytes of the aux revision field are
* the platform version and release version.
*/
} else
return (-1);
return (0);
}
/*
* IPMI Get Channel Authentication Capabilities Command
* See Section 22.13
*
* Caller is responsible for free'ing returned ipmi_channel_auth_caps_t
*/
{
if (channel > 0xF) {
return (NULL);
}
return (NULL);
return (NULL);
}
== NULL)
/* ipmi errno set */
return (NULL);
return (caps);
}
{
if (number > 0xF) {
return (NULL);
}
return (NULL);
return (NULL);
}
}
/*
* IPMI Chassis Identify Command
* See Section 28.5
*/
int
{
if (enable) {
msg_data[0] = 0;
} else {
msg_data[0] = 0;
msg_data[1] = 0;
}
return (-1);
return (0);
}