X hits on this document

PDF document

February 10, 2006 - page 72 / 238

505 views

0 shares

0 downloads

0 comments

72 / 238

60

CHAPTER 3. IPMI INTERFACES

3.12.1

Channel handling

in OpenIPMI

unsigned int

channel,

_ _ _ ipmi channel info cb handler,

void

_ *cb data);

Channel Information

The callback gets a channel information structure which can be accessed with the following functions: int ipmi_channel_info_get_channel(ipmi_channel_info_t *info,

int

err,

_ _ _ ipmi channel info t *info,

void

_ *cb data);

unsigned int

*channel);

unsigned int

*prot_type);

OpenIPMI allows the user to get channel information with the following command:

typedef struct ipmi_channel_info_s ipmi_channel_info_t;

t y p e d e f v o i d ( * i p m i _ c h a n n e l _ i n f o _ c b ) ( i p m i _ m c _ t

*mc,

i n t i p m i _ m c _ c h a n n e l _ g e t _ i n f o ( i p m i _ m c _ t

*mc,

i n t i p m i _ c h a n n e l _ i n f o _ g e t _ m e d i u m ( i p m i _ c h a n n e l _ i n f o _ t * i n f o ,

unsigned int

*medium);

i n t i p m i _ c h a n n e l _ i n f o _ g e t _ p r o t o c o l _ t y p e ( i p m i _ c h a n n e l _ i n f o _ t * i n f o ,

i n t i p m i _ c h a n n e l _ i n f o _ g e t _ s e s s i o n _ s u p p o r t ( i p m i _ c h a n n e l _ i n f o _ t * i n f o ,

unsigned int

*sup);

/* Data is 3 bytes long */

i n t i p m i _ c h a n n e l _ i n f o _ g e t _ v e n d o r _ i d ( i p m i _ c h a n n e l _ i n f o _ t * i n f o ,

unsigned char

*data);

/* Data is 2 bytes long */

i n t i p m i _ c h a n n e l _ i n f o _ g e t _ a u x _ i n f o ( i p m i _ c h a n n e l _ i n f o _ t * i n f o ,

unsigned char

*data);

Table 3.24 on the facing page describes the channel mediums defined in OpenIPMI. Table 3.25 on the next page describes the channel protocol types. Table 3.26 on the facing page describes the channel session support settings.

Channel Access

int

err,

_ _ _ ipmi channel access t *info,

void

_ *cb data);

Channels have access controls that define who may use them, privilege limits, and other things of that nature. These are available to be fetched and set with OpenIPMI functions:

typedef struct ipmi_channel_access_s ipmi_channel_access_t;

t y p e d e f v o i d ( * i p m i _ c h a n n e l _ a c c e s s _ c b ) ( i p m i _ m c _ t

*mc,

i n t i p m i _ m c _ c h a n n e l _ g e t _ a c c e s s ( i p m i _ m c _ t

*mc,

Document info
Document views505
Page views505
Page last viewedFri Dec 02 18:17:24 UTC 2016
Pages238
Paragraphs8090
Words85809

Comments