#include <new_sim.h>
Inheritance diagram for NewSimulator:


Public Member Functions | |
| bool | CheckMagic () |
| Check the Magic number. | |
| bool | CheckHandler (oh_handler_state *handler) |
| Check the oh_handler. | |
| virtual void | IfEnter () |
| Interface function Enter - only a lock is set. | |
| virtual void | IfLeave () |
| Interface function Leave - only a lock is unset. | |
| virtual bool | IfOpen (GHashTable *handler_config) |
| Interface Open. | |
| virtual void | IfClose () |
| Interface Close - deletion of file object. | |
| virtual SaErrorT | IfGetEvent (oh_event *event) |
| Interface GetEvent m_event_lock is set and unset. | |
| virtual SaErrorT | IfDiscoverResources () |
| Interface Discover - check whether all resources are discovered. | |
| virtual SaErrorT | IfSetResourceTag (NewSimulatorResource *ent, SaHpiTextBufferT *tag) |
| HPI function saHpiResourceTagSet(). | |
| virtual SaErrorT | IfSetResourceSeverity (NewSimulatorResource *res, SaHpiSeverityT sev) |
| HPI function saHpiResourceSeveritySet(). | |
| virtual SaErrorT | IfSetAutoInsertTimeout (SaHpiTimeoutT timeout) |
| HPI function saHpiAutoInsertTimeoutSet(). | |
| virtual SaErrorT | IfGetPowerState (NewSimulatorResource *res, SaHpiPowerStateT &state) |
| HPI function saHpiResourcePowerStateGet(). | |
| virtual SaErrorT | IfSetPowerState (NewSimulatorResource *res, SaHpiPowerStateT state) |
| HPI function saHpiResourcePowerStateSet(). | |
| virtual SaErrorT | IfGetIndicatorState (NewSimulatorResource *res, SaHpiHsIndicatorStateT &state) |
| HPI function saHpiHotSwapIndicatorStateGet(). | |
| virtual SaErrorT | IfSetIndicatorState (NewSimulatorResource *res, SaHpiHsIndicatorStateT state) |
| HPI function saHpiHotSwapIndicatorStateSet(). | |
| virtual SaErrorT | IfGetResetState (NewSimulatorResource *res, SaHpiResetActionT &state) |
| HPI function saHpiResourceResetStateGet(). | |
| virtual SaErrorT | IfSetResetState (NewSimulatorResource *res, SaHpiResetActionT state) |
| HPI function saHpiResourceResetStateSet(). | |
| virtual SaErrorT | IfControlParm (NewSimulatorResource *res, SaHpiParmActionT act) |
| HPI function saHpiParmControl(). | |
| virtual void | AddHpiEvent (oh_event *event) |
| Add an HPI event in the queue. | |
| virtual oh_evt_queue * | GetHpiEventList () |
| Return the HPI event list. | |
| NewSimulator () | |
| Constructor. | |
| ~NewSimulator () | |
| Destructor. | |
| void | SetHandler (oh_handler_state *handler) |
| Set handler pointer. | |
| oh_handler_state * | GetHandler () |
| Return pointer on the plugin handler. | |
| virtual const NewSimulatorEntityPath & | EntityRoot () |
| Return the root entity path. | |
| virtual SaHpiRptEntryT * | FindResource (SaHpiResourceIdT id) |
| Return the rpt entry of a resource. | |
Public Attributes | |
| cThreadLock | m_event_lock |
| lock for the hpi event queue | |
|
|
Add an HPI event in the queue.
Implements NewSimulatorDomain. |
|
|
Check the oh_handler.
|
|
|
Check the Magic number.
|
|
|
Return the root entity path.
Implements NewSimulatorDomain. |
|
|
Return the rpt entry of a resource.
Implements NewSimulatorDomain. |
|
|
Return pointer on the plugin handler.
Implements NewSimulatorDomain. |
|
|
Return the HPI event list.
Implements NewSimulatorDomain. |
|
||||||||||||
|
HPI function saHpiParmControl(). See also the description of the function inside the specification or header file. Conrol the parameter of a resource.
|
|
|
Interface Discover - check whether all resources are discovered. m_initial_discover_lock is set and unset.
|
|
|
Interface GetEvent m_event_lock is set and unset. It is also used to reduce the keep alive interval time
|
|
||||||||||||
|
HPI function saHpiHotSwapIndicatorStateGet(). See also the description of the function inside the specification or header file. Get the indicator state of a resource.
|
|
||||||||||||
|
HPI function saHpiResourcePowerStateGet(). See also the description of the function inside the specification or header file. Get the power state of a resource.
|
|
||||||||||||
|
HPI function saHpiResourceResetStateGet(). See also the description of the function inside the specification or header file. Get the reset state of a resource.
|
|
|
Interface Open.
The parameters entity root and filename are read from the hash table and it is tried to open the file by generating a new NewSimulatorFile object and calling NewSimulatorFile::Open().
|
|
|
HPI function saHpiAutoInsertTimeoutSet(). See also the description of the function inside the specification or header file. Set the insertion timeout value
|
|
||||||||||||
|
HPI function saHpiHotSwapIndicatorStateSet(). See also the description of the function inside the specification or header file. Get the indicator state of a resource.
|
|
||||||||||||
|
HPI function saHpiResourcePowerStateSet(). See also the description of the function inside the specification or header file. Set the power state of a resource.
|
|
||||||||||||
|
HPI function saHpiResourceResetStateSet(). See also the description of the function inside the specification or header file. Get the reset state of a resource.
|
|
||||||||||||
|
HPI function saHpiResourceSeveritySet(). See also the description of the function inside the specification or header file. The resource severity is set.
|
|
||||||||||||
|
HPI function saHpiResourceTagSet(). See also the description of the function inside the specification or header file. The resource tag is set.
|
|
|
Set handler pointer.
|
1.4.4