4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
22 * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
35 #define IPMI_CMD_GET_SESSION_CHALLENGE 0x39
36 #define IPMI_CMD_ACTIVATE_SESSION 0x3a
37 #define IPMI_CMD_SET_SESSION_PRIVLVL 0x3b
38 #define IPMI_CMD_CLOSE_SESSION 0x3c
40 #define IPMI_AUTHCODE_BUF_SIZE 20
44 #define IPMI_SESSION_AUTHTYPE_NONE 0x01
45 #define IPMI_SESSION_AUTHTYPE_MD2 0x02
46 #define IPMI_SESSION_AUTHTYPE_MD5 0x04
47 #define IPMI_SESSION_AUTHTYPE_PASSWORD 0x10
48 #define IPMI_SESSION_AUTHTYPE_OEM 0x20
50 #define IPMI_SESSION_PRIV_UNSPECIFIED 0x0
51 #define IPMI_SESSION_PRIV_CALLBACK 0x1
52 #define IPMI_SESSION_PRIV_USER 0x2
53 #define IPMI_SESSION_PRIV_OPERATOR 0x3
54 #define IPMI_SESSION_PRIV_ADMIN 0x4
55 #define IPMI_SESSION_PRIV_OEM 0x5
57 #define IPMI_BMC_SLAVE_ADDR 0x20
58 #define IPMI_BUF_SIZE 1024
59 #define IPMI_REMOTE_SWID 0x81
62 * The primary RMCP port
64 #define RMCP_UDP_PORT 623
67 * The ASF IANA Enterprise Number
69 #define ASF_RMCP_IANA 4542
72 * ASF Message Types for presence ping and pong
74 #define ASF_TYPE_PING 0x80
75 #define ASF_TYPE_PONG 0x40
82 typedef struct asf_hdr
{
95 #define RMCP_VERSION_1 0x06
96 #define RMCP_CLASS_ASF 0x06
97 #define RMCP_CLASS_IPMI 0x07
98 #define RMCP_CLASS_OEM 0x08
100 typedef struct rmcp_hdr
{
111 * IPMI Session Header
113 * The IPMI session header contains some optional payload fields that are only
114 * present in RMCP+ sessions or if the payload type is "OEM explicit". This
115 * structure is only intended to represent the session header for IPMI v1.5
120 typedef struct v15_session_hdr
{
127 * IPMI Lan Message Header
131 typedef struct ipmi_msg_hdr
{
148 #endif /* IPMI_LAN_H */