2006-02-10 20:51:35 +00:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 2006 Tom Rhodes
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
2006-09-30 13:34:46 +00:00
|
|
|
.Dd September 30, 2006
|
2006-02-10 20:51:35 +00:00
|
|
|
.Dt IPMI 4
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm ipmi
|
|
|
|
.Nd "OpenIPMI compatible IPMI interface driver"
|
|
|
|
.Sh SYNOPSIS
|
2006-04-20 18:29:59 +00:00
|
|
|
.Cd "device ipmi"
|
2006-02-10 20:51:35 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Tn IPMI
|
|
|
|
(Intelligent Platform Management Interface) is a standard for
|
|
|
|
monitoring system hardware by permitting generic code to detect
|
|
|
|
and monitor the sensors in a system.
|
|
|
|
The
|
|
|
|
.Tn IPMI
|
|
|
|
standard offers watchdog support, an FRU database, and other
|
|
|
|
support extensions.
|
|
|
|
It is currently being adopted by the makers of many
|
|
|
|
single board and embedded system manufacturers.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver in
|
|
|
|
.Fx
|
|
|
|
is heavily adopted from the standard and
|
2006-09-30 13:34:46 +00:00
|
|
|
.Tn Linux
|
2006-02-10 20:51:35 +00:00
|
|
|
driver; however, not all features described in the
|
|
|
|
standard are supported.
|
2006-09-30 13:34:46 +00:00
|
|
|
.Sh IOCTLS
|
2006-02-10 20:51:35 +00:00
|
|
|
Sending and receiving messages through the
|
|
|
|
.Nm
|
2006-09-30 13:34:46 +00:00
|
|
|
driver requires the use of
|
|
|
|
.Xr ioctl 2 .
|
|
|
|
The ioctls are used due to the complexity of
|
2006-02-10 20:51:35 +00:00
|
|
|
data sent to and from the device.
|
2006-09-30 13:34:46 +00:00
|
|
|
The
|
|
|
|
.Xr ioctl 2
|
|
|
|
command codes below are defined in
|
|
|
|
.In sys/ipmi.h .
|
|
|
|
The third argument to
|
|
|
|
.Xr ioctl 2
|
|
|
|
should be a pointer to the type indicated.
|
|
|
|
.Pp
|
|
|
|
Currently the following ioctls are supported:
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Dv IPMICTL_RECEIVE_MSG Pq Vt "struct ipmi_recv"
|
2006-02-10 20:51:35 +00:00
|
|
|
Receive a message.
|
|
|
|
Possible error values:
|
|
|
|
.Bl -tag -width Er
|
|
|
|
.It Bq Er EAGAIN
|
|
|
|
No messages are in the process queue.
|
|
|
|
.It Bq Er EFAULT
|
|
|
|
An address supplied was invalid.
|
|
|
|
.It Bq Er EMSGSIZE
|
|
|
|
The address could not fit in the message buffer and
|
|
|
|
will remain in the buffer.
|
|
|
|
.El
|
2006-09-30 13:34:46 +00:00
|
|
|
.It Dv IPMICTL_RECEIVE_MSG_TRUNC Pq Vt "struct ipmi_recv"
|
|
|
|
Like
|
|
|
|
.Dv IPMICTL_RECEIVE_MSG
|
|
|
|
but if the message cannot fit into the buffer, it
|
|
|
|
will truncate the contents instead of leaving the data
|
|
|
|
in the buffer.
|
|
|
|
.It Dv IPMICTL_SEND_COMMAND Pq Vt "struct ipmi_req"
|
2006-02-10 20:51:35 +00:00
|
|
|
Send a message to the interface.
|
|
|
|
Possible error values:
|
|
|
|
.Bl -tag -width Er
|
|
|
|
.It Bq Er EFAULT
|
|
|
|
An address supplied was invalid
|
|
|
|
.It Bq Er ENOMEM
|
|
|
|
Buffers could not be allowed for the command, out of memory.
|
|
|
|
.El
|
2006-09-30 13:34:46 +00:00
|
|
|
.It Dv IPMICTL_SET_MY_ADDRESS_CMD Pq Vt "unsigned int"
|
2006-02-10 20:51:35 +00:00
|
|
|
Set the slave address for source messages.
|
2006-09-30 13:34:46 +00:00
|
|
|
.It Dv IPMICTL_GET_MY_ADDRESS_CMD Pq Vt "unsigned int"
|
2006-02-10 20:51:35 +00:00
|
|
|
Get the slave address for source messages.
|
2006-09-30 13:34:46 +00:00
|
|
|
.It Dv IPMICTL_SET_MY_LUN_CMD Pq Vt "unsigned int"
|
2006-02-10 20:51:35 +00:00
|
|
|
Set the slave LUN for source messages.
|
2006-09-30 13:34:46 +00:00
|
|
|
.It Dv IPMICTL_GET_MY_LUN_CMD Pq Vt "unsigned int"
|
2006-02-10 20:51:35 +00:00
|
|
|
Get the slave LUN for source messages.
|
2006-09-30 13:34:46 +00:00
|
|
|
.El
|
|
|
|
.Ss Unimplemented Ioctls
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Dv IPMICTL_REGISTER_FOR_CMD Pq Vt "struct ipmi_cmdspec"
|
2006-12-14 16:40:57 +00:00
|
|
|
Register to receive a specific command
|
2006-02-10 20:51:35 +00:00
|
|
|
Possible error values:
|
|
|
|
.Bl -tag -width Er
|
|
|
|
.It Bq Er EFAULT
|
|
|
|
An supplied address was invalid.
|
|
|
|
.It Bq Er EBUSY
|
|
|
|
The network function/command is already in use.
|
|
|
|
.It Bq Er ENOMEM
|
|
|
|
Could not allocate memory.
|
|
|
|
.El
|
2006-09-30 13:34:46 +00:00
|
|
|
.It Dv IPMICTL_UNREGISTER_FOR_CMD Pq Vt "struct ipmi_cmdspec"
|
2006-02-12 21:06:14 +00:00
|
|
|
Unregister to receive a specific command
|
2006-02-10 20:51:35 +00:00
|
|
|
Possible error values:
|
|
|
|
.Bl -tag -width Er
|
|
|
|
.It Bq Er EFAULT
|
|
|
|
An address supplied was invalid.
|
|
|
|
.It Bq Er ENOENT
|
|
|
|
The network function/command was not found.
|
|
|
|
.El
|
2006-09-30 13:34:46 +00:00
|
|
|
.El
|
|
|
|
.Ss Stub Only Ioctl
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Dv IPMICTL_SET_GETS_EVENTS_CMD Pq Vt int
|
2006-02-10 20:51:35 +00:00
|
|
|
Set whether this interface receives events.
|
|
|
|
Possible error values:
|
|
|
|
.Bl -tag -width Er
|
|
|
|
.It Bq Er EFAULT
|
|
|
|
An address supplied was invalid.
|
|
|
|
.El
|
2006-09-30 13:34:46 +00:00
|
|
|
.El
|
2006-02-10 20:51:35 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr ioctl 2 ,
|
|
|
|
.Xr watchdog 4 ,
|
|
|
|
.Xr watchdog 8 ,
|
|
|
|
.Xr watchdogd 8 ,
|
|
|
|
.Xr watchdog 9
|
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver first appeared in
|
|
|
|
.Fx 7.0 .
|
|
|
|
.Sh AUTHORS
|
2006-04-20 18:29:59 +00:00
|
|
|
.An -nosplit
|
2006-02-10 20:51:35 +00:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver was written by
|
2006-04-20 18:29:59 +00:00
|
|
|
.An Doug Ambrisko Aq ambrisko@FreeBSD.org .
|
2006-02-10 20:51:35 +00:00
|
|
|
This manual page was written by
|
2006-04-20 18:29:59 +00:00
|
|
|
.An Tom Rhodes Aq trhodes@FreeBSD.org .
|
2006-02-10 20:51:35 +00:00
|
|
|
.Sh BUGS
|
|
|
|
Not all features of the MontaVista driver are supported.
|
|
|
|
.Pp
|
|
|
|
Currently, IPMB and BT modes are not implemented.
|