summaryrefslogtreecommitdiffstats
path: root/share/man/man4/ipmi.4
diff options
context:
space:
mode:
authorambrisko <ambrisko@FreeBSD.org>2006-02-10 20:51:35 +0000
committerambrisko <ambrisko@FreeBSD.org>2006-02-10 20:51:35 +0000
commitb7dae28d4aa65025d8b050fdb6b27c4513ea04c5 (patch)
tree29eb76da22030da0fe8abe3fb9217106ac073034 /share/man/man4/ipmi.4
parent0b9aa32c53586867cabc1d7b02456ca0dfc44f9c (diff)
downloadFreeBSD-src-b7dae28d4aa65025d8b050fdb6b27c4513ea04c5.zip
FreeBSD-src-b7dae28d4aa65025d8b050fdb6b27c4513ea04c5.tar.gz
Add an OpenIPMI mostly compatible driver. This driver was developed
to work with ipmitools. It works with other tools that have an OpenIPMI driver interface. The port will need to get updated to used this. I have not implemented the IPMB mode yet so ioctl's for that don't really do much otherwise it should work like the OpenIPMI version. The ipmi.h definitions was derived from the ipmitool header file. The bus attachments are done for smbios and pci/smbios. Differences in bus probe order for modules/static are delt with. ACPI attachment should be done. This drivers registers with the watchdod(4) interface Work to do: - BT interface - IPMB mode This has been tested on Dell PE2850, PE2650 & PE850 with i386 & amd64 kernel. I will link this into the build on next week. Tom Rhodes, helped me with the man page. Sponsored by: IronPort Systems Inc. Inspired from: ipmitool & Linux
Diffstat (limited to 'share/man/man4/ipmi.4')
-rw-r--r--share/man/man4/ipmi.4187
1 files changed, 187 insertions, 0 deletions
diff --git a/share/man/man4/ipmi.4 b/share/man/man4/ipmi.4
new file mode 100644
index 0000000..2dcea85
--- /dev/null
+++ b/share/man/man4/ipmi.4
@@ -0,0 +1,187 @@
+.\"
+.\" 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$
+.\"
+.Dd February 10, 2006
+.Dt IPMI 4
+.Os
+.Sh NAME
+.Nm ipmi
+.Nd "OpenIPMI compatible IPMI interface driver"
+.Sh SYNOPSIS
+.Cd "options IPMI"
+.Pp
+.In sys/dev/ipmi.h
+.Ft int
+.Fn ioctl "int d" "IPMICTL_RECEIVE_MSG_TRUNC" "struct ipmi_recv *"
+.Ft int
+.Fn ioctl "int d" "IPMICTL_RECEIVE_MSG" "struct ipmi_recv *"
+.Ft int
+.Fn ioctl "int d" "IPMICTL_SEND_COMMAND" "struct ipmi_req *"
+.Ft int
+.Fn ioctl "int d" "IPMICTL_REGISTER_FOR_CMD" "struct ipmi_cmdspec *"
+.Ft int
+.Fn ioctl "int d" "IPMICTL_UNREGISTER_FOR_CMD" "struct ipmi_cmdspec *"
+.Ft int
+.Fn ioctl "int d" "IPMICTL_SET_GETS_EVENTS_CMD" "int *"
+.Ft int
+.Fn ioctl "int d" "IPMICTL_SET_MY_ADDRESS_CMD" "unsigned int *"
+.Ft int
+.Fn ioctl "int d" "IPMICTL_GET_MY_ADDRESS_CMD" "unsigned int *"
+.Ft int
+.Fn ioctl "int d" "IPMICTL_SET_MY_LUN_CMD" "unsigned int *"
+.Ft int
+.Fn ioctl "int d" "IPMICTL_GET_MY_LUN_CMD" "unsigned int *"
+.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
+.Lx
+driver; however, not all features described in the
+standard are supported.
+.Sh IOCTL
+Sending and receiving messages through the
+.Nm
+driver requires the use of IOCTLs.
+The IOCTLs are used due to the complexity of
+data sent to and from the device.
+Currently the following IOCTLs are defined:
+.Pp
+.Dv IPMI_IOC_MAGIC
+The magic IOCTL value for this interface.
+.Pp
+.Dv IPMICTL_RECEIVE_MSG_TRUNC
+Like
+.Dv RECEIVE_MSG
+but if the message can not fit into the buffer, it
+will truncate the contents instead of leaving the data
+in the buffer.
+.Pp
+.Dv IPMICTL_RECEIVE_MSG
+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
+.Pp
+.Dv IPMICTL_SEND_COMMAND
+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
+.Pp
+.Dv IPMICTL_SET_MY_ADDRESS_CMD
+Set the slave address for source messages.
+.Pp
+.Dv IPMICTL_GET_MY_ADDRESS_CMD
+Get the slave address for source messages.
+.Pp
+.Dv IPMICTL_SET_MY_LUN_CMD
+Set the slave LUN for source messages.
+.Pp
+.Dv IPMICTL_GET_MY_LUN_CMD
+Get the slave LUN for source messages.
+.Pp
+.Ss Unimplemented IOCTLS:
+.Pp
+.Dv IPMICTL_REGISTER_FOR_CMD
+Register to receive a specfic command
+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
+.Pp
+.Dv IPMICTL_UNREGISTER_FOR_CMD
+Unregister to receive a specfic command
+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
+.Pp
+.Ss Stub only IOCTL:
+.Pp
+.Dv IPMICTL_SET_GETS_EVENTS_CMD
+Set whether this interface receives events.
+Possible error values:
+.Bl -tag -width Er
+.It Bq Er EFAULT
+An address supplied was invalid.
+.El
+.Pp
+.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
+The
+.Nm
+driver was written by
+.Ar Doug Ambrisko An ambrisko@FreeBSD.org .
+This manual page was written by
+.Ar Tom Rhodes An trhodes@FreeBSD.org .
+.Sh BUGS
+Not all features of the MontaVista driver are supported.
+.Pp
+Currently, IPMB and BT modes are not implemented.
OpenPOWER on IntegriCloud