NOTICE OF RELOCATION Active maintenance and development of the contents of this repository has been relocated to git.ti.com/processor-sdk/pdk.git under the path packages/ti/drv/icss_emac. The use of this repository has been deprecated and will no longer receive updates. Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
Merge pull request #142 in PROCESSOR-SDK/icss-emac from PRSDK-297 to master * commit 'aab5090e98e17bb463c2c5e6a75b41ab0559ff33': PRSDK-297 Fix warnings for examples PRSDK-297 Fix warnings for example project
Merge pull request #158 in PROCESSOR-SDK/icss-emac from PRSDK-6151 to master * commit 'cdddf81a1d194f185f7cc0b0b254ab43d86e8706': PRSDK-6151: Added OCMC MMU config to fix the NonPromiscuous Mode test fail
Fix access to possibly uninitialized variable and compiler warnings In ICSS_EmacOSInit() use the variable <pacingMode> only after it is checked to be initialized by inspecting <pacingEnabled> to see if the user enabled it by setting <enableIntrPacing> in the init configuration structure. This is already done this way in ICSS_EmacRxInterruptHandler() and ICSS_EMacOsRxTaskFnc(). Signed-off-by: Stefan Mätje <stefan.maetje@esd.eu> Signed-off-by: Hongmei Gou <a0271529@ti.com>
PRSDK-297 Fix warnings for example project Fixed incompatible function declaration for cache function by removing the inclusion of xdc cache header file whcih is not used. Changed function argument data type from enum to uint32 because the usage of the argument is ORing all the enum values which does not fit into the enum structure. Removed variable which is declared but not used.
PRSDK-6151: Added OCMC MMU config to fix the NonPromiscuous Mode test fail
dualemac: fix to drop PTP sync msgs from unknown master In PTP implementation, firmware should drop sync messages that are not from the PTP master (where master MAC addr is stored in SRAM by driver). In DualEMAC build, the host_rcv flag is checked in different places than Switch build, and to enable dropping unknown sync msgs needs to be checked immediately after completing PTP timestamping function to prevent the frame from being forwarded to host. This change adds a check of host_rcv flag immediately after PTP timestamping function, to skip host rcv if set. Signed-off-by: Aaron Kramer <a-kramer@ti.com>
dualemac: add functionality to run PTP over VLAN This change adds ability to process PTP frames sent over VLAN. The firmware now checks for the presence of a VLAN tag in the frame, and if present compensates for the VLAN tag to retrieve the PTP info from the correct offset. Signed-off-by: Aaron Kramer <a-kramer@ti.com>
Unit test: initialize ICSS_EmacHandle object and hwAttrs after malloc * Without the initialization, member of ICSS_EmacHandle object (e.g., macTablePtr) may have non-zero values (0x4c9d0) which can trigger malloc failure: "malloc.c:4028: _int_malloc: Assertion `(unsigned long) (size) >= (unsigned long) (nb)' failed." Signed-off-by: Hongmei Gou <h-gou@ti.com>
Merge pull request #136 in PROCESSOR-SDK/icss-emac from PRSDK-2892 to master * commit 'aa4face5f5e43e003793416ee814bb36c8286ec0': PRSDK-2892: Added Non-executable flag to device peripheral memory MMU config
Merge pull request #146 in PROCESSOR-SDK/icss-emac from review-PLSDK-2646 to master * commit 'f6ade10fbdb96dd5990812b07f1ef25b46996153': Update DualEMAC firmware document