Commit 7c150d93 authored by ml's avatar ml

qos_PLatform moved to qdb_Platform

parent c5545e13
...@@ -104,18 +104,6 @@ qos_SignalQue ( ...@@ -104,18 +104,6 @@ qos_SignalQue (
return *sts; return *sts;
} }
void
qos_Platform (
qdb_sNode *np
)
{
np->os = qcom_eOS_ELN;
np->hw = qcom_eHW_VAX;
np->bo = qcom_eBO_little;
np->ft = qcom_eFT_vaxF;
}
qdb_sQlock * qdb_sQlock *
qos_CreateQlock ( qos_CreateQlock (
pwr_tStatus *status, pwr_tStatus *status,
......
...@@ -117,40 +117,6 @@ qos_SignalQue ( ...@@ -117,40 +117,6 @@ qos_SignalQue (
return TRUE; return TRUE;
} }
void
qos_Platform (
qdb_sNode *np
)
{
/** @todo This function is now OS independent. Move it to??? */
#if 1
co_sPlatform platform;
co_GetOwnPlatform(&platform);
np->os = platform.os;
np->hw = platform.hw;
np->bo = platform.fm.b.bo;
np->ft = platform.fm.b.ft;
#else
np->os = qcom_eOS_Linux;
# if defined (HW_PPC)
np->hw = qcom_eHW_PPC;
np->bo = qcom_eBO_big;
np->ft = qcom_eFT_ieeeS;
# elif defined(HW_X86)
np->hw = qcom_eHW_x86;
np->bo = qcom_eBO_little;
np->ft = qcom_eFT_ieeeS;
# else
# error unknown hardware
# endif
#endif
}
qdb_sQlock * qdb_sQlock *
......
...@@ -104,28 +104,6 @@ qos_SignalQue ( ...@@ -104,28 +104,6 @@ qos_SignalQue (
} }
return TRUE; return TRUE;
}
void
qos_Platform (
qdb_sNode *np
)
{
np->os = qcom_eOS_Lynx;
#if defined (__powerpc__)
np->hw = qcom_eHW_PPC;
np->bo = qcom_eBO_big;
np->ft = qcom_eFT_ieeeS;
#elif defined(__x86__)
np->hw = qcom_eHW_x86;
np->bo = qcom_eBO_little;
np->ft = qcom_eFT_ieeeS;
#else
#error unknown hardware
#endif
} }
qdb_sQlock * qdb_sQlock *
......
...@@ -162,28 +162,6 @@ qos_SignalQue ( ...@@ -162,28 +162,6 @@ qos_SignalQue (
} }
#endif #endif
}
void
qos_Platform (
qdb_sNode *np
)
{
np->os = qcom_eOS_VMS;
#if defined(vax) || defined(__vax)
np->hw = qcom_eHW_VAX;
np->bo = qcom_eBO_little;
np->ft = qcom_eFT_vaxF;
#elif defined(__Alpha_AXP) || defined(__ALPHA)
np->hw = qcom_eHW_Alpha;
np->bo = qcom_eBO_little;
np->ft = qcom_eFT_vaxF;
#else
# error "Unknown OpenVMS hardware"
#endif
} }
qdb_sQlock * qdb_sQlock *
......
...@@ -709,7 +709,7 @@ qdb_CreateDb ( ...@@ -709,7 +709,7 @@ qdb_CreateDb (
np = qdb->my_node = qdb_AddNode(sts, qdb->my_nid, qdb_mAdd_failIfAdded); np = qdb->my_node = qdb_AddNode(sts, qdb->my_nid, qdb_mAdd_failIfAdded);
if (qdb->my_node == NULL) errh_Bugcheck(*sts, "creating local node"); if (qdb->my_node == NULL) errh_Bugcheck(*sts, "creating local node");
qos_Platform(np); qdb_Platform(np);
#if 0 #if 0
gethostname(np->name, sizeof(np->name)); gethostname(np->name, sizeof(np->name));
...@@ -1302,6 +1302,21 @@ qdb_NodeInfo ( ...@@ -1302,6 +1302,21 @@ qdb_NodeInfo (
node->bo = np->bo; node->bo = np->bo;
node->ft = np->ft; node->ft = np->ft;
} }
void
qdb_Platform (
qdb_sNode *np
)
{
co_sPlatform platform;
co_GetOwnPlatform(&platform);
np->os = platform.os;
np->hw = platform.hw;
np->bo = platform.fm.b.bo;
np->ft = platform.fm.b.ft;
}
qdb_sQue * qdb_sQue *
qdb_Que ( qdb_Que (
......
...@@ -740,6 +740,7 @@ void qdb_GetInfo (qcom_sGet*, qdb_sBuffer*); ...@@ -740,6 +740,7 @@ void qdb_GetInfo (qcom_sGet*, qdb_sBuffer*);
qdb_sLocal * qdb_MapDb (pwr_tStatus*); qdb_sLocal * qdb_MapDb (pwr_tStatus*);
void qdb_NetEvent (pwr_tStatus*, qdb_sNode*, qcom_eStype); void qdb_NetEvent (pwr_tStatus*, qdb_sNode*, qcom_eStype);
void qdb_NodeInfo (pwr_tStatus*, qcom_sNode*, qdb_sNode*); void qdb_NodeInfo (pwr_tStatus*, qcom_sNode*, qdb_sNode*);
void qdb_Platform (qdb_sNode*);
void qdb_Put (pwr_tStatus*, qdb_sBuffer*, qdb_sQue*); void qdb_Put (pwr_tStatus*, qdb_sBuffer*, qdb_sQue*);
void qdb_RemoveAppl (pwr_tStatus*, qdb_sAppl*); void qdb_RemoveAppl (pwr_tStatus*, qdb_sAppl*);
void qdb_PutInfo (qdb_sBuffer*, qcom_sPut *, const qcom_sQid*, qcom_tRid); void qdb_PutInfo (qdb_sBuffer*, qcom_sPut *, const qcom_sQid*, qcom_tRid);
......
...@@ -42,9 +42,4 @@ qos_SignalQue ( ...@@ -42,9 +42,4 @@ qos_SignalQue (
qdb_sQue *que qdb_sQue *que
); );
void
qos_Platform (
qdb_sNode *node
);
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment