SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
Address Offset | 0x0000 0000 | ||
Physical Address | 0x4848 5C00 0x4848 5E00 | Instance | SPF1 SPF2 |
Description | SPF revision register | ||
Type | R |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
REVISION |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:0 | REVISION | SPF revision value | R | 0x- |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 0004 | ||
Physical Address | 0x4848 5C04 0x4848 5E04 | Instance | SPF1 SPF2 |
Description | Status register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | SPF_BUSY |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:1 | RESERVED | R | 0x0 | |
0 | SPF_BUSY | SPF is Busy/Idle, Busy Packet processing or logging in progress. | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 0008 | ||
Physical Address | 0x4848 5C08 0x4848 5E08 | Instance | SPF1 SPF2 |
Description | SPF control register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | SPF_LOGOW_EN | SPF_LOG_EN | RESERVED | SPF_RULE_LOG | SPF_EXT_BYPASS | SPF_DROP | SPF_ENABLE |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:10 | RESERVED | R | 0x0 | |
9 | SPF_LOGOW_EN | SPF Log Overwrite Enable. Setting this bit will cause SPF to overwrite previously logged data whether or not software has updated the software_working_pointer. Overwriting only occurs if there is new data but no space to write it in the space indicated by log_start_address and log_end_address. | RW | 0x0 |
8 | SPF_LOG_EN | SPF Log Enable. Setting this bit will allow SPF to log information about dropped packets to memory. | RW | 0x0 |
7:4 | RESERVED | R | 0x0 | |
3 | SPF_RULE_LOG | SPF Rule Engine Log Enable. Setting this bit will allow SPF to log data from rule engine. The default is log data from extractor. | RW | 0x0 |
2 | SPF_EXT_BYPASS | SPF Extractor Bypass Enable. The extractor will not provide any offset information to rule engine if this bit is set. The rule engine must load each of the base registers it intends to use to determine if the packet should be discarded. | RW | 0x0 |
1 | SPF_DROP | SPF Drop Enable. This bit must be set to activate packet drops. | RW | 0x0 |
0 | SPF_ENABLE | SPF Enable. This bit must be set to enable any operation in SPF. The SPF instruction memory can only be accessed by host processor when the spf_enable is deasserted. Once spf_enable is set, writing a zero to this bit will only take effect when spf_busy signal is low. This ensures that spf stops only on packet boundaries. | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 000C | ||
Physical Address | 0x4848 5C0C 0x4848 5E0C | Instance | SPF1 SPF2 |
Description | Drop Count Register | ||
Type | R |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | SPF_DROPCNT |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:24 | RESERVED | R | 0x0 | |
23:0 | SPF_DROPCNT | SPF Drop counter indicates the number of packets dropped so far. This counter does not roll over and must be cleared by writing 0x00FFFFFF. | R | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 0010 | ||
Physical Address | 0x4848 5C10 0x4848 5E10 | Instance | SPF1 SPF2 |
Description | Software Reset Register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | SPF_SWRST |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:1 | RESERVED | R | 0x0 | |
0 | SPF_SWRST | SPF Software reset bit can be set to initiate a software reset. It stays high until the reset has not completed, this reset clears all registers to default value. | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 0014 | ||
Physical Address | 0x4848 5C14 0x4848 5E14 | Instance | SPF1 SPF2 |
Description | Rate Limit Prescale Register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | SPF_PRESCALE |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:20 | RESERVED | R | 0x0 | |
19:0 | SPF_PRESCALE | The MAIN clock is divided by this value for use in Rate Limiters. It is used to create rolling time intervals for use in rate limiting feature. | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 0018 + (i * 4) | Index | i = 0 to 3 |
Physical Address | 0x4848 5C18 + (i * 4) 0x4848 5E18 + (i * 4) | Instance | SPF1 SPF2 |
Description | Rate Limit Register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | SPF_RATELIM |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:8 | RESERVED | R | 0x0 | |
7:0 | SPF_RATELIM | SPF Rate Limit Register. The number of packets corresponding to a filter that will be allowed per unit time interval. The filters are programmed in the rule engine and time interval is determined by the SPF_PRESCALE register. | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 0028 + (j * 4) | Index | j = 0 to 7 |
Physical Address | 0x4848 5C1C + (j * 4) 0x4848 5E1C + (j * 4) | Instance | SPF1 SPF2 |
Description | Constant Register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
SPF_CONST |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:0 | SPF_CONST | SPF Constant Register. The contents of this register are used as input to any instruction that references it. | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 0050 | ||
Physical Address | 0x4848 5C50 0x4848 5E50 | Instance | SPF1 SPF2 |
Description | Instruction Word 2 Register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | SPF_INSTR_W2 |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:14 | RESERVED | R | 0x0 | |
13:0 | SPF_INSTR_W2 | SPF Rule Engine Instruction Word [75:64] is read from or written to this field. | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 0054 | ||
Physical Address | 0x4848 5C54 0x4848 5E54 | Instance | SPF1 SPF2 |
Description | Instruction Word 1 Register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
SPF_INSTR_W1 |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:0 | SPF_INSTR_W1 | SPF Rule Engine Instruction Word [63:32] is read from or written to this field. | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 0058 | ||
Physical Address | 0x4848 5C58 0x4848 5E58 | Instance | SPF1 SPF2 |
Description | Instruction Word 0 Register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
SPF_INSTR_W0 |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:0 | SPF_INSTR_W0 | SPF Rule Engine Instruction Word [31:0] is read from or written to this field. | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 005C | ||
Physical Address | 0x4848 5C5C 0x4848 5E5C | Instance | SPF1 SPF2 |
Description | Instruction Control Register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
SPF_INSTR_WEN | SPF_INSTR_REN | RESERVED | SPF_INSTR_PTR |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31 | SPF_INSTR_WEN | SPF Write enable bit specifies whether a write operation is to be performed. To read or write instructions, spf processing must be stopped. When the rule engine is processing instructions, the instruction memory cannot be accessed. This bit is set to perform a write and the data in the SPF_INSTR_W2, SPF_INSTR_W1 and SPF_INSTR_W0 registers is written to the instruction RAM at address specified in the SPF_INSTR_PTR field. This bit is always read as zero. | W | 0x0 |
30 | SPF_INSTR_REN | SPF Read enable bit specifies whether a read operation is to be performed. This bit is set to perform a read and read data is available in the SPF_INSTR_W2, SPF_INSTR_W1 and SPF_INSTR_W0 registers once read operation has completed. This bit is always read as zero. | W | 0x0 |
29:6 | RESERVED | R | 0x0 | |
5:0 | SPF_INSTR_PTR | The address in the instruction memory that is to be accessed. | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 0060 | ||
Physical Address | 0x4848 5C60 0x4848 5E60 | Instance | SPF1 SPF2 |
Description | Log Begin Address Register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
SPF_LOG_BEGIN |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:0 | SPF_LOG_BEGIN | SPF starts to write log data to memory starting from address given in this field. | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 0064 | ||
Physical Address | 0x4848 5C64 0x4848 5E64 | Instance | SPF1 SPF2 |
Description | Log End Address Register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
SPF_LOG_END |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:0 | SPF_LOG_END | This register along with SPF_LOG_BEGIN register defines the memory range for writing log data, the range(SPF_LOG_ENDSPF_LOG_BEGIN) should be multiple of 4 words(32 bits), as this is a look ahead register therefore the value progammed should be next word address. (i.e. last word address + 4). | RW | 0x00001000 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 0068 | ||
Physical Address | 0x4848 5C68 0x4848 5E68 | Instance | SPF1 SPF2 |
Description | Log Hardware Pointer Register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
SPF_LOG_HWPTR |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:0 | SPF_LOG_HWPTR | This register indicated the address of next location in memory that the SPF will log information to. | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 006C | ||
Physical Address | 0x4848 5C6C 0x4848 5E6C | Instance | SPF1 SPF2 |
Description | Log Software Pointer Register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
SPF_LOG_SWPTR |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:0 | SPF_LOG_SWPTR | This register specifies the address where software shall do next read, software must inform SPF about memory roll over by writing SPF_LOG_END into this register. | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 0070 | ||
Physical Address | 0x4848 5C70 0x4848 5E70 | Instance | SPF1 SPF2 |
Description | Filter Code Map Register 0 | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
SPF_LOGMAP3 | SPF_LOGMAP2 | SPF_LOGMAP1 | SPF_LOGMAP0 |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:24 | SPF_LOGMAP3 | Mapping of drop code 3 to log threshold 3 | RW | 0x0 |
23:16 | SPF_LOGMAP2 | Mapping of drop code 2 to log threshold 2 | RW | 0x0 |
15:8 | SPF_LOGMAP1 | Mapping of drop code 1 to log threshold 1 | RW | 0x0 |
7:0 | SPF_LOGMAP0 | Mapping of drop code 0 to log threshold 0 | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 0074 | ||
Physical Address | 0x4848 5C74 0x4848 5E74 | Instance | SPF1 SPF2 |
Description | Filter Code Map Register 1 | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
SPF_LOGMAP7 | SPF_LOGMAP6 | SPF_LOGMAP5 | SPF_LOGMAP4 |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:24 | SPF_LOGMAP7 | Mapping of drop code 7 to log threshold 7 | RW | 0x0 |
23:16 | SPF_LOGMAP6 | Mapping of drop code 6 to log threshold 6 | RW | 0x0 |
15:8 | SPF_LOGMAP5 | Mapping of drop code 5 to log threshold 5 | RW | 0x0 |
7:0 | SPF_LOGMAP4 | Mapping of drop code 4 to log threshold 4 | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 0078 + (k * 4) | Index | k = 0 to 8 |
Physical Address | 0x4848 5C78 + (k * 4) 0x4848 5E78 + (k * 4) | Instance | SPF1 SPF2 |
Description | Log Threshold and Count Register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
SPF_COUNT | SPF_THRESH |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:16 | SPF_COUNT | Number of packets dropped for drop code k (8 is default) | R | 0x0 |
15:0 | SPF_THRESH | Number of packets to be dropped before logging starts | RW | 0xA |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 009C | ||
Physical Address | 0x4848 5C9C 0x4848 5E9C | Instance | SPF1 SPF2 |
Description | Interrupt Frequency Control Register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | SPF_INTCNT |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:5 | RESERVED | R | 0x0 | |
4:0 | SPF_INTCNT | Number of time thresholds must be met before a drop interrupt is triggered. | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 00A0 | ||
Physical Address | 0x4848 5CA0 0x4848 5EA0 | Instance | SPF1 SPF2 |
Description | Raw Interrupt Status register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | SPF_INT_RAW |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:1 | RESERVED | R | 0x0 | |
0 | SPF_INT_RAW | Status of Raw interrupt signal | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 00A4 | ||
Physical Address | 0x4848 5CA4 0x4848 5EA4 | Instance | SPF1 SPF2 |
Description | Interrupt Status register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | SPF_INT_MASKED |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:1 | RESERVED | R | 0x0 | |
0 | SPF_INT_MASKED | Status of interrupt signal with mask | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 00A8 | ||
Physical Address | 0x4848 5CA8 0x4848 5EA8 | Instance | SPF1 SPF2 |
Description | Interrupt Mask Set Register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | SPF_MASKSET |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:1 | RESERVED | R | 0x0 | |
0 | SPF_MASKSET | Write a 1 to this bit to enable the interrupt. | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |
Address Offset | 0x0000 00AC | ||
Physical Address | 0x4848 5CAC 0x4848 5EAC | Instance | SPF1 SPF2 |
Description | Interrupt Mask Clear Register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | SPF_MASKCLR |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:1 | RESERVED | R | 0x0 | |
0 | SPF_MASKCLR | Write a 1 to this bit to disable the interrupt. | RW | 0x0 |
Gigabit Ethernet Switch (GMAC_SW) |