AM243x INDUSTRIAL COMMUNICATIONS SDK  09.02.00
icss_dlr.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2021 Texas Instruments Incorporated
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  *
11  * Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the
14  * distribution.
15  *
16  * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32 
33 #ifndef ICSS_DLR_H_
34 #define ICSS_DLR_H_
35 
36 #ifdef __cplusplus
37 extern "C"
38 {
39 #endif
40 
41 
42 /* ========================================================================== */
43 /* Include Files */
44 /* ========================================================================== */
45 #include <stdint.h>
47 #include <kernel/dpl/ClockP.h>
48 #include <kernel/dpl/HwiP.h>
49 
50 #ifdef TEST_DEBUG
51 #include "testing.h"
52 #endif
53 
54 /* ========================================================================== */
55 /* Macros & Typedefs */
56 /* ========================================================================== */
57 /*#define DLR_DEBUG*/
58 
60 /*#define IS_A_DLR_SUPERVISOR*/
61 
62 #define DEFAULT_DLR_PACKET_SIZE 60
63 
64 #define ETHERNET_FRAME_SIZE_60 60
65 
67 #define IEP_WD_PRE_DIV_10US 2000
68 
70 #define PORT0_WATCH_DOG_ID 0 /*PD_WD*/
71 
72 #define PORT1_WATCH_DOG_ID 1 /*PDI_WD*/
73 
74 #define IS_A_LINK_STATUS_FRAME DLR_TRUE
75 #define IS_A_NEIGHBOR_STAT_FRAME DLR_FALSE
76 
77 /*Generic flags*/
78 #define BOTH_LINKS_UP 0x0
79 #define PORT0_IS_DOWN 0x2
80 #define PORT1_IS_DOWN 0x1
81 #define BOTH_LINKS_DOWN 0x3
82 
83 /*PRUSS INTC Mask for PRU EVENT 5*/
84 #define PORT0_WD_ISR_MASK 0x2000000
85 /*PRUSS INTC Mask for PRU EVENT 5*/
86 #define PORT1_WD_ISR_MASK 0x4000000
87 
92 #define PDI_WD_TRIGGER_RX_SOF (0 << 4)
93 
98 #define PDI_WD_TRIGGER_LATCH_IN (1 << 4)
99 
104 #define PDI_WD_TRIGGER_SYNC0_OUT (2 << 4)
105 
110 #define PDI_WD_TRIGGER_SYNC1_OUT (3 << 4)
111 
112 #ifdef DLR_DEBUG
113 #define MAX_EVENTS_CAPTURED 1000
114 
115 /*DLR events for debugging*/
116 #define LINK1_BREAK 1
117 #define LINK2_BREAK 2
118 #define BOTH_LINK_DISABLED 3
119 #define EMPTY_SIGNON_FRAME_RCVD 4
120 #define COMPLETE_SIGNON_FRAME_RCVD 5
121 
122 #define RING_FAULT_RCVD_PORT0 6
123 #define RING_FAULT_RCVD_PORT1 7
124 
125 #define RING_FAULT_TRANSITION_PORT0 8
126 #define RING_FAULT_TRANSITION_PORT1 9
127 
128 #define RING_NORMAL_TRANSITION_PORT0 10
129 #define RING_NORMAL_TRANSITION_PORT1 11
130 
131 #define START_TIMER0 12
132 #define START_TIMER1 13
133 
134 #define NCRES_RCVD_PORT0 14
135 #define NCRES_RCVD_PORT1 15
136 
137 #define NCREQ_RCVD_PORT0 16
138 #define NCREQ_RCVD_PORT1 17
139 
140 #define LOCFAULT_RCVD_PORT0 18
141 #define LOCFAULT_RCVD_PORT1 19
142 
143 #define BEACON0_MISSED_FAULT 20
144 #define BEACON1_MISSED_FAULT 21
145 #define BEACON0_MISSED_NORMAL 22
146 #define BEACON1_MISSED_NORMAL 23
147 
148 #define LINK1_FAULT_BREAK 24
149 #define LINK2_FAULT_BREAK 25
150 
151 #define LINK1_NORMAL_BREAK 27
152 #define LINK2_NORMAL_BREAK 28
153 
154 #define NEIGHBOR_TIMEOUT_PORT0_RETRY 29
155 #define NEIGHBOR_TIMEOUT_PORT1_RETRY 30
156 #define NEIGHBOR_TIMEOUT_PORT0_MAX 31
157 #define NEIGHBOR_TIMEOUT_PORT1_MAX 32
158 
159 #define DLR_RESET_MACHINE 33
160 
161 #define BEACON0_MISSED 34
162 #define BEACON1_MISSED 35
163 
164 #define STOP_BOTH_TIMERS_PORT0 36
165 #define STOP_BOTH_TIMERS_PORT1 37
166 
167 #define PORT0_BEACON_STALL 38
168 #define PORT1_BEACON_STALL 39
169 #endif
170 
172 #define DEFAULT_BEACON_INTERVAL_VARIABLE 400 /*in microseconds*/
173 #define DEFAULT_BEACON_TIMEOUT_VARIABLE (DEFAULT_BEACON_INTERVAL_VARIABLE * 4) /*in microseconds*/
174 
175 #define DEFAULT_NEIGHBOR_TIMEOUT_INTERVAL 100 /*in milliseconds*/
176 
177 #define DEFAULT_DLR_PERIODIC_INTERVAL 100 /*in milliseconds*/
178 
180 #define MAX_NUM_RETRIES 2
181 
183 #define BEACON_CPU_STALL_THRESHOLD 4
184 
188 #define DLR_DEFAULT_CAPABILITIES (1 << 7) | (1 << 1)
189 
197 #define DLR_SIGNON_FRAME_SIZE (ICSS_EMAC_MAXMTU - 10U)
198 
199 /*DLR Packet Generation Offsets*/
200 #define DLR_COMMON_FRAME_HEADER_SIZE 18
201 #define DLR_COMMON_FRAME_OFFSET 12
202 
204 #define ICSS_DLR_PORT0_INT_FLAG 0x200000
205 
206 #define ICSS_DLR_PORT1_INT_FLAG 0x400000
207 
208 typedef struct dlr_Config_s *EIP_DLRHandle;
209 
213 typedef enum
214 {
220  NODE_NORMAL = 2
225 typedef enum
226 {
230  RING_FAULT = 2
232 
236 typedef enum
237 {
241  RING_TOP = 1
243 
247 typedef enum
248 {
258  RAPID_FAULT = 4
260 
264 typedef enum
265 {
266  /*indicates the node is functioning as a backup*/
268  /*indicates the device is functioning as the active ring supervisor*/
270  /*indicates the device is functioning as a normal ring node*/
272  /*indicates the device is operating in a non-DLR topology*/
273  NON_DLR = 3,
277 
279 
280 /* ========================================================================== */
281 /* Structure Declarations */
282 /* ========================================================================== */
283 
287 typedef struct
288 {
290  uint8_t MAC[6];
292  uint8_t numExceptions;
293 
294 } exceptionList;
295 
299 typedef struct
300 {
302  uint8_t node_state;
304  uint8_t ring_state;
306  uint8_t topology;
308  uint8_t status;
310  uint8_t superStatus;
311 
313 
317 typedef struct
318 {
319 
323  uint8_t superEnable;
325  uint32_t beaconInterval;
327  uint32_t beaconTimeout;
328 
330  uint16_t vLanId;
331 
333  uint8_t supPrecedence;
334 
335 } superConfig;
336 
340 typedef struct
341 {
342 
344  uint8_t supMACAddress[6];
345 
347  uint32_t supIPAddress;
348 
350 
355 typedef struct
356 {
358  uint32_t ipAddr;
360  uint8_t macAddr[6];
361 
363  uint16_t deviceNum;
365 
369 typedef struct
370 {
371  uint32_t ipAddr;
372  uint8_t macAddr[6];
374 
378 typedef struct
379 {
386 
387 #ifdef IS_A_DLR_SUPERVISOR
388 
389  lastActiveNode activeNode[2];
390 #endif
391 
402  uint32_t dlrCapabilities;
403 
406 
407  HwiP_Object port0IntObject;
408  HwiP_Object port1IntObject;
411 
413  uint8_t port0IntNum;
414 
416  uint8_t port1IntNum;
417 
420 
423 
424 #ifdef IS_A_DLR_SUPERVISOR
425 
426  uint32_t numRingFaultsPowerUp;
427 
429  uint16_t ringParticipantsCount;
430 
432  protocolParticipants **ringNodes;
433 #endif
434 
435 } dlrStruct;
436 
437 
438 typedef struct dlr_Config_s
439 {
442  uint8_t macId[6];
443  /* MAC ID passed to ICSS-EMAC during ICSS-EMAC initialization*/
444  PRUICSS_Handle pruicssHandle;
446  uint32_t deviceIP;
448  uint32_t sequenceID;
452  ClockP_Object dlrNeighborTimeoutClock[ICSS_EMAC_MAX_PORTS_PER_INSTANCE];
453  /*Clock handle for DLR periodic processing*/
454  ClockP_Object dlrPeriodicTimerObject;
456  uint8_t dlrEmptyFrame[DEFAULT_DLR_PACKET_SIZE];
458  uint8_t checkForLoop;
461  uint8_t pktSendCounter;
462  uint8_t ISRcountPort[ICSS_EMAC_MAX_PORTS_PER_INSTANCE];
463 } dlr_Config;
464 
465 /* ========================================================================== */
466 /* Function Declarations */
467 /* ========================================================================== */
468 
480 void EIP_DLR_init(EIP_DLRHandle dlrHandle);
495 void EIP_DLR_start(EIP_DLRHandle dlrHandle) ;
503 void EIP_DLR_stop(EIP_DLRHandle dlrHandle);
510 void EIP_DLR_port0ISR(uintptr_t arg);
517 void EIP_DLR_port1ISR(uintptr_t arg);
524 void EIP_DLR_beaconTimeoutISR_P0(uintptr_t arg);
525 
532 void EIP_DLR_beaconTimeoutISR_P1(uintptr_t arg);
533 
541 void EIP_DLR_port0ProcessLinkBrk(uint8_t linkStatus, void *arg2);
549 void EIP_DLR_port1ProcessLinkBrk(uint8_t linkStatus, void *arg2);
557 void EIP_DLR_neighborTimeoutISR0(ClockP_Object *obj, void *arg);
565 void EIP_DLR_neighborTimeoutISR1(ClockP_Object *obj, void *arg);
574 void EIP_DLR_addVlanID(uint8_t *src, uint16_t vlanID);
589 void EIP_DLR_genNCReqFrame(EIP_DLRHandle dlrHandle, uint8_t *src,
590  uint8_t sourcePort);
604 void EIP_DLR_genNCResFrame(uint8_t *src, uint8_t sourcePort, uint8_t reqSrcPort,
605  uint32_t sequenceId);
620 void EIP_DLR_genNeighborLinkStatFrame(EIP_DLRHandle dlrHandle, uint8_t *src,
621  uint8_t sourcePort,
622  uint8_t linkOrNeighbor, uint8_t linkStatus);
631 void EIP_DLR_initDLRFrameHeader(uint8_t *src, uint8_t *header);
632 
641 void EIP_DLR_addSignOnNumNodes(uint8_t *src, uint16_t numNodes);
660 void EIP_DLR_processDLRFrame(EIP_DLRHandle dlrHandle, uint8_t *pktBuffer,
661  uint8_t portNum, uint16_t size);
713 int32_t EIP_DLR_isrInit(EIP_DLRHandle dlrHandle);
724 void EIP_DLR_periodicProcessing(ClockP_Object *obj, void *userArg);
725 
726 #ifdef DLR_DEBUG
727 void genSeqOfEvents(uint8_t event);
728 #endif
729 
739 void EIP_DLR_addToExceptionList(EIP_DLRHandle dlrHandle, uint8_t *macId);
750 
761 uint8_t EIP_DLR_checkSupervisorException(uint8_t *macId,
762  EIP_DLRHandle dlrHandle);
771 void EIP_DLR_addModuleIPAddress(EIP_DLRHandle dlrHandle, uint32_t newIP);
772 
780 
788 void EIP_DLR_enable_WD_IEP(EIP_DLRHandle dlrHandle, uint8_t id);
789 
797 void EIP_DLR_disable_WD_IEP(EIP_DLRHandle dlrHandle, uint8_t id);
798 
808  uint16_t periodInMicroSec, uint8_t id);
816 void EIP_DLR_set_pdi_wd_trigger_mode(EIP_DLRHandle dlrHandle, uint32_t mode);
817 
822 #ifdef __cplusplus
823 }
824 #endif
825 
826 #endif /* ICSS_DLR_H_ */
dlr_Config::dlrObj
dlrStruct * dlrObj
Definition: icss_dlr.h:440
superConfig::vLanId
uint16_t vLanId
Definition: icss_dlr.h:330
dlrStateMachineVar
State machine variables, part of DLR Object and L2 implementation.
Definition: icss_dlr.h:300
dlr_Config::dlrPeriodicTimerObject
ClockP_Object dlrPeriodicTimerObject
Definition: icss_dlr.h:454
dlrStruct::beaconTimeoutIntNum_P0
uint8_t beaconTimeoutIntNum_P0
Definition: icss_dlr.h:419
ICSS_EMAC_Handle
struct ICSS_EMAC_Config_s * ICSS_EMAC_Handle
Alias for ICSS EMAC Handle containing base addresses and modules.
Definition: icss_emac.h:467
EIP_DLR_setTimeout_WD_IEP
void EIP_DLR_setTimeout_WD_IEP(EIP_DLRHandle dlrHandle, uint16_t periodInMicroSec, uint8_t id)
Set the timeout value in watchdog.
EIP_DLR_beaconTimeoutISR_P1
void EIP_DLR_beaconTimeoutISR_P1(uintptr_t arg)
ISR for beacon timeout for Port 1.
EIP_DLR_beaconTimeoutISR_P0
void EIP_DLR_beaconTimeoutISR_P0(uintptr_t arg)
ISR for beacon timeout for Port 0.
EIP_DLR_stop
void EIP_DLR_stop(EIP_DLRHandle dlrHandle)
API to stop the DLR driver Halt DLR. Calling this disables DLR on the device.
superConfig::supPrecedence
uint8_t supPrecedence
Definition: icss_dlr.h:333
nwStatus
nwStatus
network status : possible values for Attribute ID 2
Definition: icss_dlr.h:248
dlr_Config::tracePktIntervalCount
uint32_t tracePktIntervalCount
Definition: icss_dlr.h:459
EIP_DLR_enable_WD_IEP
void EIP_DLR_enable_WD_IEP(EIP_DLRHandle dlrHandle, uint8_t id)
Enable the IEP Watch dog timers.
FEATURE_UNSUPPORTED
@ FEATURE_UNSUPPORTED
Definition: icss_dlr.h:276
dlrStruct::port0IntNum
uint8_t port0IntNum
Definition: icss_dlr.h:413
dlr_Config::pruicssHandle
PRUICSS_Handle pruicssHandle
Definition: icss_dlr.h:444
NODE_NORMAL
@ NODE_NORMAL
Definition: icss_dlr.h:220
activeSuperAddr::supIPAddress
uint32_t supIPAddress
Definition: icss_dlr.h:347
nodeState
nodeState
node state machine states
Definition: icss_dlr.h:214
dlr_Config::checkForLoop
uint8_t checkForLoop
Definition: icss_dlr.h:458
EIP_DLR_neighborTimeoutISR1
void EIP_DLR_neighborTimeoutISR1(ClockP_Object *obj, void *arg)
ISR for Neighbor timeout timer for port 1.
EIP_DLR_processDLRFrame
void EIP_DLR_processDLRFrame(EIP_DLRHandle dlrHandle, uint8_t *pktBuffer, uint8_t portNum, uint16_t size)
Processes a sign on and Neighbor check request frame.
BACKUP_NODE
@ BACKUP_NODE
Definition: icss_dlr.h:267
EIP_DLRHandle
struct dlr_Config_s * EIP_DLRHandle
Definition: icss_dlr.h:208
DEFAULT_DLR_PACKET_SIZE
#define DEFAULT_DLR_PACKET_SIZE
Definition: icss_dlr.h:62
NODE_IDLE
@ NODE_IDLE
Definition: icss_dlr.h:216
lastActiveNode::deviceNum
uint16_t deviceNum
Definition: icss_dlr.h:363
EIP_DLR_isrInit
int32_t EIP_DLR_isrInit(EIP_DLRHandle dlrHandle)
UNEXPECTED_LOOP
@ UNEXPECTED_LOOP
Definition: icss_dlr.h:254
icss_emac.h
dlr_Config::deviceIP
uint32_t deviceIP
Definition: icss_dlr.h:446
EIP_DLR_port1ProcessLinkBrk
void EIP_DLR_port1ProcessLinkBrk(uint8_t linkStatus, void *arg2)
Process DLR state machine in the event of a link break on Port1.
dlrStruct::port1IntObject
HwiP_Object port1IntObject
Definition: icss_dlr.h:408
NORMAL_STAT
@ NORMAL_STAT
Definition: icss_dlr.h:250
EIP_DLR_genNCReqFrame
void EIP_DLR_genNCReqFrame(EIP_DLRHandle dlrHandle, uint8_t *src, uint8_t sourcePort)
supervisorStatus
supervisorStatus
device role: possible values for Attribute ID 3
Definition: icss_dlr.h:265
dlrStruct::beaconTimeoutIntP0Object
HwiP_Object beaconTimeoutIntP0Object
Definition: icss_dlr.h:409
dlrStruct::addr
activeSuperAddr addr
Definition: icss_dlr.h:383
exceptionList::numExceptions
uint8_t numExceptions
Definition: icss_dlr.h:292
EIP_DLR_setDefaultValue
void EIP_DLR_setDefaultValue(EIP_DLRHandle dlrHandle)
dlr_Config::emacHandle
ICSS_EMAC_Handle emacHandle
Definition: icss_dlr.h:441
EIP_DLR_genNeighborLinkStatFrame
void EIP_DLR_genNeighborLinkStatFrame(EIP_DLRHandle dlrHandle, uint8_t *src, uint8_t sourcePort, uint8_t linkOrNeighbor, uint8_t linkStatus)
EIP_DLR_addToExceptionList
void EIP_DLR_addToExceptionList(EIP_DLRHandle dlrHandle, uint8_t *macId)
RING_NORMAL
@ RING_NORMAL
Definition: icss_dlr.h:228
dlrStruct::beaconTimeoutIntP1Object
HwiP_Object beaconTimeoutIntP1Object
Definition: icss_dlr.h:410
EIP_DLR_addSignOnNumNodes
void EIP_DLR_addSignOnNumNodes(uint8_t *src, uint16_t numNodes)
EIP_DLR_switchToNormal
void EIP_DLR_switchToNormal(EIP_DLRHandle dlrHandle)
dlrStruct::port1IntNum
uint8_t port1IntNum
Definition: icss_dlr.h:416
RING_NODE
@ RING_NODE
Definition: icss_dlr.h:271
RING_TOP
@ RING_TOP
Definition: icss_dlr.h:241
EIP_DLR_neighborTimeoutISR0
void EIP_DLR_neighborTimeoutISR0(ClockP_Object *obj, void *arg)
ISR for Neighbor timeout timer for port 0.
dlr_Config::sequenceID
uint32_t sequenceID
Definition: icss_dlr.h:448
RING_FAULT_STAT
@ RING_FAULT_STAT
Definition: icss_dlr.h:252
dlrStruct::beaconTimeoutIntNum_P1
uint8_t beaconTimeoutIntNum_P1
Definition: icss_dlr.h:422
superConfig
Supervisor configuration. Attribute ID 4.
Definition: icss_dlr.h:318
dlrStruct::SMVariables
dlrStateMachineVar SMVariables
Definition: icss_dlr.h:385
EIP_DLR_resetStateMachine
void EIP_DLR_resetStateMachine(EIP_DLRHandle dlrHandle)
Initialize the state machine when it goes back to idle state.
dlrStruct::dlrCapabilities
uint32_t dlrCapabilities
Definition: icss_dlr.h:402
EIP_DLR_setDivider_WD_IEP
void EIP_DLR_setDivider_WD_IEP(EIP_DLRHandle dlrHandle)
Sets the clock divider to 1us for IEP watch dog timers.
ringState
ringState
ring state values
Definition: icss_dlr.h:226
dlrStateMachineVar::superStatus
uint8_t superStatus
Definition: icss_dlr.h:310
EIP_DLR_start
void EIP_DLR_start(EIP_DLRHandle dlrHandle)
API to start the DLR driver Calling this enables DLR on the device.
protocolParticipants::ipAddr
uint32_t ipAddr
Definition: icss_dlr.h:371
dlrStruct::supConfig
superConfig supConfig
Definition: icss_dlr.h:381
EIP_DLR_disable_WD_IEP
void EIP_DLR_disable_WD_IEP(EIP_DLRHandle dlrHandle, uint8_t id)
Disable the IEP Watch dog timers.
NON_DLR
@ NON_DLR
Definition: icss_dlr.h:273
dlr_Config
Definition: icss_dlr.h:439
EIP_DLR_checkSupervisorException
uint8_t EIP_DLR_checkSupervisorException(uint8_t *macId, EIP_DLRHandle dlrHandle)
EIP_DLR_init
void EIP_DLR_init(EIP_DLRHandle dlrHandle)
API to initialize the DLR driver.
EIP_DLR_clearExceptionList
void EIP_DLR_clearExceptionList(EIP_DLRHandle dlrHandle)
dlrStateMachineVar::status
uint8_t status
Definition: icss_dlr.h:308
EIP_DLR_port1ISR
void EIP_DLR_port1ISR(uintptr_t arg)
Fast ISR for Port 1, bypasses the buffer copy and NDK.
EIP_DLR_switchToFault
void EIP_DLR_switchToFault(EIP_DLRHandle dlrHandle)
dlrStateMachineVar::topology
uint8_t topology
Definition: icss_dlr.h:306
exceptionList
List of MAC ID's which are exempted from Learning, this is for DLR implementation.
Definition: icss_dlr.h:288
nwTopology
nwTopology
network topology : possible values for Attribute ID 1
Definition: icss_dlr.h:237
NODE_FAULT
@ NODE_FAULT
Definition: icss_dlr.h:218
dlrStruct::activeSuperPred
uint8_t activeSuperPred
Definition: icss_dlr.h:405
protocolParticipants
IP and MAC of the Ring devices. Attribute ID 9.
Definition: icss_dlr.h:370
dlrStruct::port0IntObject
HwiP_Object port0IntObject
Definition: icss_dlr.h:407
RAPID_FAULT
@ RAPID_FAULT
Definition: icss_dlr.h:258
superConfig::beaconTimeout
uint32_t beaconTimeout
Definition: icss_dlr.h:327
lastActiveNode
Last active node at the end of the chain Class for Attributes 6 and 7.
Definition: icss_dlr.h:356
EIP_DLR_initDLRFrameHeader
void EIP_DLR_initDLRFrameHeader(uint8_t *src, uint8_t *header)
lastActiveNode::ipAddr
uint32_t ipAddr
Definition: icss_dlr.h:358
dlr_Config::exclusionList
exceptionList * exclusionList
Definition: icss_dlr.h:450
dlr_Config::pktSendCounter
uint8_t pktSendCounter
Definition: icss_dlr.h:461
RING_FAULT
@ RING_FAULT
Definition: icss_dlr.h:230
EIP_DLR_addModuleIPAddress
void EIP_DLR_addModuleIPAddress(EIP_DLRHandle dlrHandle, uint32_t newIP)
dlrStateMachineVar::node_state
uint8_t node_state
Definition: icss_dlr.h:302
superConfig::beaconInterval
uint32_t beaconInterval
Definition: icss_dlr.h:325
ACTIVE_RING_SUPERVISOR
@ ACTIVE_RING_SUPERVISOR
Definition: icss_dlr.h:269
EIP_DLR_periodicProcessing
void EIP_DLR_periodicProcessing(ClockP_Object *obj, void *userArg)
superConfig::superEnable
uint8_t superEnable
Definition: icss_dlr.h:323
dlrStruct
DLR parent structure through which all other structures can be accessed.
Definition: icss_dlr.h:379
EIP_DLR_set_pdi_wd_trigger_mode
void EIP_DLR_set_pdi_wd_trigger_mode(EIP_DLRHandle dlrHandle, uint32_t mode)
Set the PDI WD trigger mode.
EIP_DLR_deinit
void EIP_DLR_deinit(EIP_DLRHandle dlrHandle)
API to de-initialize the DLR driver.
activeSuperAddr
Supervisor address, part of DLR Object. Attribute ID 10.
Definition: icss_dlr.h:341
dlr_Config::stateMachineCount
uint32_t stateMachineCount
Definition: icss_dlr.h:460
dlrStateMachineVar::ring_state
uint8_t ring_state
Definition: icss_dlr.h:304
EIP_DLR_port0ISR
void EIP_DLR_port0ISR(uintptr_t arg)
Fast ISR for Port 0, bypasses the buffer copy and NDK.
PARTIAL_FAULT
@ PARTIAL_FAULT
Definition: icss_dlr.h:256
EIP_DLR_genNCResFrame
void EIP_DLR_genNCResFrame(uint8_t *src, uint8_t sourcePort, uint8_t reqSrcPort, uint32_t sequenceId)
EIP_DLR_port0ProcessLinkBrk
void EIP_DLR_port0ProcessLinkBrk(uint8_t linkStatus, void *arg2)
Process DLR state machine in the event of a link break on Port0.
EIP_DLR_dRAMInit
void EIP_DLR_dRAMInit(EIP_DLRHandle dlrHandle)
EIP_DLR_addVlanID
void EIP_DLR_addVlanID(uint8_t *src, uint16_t vlanID)
ICSS_EMAC_MAX_PORTS_PER_INSTANCE
#define ICSS_EMAC_MAX_PORTS_PER_INSTANCE
Maximum number of Ports in a single ICSS
Definition: icss_emac.h:66
LINEAR_TOP
@ LINEAR_TOP
Definition: icss_dlr.h:239