Exemple #1
0
 public void MarshalSaHpiFumiLogicalComponentInfoT( SaHpiFumiLogicalComponentInfoT x )
 {
     MarshalSaHpiEntryIdT( x.EntryId );
     MarshalSaHpiUint32T( x.ComponentId );
     MarshalSaHpiFumiFirmwareInstanceInfoT( x.PendingFwInstance );
     MarshalSaHpiFumiFirmwareInstanceInfoT( x.RollbackFwInstance );
     MarshalSaHpiUint32T( x.ComponentFlags );
 }
Exemple #2
0
            public static long saHpiFumiLogicalTargetComponentInfoGet(
        long SessionId,
        long ResourceId,
        long FumiNum,
        long ComponentEntryId,
        out long NextComponentEntryId,
        out SaHpiFumiLogicalComponentInfoT ComponentInfo
    )
            {
                long rv;
                bool rc;

                NextComponentEntryId = 0;
                ComponentInfo = null;

                HpiSession s = HpiCore.GetSession( SessionId );
                if ( s == null ) {
                return HpiConst.SA_ERR_HPI_INVALID_SESSION;
                }
                OhpiMarshal m = s.GetMarshal();
                if ( m == null ) {
                return HpiConst.SA_ERR_HPI_NO_RESPONSE;
                }

                m.MarshalSaHpiSessionIdT( s.GetRemoteSid() );
                m.MarshalSaHpiResourceIdT( ResourceId );
                m.MarshalSaHpiFumiNumT( FumiNum );
                m.MarshalSaHpiEntryIdT( ComponentEntryId );
                rc = m.Interchange( OhpiConst.RPC_SAHPI_FUMI_LOGICAL_TARGET_COMPONENT_INFO_GET );
                if ( !rc ) {
                m.Close();
                return HpiConst.SA_ERR_HPI_NO_RESPONSE;
                }
                rv = m.DemarshalSaErrorT();
                if ( rv == HpiConst.SA_OK ) {
                NextComponentEntryId = m.DemarshalSaHpiEntryIdT();
                ComponentInfo = m.DemarshalSaHpiFumiLogicalComponentInfoT();
                }
                s.PutMarshal( m );

                return rv;
            }
Exemple #3
0
            public SaHpiFumiLogicalComponentInfoT DemarshalSaHpiFumiLogicalComponentInfoT()
            {
                SaHpiFumiLogicalComponentInfoT x = new SaHpiFumiLogicalComponentInfoT();

                x.EntryId = DemarshalSaHpiEntryIdT();
                x.ComponentId = DemarshalSaHpiUint32T();
                x.PendingFwInstance = DemarshalSaHpiFumiFirmwareInstanceInfoT();
                x.RollbackFwInstance = DemarshalSaHpiFumiFirmwareInstanceInfoT();
                x.ComponentFlags = DemarshalSaHpiUint32T();

                return x;
            }
Exemple #4
0
 /**
  * Check function for HPI struct SaHpiFumiLogicalComponentInfoT
  */
 public static bool Check( SaHpiFumiLogicalComponentInfoT x )
 {
     if ( x == null ) {
     return false;
     }
     if ( !Check( x.PendingFwInstance ) ) {
     return false;
     }
     if ( !Check( x.RollbackFwInstance ) ) {
     return false;
     }
     return true;
 }