~ubuntu-branches/ubuntu/maverick/ipmitool/maverick

« back to all changes in this revision

Viewing changes to include/ipmitool/ipmi_constants.h

  • Committer: Bazaar Package Importer
  • Author(s): Petter Reinholdtsen
  • Date: 2005-04-07 01:18:44 UTC
  • Revision ID: james.westby@ubuntu.com-20050407011844-a1b206z5iefiu5vi
Tags: upstream-1.8.1
ImportĀ upstreamĀ versionĀ 1.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c) 2003 Sun Microsystems, Inc.  All Rights Reserved.
 
3
 * 
 
4
 * Redistribution and use in source and binary forms, with or without
 
5
 * modification, are permitted provided that the following conditions
 
6
 * are met:
 
7
 * 
 
8
 * Redistribution of source code must retain the above copyright
 
9
 * notice, this list of conditions and the following disclaimer.
 
10
 * 
 
11
 * Redistribution in binary form must reproduce the above copyright
 
12
 * notice, this list of conditions and the following disclaimer in the
 
13
 * documentation and/or other materials provided with the distribution.
 
14
 * 
 
15
 * Neither the name of Sun Microsystems, Inc. or the names of
 
16
 * contributors may be used to endorse or promote products derived
 
17
 * from this software without specific prior written permission.
 
18
 * 
 
19
 * This software is provided "AS IS," without a warranty of any kind.
 
20
 * ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
 
21
 * INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
 
22
 * PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.
 
23
 * SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE
 
24
 * FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
 
25
 * OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.  IN NO EVENT WILL
 
26
 * SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA,
 
27
 * OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
 
28
 * PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
 
29
 * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
 
30
 * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
 
31
 * 
 
32
 * You acknowledge that this software is not designed or intended for use
 
33
 * in the design, construction, operation or maintenance of any nuclear
 
34
 * facility.
 
35
 */
 
36
 
 
37
#ifndef IPMI_CONSTANTS_H
 
38
#define IPMI_CONSTANTS_H
 
39
 
 
40
 
 
41
/*
 
42
 * COMMANDS
 
43
 */
 
44
#define IPMI_GET_SDR_REPOSITORY_INFO            0x20
 
45
#define IMPI_SOL_ACTIVATING                     0x20
 
46
#define IMPI_SET_SOL_CONFIG_PARAMETERS          0x21
 
47
#define IMPI_GET_SOL_CONFIG_PARAMETERS          0x22
 
48
#define IPMI_SET_USER_ACCESS                    0x43
 
49
#define IPMI_GET_USER_ACCESS                    0x44
 
50
#define IPMI_SET_USER_NAME                      0x45
 
51
#define IPMI_GET_USER_NAME                      0x46
 
52
#define IPMI_SET_USER_PASSWORD                  0x47
 
53
#define IPMI_ACTIVATE_PAYLOAD                   0x48
 
54
#define IPMI_DEACTIVATE_PAYLOAD                 0x49
 
55
#define IPMI_SUSPEND_RESUME_PAYLOAD_ENCRYPTYION 0x55
 
56
#define IPMI_GET_SEL_TIME                       0x48
 
57
#define IPMI_SET_SEL_TIME                       0x49
 
58
 
 
59
#define IPMI_1_5_AUTH_TYPE_BIT_NONE     0x01
 
60
#define IPMI_1_5_AUTH_TYPE_BIT_MD2      0x02
 
61
#define IPMI_1_5_AUTH_TYPE_BIT_MD5      0x04
 
62
#define IPMI_1_5_AUTH_TYPE_BIT_PASSWORD 0x10
 
63
#define IPMI_1_5_AUTH_TYPE_BIT_OEM      0x20
 
64
 
 
65
#define IPMI_SESSION_AUTHTYPE_NONE      0x0
 
66
#define IPMI_SESSION_AUTHTYPE_MD2       0x1
 
67
#define IPMI_SESSION_AUTHTYPE_MD5       0x2
 
68
#define IPMI_SESSION_AUTHTYPE_KEY       0x4
 
69
#define IPMI_SESSION_AUTHTYPE_PASSWORD  IPMI_SESSION_AUTHTYPE_KEY
 
70
#define IPMI_SESSION_AUTHTYPE_OEM       0x5
 
71
#define IPMI_SESSION_AUTHTYPE_RMCP_PLUS 0x6
 
72
 
 
73
#define IPMI_SESSION_PRIV_UNSPECIFIED   0x0
 
74
#define IPMI_SESSION_PRIV_CALLBACK      0x1
 
75
#define IPMI_SESSION_PRIV_USER          0x2
 
76
#define IPMI_SESSION_PRIV_OPERATOR      0x3
 
77
#define IPMI_SESSION_PRIV_ADMIN         0x4
 
78
#define IPMI_SESSION_PRIV_OEM           0x5
 
79
 
 
80
#define IPMI_SET_IN_PROGRESS_SET_COMPLETE 0x00
 
81
#define IPMI_SET_IN_PROGRESS_IN_PROGRESS  0x01
 
82
#define IPMI_SET_IN_PROGRESS_COMMIT_WRITE 0x02
 
83
 
 
84
#undef IPMI_CHANNEL_MEDIUM_IPMB
 
85
 
 
86
#define IPMI_CHANNEL_MEDIUM_RESERVED    0x0
 
87
#define IPMI_CHANNEL_MEDIUM_IPMB        0x1
 
88
#define IPMI_CHANNEL_MEDIUM_ICMB_1      0x2
 
89
#define IPMI_CHANNEL_MEDIUM_ICMB_09     0x3
 
90
#define IPMI_CHANNEL_MEDIUM_LAN         0x4
 
91
#define IPMI_CHANNEL_MEDIUM_SERIAL      0x5
 
92
#define IPMI_CHANNEL_MEDIUM_LAN_OTHER   0x6
 
93
#define IPMI_CHANNEL_MEDIUM_SMBUS_PCI   0x7
 
94
#define IPMI_CHANNEL_MEDIUM_SMBUS_1     0x8
 
95
#define IPMI_CHANNEL_MEDIUM_SMBUS_2     0x9
 
96
#define IPMI_CHANNEL_MEDIUM_USB_1       0xa
 
97
#define IPMI_CHANNEL_MEDIUM_USB_2       0xb
 
98
#define IPMI_CHANNEL_MEDIUM_SYSTEM      0xc
 
99
 
 
100
/* From table 13-17 of the IPMI v2 specification */
 
101
#define IPMI_AUTH_RAKP_NONE         0x00
 
102
#define IPMI_AUTH_RAKP_HMAC_SHA1    0x01
 
103
#define IPMI_AUTH_RAKP_HMAC_MD5     0x02
 
104
 
 
105
/* From table 13-18 of the IPMI v2 specification */
 
106
#define IPMI_INTEGRITY_NONE         0x00
 
107
#define IPMI_INTEGRITY_HMAC_SHA1_96 0x01
 
108
#define IPMI_INTEGRITY_HMAC_MD5_128 0x02
 
109
#define IPMI_INTEGRITY_MD5_128      0x03
 
110
 
 
111
/* From table 13-19 of the IPMI v2 specfication */
 
112
#define IPMI_CRYPT_NONE             0x00
 
113
#define IPMI_CRYPT_AES_CBC_128      0x01
 
114
#define IPMI_CRYPT_XRC4_128         0x02
 
115
#define IPMI_CRYPT_XRC4_40          0x03
 
116
 
 
117
#endif /*IPMI_CONSTANTS_H*/