![]() |
ETHFW API Guide
|
Go to the source code of this file.
Data Structures | |
| struct | CpswProxyServer_VirtPortCfg |
| Cpsw Proxy Server Virtual Port Configuration structure. More... | |
| struct | CpswProxyServer_SharedMcastCfg |
| Ethernet Firmware shared multicast fanout configuration. More... | |
| struct | CpswProxyServer_RsvdMcastCfg |
| Ethernet Firmware reserved multicast configuration. More... | |
| struct | CpswProxyServer_Config_t |
| Cpsw Proxy Server Remote Configuration structure. More... | |
Macros | |
| #define | CPSWPROXYSERVER_MAC_PORT_MAX (8U) |
| #define | CPSWPROXYSERVER_SHARED_MCAST_LIST_LEN (8U) |
| #define | CPSWPROXYSERVER_RSVD_MCAST_LIST_LEN (4U) |
| #define | CPSWPROXYSERVER_AUTOSAR_REMOTE_CLIENT_MAX (2U) |
CpswProxyServer Error Codes | |
| #define | CPSWPROXYSERVER_SOK (0) |
| Success. More... | |
| #define | CPSWPROXYSERVER_SINPROGRESS (1) |
| Operation in progress. More... | |
| #define | CPSWPROXYSERVER_EFAIL (-1) |
| Generic failure error condition (typically caused by hardware). More... | |
| #define | CPSWPROXYSERVER_EBADARGS (-2) |
| Bad arguments (i.e. NULL pointer). More... | |
| #define | CPSWPROXYSERVER_EINVALIDPARAMS (-3) |
| Invalid parameters (i.e. value out-of-range). More... | |
| #define | CPSWPROXYSERVER_ETIMEOUT (-4) |
| Time out while waiting for a given condition to happen. More... | |
| #define | CPSWPROXYSERVER_EALLOC (-8) |
| Allocation failure. More... | |
| #define | CPSWPROXYSERVER_EUNEXPECTED (-9) |
| Unexpected condition occurred (sometimes unrecoverable). More... | |
| #define | CPSWPROXYSERVER_EBUSY (-10) |
| The resource is currently busy performing an operation. More... | |
| #define | CPSWPROXYSERVER_EALREADYOPEN (-11) |
| Already open error. More... | |
| #define | CPSWPROXYSERVER_EPERM (-12) |
| Operation not permitted. More... | |
| #define | CPSWPROXYSERVER_ENOTSUPPORTED (-13) |
| Operation not supported. More... | |
| #define | CPSWPROXYSERVER_ENOTFOUND (-14) |
| Resource not found. More... | |
| #define | CPSWPROXYSERVER_EUNKNOWNIOCTL (-15) |
| Unknown IOCTL. More... | |
| #define | CPSWPROXYSERVER_EMALFORMEDIOCTL (-16) |
| Malformed IOCTL (args pointer or size not as expected). More... | |
Typedefs | |
| typedef void(* | CpswProxyServer_InitEthfwDeviceDataCb) (uint32_t host_id, struct rpmsg_kdrv_ethswitch_device_data *eth_dev_data) |
| Application callback function pointer to initialize Ethernet Firmware data. More... | |
| typedef void(* | CpswProxyServer_GetMcmCmdIfCb) (Enet_Type enetType, EnetMcm_CmdIf **pMcmCmdIfHandle) |
| Application callback function pointer to get Multiclient Manager (MCM) command mailbox. More... | |
| typedef void(* | CpswProxyServer_NotifyCb) (uint32_t host_id, Enet_Handle hEnet, Enet_Type enetType, uint32_t core_key, enum rpmsg_kdrv_ethswitch_client_notify_type notifyid, uint8_t *notify_info, uint32_t notify_info_len) |
| Application Callback function pointer to handle custom notification from remote client. More... | |
| typedef void(* | CpswProxyServer_FilterAddMacSharedCb) (const uint8_t *macAddr, const uint8_t coreId) |
| Filter add shared multicast callback. More... | |
| typedef void(* | CpswProxyServer_FilterDelMacSharedCb) (const uint8_t *macAddr, const uint8_t coreId) |
| Filter delete shared multicast callback. More... | |
Functions | |
| int32_t | CpswProxyServer_init (CpswProxyServer_Config_t *cfg) |
| Cpsw proxy server initialization function. More... | |
| int32_t | CpswProxyServer_start (void) |
| Start the Cpsw proxy server. More... | |