📄 txc_envoy_mac_virtual.c
字号:
CAVEATS: None.
REVISION HISTORY:
Rev Date Author Description
----- ------- ------------ -----------------
0.5.0 6/03/04 F. Giannella Initial release (beta)
*--------------------------------------------------------------------------*/
TXC_U16BIT ENVOY_GetMacIfaceVirtual(TXC_U16BIT handle, TXC_U16BIT port,
TXC_IfMAC_CONFIG_STRUCT *macIfaceDataPtr)
{
int size;
size = sizeof (TXC_IfMAC_CONFIG_STRUCT);
memcpy (macIfaceDataPtr, &dummyMacIfaceData, size);
return TXC_NO_ERR;
}
/*--------------------------------------------------------------------------*
FUNCTION: ENVOY_SetMacHalfDuplexVirtual
DESCRIPTION: This function is the virtual device for ENVOY_SetMacHalfDuplex
INPUTS: Same as ENVOY_SetMacHalfDuplex
RETURNS: TXC_NO_ERR or an appropriate specific error code listed in appendix.
CAVEATS: None.
REVISION HISTORY:
Rev Date Author Description
----- ------- ------------ -----------------
0.5.0 6/03/04 F. Giannella Initial release (beta)
*--------------------------------------------------------------------------*/
TXC_U16BIT ENVOY_SetMacHalfDuplexVirtual (TXC_U16BIT handle, TXC_U16BIT port,
TXC_IfMAC_HALF_DUPLEX_STRUCT * macHalfDuplexDataPtr)
{
int size;
size = sizeof (TXC_IfMAC_HALF_DUPLEX_STRUCT);
memcpy (&dummyMacHalfDuplexData, macHalfDuplexDataPtr, size);
return TXC_NO_ERR;
}
/*--------------------------------------------------------------------------*
FUNCTION: ENVOY_GetMacHalfDuplexVirtual
DESCRIPTION: This function is the virtual device for ENVOY_GetMacHalfDuplex
INPUTS: Same as ENVOY_GetMacHalfDuplex
RETURNS: TXC_NO_ERR or an appropriate specific error code listed in appendix.
CAVEATS: None.
REVISION HISTORY:
Rev Date Author Description
----- ------- ------------ -----------------
0.5.0 6/03/04 F. Giannella Initial release (beta)
*--------------------------------------------------------------------------*/
TXC_U16BIT ENVOY_GetMacHalfDuplexVirtual(TXC_U16BIT handle, TXC_U16BIT port,
TXC_IfMAC_HALF_DUPLEX_STRUCT *macHalfDuplexDataPtr)
{
int size;
size = sizeof (TXC_IfMAC_HALF_DUPLEX_STRUCT);
memcpy (macHalfDuplexDataPtr, &dummyMacHalfDuplexData, size);
return TXC_NO_ERR;
}
/*--------------------------------------------------------------------------*
FUNCTION: ENVOY_RtrvMacRxStatisticsVirtual
DESCRIPTION: This function is the virtual device for ENVOY_RtrvMacRxStatistics
INPUTS: Same as ENVOY_RtrvMacRxStatistics
RETURNS: TXC_NO_ERR or an appropriate specific error code listed in appendix.
CAVEATS: None.
REVISION HISTORY:
Rev Date Author Description
----- ------- ------------ -----------------
0.5.0 6/03/04 F. Giannella Initial release (beta)
*--------------------------------------------------------------------------*/
TXC_U16BIT ENVOY_RtrvMacRxStatisticsVirtual(TXC_U16BIT handle, TXC_U16BIT port,
ENVOY_MAC_RX_STATISTICS_STRUCT * macRxStatisticsDataPtr)
{
int size;
size = sizeof (ENVOY_MAC_RX_STATISTICS_STRUCT);
memcpy (macRxStatisticsDataPtr, &dummyMacRxStatisticsData, size);
return TXC_NO_ERR;
}
/*--------------------------------------------------------------------------*
FUNCTION: ENVOY_RtrvMacTxStatisticsVirtual
DESCRIPTION: This function is the virtual device for ENVOY_RtrvMacTxStatistics
INPUTS: Same as ENVOY_RtrvMacTxStatistics
RETURNS: TXC_NO_ERR or an appropriate specific error code listed in appendix.
CAVEATS: None.
REVISION HISTORY:
Rev Date Author Description
----- ------- ------------ -----------------
0.5.0 6/03/04 F. Giannella Initial release (beta)
*--------------------------------------------------------------------------*/
TXC_U16BIT ENVOY_RtrvMacTxStatisticsVirtual(TXC_U16BIT handle, TXC_U16BIT port,
ENVOY_MAC_TX_STATISTICS_STRUCT *macTxStatisticsDataPtr)
{
int size;
size = sizeof (ENVOY_MAC_TX_STATISTICS_STRUCT);
memcpy (macTxStatisticsDataPtr, &dummyMacTxStatisticsData, size);
return TXC_NO_ERR;
}
#endif /* ENVOY_VIRTUAL_DEVICE_MODE */
/****************************************************************************
** End of Module **
****************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -