2 .\" Copyright (c) 2006 Tom Rhodes
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
14 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 .Nd "OpenIPMI compatible IPMI interface driver"
39 .Fn ioctl "int d" "IPMICTL_RECEIVE_MSG_TRUNC" "struct ipmi_recv *"
41 .Fn ioctl "int d" "IPMICTL_RECEIVE_MSG" "struct ipmi_recv *"
43 .Fn ioctl "int d" "IPMICTL_SEND_COMMAND" "struct ipmi_req *"
45 .Fn ioctl "int d" "IPMICTL_REGISTER_FOR_CMD" "struct ipmi_cmdspec *"
47 .Fn ioctl "int d" "IPMICTL_UNREGISTER_FOR_CMD" "struct ipmi_cmdspec *"
49 .Fn ioctl "int d" "IPMICTL_SET_GETS_EVENTS_CMD" "int *"
51 .Fn ioctl "int d" "IPMICTL_SET_MY_ADDRESS_CMD" "unsigned int *"
53 .Fn ioctl "int d" "IPMICTL_GET_MY_ADDRESS_CMD" "unsigned int *"
55 .Fn ioctl "int d" "IPMICTL_SET_MY_LUN_CMD" "unsigned int *"
57 .Fn ioctl "int d" "IPMICTL_GET_MY_LUN_CMD" "unsigned int *"
61 (Intelligent Platform Management Interface) is a standard for
62 monitoring system hardware by permitting generic code to detect
63 and monitor the sensors in a system.
66 standard offers watchdog support, an FRU database, and other
68 It is currently being adopted by the makers of many
69 single board and embedded system manufacturers.
75 is heavily adopted from the standard and
77 driver; however, not all features described in the
78 standard are supported.
80 Sending and receiving messages through the
82 driver requires the use of IOCTLs.
83 The IOCTLs are used due to the complexity of
84 data sent to and from the device.
85 Currently the following IOCTLs are defined:
88 The magic IOCTL value for this interface.
90 .Dv IPMICTL_RECEIVE_MSG_TRUNC
93 but if the message can not fit into the buffer, it
94 will truncate the contents instead of leaving the data
97 .Dv IPMICTL_RECEIVE_MSG
99 Possible error values:
102 No messages are in the process queue.
104 An address supplied was invalid.
106 The address could not fit in the message buffer and
107 will remain in the buffer.
110 .Dv IPMICTL_SEND_COMMAND
111 Send a message to the interface.
112 Possible error values:
115 An address supplied was invalid
117 Buffers could not be allowed for the command, out of memory.
120 .Dv IPMICTL_SET_MY_ADDRESS_CMD
121 Set the slave address for source messages.
123 .Dv IPMICTL_GET_MY_ADDRESS_CMD
124 Get the slave address for source messages.
126 .Dv IPMICTL_SET_MY_LUN_CMD
127 Set the slave LUN for source messages.
129 .Dv IPMICTL_GET_MY_LUN_CMD
130 Get the slave LUN for source messages.
132 .Ss Unimplemented IOCTLS:
134 .Dv IPMICTL_REGISTER_FOR_CMD
135 Register to receive a specfic command
136 Possible error values:
139 An supplied address was invalid.
141 The network function/command is already in use.
143 Could not allocate memory.
146 .Dv IPMICTL_UNREGISTER_FOR_CMD
147 Unregister to receive a specific command
148 Possible error values:
151 An address supplied was invalid.
153 The network function/command was not found.
158 .Dv IPMICTL_SET_GETS_EVENTS_CMD
159 Set whether this interface receives events.
160 Possible error values:
163 An address supplied was invalid.
174 driver first appeared in
180 driver was written by
181 .An Doug Ambrisko Aq ambrisko@FreeBSD.org .
182 This manual page was written by
183 .An Tom Rhodes Aq trhodes@FreeBSD.org .
185 Not all features of the MontaVista driver are supported.
187 Currently, IPMB and BT modes are not implemented.