47 #include "IfxEth_reg.h"
48 #include "IfxEth_bf.h"
61 #ifndef IFXETH_RTX_BUFFER_SIZE
62 #define IFXETH_RTX_BUFFER_SIZE 1536
65 #ifndef IFXETH_TX_BUFFER_BY_USER
66 #define IFXETH_TX_BUFFER_BY_USER 0
69 #ifndef IFXETH_RX_BUFFER_BY_USER
70 #define IFXETH_RX_BUFFER_BY_USER 0
75 #ifndef IFXETH_MAX_RX_BUFFERS
76 #define IFXETH_MAX_RX_BUFFERS 8
81 #ifndef IFXETH_MAX_TX_BUFFERS
82 #define IFXETH_MAX_TX_BUFFERS 16
87 #define IFXETH_DESCR_SIZE 4
980 tdes0.
A.
FS = firstSegment;
981 tdes0.
A.
LS = lastSegment;
990 ETH_BUS_MODE.B.SWR = 1;
997 MODULE_ETH.STATUS.U = (
uint32)((1 << IFX_ETH_STATUS_NIS_OFF) | (1 << IFX_ETH_STATUS_RI_OFF));
1004 MODULE_ETH.STATUS.U = (
uint32)((1 << IFX_ETH_STATUS_NIS_OFF) | (1 << IFX_ETH_STATUS_TI_OFF));
1042 return (ETH_MAC_CONFIGURATION.B.LM != 0) ?
TRUE :
FALSE;
1088 boolean error = (descr->
RDES0.
A.
IPC != 0);
1106 return MODULE_ETH.STATUS.B.RI != 0;
1113 return ETH_BUS_MODE.B.SWR == 0 ? 1 : 0;
1121 return MODULE_ETH.STATUS.B.TI != 0;
1127 eth->
status.U = ETH_STATUS.U;
1134 ETH_MAC_CONFIGURATION.B.LM = loopbackMode ? 1 : 0;
1141 ETH_GPCTL.B.EPR = mode;
1147 eth->RECEIVE_DESCRIPTOR_LIST_ADDRESS.U = (
uint32)address;
1153 eth->TRANSMIT_DESCRIPTOR_LIST_ADDRESS.U = (
uint32)address;