X hits on this document

PDF document

February 10, 2006 - page 222 / 238

645 views

0 shares

0 downloads

0 comments

222 / 238

int

is_active,

_ _ _ ipmi ll_ipmb addr cb handler,

void

_ *cb data);

unsigned int

addr_len,

const ipmi_msg_t

*msg,

_ _ _ ipmi ll rsp_handler t rsp_handler,

_ ipmi msgi_t

*rspi);

_ _ _ ipmi ll_evt handler t

handler,

void

*cb_data);

210

/* Register to receive IPMI events from the interface. */

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

*ipmi,

_ _ _ _ ipmi ll evt handler t

handler,

void

*cb_data);

APPENDIX K. CONNECTION HANDLING INTERFACE (IPMI CONN.H)

/*

Change the state of the connection to be active or inactive.

i if necessary. */ n t ( * s e t _ a c t i v e _ s t a t e ) ( i p m i _ c o n _ t

*ipmi,

/*

out, rsp_handler will be called with the following four data

i /* Remove an event handler. */ n t ( * r e m o v e _ e v e n t _ h a n d l e r ) ( i p m i _ c o n _ t

*ipmi,

This may be NULL if the connection does not support this. interface code may set this, the OEM code should override

The this

Send an IPMI command (in "msg" on the "ipmi"

given

"addr".

When

the

response

comes

in

or

connection to the the message times

is

/*

void

* c b _ d a t a ) ;

periodically. */ i n t ( * g e t _ i p m b _ a d d r ) ( i p m i _ c o n *ipmi, _ t i p m i _ l l _ i p m b _ a d d r _ c b h a n d l e r ,

items. reponse

Note that the lower layer MUST guarantee that the handler is called, even if it fails or the message

*ipmi, *addr,

It may be call may be

set

or

overridden

by

the

OEM

code.

This

is

primarily

for

use

addr t

_

This NULL

to it

dropped. */ int (*send_command)(ipmi_con_t const ipmi

_

call gets the IPMB address if the connection does not

of the connection.

support

this.

This

by the connection code itself, connected to should set this. address is assumed to be 0x20.

the OEM code for the BMC If it is not set, the IPMB This *should* send a message

that and use check if the be called

the device, because connection code will assume

also will

to check for device function.

device

is

active.

If

this

is

This should non-null, it

Document info
Document views645
Page views645
Page last viewedThu Dec 08 21:08:24 UTC 2016
Pages238
Paragraphs8090
Words85809

Comments