ipmi_bmc.c revision 81d9f076db88c1f40c85831ce1ebb444a209c5a8
/*
* 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
*/
/*
* Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <errno.h>
#include <fcntl.h>
#include <libipmi.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stropts.h>
#include <unistd.h>
#include <sys/bmc_intf.h>
#include "ipmi_impl.h"
/*
*/
typedef struct ipmi_bmc {
} ipmi_bmc_t;
static void
ipmi_bmc_close(void *data)
{
}
/*ARGSUSED*/
static void *
{
return (NULL);
return (NULL);
}
return (NULL);
}
return (ibp);
}
static int
int *completion)
{
int flags = 0;
/*
* The length of the message structure is equal to the size of the
* bmc_req_t structure, PLUS any additional data space in excess of
* the data space already reserved in the data member + <n> for
* the rest of the members in the bmc_msg_t structure.
*/
/* construct and send the message */
return (-1);
return (-1);
}
/* get the response from the BMC */
return (-1);
}
case BMC_MSG_RESPONSE:
} else {
*completion = 0;
}
break;
case BMC_MSG_ERROR:
return (-1);
default:
return (-1);
}
return (0);
}
};