X hits on this document

PDF document

February 10, 2006 - page 144 / 238

547 views

0 shares

0 downloads

0 comments

144 / 238

_ _ ipmi event_state t

*states,

_ _ ipmi sensor_done cb

done,

void

*cb_data);

132

i n t i p m i _ s e n s o r _ d i s a b l e _ e v e n t s ( i p m i _ s e n s o r _ t

*sensor,

CHAPTER 8. SENSORS

int

err,

_ _ _ ipmi event state t *states,

void

*cb_data);

The “set” function will set the states to exactly what is set in the event state structure. The “enable” function will only enable the states that are set in the event state structure. The “disable” function will disable the events that are set in the event state structure. Note that the disable does not disable the events that are not set, it really disables the events that are set. All of these functions will set the event enable

and scanning enable to the values in the event state structure. To query the current event state settings, use the following function:

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

*sensor,

Appendex I on page 185 contains a program that demonstrates how to use many of the functions described in this section.

void

* c b _ d a t a ) ;

i n t i p m i _ s e n s o r _ g e t _ e v e n t _ e n a b l e s ( i p m i _ s e n *sensor, s o r _ t i p m i _ e v e n t _ e n a b l e s _ g e t _ c b d o n e ,

Rearm in OpenIPMI TBD - write this.

i n t i p m i _ s e n s o r _ g e t _ s u p p o r t s _ a u t o _ r e a r m ( i p m i _ s e n s o r _ t * s e n s o r ) ;

i n t i p m i _ s e n s o r _ r e a r m ( i p m i _ s e n s o int r _ t i p m i _ e v e *sensor, global_enable, *state, n t _ ate t s t i _ p m i _ s e n s o r _ d o n e _ c b d o n e ,

void

* c b _ d a t a ) ;

Initialization

When a sensor is stored in the main SDR repository of a system, the BMC may initialize certain aspects of the sensor at power up. The following fetch if these aspects are initialized at power up. Note that “pu” means “Power Up” in the following names.

int int int int int int int

ipmi

_

sensor_get

ipmi

_

sensor_get

ipmi

_

sensor_get

ipmi

_

sensor_get

ipmi

_

sensor_get

ipmi

_

sensor_get

ipmi

_

sensor_get

_ _ _ _ _ _ _

s e n s o r _ i n i t _ s c a n n i n g ( i p m i _ s e n s o r _ t * s e n s o r ) ; s e n s o r _ i n i t _ e v e n t s ( i p m i _ s e n s o r _ t * s e n s o r ) ; s e n s o r _ i n i t _ t h r e s h o l d s ( i p m i _ s e n s o r _ t * s e n s o r ) ; s e n s o r _ i n i t _ h y s t e r e s i s ( i p m i _ s e n s o r _ t * s e n s o r ) ; s e n s o r _ i n i t _ t y p e ( i p m i _ s e n s o r _ t * s e n s o r ) ; s e n s o r _ i n i t _ p u _ e v e n t s ( i p m i _ s e n s o r _ t * s e n s o r ) ; s e n s o r _ i n i t _ p u _ s c a n n i n g ( i p m i _ s e n s o r _ t * s e n s o r ) ;

Document info
Document views547
Page views547
Page last viewedSun Dec 04 12:58:45 UTC 2016
Pages238
Paragraphs8090
Words85809

Comments