~ubuntu-branches/ubuntu/vivid/ipmitool/vivid-updates

« back to all changes in this revision

Viewing changes to include/ipmitool/ipmi_channel.h

  • Committer: Package Import Robot
  • Author(s): Luk Claes
  • Date: 2013-05-07 18:12:12 UTC
  • mfrom: (5.1.11 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20130507181212-fitwelheknk3tqnq
Tags: 1.8.12-1
Merge new upstream from Ubuntu (Closes: #692292).

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
 * The Get Authentication Capabilities response structure
55
55
 * From table 22-15 of the IPMI v2.0 spec
56
56
 */
 
57
#ifdef HAVE_PRAGMA_PACK
 
58
#pragma pack(1)
 
59
#endif
57
60
struct get_channel_auth_cap_rsp {
58
61
        uint8_t channel_number;
59
62
#if WORDS_BIGENDIAN
93
96
#endif
94
97
        uint8_t oem_id[3];    /* IANA enterprise number for auth type */
95
98
        uint8_t oem_aux_data; /* Additional OEM specific data for oem auths */
96
 
} __attribute__ ((packed));
 
99
} ATTRIBUTE_PACKING;
 
100
#ifdef HAVE_PRAGMA_PACK
 
101
#pragma pack(0)
 
102
#endif
97
103
 
98
104
 
99
105
 
101
107
 * The Get Channel Info response structure
102
108
 * From table 22-29 of the IPMI v2.0 spec
103
109
 */
 
110
#ifdef HAVE_PRAGMA_PACK
 
111
#pragma pack(1)
 
112
#endif
104
113
struct get_channel_info_rsp {
105
114
#if WORDS_BIGENDIAN
106
115
        uint8_t __reserved1       : 4; 
132
141
#endif
133
142
        uint8_t vendor_id[3]; /* For OEM that specified the protocol */
134
143
        uint8_t aux_info[2];  /* Not used*/
135
 
} __attribute__ ((packed));
 
144
} ATTRIBUTE_PACKING;
 
145
#ifdef HAVE_PRAGMA_PACK
 
146
#pragma pack(0)
 
147
#endif
136
148
 
137
149
 
138
150
 
140
152
 * The Get Channel Access response structure
141
153
 * From table 22-28 of the IPMI v2.0 spec
142
154
 */
 
155
#ifdef HAVE_PRAGMA_PACK
 
156
#pragma pack(1)
 
157
#endif
143
158
struct get_channel_access_rsp {
144
159
#if WORDS_BIGENDIAN
145
160
        uint8_t __reserved1        : 2;
161
176
        uint8_t channel_priv_limit : 4; /* Channel privilege level limit */
162
177
        uint8_t __reserved2        : 4;
163
178
#endif
164
 
} __attribute__ ((packed));
165
 
 
166
 
 
 
179
} ATTRIBUTE_PACKING;
 
180
#ifdef HAVE_PRAGMA_PACK
 
181
#pragma pack(0)
 
182
#endif
 
183
 
 
184
#ifdef HAVE_PRAGMA_PACK
 
185
#pragma pack(1)
 
186
#endif
167
187
struct get_user_access_rsp {
168
188
#if WORDS_BIGENDIAN
169
189
        uint8_t __reserved1        : 2;
190
210
        uint8_t callin_callback    : 1;
191
211
        uint8_t __reserved4        : 1;
192
212
#endif
193
 
} __attribute__ ((packed));
 
213
} ATTRIBUTE_PACKING;
 
214
#ifdef HAVE_PRAGMA_PACK
 
215
#pragma pack(0)
 
216
#endif
194
217
 
 
218
#ifdef HAVE_PRAGMA_PACK
 
219
#pragma pack(1)
 
220
#endif
195
221
struct set_user_access_data {
196
222
#if WORDS_BIGENDIAN
197
223
        uint8_t change_bits        : 1;
218
244
        uint8_t session_limit      : 4;
219
245
        uint8_t __reserved3        : 4;
220
246
#endif
221
 
} __attribute__ ((packed));
 
247
} ATTRIBUTE_PACKING;
 
248
#ifdef HAVE_PRAGMA_PACK
 
249
#pragma pack(0)
 
250
#endif
222
251
 
223
252
uint8_t ipmi_get_channel_medium(struct ipmi_intf * intf, uint8_t channel);
224
253
uint8_t ipmi_current_channel_medium(struct ipmi_intf * intf);