The memory fill operation (0x04) can fill in memory with either 8 bytes or 16 bytes of pattern. To fill in memory with 16 bytes of pattern, the first 8 bytes are provided in pattern lower in bytes 16-23 and the next 8 bytes are in pattern upper in bytes 40-47 in the descriptor. Currently only 8 bytes of pattern is enabled. Add descriptor definitions for pattern lower and pattern upper so that user can use 16 bytes of pattern to fill memory.
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -180,6 +180,7 @@ struct dsa_hw_desc { · 179 unmodified lines | ||
| 180 | 180 | uint64_t rdback_addr; |
| 181 | 181 | uint64_t pattern; |
| 182 | 182 | uint64_t desc_list_addr; |
| 183 | + uint64_t pattern_lower; | |
| 183 | 184 | }; |
| 184 | 185 | union { |
| 185 | 186 | uint64_t dst_addr; |
| @@ -244,6 +245,9 @@ struct dsa_hw_desc { · 58 unmodified lines | ||
| 244 | 245 | uint16_t dest_app_tag_seed; |
| 245 | 246 | }; |
| 246 | 247 | |
| 248 | + /* Fill */ | |
| 249 | + uint64_t pattern_upper; | |
| 250 | + | |
| 247 | 251 | uint8_t op_specific[24]; |
| 248 | 252 | }; |
| 249 | 253 | } __attribute__((packed)); |