ETHFW API Guide
ethremotecfg_server.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2019 Texas Instruments Incorporated
4  *
5  * All rights reserved not granted herein.
6  *
7  * Limited License.
8  *
9  * Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive
10  * license under copyrights and patents it now or hereafter owns or controls to make,
11  * have made, use, import, offer to sell and sell ("Utilize") this software subject to the
12  * terms herein. With respect to the foregoing patent license, such license is granted
13  * solely to the extent that any such patent is necessary to Utilize the software alone.
14  * The patent license shall not apply to any combinations which include this software,
15  * other than combinations with devices manufactured by or for TI ("TI Devices").
16  * No hardware patent is licensed hereunder.
17  *
18  * Redistributions must preserve existing copyright notices and reproduce this license
19  * (including the above copyright notice and the disclaimer and (if applicable) source
20  * code license limitations below) in the documentation and/or other materials provided
21  * with the distribution
22  *
23  * Redistribution and use in binary form, without modification, are permitted provided
24  * that the following conditions are met:
25  *
26  * * No reverse engineering, decompilation, or disassembly of this software is
27  * permitted with respect to any software provided in binary form.
28  *
29  * * any redistribution and use are licensed by TI for use only with TI Devices.
30  *
31  * * Nothing shall obligate TI to provide you with source code for the software
32  * licensed and provided to you in object code.
33  *
34  * If software source code is provided to you, modification and redistribution of the
35  * source code are permitted provided that the following conditions are met:
36  *
37  * * any redistribution and use of the source code, including any resulting derivative
38  * works, are licensed by TI for use only with TI Devices.
39  *
40  * * any redistribution and use of any object code compiled from the source code
41  * and any resulting derivative works, are licensed by TI for use only with TI Devices.
42  *
43  * Neither the name of Texas Instruments Incorporated nor the names of its suppliers
44  *
45  * may be used to endorse or promote products derived from this software without
46  * specific prior written permission.
47  *
48  * DISCLAIMER.
49  *
50  * THIS SOFTWARE IS PROVIDED BY TI AND TI'S LICENSORS "AS IS" AND ANY EXPRESS
51  * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
52  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
53  * IN NO EVENT SHALL TI AND TI'S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT,
54  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
55  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
56  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
57  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
58  * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
59  * OF THE POSSIBILITY OF SUCH DAMAGE.
60  *
61  */
62 
63 #ifndef __ETHREMOTECFG_SERVER_H__
64 #define __ETHREMOTECFG_SERVER_H__
65 
66 #include <stdint.h>
67 #include <string.h>
68 
71 
82 /* @} */
93 #define ETHREMOTECFG_SERVER_MAX_NAME_LEN (128)
94 
96 #define ETHREMOTECFG_SERVER_MAX_INSTANCES (4)
97 
99 #define ETHREMOTEDEVICE_REMOTEDEVICE_FRAMEWORK_SERVICE "rpmsg-kdrv"
100 
107 typedef struct rdevEthSwitchServerInstPrm_s
108 {
110  uint32_t host_id;
113 
137  uint32_t host_id,
138  uint8_t cpsw_type,
139  uint64_t *pId,
140  uint32_t *pCoreKey,
141  uint32_t *pRxMtu,
142  uint32_t *pTxMtu,
143  uint32_t txMtuArraySize,
144  uint32_t *pFeatures,
145  uint32_t *pMacOnlyPort);
146 
166  uint32_t host_id,
167  uint8_t cpsw_type,
168  uint64_t *pId,
169  uint32_t *pCoreKey,
170  uint32_t *pRxMtu,
171  uint32_t *pTxMtu,
172  uint32_t txMtuArraySize,
173  uint32_t *pFeatures,
174  uint32_t *pAllocFlowIdx,
175  uint32_t *pTxCpswPsilDstId,
176  uint8_t *macAddress,
177  uint32_t *pMacOnlyPort);
178 
190  uint32_t host_id,
191  uint64_t handle,
192  uint32_t core_key,
193  uint32_t *pTxCpswPsilDstId);
194 
206  uint32_t host_id,
207  uint64_t handle,
208  uint32_t core_key,
209  uint32_t *pAllocFlowIdx);
210 
222  uint32_t host_id,
223  uint64_t handle,
224  uint32_t core_key,
225  uint8_t *mac_address);
226 
239  uint32_t host_id,
240  uint64_t handle,
241  uint32_t core_key,
242  uint8_t *mac_address,
243  uint32_t flow_idx);
244 
258  uint32_t host_id,
259  uint64_t handle,
260  uint32_t core_key,
261  uint8_t *mac_address,
262  uint32_t flow_idx);
263 
275  uint32_t host_id,
276  uint64_t handle,
277  uint32_t core_key,
278  uint32_t flow_idx);
279 
291  uint32_t host_id,
292  uint64_t handle,
293  uint32_t core_key,
294  uint32_t flow_idx);
295 
307  uint32_t host_id,
308  uint64_t handle,
309  uint32_t core_key,
310  uint32_t tx_cpsw_psil_dst_id);
311 
323  uint32_t host_id,
324  uint64_t handle,
325  uint32_t core_key,
326  uint32_t alloc_flow_idx);
327 
339  uint32_t host_id,
340  uint64_t handle,
341  uint32_t core_key,
342  u8 *mac_address);
343 
354  uint32_t host_id,
355  uint64_t handle,
356  uint32_t core_key);
357 
373  uint32_t host_id,
374  uint64_t handle,
375  uint32_t core_key,
376  u32 cmd,
377  const u8 *inargs,
378  u32 inargs_len,
379  u8 *outargs,
380  uint32_t outargs_len);
381 
393  uint32_t host_id,
394  uint32_t regaddr,
395  uint32_t regval,
396  uint32_t *pRegval);
397 
408  uint32_t host_id,
409  uint32_t regaddr,
410  uint32_t *pRegval);
411 
424  uint32_t host_id,
425  uint64_t handle,
426  uint32_t core_key,
427  uint8_t *mac_address,
428  uint8_t *ipv4_addr);
429 
442  uint32_t host_id,
443  uint64_t handle,
444  uint32_t core_key,
445  uint8_t *mac_address,
446  uint8_t *ipv6_addr);
447 
459  uint32_t host_id,
460  uint64_t handle,
461  uint32_t core_key,
462  uint8_t *ipv4_addr);
463 
475  uint32_t host_id,
476  uint64_t handle,
477  uint32_t core_key,
478  uint8_t *ipv6_addr);
479 
490  uint32_t host_id,
491  uint64_t handle,
492  uint32_t core_key,
494  uint8_t *notify_info,
495  uint32_t notify_info_len);
496 
503  uint32_t host_id,
504  struct rpmsg_kdrv_ethswitch_device_data *eth_dev_data);
505 
518  uint32_t host_id,
519  uint64_t handle,
520  uint32_t core_key,
521  uint16_t ether_type,
522  uint32_t flow_idx);
523 
536  uint32_t host_id,
537  uint64_t handle,
538  uint32_t core_key,
539  uint16_t ether_type,
540  uint32_t flow_idx);
541 
555  uint32_t host_id,
556  uint8_t *name,
557  uint64_t handle,
558  uint32_t core_key,
559  uint8_t timer_id,
560  uint8_t hwPushNum);
561 
574  uint32_t host_id,
575  uint8_t *name,
576  uint64_t handle,
577  uint32_t core_key,
578  uint8_t hwPushNum);
579 
591  uint32_t host_id,
592  uint64_t handle,
593  uint32_t core_key,
594  uint32_t enable);
595 
609  uint32_t host_id,
610  uint64_t handle,
611  uint32_t core_key,
612  uint8_t *mac_address,
613  uint16_t vlan_id,
614  uint32_t flow_idx);
615 
629  uint32_t host_id,
630  uint64_t handle,
631  uint32_t core_key,
632  uint8_t *mac_address,
633  uint16_t vlan_id,
634  uint32_t flow_idx);
635 
636 /* @} */
637 
645 typedef struct rdevEthSwitchServerCbFxn_s
646 {
662  ethrdev_srv_cb_register_rx_default_handler_t register_rx_default_handler;
664  ethrdev_srv_cb_unregister_rx_default_handler_t unregister_rx_default_handler;
684  ethrdev_srv_cb_unregister_ipv4_mac_handler_t ipv4_unregister_mac_handler;
686  ethrdev_srv_cb_unregister_ipv6_mac_handler_t ipv6_unregister_mac_handler;
690  ethrdev_srv_cb_init_device_data_t init_device_data_handler;
694  ethrdev_srv_cb_unregister_ethertype_handler_t unregister_ethertype_handler;
696  ethrdev_srv_cb_register_remotetimer_handler_t register_remotetimer_handler;
698  ethrdev_srv_cb_unregister_remotetimer_handler_t unregister_remotetimer_handler;
710 typedef struct rdevEthSwitchServerInitPrm_s
711 {
712  uint32_t num_instances;
714  uint32_t rpmsg_buf_size;
717 
722 {
833 } __attribute__((packed)) rdevEthSwitchServerMessageList_t;
834 
843 {
844  memset(prm, 0, sizeof(*prm));
845 
846  prm->rpmsg_buf_size = 256;
847  prm->num_instances = 0;
848 }
849 
858 
859 #endif
860 
861 /* @} */
struct rpmsg_kdrv_ethswitch_register_mac_request register_mac_req
Definition: ethremotecfg_server.h:740
UnRegister Remote timer CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1222
struct rpmsg_kdrv_ethswitch_unregister_rx_default_response unregister_rx_default_res
Definition: ethremotecfg_server.h:754
int32_t(* ethrdev_srv_cb_ioctl_handler_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, uint64_t handle, uint32_t core_key, u32 cmd, const u8 *inargs, u32 inargs_len, u8 *outargs, uint32_t outargs_len)
Definition: ethremotecfg_server.h:372
struct rpmsg_kdrv_ethswitch_unregister_mac_response unregister_mac_res
Definition: ethremotecfg_server.h:746
struct rpmsg_kdrv_ethswitch_set_promisc_mode_response set_promisc_mode_res
Definition: ethremotecfg_server.h:824
struct rpmsg_kdrv_ethswitch_register_remotetimer_response register_remotetimer_res
Definition: ethremotecfg_server.h:816
Ethernet Switch Remote device server instance initialization parameters.
Definition: ethremotecfg_server.h:710
u32 cmd
Definition: rpmsg-kdrv-transport-ethswitch.h:104
Add multicast MAC address to receive filter CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1253
struct rpmsg_kdrv_ethswitch_ipv4_register_mac_request ipv4_register_mac_req
Definition: ethremotecfg_server.h:790
IOCTL CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:962
Definition: rpmsg-kdrv-transport-ethswitch.h:652
Ethernet Switch Remote Device Server Callback function table.
Definition: ethremotecfg_server.h:645
rdevEthSwitchServerCbFxn_t cb
Definition: ethremotecfg_server.h:715
struct rpmsg_kdrv_ethswitch_ping_response ping_res
Definition: ethremotecfg_server.h:788
struct rpmsg_kdrv_ethswitch_regwr_response regwr_res
Definition: ethremotecfg_server.h:778
Register MAC address CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:805
int32_t(* ethrdev_srv_cb_register_mac_handler_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, uint64_t handle, uint32_t core_key, uint8_t *mac_address, uint32_t flow_idx)
Definition: ethremotecfg_server.h:238
struct rpmsg_kdrv_ethswitch_register_ethertype_response register_ethertype_res
Definition: ethremotecfg_server.h:808
struct rpmsg_kdrv_ethswitch_register_mac_response register_mac_res
Definition: ethremotecfg_server.h:742
uint8_t ipv4_addr[RPMSG_KDRV_TP_ETHSWITCH_IPV4ADDRLEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:109
struct rpmsg_kdrv_ethswitch_attach_extended_request attach_ext_req
Definition: ethremotecfg_server.h:728
int32_t(* ethrdev_srv_cb_register_remotetimer_handler_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, uint8_t *name, uint64_t handle, uint32_t core_key, uint8_t timer_id, uint8_t hwPushNum)
Definition: ethremotecfg_server.h:554
struct rpmsg_kdrv_ethswitch_attach_response attach_res
Definition: ethremotecfg_server.h:726
struct rpmsg_kdrv_ethswitch_s2c_notify s2c_notify
Definition: ethremotecfg_server.h:802
int32_t(* ethrdev_srv_cb_free_tx_handler_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, uint64_t handle, uint32_t core_key, uint32_t tx_cpsw_psil_dst_id)
Definition: ethremotecfg_server.h:306
Register Remote timer CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1200
u16 ether_type
Definition: rpmsg-kdrv-transport-ethswitch.h:104
int32_t(* ethrdev_srv_cb_free_rx_handler_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, uint64_t handle, uint32_t core_key, uint32_t alloc_flow_idx)
Definition: ethremotecfg_server.h:322
Free Tx Channel CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:876
struct rpmsg_kdrv_ethswitch_ipv6_register_mac_request ipv6_register_mac_req
Definition: ethremotecfg_server.h:794
struct rpmsg_kdrv_ethswitch_filter_add_mac_request filter_add_mac_req
Definition: ethremotecfg_server.h:826
Register IPv6:MAC Address mapping CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1082
int32_t(* ethrdev_srv_cb_filter_del_mac_handler_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, uint64_t handle, uint32_t core_key, uint8_t *mac_address, uint16_t vlan_id, uint32_t flow_idx)
Definition: ethremotecfg_server.h:628
int32_t(* ethrdev_srv_cb_detach_handler_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, uint64_t handle, uint32_t core_key)
Definition: ethremotecfg_server.h:353
struct rpmsg_kdrv_ethswitch_unregister_ethertype_response unregister_ethertype_res
Definition: ethremotecfg_server.h:812
int32_t(* ethrdev_srv_cb_alloc_rx_handler_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, uint64_t handle, uint32_t core_key, uint32_t *pAllocFlowIdx)
Definition: ethremotecfg_server.h:205
struct rpmsg_kdrv_ethswitch_ipv4_unregister_mac_response ipv4_unregister_mac_res
Definition: ethremotecfg_server.h:800
int32_t(* ethrdev_srv_cb_unregister_ethertype_handler_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, uint64_t handle, uint32_t core_key, uint16_t ether_type, uint32_t flow_idx)
Definition: ethremotecfg_server.h:535
u16 vlan_id
Definition: rpmsg-kdrv-transport-ethswitch.h:108
Register Remote timer CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1185
struct rpmsg_kdrv_ethswitch_filter_add_mac_response filter_add_mac_res
Definition: ethremotecfg_server.h:828
struct rpmsg_kdrv_ethswitch_ioctl_response ioctl_res
Definition: ethremotecfg_server.h:774
struct rpmsg_kdrv_ethswitch_unregister_rx_default_request unregister_rx_default_req
Definition: ethremotecfg_server.h:752
Ethernet Switch Remote Device Data.
Definition: rpmsg-kdrv-transport-ethswitch.h:1331
Unregister Default Flow CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:898
struct rpmsg_kdrv_ethswitch_regwr_request regwr_req
Definition: ethremotecfg_server.h:776
int32_t(* ethrdev_srv_cb_unregister_ipv6_mac_handler_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, uint64_t handle, uint32_t core_key, uint8_t *ipv6_addr)
Definition: ethremotecfg_server.h:474
Ethernet Switch Remote Device Client to Server Notify.
Definition: rpmsg-kdrv-transport-ethswitch.h:1398
Register Ethertype CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1136
int32_t(* ethrdev_srv_cb_regrd_handler_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, uint32_t regaddr, uint32_t *pRegval)
Definition: ethremotecfg_server.h:407
struct rpmsg_kdrv_ethswitch_register_rx_default_response register_rx_default_res
Definition: ethremotecfg_server.h:750
Detach CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:942
void(* ethrdev_srv_cb_client_notify_handler_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, uint64_t handle, uint32_t core_key, enum rpmsg_kdrv_ethswitch_client_notify_type notifyid, uint8_t *notify_info, uint32_t notify_info_len)
Definition: ethremotecfg_server.h:489
Free Rx Flow CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:920
#define ETHREMOTECFG_SERVER_MAX_INSTANCES
Definition: ethremotecfg_server.h:96
Unregister IPv4:MAC Address mapping CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1117
Unregister IPv4:MAC Address mapping CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1091
Set promiscuous mode CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1244
struct rpmsg_kdrv_ethswitch_set_promisc_mode_request set_promisc_mode_req
Definition: ethremotecfg_server.h:822
Definition: rpmsg-kdrv-transport-ethswitch.h:688
void(* ethrdev_srv_cb_init_device_data_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, struct rpmsg_kdrv_ethswitch_device_data *eth_dev_data)
Definition: ethremotecfg_server.h:502
int32_t(* ethrdev_srv_cb_unregister_remotetimer_handler_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, uint8_t *name, uint64_t handle, uint32_t core_key, uint8_t hwPushNum)
Definition: ethremotecfg_server.h:573
Set promiscuous mode CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1231
struct rpmsg_kdrv_ethswitch_ipv6_register_mac_response ipv6_register_mac_res
Definition: ethremotecfg_server.h:796
union rdevEthSwitchServerMessageList_u __attribute__((packed)) rdevEthSwitchServerMessageList_t
Union of all ethswitch remote device messages. Used internally in the server/client implementation...
Register MAC address CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:820
Free MAC address CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:854
UnRegister MAC address CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:845
int32_t(* ethrdev_srv_cb_register_ipv4_mac_handler_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, uint64_t handle, uint32_t core_key, uint8_t *mac_address, uint8_t *ipv4_addr)
Definition: ethremotecfg_server.h:423
struct rpmsg_kdrv_ethswitch_free_rx_request free_rx_req
Definition: ethremotecfg_server.h:764
u8 cpsw_type
Definition: rpmsg-kdrv-transport-ethswitch.h:102
struct rpmsg_kdrv_ethswitch_free_tx_request free_tx_req
Definition: ethremotecfg_server.h:760
Definition: rpmsg-kdrv-transport-ethswitch.h:663
Free MAC address CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:867
struct rpmsg_kdrv_ethswitch_c2s_notify c2s_notify
Definition: ethremotecfg_server.h:804
int32_t(* ethrdev_srv_cb_attach_ext_handler_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, uint8_t cpsw_type, uint64_t *pId, uint32_t *pCoreKey, uint32_t *pRxMtu, uint32_t *pTxMtu, uint32_t txMtuArraySize, uint32_t *pFeatures, uint32_t *pAllocFlowIdx, uint32_t *pTxCpswPsilDstId, uint8_t *macAddress, uint32_t *pMacOnlyPort)
Definition: ethremotecfg_server.h:165
u32 tx_cpsw_psil_dst_id
Definition: rpmsg-kdrv-transport-ethswitch.h:117
Register Read CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1027
int32_t(* ethrdev_srv_cb_register_rx_default_handler_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, uint64_t handle, uint32_t core_key, uint32_t flow_idx)
Definition: ethremotecfg_server.h:274
Alloc Tx channel CMD response msg.
Definition: rpmsg-kdrv-transport-ethswitch.h:758
struct rpmsg_kdrv_ethswitch_alloc_rx_response alloc_rx_res
Definition: ethremotecfg_server.h:734
u32 regval
Definition: rpmsg-kdrv-transport-ethswitch.h:104
Detach CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:953
int32_t(* ethrdev_srv_cb_unregister_mac_handler_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, uint64_t handle, uint32_t core_key, uint8_t *mac_address, uint32_t flow_idx)
Definition: ethremotecfg_server.h:257
u8 mac_address[RPMSG_KDRV_TP_ETHSWITCH_MACADDRLEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:119
uint8_t ipv6_addr[RPMSG_KDRV_TP_ETHSWITCH_IPV6ADDRLEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:108
int32_t(* ethrdev_srv_cb_register_ethertype_handler_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, uint64_t handle, uint32_t core_key, uint16_t ether_type, uint32_t flow_idx)
Definition: ethremotecfg_server.h:517
u32 regaddr
Definition: rpmsg-kdrv-transport-ethswitch.h:102
uint32_t host_id
Definition: ethremotecfg_server.h:110
Register IPv6:MAC Address mapping CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1056
struct rpmsg_kdrv_ethswitch_ioctl_request ioctl_req
Definition: ethremotecfg_server.h:772
Ethernet Switch Remote device server instance initialization parameters.
Definition: ethremotecfg_server.h:107
u8 timer_id
Definition: rpmsg-kdrv-transport-ethswitch.h:104
struct rpmsg_kdrv_ethswitch_free_mac_response free_mac_res
Definition: ethremotecfg_server.h:758
struct rpmsg_kdrv_ethswitch_free_rx_response free_rx_res
Definition: ethremotecfg_server.h:766
Delete multicast MAC address from receive filter CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1281
u32 inargs_len
Definition: rpmsg-kdrv-transport-ethswitch.h:106
Alloc request CMD params.
Definition: rpmsg-kdrv-transport-ethswitch.h:747
u8 notify_info[RPMSG_KDRV_TP_ETHSWITCH_MESSAGE_DATA_LEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:108
u32 notify_info_len
Definition: rpmsg-kdrv-transport-ethswitch.h:106
struct rpmsg_kdrv_ethswitch_unregister_remotetimer_request unregister_remotetimer_req
Definition: ethremotecfg_server.h:818
u32 enable
Definition: rpmsg-kdrv-transport-ethswitch.h:104
EthRemoteCfg_VirtPort
Virtual port id.
Definition: ethremotecfg_virtport.h:97
struct rpmsg_kdrv_ethswitch_filter_del_mac_request filter_del_mac_req
Definition: ethremotecfg_server.h:830
UnRegister Ethertype CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1176
Definition: rpmsg-kdrv-transport-ethswitch.h:699
int32_t(* ethrdev_srv_cb_attach_handler_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, uint8_t cpsw_type, uint64_t *pId, uint32_t *pCoreKey, uint32_t *pRxMtu, uint32_t *pTxMtu, uint32_t txMtuArraySize, uint32_t *pFeatures, uint32_t *pMacOnlyPort)
Definition: ethremotecfg_server.h:136
struct rpmsg_kdrv_ethswitch_register_ethertype_request register_ethertype_req
Definition: ethremotecfg_server.h:806
struct rpmsg_kdrv_ethswitch_attach_request attach_req
Definition: ethremotecfg_server.h:724
Alloc request CMD params.
Definition: rpmsg-kdrv-transport-ethswitch.h:736
struct rpmsg_kdrv_ethswitch_alloc_mac_response alloc_mac_res
Definition: ethremotecfg_server.h:738
int32_t rdevEthSwitchServerInit(rdevEthSwitchServerInitPrm_t *prm)
Initialize ethernet switch remote device instance.
struct rpmsg_kdrv_ethswitch_filter_del_mac_response filter_del_mac_res
Definition: ethremotecfg_server.h:832
struct rpmsg_kdrv_ethswitch_unregister_remotetimer_response unregister_remotetimer_res
Definition: ethremotecfg_server.h:820
u8 hwPushNum
Definition: rpmsg-kdrv-transport-ethswitch.h:106
uint32_t num_instances
Definition: ethremotecfg_server.h:712
Alloc MAC CMD response msg.
Definition: rpmsg-kdrv-transport-ethswitch.h:772
Union of all ethswitch remote device messages. Used internally in the server/client implementation...
Definition: ethremotecfg_server.h:721
Register Rx Default flow CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:783
int32_t(* ethrdev_srv_cb_alloc_mac_handler_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, uint64_t handle, uint32_t core_key, uint8_t *mac_address)
Definition: ethremotecfg_server.h:221
struct rpmsg_kdrv_ethswitch_device_data device_data
Definition: ethremotecfg_server.h:784
struct rpmsg_kdrv_ethswitch_unregister_ethertype_request unregister_ethertype_req
Definition: ethremotecfg_server.h:810
Delete multicast MAC address from receive filter CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1298
int32_t(* ethrdev_srv_cb_filter_add_mac_handler_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, uint64_t handle, uint32_t core_key, uint8_t *mac_address, uint16_t vlan_id, uint32_t flow_idx)
Definition: ethremotecfg_server.h:608
static void rdevEthSwitchServerInitPrmSetDefault(rdevEthSwitchServerInitPrm_t *prm)
Set EThernet Switch Remote Server init parameters to default state.
Definition: ethremotecfg_server.h:842
Ethernet Switch Remote Device Ping Request.
Definition: rpmsg-kdrv-transport-ethswitch.h:1354
Ethernet Switch Remote Device Ping Response.
Definition: rpmsg-kdrv-transport-ethswitch.h:1365
int32_t(* ethrdev_srv_cb_free_mac_handler_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, uint64_t handle, uint32_t core_key, u8 *mac_address)
Definition: ethremotecfg_server.h:338
struct rpmsg_kdrv_ethswitch_attach_extended_response attach_ext_res
Definition: ethremotecfg_server.h:730
Unregister Default Flow CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:911
u8 outargs[RPMSG_KDRV_TP_ETHSWITCH_IOCTL_OUTARGS_LEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:102
UnRegister MAC address CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:830
struct rpmsg_kdrv_ethswitch_register_remotetimer_request register_remotetimer_req
Definition: ethremotecfg_server.h:814
struct rpmsg_kdrv_ethswitch_free_mac_request free_mac_req
Definition: ethremotecfg_server.h:756
Ethernet Switch Remote Device Server to Client Notify.
Definition: rpmsg-kdrv-transport-ethswitch.h:1379
u8 inargs[RPMSG_KDRV_TP_ETHSWITCH_IOCTL_INARGS_LEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:108
int32_t(* ethrdev_srv_cb_alloc_tx_handler_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, uint64_t handle, uint32_t core_key, uint32_t *pTxCpswPsilDstId)
Definition: ethremotecfg_server.h:189
struct rpmsg_kdrv_ethswitch_ipv4_unregister_mac_request ipv4_unregister_mac_req
Definition: ethremotecfg_server.h:798
struct rpmsg_kdrv_ethswitch_detach_request detach_req
Definition: ethremotecfg_server.h:768
struct rpmsg_kdrv_ethswitch_ipv4_register_mac_response ipv4_register_mac_res
Definition: ethremotecfg_server.h:792
IOCTL CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:981
struct rpmsg_kdrv_ethswitch_register_rx_default_request register_rx_default_req
Definition: ethremotecfg_server.h:748
#define ETHREMOTECFG_SERVER_MAX_NAME_LEN
Max length of ethernet switch remote device exported name.
Definition: ethremotecfg_server.h:93
rpmsg_kdrv_ethswitch_client_notify_type
Etheret Remote Device Client to Server notify types.
Definition: rpmsg-kdrv-transport-ethswitch.h:503
struct rpmsg_kdrv_ethswitch_unregister_mac_request unregister_mac_req
Definition: ethremotecfg_server.h:744
Add multicast MAC address to receive filter CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1272
Register IPv4:MAC Address mapping CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1038
Register Write CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1005
u32 alloc_flow_idx
Definition: rpmsg-kdrv-transport-ethswitch.h:112
struct rpmsg_kdrv_ethswitch_detach_response detach_res
Definition: ethremotecfg_server.h:770
struct rpmsg_kdrv_ethswitch_regrd_response regrd_res
Definition: ethremotecfg_server.h:782
struct rpmsg_kdrv_ethswitch_regrd_request regrd_req
Definition: ethremotecfg_server.h:780
EthRemoteCfg_VirtPort virtPort
Definition: ethremotecfg_server.h:109
u32 core_key
Definition: rpmsg-kdrv-transport-ethswitch.h:102
u8 notifyid
Definition: rpmsg-kdrv-transport-ethswitch.h:104
Register IPv4:MAC Address mapping CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1073
uint32_t rpmsg_buf_size
Definition: ethremotecfg_server.h:714
Free Rx Flow CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:933
Register Ethertype CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1151
struct rpmsg_kdrv_ethswitch_alloc_request alloc_req
Definition: ethremotecfg_server.h:732
Register Write CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:992
UnRegister Remote timer CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1209
int32_t(* ethrdev_srv_cb_unregister_ipv4_mac_handler_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, uint64_t handle, uint32_t core_key, uint8_t *ipv4_addr)
Definition: ethremotecfg_server.h:458
struct rpmsg_kdrv_ethswitch_free_tx_response free_tx_res
Definition: ethremotecfg_server.h:762
Register Rx Default flow CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:796
UnRegister Ethertype CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1161
u32 outargs_len
Definition: rpmsg-kdrv-transport-ethswitch.h:110
This file contains the type definitions and helper macros for Ethernet Firmware&#39;s Virtual Port...
int32_t(* ethrdev_srv_cb_register_ipv6_mac_handler_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, uint64_t handle, uint32_t core_key, uint8_t *mac_address, uint8_t *ipv6_addr)
Definition: ethremotecfg_server.h:441
u32 flow_idx
Definition: rpmsg-kdrv-transport-ethswitch.h:106
int32_t(* ethrdev_srv_cb_unregister_rx_default_handler_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, uint64_t handle, uint32_t core_key, uint32_t flow_idx)
Definition: ethremotecfg_server.h:290
int32_t(* ethrdev_srv_cb_regwr_handler_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, uint32_t regaddr, uint32_t regval, uint32_t *pRegval)
Definition: ethremotecfg_server.h:392
int32_t(* ethrdev_srv_cb_set_promisc_mode_handler_t)(EthRemoteCfg_VirtPort virtPort, uint32_t host_id, uint64_t handle, uint32_t core_key, uint32_t enable)
Definition: ethremotecfg_server.h:590
struct rpmsg_kdrv_ethswitch_ping_request ping_req
Definition: ethremotecfg_server.h:786
Free Tx Channel CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:889
Register Read CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1016
struct rpmsg_kdrv_ethswitch_alloc_tx_response alloc_tx_res
Definition: ethremotecfg_server.h:736