TI ENET LLD specific network layer part.
|
struct lld_ethhdr | __attribute__ ((packed)) |
|
int | cb_lld_init_devs_table (lld_ethdev_t *ethdevs, uint32_t ndevs, uint32_t enet_type, uint32_t instance_id) |
| Initialize a LLD device table. More...
|
|
int | cb_socket_set_lldcfg_update_cb (cb_socket_lldcfg_update_cb_t lldcfg_update_cb) |
| This function sets the callback for updating LLD config parameters. It enables the user to update config parameters for the Enet LLD layer that are not supported by the CB socket. It is important to note that this function should only be called once. More...
|
|
int | cb_lld_netdev_to_macport (const char *netdev) |
| Convert net device name to mac port. More...
|
|
int | cb_lld_sendto (CB_SOCKET_T sfd, void *sdata, int psize, int flags, const CB_SOCKADDR_LL_T *addr, int addrsize) |
| Send a TX ethernet L2 packet. More...
|
|
int | cb_lld_recv (CB_SOCKET_T sfd, void *buf, int size, CB_SOCKADDR_LL_T *addr, int addrsize) |
| Receive a RX ethernet L2 packet. This should be called after a rxnotify_cb is invoked. More...
|
|
int | cb_lld_recv_zerocopy (CB_SOCKET_T sfd, cb_lld_zerocopy_recv_cb_t cblld_recv_cb, void *cbarg) |
| Receive a RX ethernet L2 packet n the zero-copy way. This should be called after a rxnotify_cb is invoked. More...
|
|
int | cb_lld_set_txnotify_cb (CB_SOCKET_T sfd, void(*txnotify_cb)(void *arg), void *arg) |
| Set the TX notify callback that is invoked when an TX packet is sent successfully. More...
|
|
int | cb_lld_set_rxnotify_cb (CB_SOCKET_T sfd, void(*rxnotify_cb)(void *arg), void *arg) |
| Set the RX notify callback that is invoked when an RX packet is ready to be received. More...
|
|
int | cb_lld_set_default_rxdata_cb (CB_SOCKET_T sfd, void(*default_rxdata_cb)(void *data, int size, int port, void *arg), void *arg) |
| Set the default RX data callback that is invoked when an RX packet does not match any filters. More...
|
|
int | cb_lld_get_type_instance (uint32_t *enet_type, uint32_t *instance_id) |
| Get enet type and instance that is set via cb_lld_init_devs_table() More...
|
|
int | cb_lld_get_netdevs (char *netdevs[], int *len) |
| Get all virtual network interfaces which were defined for the TI platform. More...
|
|
int | cb_lld_get_link_state (CB_SOCKET_T cfd, const char *dev, uint32_t *linkstate) |
| get link state from device name like 'eth0' More...
|
|
int | cb_lld_get_link_info (CB_SOCKET_T cfd, const char *dev, uint32_t *speed, uint32_t *duplex) |
| get link info(speed and duplex) from device name like 'eth0' More...
|
|
int | cb_lld_get_port_stats (CB_SOCKET_T sfd, int port, cb_tilld_port_stats_t *stats) |
| Get stats info from host or mac port. More...
|
|
void | cb_lld_reset_port_stats (CB_SOCKET_T sfd, int port) |
| reset stats info from host or mac port. More...
|
|