Go to the documentation of this file.
45 #define MAX(a,b) (((a) > (b)) ? (a) : (b))
46 #define MIN(a,b) (((a) < (b)) ? (a) : (b))
69 #define RX_PRIM priMAC[1]
71 #define RX_SEC secMAC[1]
258 stack = &(port->
stack);
294 datagramP->index = idx;
321 stack = &(port->
stack);
331 return (bytesrx > 0);
362 stack = &(port->
stack);
373 l = (*rxbuf)[0] + ((
uint16)((*
rxbuf)[1] & 0x0f) << 8);
375 rval = ((*rxbuf)[l] + ((
uint16)(*
rxbuf)[l + 1] << 8));
391 l =
etohs(ecp->elength) & 0x0fff;
399 rval = ((*rxbuf)[l] + ((
uint16)((*
rxbuf)[l + 1]) << 8));
478 primrx = port->
rxsa[idx];
496 if ( ((primrx == 0) && (secrx ==
RX_SEC)) ||
613 int ec_inframe(
int idx,
int stacknumber)
uint8 ec_bufT[EC_BUFSIZE]
int ec_waitinframe(int idx, int timeout)
int ec_setupnic(const char *ifname, int secondary)
int txbuflength[EC_MAXBUF]
void ec_setbufstat(int idx, int bufstat)
boolean osal_timer_is_expired(osal_timert *self)
int ec_outframe(int idx, int sock)
int ecx_getindex(ecx_portt *port)
uint16 oshw_htons(uint16 host)
int ecx_outframe(ecx_portt *port, int idx, int stacknumber)
void ecx_setbufstat(ecx_portt *port, int idx, int bufstat)
int ecx_outframe_red(ecx_portt *port, int idx)
static void ecx_clear_rxbufstat(int *rxbufstat)
int ec_srconfirm(int idx, int timeout)
int ec_outframe_red(int idx)
static int ecx_waitinframe_red(ecx_portt *port, int idx, osal_timert timer)
PACKED_BEGIN struct PACKED ec_comt
int(* txbuflength)[EC_MAXBUF]
ec_bufT(* rxbuf)[EC_MAXBUF]
int ecx_closenic(ecx_portt *port)
int ecx_waitinframe(ecx_portt *port, int idx, int timeout)
pthread_mutex_t getindex_mutex
void osal_timer_start(osal_timert *self, uint32 timeout_usec)
uint16 oshw_ntohs(uint16 network)
void ec_setupheader(void *p)
int bfin_EMAC_init(uint8_t *ethAddr)
int bfin_EMAC_recv(uint8_t *packet, size_t size)
ec_bufT(* txbuf)[EC_MAXBUF]
int ecx_srconfirm(ecx_portt *port, int idx, int timeout)
PACKED_BEGIN struct PACKED ec_etherheadert
int ecx_setupnic(ecx_portt *port, const char *ifname, int secondary)
static int ecx_recvpkt(ecx_portt *port, int stacknumber)
int(* rxbufstat)[EC_MAXBUF]
int ecx_inframe(ecx_portt *port, int idx, int stacknumber)
int bfin_EMAC_send(void *packet, int length)
soem
Author(s): Arthur Ketels and M.J.G. van den Molengraft
autogenerated on Wed Mar 2 2022 01:01:49