ETHFW API Guide
rpmsg-kdrv-transport-ethswitch.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 __RPMSG_KDRV_TRANSPORT_ETHSWITCH_H__
64 #define __RPMSG_KDRV_TRANSPORT_ETHSWITCH_H__
65 
66 #include <protocol/rpmsg-kdrv-transport-common.h>
67 
80 /* @} */
96 #define RPMSG_KDRV_TP_ETHSWITCH_VERSION_MAJOR (0)
97 
98 #define RPMSG_KDRV_TP_ETHSWITCH_VERSION_MINOR (2)
99 
100 #define RPMSG_KDRV_TP_ETHSWITCH_VERSION_REVISION (0)
101 /* @} */
115 {
447 
458 
469 
480 
485 };
486 
491 {
498 };
499 
504 {
514 };
515 
522 #define RPMSG_KDRV_TP_ETHSWITCH_CMDSTATUS_OK (0)
523 
528 #define RPMSG_KDRV_TP_ETHSWITCH_CMDSTATUS_EAGAIN (-1)
529 
530 #define RPMSG_KDRV_TP_ETHSWITCH_CMDSTATUS_EFAIL (-2)
531 
535 #define RPMSG_KDRV_TP_ETHSWITCH_CMDSTATUS_EACCESS (-3)
536 /* @} */
537 
538 
539 
543 #define RPMSG_KDRV_TP_ETHSWITCH_MESSAGE_DATA_LEN (192)
544 
548 #define RPMSG_KDRV_TP_ETHSWITCH_IOCTL_INARGS_LEN (192)
549 
553 #define RPMSG_KDRV_TP_ETHSWITCH_IOCTL_OUTARGS_LEN (192)
554 
555 
559 #define RPMSG_KDRV_TP_ETHSWITCH_CPSW_PRIORITY_NUM (8)
560 
564 #define RPMSG_KDRV_TP_ETHSWITCH_MACADDRLEN (6)
565 
569 #define RPMSG_KDRV_TP_ETHSWITCH_IPV4ADDRLEN (4)
570 
574 #define RPMSG_KDRV_TP_ETHSWITCH_IPV6ADDRLEN (16)
575 
582 #define RPMSG_KDRV_TP_ETHSWITCH_FEATURE_TXCSUM (1 << 0)
583 
584 /* Note: Feature bit 1 is intentionally not used, Linux already using it */
585 
587 #define RPMSG_KDRV_TP_ETHSWITCH_FEATURE_MAC_ONLY (1 << 2)
588 
590 #define RPMSG_KDRV_TP_ETHSWITCH_FEATURE_MC_FILTER (1 << 3)
591 /* @} */
592 
598 #define RPMSG_KDRV_TP_ETHSWITCH_VLAN_USE_DFLT (0xFFFF)
599 
603 #define RPMSG_KDRV_TP_ETHSWITCH_YEARLEN (4)
604 
608 #define RPMSG_KDRV_TP_ETHSWITCH_MONTHLEN (3)
609 
613 #define RPMSG_KDRV_TP_ETHSWITCH_DATELEN (2)
614 
618 #define RPMSG_KDRV_TP_ETHSWITCH_COMMITSHALEN (8)
619 
624 {
627 } __attribute__((packed));
628 
633 {
635  u64 id;
637  u32 core_key;
638 } __attribute__((packed));
639 
644 {
646  s32 status;
647 } __attribute__((packed));
648 
653 {
658 } __attribute__((packed));
659 
664 {
670  u64 id;
674  u32 core_key;
676  u32 rx_mtu;
680  u32 features;
683 } __attribute__((packed));
684 
689 {
694 } __attribute__((packed));
695 
700 {
704  u64 id;
706  u32 core_key;
708  u32 rx_mtu;
712  u32 features;
715 
724 } __attribute__((packed));
725 
737 {
742 } __attribute__((packed));
743 
748 {
753 } __attribute__((packed));
754 
759 {
762 
767 } __attribute__((packed));
768 
773 {
778 } __attribute__((packed));
779 
784 {
791 } __attribute__((packed));
792 
797 {
800 } __attribute__((packed));
801 
806 {
814  u32 flow_idx;
815 } __attribute__((packed));
816 
821 {
824 } __attribute__((packed));
825 
826 
831 {
839  u32 flow_idx;
840 } __attribute__((packed));
841 
846 {
849 } __attribute__((packed));
850 
855 {
862 } __attribute__((packed));
863 
868 {
871 } __attribute__((packed));
872 
877 {
884 } __attribute__((packed));
885 
890 {
893 } __attribute__((packed));
894 
899 {
906 } __attribute__((packed));
907 
912 {
915 } __attribute__((packed));
916 
921 {
928 } __attribute__((packed));
929 
934 {
937 } __attribute__((packed));
938 
943 {
948 } __attribute__((packed));
949 
954 {
957 } __attribute__((packed));
958 
963 {
969  u32 cmd;
976 } __attribute__((packed));
977 
982 {
987 } __attribute__((packed));
988 
993 {
997  u32 regaddr;
999  u32 regval;
1000 } __attribute__((packed));
1001 
1006 {
1010  u32 regval;
1011 } __attribute__((packed));
1012 
1017 {
1021  u32 regaddr;
1022 } __attribute__((packed));
1023 
1028 {
1032  u32 regval;
1033 } __attribute__((packed));
1034 
1039 {
1044 
1051 } __attribute__((packed));
1052 
1057 {
1068 } __attribute__((packed));
1069 
1074 {
1077 } __attribute__((packed));
1078 
1083 {
1086 } __attribute__((packed));
1087 
1092 {
1099 } __attribute__((packed));
1100 
1105 {
1112 } __attribute__((packed));
1113 
1118 {
1121 } __attribute__((packed));
1122 
1127 {
1130 } __attribute__((packed));
1131 
1132 
1137 {
1146 } __attribute__((packed));
1147 
1152 {
1155 } __attribute__((packed));
1156 
1157 
1162 {
1171 } __attribute__((packed));
1172 
1177 {
1180 } __attribute__((packed));
1181 
1186 {
1195 } __attribute__((packed));
1196 
1201 {
1204 } __attribute__((packed));
1205 
1210 {
1217 } __attribute__((packed));
1218 
1223 {
1226 } __attribute__((packed));
1227 
1232 {
1238  u32 enable;
1239 } __attribute__((packed));
1240 
1245 {
1248 } __attribute__((packed));
1249 
1254 {
1261  /* VLAN id. Pass \ref RPMSG_KDRV_TP_ETHSWITCH_VLAN_USE_DFLT to let
1262  * Ethernet Firmware use the default VLAN id for the port type
1263  * (virtual MAC or virtual switch) */
1264  u16 vlan_id;
1267 } __attribute__((packed));
1268 
1273 {
1276 } __attribute__((packed));
1277 
1282 {
1289  /* VLAN id */
1290  u16 vlan_id;
1293 } __attribute__((packed));
1294 
1299 {
1302 } __attribute__((packed));
1303 
1308 {
1310  u32 major;
1312  u32 minor;
1314  u32 rev;
1323 } __attribute__((packed));
1324 
1332 {
1343  u32 uart_id;
1344 } __attribute__((packed));
1345 
1355 {
1360 } __attribute__((packed));
1361 
1366 {
1369 } __attribute__((packed));
1370 
1380 {
1388 } __attribute__((packed));
1389 
1399 {
1410 } __attribute__((packed));
1411 
1412 /* @} */
1413 
1414 #endif
u32 alloc_flow_idx
Definition: rpmsg-kdrv-transport-ethswitch.h:714
u32 enable
Definition: rpmsg-kdrv-transport-ethswitch.h:1238
#define RPMSG_KDRV_TP_ETHSWITCH_YEARLEN
Definition: rpmsg-kdrv-transport-ethswitch.h:603
CMD to detach remote core from the ethernet switch device.
Definition: rpmsg-kdrv-transport-ethswitch.h:270
char month[RPMSG_KDRV_TP_ETHSWITCH_MONTHLEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:1318
struct rpmsg_kdrv_ethswitch_common_request_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:1190
Definition: rpmsg-kdrv-transport-ethswitch.h:506
UnRegister Remote timer CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1222
char year[RPMSG_KDRV_TP_ETHSWITCH_YEARLEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:1316
struct rpmsg_kdrv_ethswitch_common_response_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:1225
struct rpmsg_kdrv_ethswitch_message_header header
Definition: rpmsg-kdrv-transport-ethswitch.h:995
struct rpmsg_kdrv_ethswitch_common_response_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:1154
Add multicast MAC address to receive filter CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1253
struct rpmsg_kdrv_ethswitch_message_header header
Definition: rpmsg-kdrv-transport-ethswitch.h:833
struct rpmsg_kdrv_ethswitch_common_response_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:984
IOCTL CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:962
uint8_t ipv6_addr[RPMSG_KDRV_TP_ETHSWITCH_IPV6ADDRLEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:1111
Definition: rpmsg-kdrv-transport-ethswitch.h:652
u32 inargs_len
Definition: rpmsg-kdrv-transport-ethswitch.h:971
struct rpmsg_kdrv_ethswitch_common_request_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:859
u32 mac_only_port
Definition: rpmsg-kdrv-transport-ethswitch.h:723
struct rpmsg_kdrv_ethswitch_message_header header
Definition: rpmsg-kdrv-transport-ethswitch.h:1164
Register MAC address CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:805
uint8_t mac_address[RPMSG_KDRV_TP_ETHSWITCH_MACADDRLEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:1065
u32 minor
Definition: rpmsg-kdrv-transport-ethswitch.h:1312
CMD to delete multicast MAC address to receive filter.
Definition: rpmsg-kdrv-transport-ethswitch.h:479
u32 flow_idx
Definition: rpmsg-kdrv-transport-ethswitch.h:1266
u32 tx_mtu[RPMSG_KDRV_TP_ETHSWITCH_CPSW_PRIORITY_NUM]
Definition: rpmsg-kdrv-transport-ethswitch.h:710
CMD to allocate Tx channel.
Definition: rpmsg-kdrv-transport-ethswitch.h:151
CMD to attach to the ethernet switch remote device.
Definition: rpmsg-kdrv-transport-ethswitch.h:125
struct rpmsg_kdrv_ethswitch_message_header header
Definition: rpmsg-kdrv-transport-ethswitch.h:1059
struct rpmsg_kdrv_ethswitch_common_response_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:914
CMD to register a DST MAC addr by the remote core client to a specific rx flow id.
Definition: rpmsg-kdrv-transport-ethswitch.h:199
u8 mac_address[RPMSG_KDRV_TP_ETHSWITCH_MACADDRLEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:1288
Register Remote timer CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1200
u32 notify_info_len
Definition: rpmsg-kdrv-transport-ethswitch.h:1407
struct rpmsg_kdrv_ethswitch_common_request_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:1286
Free Tx Channel CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:876
u32 tx_cpsw_psil_dst_id
Definition: rpmsg-kdrv-transport-ethswitch.h:766
uint8_t mac_address[RPMSG_KDRV_TP_ETHSWITCH_MACADDRLEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:1048
struct rpmsg_kdrv_ethswitch_common_request_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:1236
Register IPv6:MAC Address mapping CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1082
u16 vlan_id
Definition: rpmsg-kdrv-transport-ethswitch.h:1290
struct rpmsg_kdrv_ethswitch_common_response_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:956
Definition: rpmsg-kdrv-transport-ethswitch.h:632
struct rpmsg_kdrv_ethswitch_common_response_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:1085
Definition: rpmsg-kdrv-transport-ethswitch.h:497
Unregister IPv6:MAC Address mapping CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1126
struct rpmsg_kdrv_ethswitch_common_response_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:799
u8 timer_id
Definition: rpmsg-kdrv-transport-ethswitch.h:1192
struct rpmsg_kdrv_ethswitch_common_request_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:741
u32 alloc_flow_idx
Definition: rpmsg-kdrv-transport-ethswitch.h:927
struct rpmsg_kdrv_ethswitch_common_response_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:1120
u32 features
Definition: rpmsg-kdrv-transport-ethswitch.h:680
struct rpmsg_kdrv_ethswitch_message_header header
Definition: rpmsg-kdrv-transport-ethswitch.h:1256
Register Remote timer CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1185
struct rpmsg_kdrv_ethswitch_common_response_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:936
CMD to unregister remote timer with ethfw for time synchronization.
Definition: rpmsg-kdrv-transport-ethswitch.h:446
struct rpmsg_kdrv_ethswitch_message_header header
Definition: rpmsg-kdrv-transport-ethswitch.h:1284
rpmsg_kdrv_ethswitch_cpsw_type
CPSW Type supported by Ethernet Switch Remote Device.
Definition: rpmsg-kdrv-transport-ethswitch.h:490
struct rpmsg_kdrv_ethswitch_common_request_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:903
struct rpmsg_kdrv_ethswitch_common_response_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:1203
Notify CMD from remote device server to client.
Definition: rpmsg-kdrv-transport-ethswitch.h:386
u32 regval
Definition: rpmsg-kdrv-transport-ethswitch.h:999
CMD to remove IPv4 address: MAC address mapping.
Definition: rpmsg-kdrv-transport-ethswitch.h:350
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
u32 default_flow_idx
Definition: rpmsg-kdrv-transport-ethswitch.h:790
u32 rx_mtu
Definition: rpmsg-kdrv-transport-ethswitch.h:708
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
u8 mac_address[RPMSG_KDRV_TP_ETHSWITCH_MACADDRLEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:812
#define RPMSG_KDRV_TP_ETHSWITCH_MONTHLEN
Definition: rpmsg-kdrv-transport-ethswitch.h:608
struct rpmsg_kdrv_ethswitch_common_request_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:1258
CMD to register a remote timer with ethfw for time synchronization.
Definition: rpmsg-kdrv-transport-ethswitch.h:436
u8 mac_address[RPMSG_KDRV_TP_ETHSWITCH_MACADDRLEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:721
u8 inargs[RPMSG_KDRV_TP_ETHSWITCH_IOCTL_INARGS_LEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:973
CMD to invoke CPSW LLD IOCTL from remote core.
Definition: rpmsg-kdrv-transport-ethswitch.h:283
struct rpmsg_kdrv_ethswitch_common_response_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:1008
u32 flow_idx
Definition: rpmsg-kdrv-transport-ethswitch.h:1292
Detach CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:942
u32 tx_cpsw_psil_dst_id
Definition: rpmsg-kdrv-transport-ethswitch.h:883
Definition: rpmsg-kdrv-transport-ethswitch.h:511
struct rpmsg_kdrv_ethswitch_message_header header
Definition: rpmsg-kdrv-transport-ethswitch.h:1234
u32 major
Definition: rpmsg-kdrv-transport-ethswitch.h:1310
struct rpmsg_kdrv_ethswitch_common_response_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:892
Free Rx Flow CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:920
struct rpmsg_kdrv_ethswitch_message_header header
Definition: rpmsg-kdrv-transport-ethswitch.h:1094
struct rpmsg_kdrv_ethswitch_message_header header
Definition: rpmsg-kdrv-transport-ethswitch.h:965
CMD to read from a specific register from remote core.
Definition: rpmsg-kdrv-transport-ethswitch.h:307
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
Unregister IPv6:MAC Address mapping CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1104
struct rpmsg_kdrv_ethswitch_common_response_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:1301
struct rpmsg_kdrv_ethswitch_common_response_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:1275
struct rpmsg_kdrv_ethswitch_common_response_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:775
struct rpmsg_kdrv_ethswitch_message_header __attribute__((packed))
struct rpmsg_kdrv_ethswitch_common_request_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:881
Definition: rpmsg-kdrv-transport-ethswitch.h:688
CMD to allocate Rx flow.
Definition: rpmsg-kdrv-transport-ethswitch.h:162
struct rpmsg_kdrv_ethswitch_message_header header
Definition: rpmsg-kdrv-transport-ethswitch.h:655
Set promiscuous mode CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1231
u8 mac_address[RPMSG_KDRV_TP_ETHSWITCH_MACADDRLEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:837
CMD to request remote device to respond to ping request from client.
Definition: rpmsg-kdrv-transport-ethswitch.h:374
u32 core_key
Definition: rpmsg-kdrv-transport-ethswitch.h:674
struct rpmsg_kdrv_ethswitch_message_header header
Definition: rpmsg-kdrv-transport-ethswitch.h:1107
Register MAC address CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:820
struct rpmsg_kdrv_ethswitch_common_request_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:1166
Free MAC address CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:854
u32 core_key
Definition: rpmsg-kdrv-transport-ethswitch.h:706
UnRegister MAC address CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:845
struct rpmsg_kdrv_ethswitch_message_header header
Definition: rpmsg-kdrv-transport-ethswitch.h:879
struct rpmsg_kdrv_ethswitch_common_response_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:666
Notify CMD from remote device client to server.
Definition: rpmsg-kdrv-transport-ethswitch.h:398
uint8_t ipv4_addr[RPMSG_KDRV_TP_ETHSWITCH_IPV4ADDRLEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:1098
u64 id
Definition: rpmsg-kdrv-transport-ethswitch.h:635
Definition: rpmsg-kdrv-transport-ethswitch.h:643
u32 regaddr
Definition: rpmsg-kdrv-transport-ethswitch.h:1021
struct rpmsg_kdrv_ethswitch_common_request_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:925
u32 cmd
Definition: rpmsg-kdrv-transport-ethswitch.h:969
Definition: rpmsg-kdrv-transport-ethswitch.h:663
Free MAC address CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:867
u32 tx_mtu[RPMSG_KDRV_TP_ETHSWITCH_CPSW_PRIORITY_NUM]
Definition: rpmsg-kdrv-transport-ethswitch.h:678
CMD to register a Ethertype by the remote core client to a specific rx flow id.
Definition: rpmsg-kdrv-transport-ethswitch.h:410
u16 ether_type
Definition: rpmsg-kdrv-transport-ethswitch.h:1168
struct rpmsg_kdrv_ethswitch_message_header header
Definition: rpmsg-kdrv-transport-ethswitch.h:1401
struct rpmsg_kdrv_ethswitch_common_response_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:761
Register Read CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1027
#define RPMSG_KDRV_TP_ETHSWITCH_MESSAGE_DATA_LEN
Definition: rpmsg-kdrv-transport-ethswitch.h:543
Alloc Tx channel CMD response msg.
Definition: rpmsg-kdrv-transport-ethswitch.h:758
struct rpmsg_kdrv_ethswitch_message_header header
Definition: rpmsg-kdrv-transport-ethswitch.h:691
rpmsg_kdrv_ethswitch_message_type
Ethernet Switch Remote Device commands.
Definition: rpmsg-kdrv-transport-ethswitch.h:114
Detach CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:953
Firmware version info returned by remote device attach to the ethernet switch device.
Definition: rpmsg-kdrv-transport-ethswitch.h:1307
u8 mac_address[RPMSG_KDRV_TP_ETHSWITCH_MACADDRLEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:861
u32 regaddr
Definition: rpmsg-kdrv-transport-ethswitch.h:997
struct rpmsg_kdrv_ethswitch_common_response_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:1179
u32 mac_only_port
Definition: rpmsg-kdrv-transport-ethswitch.h:682
#define RPMSG_KDRV_TP_ETHSWITCH_MACADDRLEN
Definition: rpmsg-kdrv-transport-ethswitch.h:564
Register IPv6:MAC Address mapping CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1056
struct rpmsg_kdrv_ethswitch_common_response_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:823
CMD to attach to the ethernet switch remote device which returns extended attach info.
Definition: rpmsg-kdrv-transport-ethswitch.h:140
struct rpmsg_kdrv_ethswitch_message_header header
Definition: rpmsg-kdrv-transport-ethswitch.h:1188
#define RPMSG_KDRV_TP_ETHSWITCH_IOCTL_OUTARGS_LEN
Definition: rpmsg-kdrv-transport-ethswitch.h:553
struct rpmsg_kdrv_ethswitch_common_response_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:870
struct rpmsg_kdrv_ethswitch_common_response_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:1030
struct rpmsg_kdrv_ethswitch_common_request_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:1403
Definition: rpmsg-kdrv-transport-ethswitch.h:513
struct rpmsg_kdrv_ethswitch_message_header header
Definition: rpmsg-kdrv-transport-ethswitch.h:901
u32 flow_idx
Definition: rpmsg-kdrv-transport-ethswitch.h:1170
struct rpmsg_kdrv_ethswitch_common_response_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:1247
Delete multicast MAC address from receive filter CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1281
CMD to unregister a Ethertype by the remote core client.
Definition: rpmsg-kdrv-transport-ethswitch.h:424
struct rpmsg_kdrv_ethswitch_message_header header
Definition: rpmsg-kdrv-transport-ethswitch.h:808
struct rpmsg_kdrv_ethswitch_common_request_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:947
u8 data[RPMSG_KDRV_TP_ETHSWITCH_MESSAGE_DATA_LEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:1387
Alloc request CMD params.
Definition: rpmsg-kdrv-transport-ethswitch.h:747
struct rpmsg_kdrv_ethswitch_common_request_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:835
u32 features
Definition: rpmsg-kdrv-transport-ethswitch.h:712
UnRegister Ethertype CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1176
Definition: rpmsg-kdrv-transport-ethswitch.h:699
struct rpmsg_kdrv_ethswitch_common_response_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:1129
u64 id
Definition: rpmsg-kdrv-transport-ethswitch.h:704
u32 regval
Definition: rpmsg-kdrv-transport-ethswitch.h:1010
Alloc request CMD params.
Definition: rpmsg-kdrv-transport-ethswitch.h:736
u32 uart_connected
Definition: rpmsg-kdrv-transport-ethswitch.h:1341
u8 data[RPMSG_KDRV_TP_ETHSWITCH_MESSAGE_DATA_LEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:1359
u32 alloc_flow_idx
Definition: rpmsg-kdrv-transport-ethswitch.h:752
CMD to write to a specific register from remote core.
Definition: rpmsg-kdrv-transport-ethswitch.h:295
#define RPMSG_KDRV_TP_ETHSWITCH_COMMITSHALEN
Definition: rpmsg-kdrv-transport-ethswitch.h:618
u32 core_key
Definition: rpmsg-kdrv-transport-ethswitch.h:637
struct rpmsg_kdrv_ethswitch_message_header header
Definition: rpmsg-kdrv-transport-ethswitch.h:1019
struct rpmsg_kdrv_ethswitch_common_request_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:1109
struct rpmsg_kdrv_ethswitch_common_response_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:1076
struct rpmsg_kdrv_ethswitch_message_header header
Definition: rpmsg-kdrv-transport-ethswitch.h:1139
Alloc MAC CMD response msg.
Definition: rpmsg-kdrv-transport-ethswitch.h:772
u32 regval
Definition: rpmsg-kdrv-transport-ethswitch.h:1032
struct rpmsg_kdrv_ethswitch_message_header header
Definition: rpmsg-kdrv-transport-ethswitch.h:857
struct rpmsg_kdrv_ethswitch_common_request_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:967
u8 hwPushNum
Definition: rpmsg-kdrv-transport-ethswitch.h:1194
Register Rx Default flow CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:783
struct rpmsg_kdrv_ethswitch_common_request_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:1141
struct rpmsg_kdrv_ethswitch_firmware_version_info fw_ver
Definition: rpmsg-kdrv-transport-ethswitch.h:1334
u32 outargs_len
Definition: rpmsg-kdrv-transport-ethswitch.h:975
char date[RPMSG_KDRV_TP_ETHSWITCH_DATELEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:1320
CMD to add multicast MAC address to receive filter.
Definition: rpmsg-kdrv-transport-ethswitch.h:468
CMD to unregister default flow routing to the remote core.
Definition: rpmsg-kdrv-transport-ethswitch.h:226
CMD to register default flow from remote core.
Definition: rpmsg-kdrv-transport-ethswitch.h:176
Delete multicast MAC address from receive filter CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1298
struct rpmsg_kdrv_ethswitch_message_header header
Definition: rpmsg-kdrv-transport-ethswitch.h:945
Definition: rpmsg-kdrv-transport-ethswitch.h:493
u8 data[RPMSG_KDRV_TP_ETHSWITCH_MESSAGE_DATA_LEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:1368
#define RPMSG_KDRV_TP_ETHSWITCH_CPSW_PRIORITY_NUM
Definition: rpmsg-kdrv-transport-ethswitch.h:559
u8 cpsw_type
Definition: rpmsg-kdrv-transport-ethswitch.h:693
CMD to allocate a DST MAC addr to the remote core client.
Definition: rpmsg-kdrv-transport-ethswitch.h:187
struct rpmsg_kdrv_ethswitch_message_header header
Definition: rpmsg-kdrv-transport-ethswitch.h:786
u32 flow_idx
Definition: rpmsg-kdrv-transport-ethswitch.h:839
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
u16 vlan_id
Definition: rpmsg-kdrv-transport-ethswitch.h:1264
struct rpmsg_kdrv_ethswitch_common_request_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:810
u32 default_flow_idx
Definition: rpmsg-kdrv-transport-ethswitch.h:905
u32 flow_idx
Definition: rpmsg-kdrv-transport-ethswitch.h:814
Unregister Default Flow CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:911
UnRegister MAC address CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:830
Ethernet Switch Remote Device Server to Client Notify.
Definition: rpmsg-kdrv-transport-ethswitch.h:1379
u32 uart_id
Definition: rpmsg-kdrv-transport-ethswitch.h:1343
CMD to associate IPv6 address with MAC address.
Definition: rpmsg-kdrv-transport-ethswitch.h:339
struct rpmsg_kdrv_ethswitch_message_header header
Definition: rpmsg-kdrv-transport-ethswitch.h:923
struct rpmsg_kdrv_ethswitch_common_response_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:848
u32 permission_flags
Definition: rpmsg-kdrv-transport-ethswitch.h:1339
Definition: rpmsg-kdrv-transport-ethswitch.h:495
IOCTL CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:981
rpmsg_kdrv_ethswitch_client_notify_type
Etheret Remote Device Client to Server notify types.
Definition: rpmsg-kdrv-transport-ethswitch.h:503
uint8_t ipv4_addr[RPMSG_KDRV_TP_ETHSWITCH_IPV4ADDRLEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:1050
u8 message_type
Definition: rpmsg-kdrv-transport-ethswitch.h:626
struct rpmsg_kdrv_ethswitch_common_response_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:702
uint8_t ipv6_addr[RPMSG_KDRV_TP_ETHSWITCH_IPV6ADDRLEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:1067
u8 hwPushNum
Definition: rpmsg-kdrv-transport-ethswitch.h:1216
u8 notify_info[RPMSG_KDRV_TP_ETHSWITCH_MESSAGE_DATA_LEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:1409
struct rpmsg_kdrv_ethswitch_common_request_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:788
s32 status
Definition: rpmsg-kdrv-transport-ethswitch.h:646
Add multicast MAC address to receive filter CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1272
u32 rev
Definition: rpmsg-kdrv-transport-ethswitch.h:1314
Register IPv4:MAC Address mapping CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1038
u8 notifyid
Definition: rpmsg-kdrv-transport-ethswitch.h:1405
Register Write CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1005
#define RPMSG_KDRV_TP_ETHSWITCH_DATELEN
Definition: rpmsg-kdrv-transport-ethswitch.h:613
struct rpmsg_kdrv_ethswitch_common_request_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:1096
#define RPMSG_KDRV_TP_ETHSWITCH_IOCTL_INARGS_LEN
Definition: rpmsg-kdrv-transport-ethswitch.h:548
u8 cpsw_type
Definition: rpmsg-kdrv-transport-ethswitch.h:657
u8 mac_address[RPMSG_KDRV_TP_ETHSWITCH_MACADDRLEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:777
struct rpmsg_kdrv_ethswitch_common_response_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:750
struct rpmsg_kdrv_ethswitch_message_header header
Definition: rpmsg-kdrv-transport-ethswitch.h:1382
Max value of Ethernet Switch Remote Device. For internal use only.
Definition: rpmsg-kdrv-transport-ethswitch.h:484
struct rpmsg_kdrv_ethswitch_message_header header
Definition: rpmsg-kdrv-transport-ethswitch.h:1212
Register IPv4:MAC Address mapping CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1073
#define RPMSG_KDRV_TP_ETHSWITCH_IPV6ADDRLEN
Definition: rpmsg-kdrv-transport-ethswitch.h:574
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
CMD to set promiscuous mode.
Definition: rpmsg-kdrv-transport-ethswitch.h:457
CMD to unregister a DST MAC addr by the remote core client.
Definition: rpmsg-kdrv-transport-ethswitch.h:213
CMD to free previously allocated rx flow id.
Definition: rpmsg-kdrv-transport-ethswitch.h:259
struct rpmsg_kdrv_ethswitch_common_request_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:1214
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
CMD to remove IPv6 address: MAC address mapping.
Definition: rpmsg-kdrv-transport-ethswitch.h:361
struct rpmsg_kdrv_ethswitch_common_request_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:1043
CMD to associate IPv4 address with MAC address.
Definition: rpmsg-kdrv-transport-ethswitch.h:323
Register Rx Default flow CMD response params.
Definition: rpmsg-kdrv-transport-ethswitch.h:796
u8 outargs[RPMSG_KDRV_TP_ETHSWITCH_IOCTL_OUTARGS_LEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:986
u32 rx_mtu
Definition: rpmsg-kdrv-transport-ethswitch.h:676
struct rpmsg_kdrv_ethswitch_message_header header
Definition: rpmsg-kdrv-transport-ethswitch.h:1357
struct rpmsg_kdrv_ethswitch_common_request_info info
Definition: rpmsg-kdrv-transport-ethswitch.h:1061
CMD to free previously allocated mac addr.
Definition: rpmsg-kdrv-transport-ethswitch.h:237
UnRegister Ethertype CMD request params.
Definition: rpmsg-kdrv-transport-ethswitch.h:1161
CMD to free previously allocated tx channel CPSW PSIL destination thread.
Definition: rpmsg-kdrv-transport-ethswitch.h:248
struct rpmsg_kdrv_ethswitch_message_header header
Definition: rpmsg-kdrv-transport-ethswitch.h:739
u32 tx_cpsw_psil_dst_id
Definition: rpmsg-kdrv-transport-ethswitch.h:719
u8 mac_address[RPMSG_KDRV_TP_ETHSWITCH_MACADDRLEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:1260
u16 ether_type
Definition: rpmsg-kdrv-transport-ethswitch.h:1143
#define RPMSG_KDRV_TP_ETHSWITCH_IPV4ADDRLEN
Definition: rpmsg-kdrv-transport-ethswitch.h:569
char commit_hash[RPMSG_KDRV_TP_ETHSWITCH_COMMITSHALEN]
Definition: rpmsg-kdrv-transport-ethswitch.h:1322
struct rpmsg_kdrv_ethswitch_message_header header
Definition: rpmsg-kdrv-transport-ethswitch.h:1041
u32 flow_idx
Definition: rpmsg-kdrv-transport-ethswitch.h:1145
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
Definition: rpmsg-kdrv-transport-ethswitch.h:623
u64 id
Definition: rpmsg-kdrv-transport-ethswitch.h:670