1*5113495bSYour Name /* 2*5113495bSYour Name * Copyright (c) 2020, The Linux Foundation. All rights reserved. 3*5113495bSYour Name * 4*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for any 5*5113495bSYour Name * purpose with or without fee is hereby granted, provided that the above 6*5113495bSYour Name * copyright notice and this permission notice appear in all copies. 7*5113495bSYour Name * 8*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9*5113495bSYour Name * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10*5113495bSYour Name * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11*5113495bSYour Name * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12*5113495bSYour Name * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13*5113495bSYour Name * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14*5113495bSYour Name * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15*5113495bSYour Name */ 16*5113495bSYour Name 17*5113495bSYour Name #ifndef _REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_H_ 18*5113495bSYour Name #define _REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_H_ 19*5113495bSYour Name #if !defined(__ASSEMBLER__) 20*5113495bSYour Name #endif 21*5113495bSYour Name 22*5113495bSYour Name #include "uniform_reo_status_header.h" 23*5113495bSYour Name 24*5113495bSYour Name // ################ START SUMMARY ################# 25*5113495bSYour Name // 26*5113495bSYour Name // Dword Fields 27*5113495bSYour Name // 0-1 struct uniform_reo_status_header status_header; 28*5113495bSYour Name // 2 threshold_index[1:0], reserved_2[31:2] 29*5113495bSYour Name // 3 link_descriptor_counter0[23:0], reserved_3[31:24] 30*5113495bSYour Name // 4 link_descriptor_counter1[23:0], reserved_4[31:24] 31*5113495bSYour Name // 5 link_descriptor_counter2[23:0], reserved_5[31:24] 32*5113495bSYour Name // 6 link_descriptor_counter_sum[25:0], reserved_6[31:26] 33*5113495bSYour Name // 7 reserved_7[31:0] 34*5113495bSYour Name // 8 reserved_8[31:0] 35*5113495bSYour Name // 9 reserved_9a[31:0] 36*5113495bSYour Name // 10 reserved_10a[31:0] 37*5113495bSYour Name // 11 reserved_11a[31:0] 38*5113495bSYour Name // 12 reserved_12a[31:0] 39*5113495bSYour Name // 13 reserved_13a[31:0] 40*5113495bSYour Name // 14 reserved_14a[31:0] 41*5113495bSYour Name // 15 reserved_15a[31:0] 42*5113495bSYour Name // 16 reserved_16a[31:0] 43*5113495bSYour Name // 17 reserved_17a[31:0] 44*5113495bSYour Name // 18 reserved_18a[31:0] 45*5113495bSYour Name // 19 reserved_19a[31:0] 46*5113495bSYour Name // 20 reserved_20a[31:0] 47*5113495bSYour Name // 21 reserved_21a[31:0] 48*5113495bSYour Name // 22 reserved_22a[31:0] 49*5113495bSYour Name // 23 reserved_23a[31:0] 50*5113495bSYour Name // 24 reserved_24a[27:0], looping_count[31:28] 51*5113495bSYour Name // 52*5113495bSYour Name // ################ END SUMMARY ################# 53*5113495bSYour Name 54*5113495bSYour Name #define NUM_OF_DWORDS_REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS 25 55*5113495bSYour Name 56*5113495bSYour Name struct reo_descriptor_threshold_reached_status { 57*5113495bSYour Name struct uniform_reo_status_header status_header; 58*5113495bSYour Name uint32_t threshold_index : 2, //[1:0] 59*5113495bSYour Name reserved_2 : 30; //[31:2] 60*5113495bSYour Name uint32_t link_descriptor_counter0 : 24, //[23:0] 61*5113495bSYour Name reserved_3 : 8; //[31:24] 62*5113495bSYour Name uint32_t link_descriptor_counter1 : 24, //[23:0] 63*5113495bSYour Name reserved_4 : 8; //[31:24] 64*5113495bSYour Name uint32_t link_descriptor_counter2 : 24, //[23:0] 65*5113495bSYour Name reserved_5 : 8; //[31:24] 66*5113495bSYour Name uint32_t link_descriptor_counter_sum : 26, //[25:0] 67*5113495bSYour Name reserved_6 : 6; //[31:26] 68*5113495bSYour Name uint32_t reserved_7 : 32; //[31:0] 69*5113495bSYour Name uint32_t reserved_8 : 32; //[31:0] 70*5113495bSYour Name uint32_t reserved_9a : 32; //[31:0] 71*5113495bSYour Name uint32_t reserved_10a : 32; //[31:0] 72*5113495bSYour Name uint32_t reserved_11a : 32; //[31:0] 73*5113495bSYour Name uint32_t reserved_12a : 32; //[31:0] 74*5113495bSYour Name uint32_t reserved_13a : 32; //[31:0] 75*5113495bSYour Name uint32_t reserved_14a : 32; //[31:0] 76*5113495bSYour Name uint32_t reserved_15a : 32; //[31:0] 77*5113495bSYour Name uint32_t reserved_16a : 32; //[31:0] 78*5113495bSYour Name uint32_t reserved_17a : 32; //[31:0] 79*5113495bSYour Name uint32_t reserved_18a : 32; //[31:0] 80*5113495bSYour Name uint32_t reserved_19a : 32; //[31:0] 81*5113495bSYour Name uint32_t reserved_20a : 32; //[31:0] 82*5113495bSYour Name uint32_t reserved_21a : 32; //[31:0] 83*5113495bSYour Name uint32_t reserved_22a : 32; //[31:0] 84*5113495bSYour Name uint32_t reserved_23a : 32; //[31:0] 85*5113495bSYour Name uint32_t reserved_24a : 28, //[27:0] 86*5113495bSYour Name looping_count : 4; //[31:28] 87*5113495bSYour Name }; 88*5113495bSYour Name 89*5113495bSYour Name /* 90*5113495bSYour Name 91*5113495bSYour Name struct uniform_reo_status_header status_header 92*5113495bSYour Name 93*5113495bSYour Name Consumer: SW 94*5113495bSYour Name 95*5113495bSYour Name Producer: REO 96*5113495bSYour Name 97*5113495bSYour Name 98*5113495bSYour Name 99*5113495bSYour Name Details that can link this status with the original 100*5113495bSYour Name command. It also contains info on how long REO took to 101*5113495bSYour Name execute this command. 102*5113495bSYour Name 103*5113495bSYour Name threshold_index 104*5113495bSYour Name 105*5113495bSYour Name The index of the threshold register whose value got 106*5113495bSYour Name reached 107*5113495bSYour Name 108*5113495bSYour Name 109*5113495bSYour Name 110*5113495bSYour Name <enum 0 reo_desc_counter0_threshold> 111*5113495bSYour Name 112*5113495bSYour Name <enum 1 reo_desc_counter1_threshold> 113*5113495bSYour Name 114*5113495bSYour Name <enum 2 reo_desc_counter2_threshold> 115*5113495bSYour Name 116*5113495bSYour Name <enum 3 reo_desc_counter_sum_threshold> 117*5113495bSYour Name 118*5113495bSYour Name 119*5113495bSYour Name 120*5113495bSYour Name <legal all> 121*5113495bSYour Name 122*5113495bSYour Name reserved_2 123*5113495bSYour Name 124*5113495bSYour Name <legal 0> 125*5113495bSYour Name 126*5113495bSYour Name link_descriptor_counter0 127*5113495bSYour Name 128*5113495bSYour Name Value of this counter at generation of this message 129*5113495bSYour Name 130*5113495bSYour Name <legal all> 131*5113495bSYour Name 132*5113495bSYour Name reserved_3 133*5113495bSYour Name 134*5113495bSYour Name <legal 0> 135*5113495bSYour Name 136*5113495bSYour Name link_descriptor_counter1 137*5113495bSYour Name 138*5113495bSYour Name Value of this counter at generation of this message 139*5113495bSYour Name 140*5113495bSYour Name <legal all> 141*5113495bSYour Name 142*5113495bSYour Name reserved_4 143*5113495bSYour Name 144*5113495bSYour Name <legal 0> 145*5113495bSYour Name 146*5113495bSYour Name link_descriptor_counter2 147*5113495bSYour Name 148*5113495bSYour Name Value of this counter at generation of this message 149*5113495bSYour Name 150*5113495bSYour Name <legal all> 151*5113495bSYour Name 152*5113495bSYour Name reserved_5 153*5113495bSYour Name 154*5113495bSYour Name <legal 0> 155*5113495bSYour Name 156*5113495bSYour Name link_descriptor_counter_sum 157*5113495bSYour Name 158*5113495bSYour Name Value of this counter at generation of this message 159*5113495bSYour Name 160*5113495bSYour Name <legal all> 161*5113495bSYour Name 162*5113495bSYour Name reserved_6 163*5113495bSYour Name 164*5113495bSYour Name <legal 0> 165*5113495bSYour Name 166*5113495bSYour Name reserved_7 167*5113495bSYour Name 168*5113495bSYour Name <legal 0> 169*5113495bSYour Name 170*5113495bSYour Name reserved_8 171*5113495bSYour Name 172*5113495bSYour Name <legal 0> 173*5113495bSYour Name 174*5113495bSYour Name reserved_9a 175*5113495bSYour Name 176*5113495bSYour Name <legal 0> 177*5113495bSYour Name 178*5113495bSYour Name reserved_10a 179*5113495bSYour Name 180*5113495bSYour Name <legal 0> 181*5113495bSYour Name 182*5113495bSYour Name reserved_11a 183*5113495bSYour Name 184*5113495bSYour Name <legal 0> 185*5113495bSYour Name 186*5113495bSYour Name reserved_12a 187*5113495bSYour Name 188*5113495bSYour Name <legal 0> 189*5113495bSYour Name 190*5113495bSYour Name reserved_13a 191*5113495bSYour Name 192*5113495bSYour Name <legal 0> 193*5113495bSYour Name 194*5113495bSYour Name reserved_14a 195*5113495bSYour Name 196*5113495bSYour Name <legal 0> 197*5113495bSYour Name 198*5113495bSYour Name reserved_15a 199*5113495bSYour Name 200*5113495bSYour Name <legal 0> 201*5113495bSYour Name 202*5113495bSYour Name reserved_16a 203*5113495bSYour Name 204*5113495bSYour Name <legal 0> 205*5113495bSYour Name 206*5113495bSYour Name reserved_17a 207*5113495bSYour Name 208*5113495bSYour Name <legal 0> 209*5113495bSYour Name 210*5113495bSYour Name reserved_18a 211*5113495bSYour Name 212*5113495bSYour Name <legal 0> 213*5113495bSYour Name 214*5113495bSYour Name reserved_19a 215*5113495bSYour Name 216*5113495bSYour Name <legal 0> 217*5113495bSYour Name 218*5113495bSYour Name reserved_20a 219*5113495bSYour Name 220*5113495bSYour Name <legal 0> 221*5113495bSYour Name 222*5113495bSYour Name reserved_21a 223*5113495bSYour Name 224*5113495bSYour Name <legal 0> 225*5113495bSYour Name 226*5113495bSYour Name reserved_22a 227*5113495bSYour Name 228*5113495bSYour Name <legal 0> 229*5113495bSYour Name 230*5113495bSYour Name reserved_23a 231*5113495bSYour Name 232*5113495bSYour Name <legal 0> 233*5113495bSYour Name 234*5113495bSYour Name reserved_24a 235*5113495bSYour Name 236*5113495bSYour Name <legal 0> 237*5113495bSYour Name 238*5113495bSYour Name looping_count 239*5113495bSYour Name 240*5113495bSYour Name A count value that indicates the number of times the 241*5113495bSYour Name producer of entries into this Ring has looped around the 242*5113495bSYour Name ring. 243*5113495bSYour Name 244*5113495bSYour Name At initialization time, this value is set to 0. On the 245*5113495bSYour Name first loop, this value is set to 1. After the max value is 246*5113495bSYour Name reached allowed by the number of bits for this field, the 247*5113495bSYour Name count value continues with 0 again. 248*5113495bSYour Name 249*5113495bSYour Name 250*5113495bSYour Name 251*5113495bSYour Name In case SW is the consumer of the ring entries, it can 252*5113495bSYour Name use this field to figure out up to where the producer of 253*5113495bSYour Name entries has created new entries. This eliminates the need to 254*5113495bSYour Name check where the head pointer' of the ring is located once 255*5113495bSYour Name the SW starts processing an interrupt indicating that new 256*5113495bSYour Name entries have been put into this ring... 257*5113495bSYour Name 258*5113495bSYour Name 259*5113495bSYour Name 260*5113495bSYour Name Also note that SW if it wants only needs to look at the 261*5113495bSYour Name LSB bit of this count value. 262*5113495bSYour Name 263*5113495bSYour Name <legal all> 264*5113495bSYour Name */ 265*5113495bSYour Name 266*5113495bSYour Name 267*5113495bSYour Name /* EXTERNAL REFERENCE : struct uniform_reo_status_header status_header */ 268*5113495bSYour Name 269*5113495bSYour Name 270*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_0_STATUS_HEADER_REO_STATUS_NUMBER 271*5113495bSYour Name 272*5113495bSYour Name Consumer: SW , DEBUG 273*5113495bSYour Name 274*5113495bSYour Name Producer: REO 275*5113495bSYour Name 276*5113495bSYour Name 277*5113495bSYour Name 278*5113495bSYour Name The value in this field is equal to value of the 279*5113495bSYour Name 'REO_CMD_Number' field the REO command 280*5113495bSYour Name 281*5113495bSYour Name 282*5113495bSYour Name 283*5113495bSYour Name This field helps to correlate the statuses with the REO 284*5113495bSYour Name commands. 285*5113495bSYour Name 286*5113495bSYour Name 287*5113495bSYour Name 288*5113495bSYour Name <legal all> 289*5113495bSYour Name */ 290*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_0_STATUS_HEADER_REO_STATUS_NUMBER_OFFSET 0x00000000 291*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_0_STATUS_HEADER_REO_STATUS_NUMBER_LSB 0 292*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_0_STATUS_HEADER_REO_STATUS_NUMBER_MASK 0x0000ffff 293*5113495bSYour Name 294*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_0_STATUS_HEADER_CMD_EXECUTION_TIME 295*5113495bSYour Name 296*5113495bSYour Name Consumer: DEBUG 297*5113495bSYour Name 298*5113495bSYour Name Producer: REO 299*5113495bSYour Name 300*5113495bSYour Name 301*5113495bSYour Name 302*5113495bSYour Name The amount of time REO took to excecute the command. 303*5113495bSYour Name Note that this time does not include the duration of the 304*5113495bSYour Name command waiting in the command ring, before the execution 305*5113495bSYour Name started. 306*5113495bSYour Name 307*5113495bSYour Name 308*5113495bSYour Name 309*5113495bSYour Name In us. 310*5113495bSYour Name 311*5113495bSYour Name 312*5113495bSYour Name 313*5113495bSYour Name <legal all> 314*5113495bSYour Name */ 315*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_0_STATUS_HEADER_CMD_EXECUTION_TIME_OFFSET 0x00000000 316*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_0_STATUS_HEADER_CMD_EXECUTION_TIME_LSB 16 317*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_0_STATUS_HEADER_CMD_EXECUTION_TIME_MASK 0x03ff0000 318*5113495bSYour Name 319*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_0_STATUS_HEADER_REO_CMD_EXECUTION_STATUS 320*5113495bSYour Name 321*5113495bSYour Name Consumer: DEBUG 322*5113495bSYour Name 323*5113495bSYour Name Producer: REO 324*5113495bSYour Name 325*5113495bSYour Name 326*5113495bSYour Name 327*5113495bSYour Name Execution status of the command. 328*5113495bSYour Name 329*5113495bSYour Name 330*5113495bSYour Name 331*5113495bSYour Name <enum 0 reo_successful_execution> Command has 332*5113495bSYour Name successfully be executed 333*5113495bSYour Name 334*5113495bSYour Name <enum 1 reo_blocked_execution> Command could not be 335*5113495bSYour Name executed as the queue or cache was blocked 336*5113495bSYour Name 337*5113495bSYour Name <enum 2 reo_failed_execution> Command has encountered 338*5113495bSYour Name problems when executing, like the queue descriptor not being 339*5113495bSYour Name valid. None of the status fields in the entire STATUS TLV 340*5113495bSYour Name are valid. 341*5113495bSYour Name 342*5113495bSYour Name <enum 3 reo_resource_blocked> Command is NOT executed 343*5113495bSYour Name because one or more descriptors were blocked. This is SW 344*5113495bSYour Name programming mistake. 345*5113495bSYour Name 346*5113495bSYour Name None of the status fields in the entire STATUS TLV are 347*5113495bSYour Name valid. 348*5113495bSYour Name 349*5113495bSYour Name 350*5113495bSYour Name 351*5113495bSYour Name <legal 0-3> 352*5113495bSYour Name */ 353*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_0_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_OFFSET 0x00000000 354*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_0_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_LSB 26 355*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_0_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_MASK 0x0c000000 356*5113495bSYour Name 357*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_0_STATUS_HEADER_RESERVED_0A 358*5113495bSYour Name 359*5113495bSYour Name <legal 0> 360*5113495bSYour Name */ 361*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_0_STATUS_HEADER_RESERVED_0A_OFFSET 0x00000000 362*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_0_STATUS_HEADER_RESERVED_0A_LSB 28 363*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_0_STATUS_HEADER_RESERVED_0A_MASK 0xf0000000 364*5113495bSYour Name 365*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_1_STATUS_HEADER_TIMESTAMP 366*5113495bSYour Name 367*5113495bSYour Name Timestamp at the moment that this status report is 368*5113495bSYour Name written. 369*5113495bSYour Name 370*5113495bSYour Name 371*5113495bSYour Name 372*5113495bSYour Name <legal all> 373*5113495bSYour Name */ 374*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_1_STATUS_HEADER_TIMESTAMP_OFFSET 0x00000004 375*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_1_STATUS_HEADER_TIMESTAMP_LSB 0 376*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_1_STATUS_HEADER_TIMESTAMP_MASK 0xffffffff 377*5113495bSYour Name 378*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_2_THRESHOLD_INDEX 379*5113495bSYour Name 380*5113495bSYour Name The index of the threshold register whose value got 381*5113495bSYour Name reached 382*5113495bSYour Name 383*5113495bSYour Name 384*5113495bSYour Name 385*5113495bSYour Name <enum 0 reo_desc_counter0_threshold> 386*5113495bSYour Name 387*5113495bSYour Name <enum 1 reo_desc_counter1_threshold> 388*5113495bSYour Name 389*5113495bSYour Name <enum 2 reo_desc_counter2_threshold> 390*5113495bSYour Name 391*5113495bSYour Name <enum 3 reo_desc_counter_sum_threshold> 392*5113495bSYour Name 393*5113495bSYour Name 394*5113495bSYour Name 395*5113495bSYour Name <legal all> 396*5113495bSYour Name */ 397*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_2_THRESHOLD_INDEX_OFFSET 0x00000008 398*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_2_THRESHOLD_INDEX_LSB 0 399*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_2_THRESHOLD_INDEX_MASK 0x00000003 400*5113495bSYour Name 401*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_2_RESERVED_2 402*5113495bSYour Name 403*5113495bSYour Name <legal 0> 404*5113495bSYour Name */ 405*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_2_RESERVED_2_OFFSET 0x00000008 406*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_2_RESERVED_2_LSB 2 407*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_2_RESERVED_2_MASK 0xfffffffc 408*5113495bSYour Name 409*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_3_LINK_DESCRIPTOR_COUNTER0 410*5113495bSYour Name 411*5113495bSYour Name Value of this counter at generation of this message 412*5113495bSYour Name 413*5113495bSYour Name <legal all> 414*5113495bSYour Name */ 415*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_3_LINK_DESCRIPTOR_COUNTER0_OFFSET 0x0000000c 416*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_3_LINK_DESCRIPTOR_COUNTER0_LSB 0 417*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_3_LINK_DESCRIPTOR_COUNTER0_MASK 0x00ffffff 418*5113495bSYour Name 419*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_3_RESERVED_3 420*5113495bSYour Name 421*5113495bSYour Name <legal 0> 422*5113495bSYour Name */ 423*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_3_RESERVED_3_OFFSET 0x0000000c 424*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_3_RESERVED_3_LSB 24 425*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_3_RESERVED_3_MASK 0xff000000 426*5113495bSYour Name 427*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_4_LINK_DESCRIPTOR_COUNTER1 428*5113495bSYour Name 429*5113495bSYour Name Value of this counter at generation of this message 430*5113495bSYour Name 431*5113495bSYour Name <legal all> 432*5113495bSYour Name */ 433*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_4_LINK_DESCRIPTOR_COUNTER1_OFFSET 0x00000010 434*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_4_LINK_DESCRIPTOR_COUNTER1_LSB 0 435*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_4_LINK_DESCRIPTOR_COUNTER1_MASK 0x00ffffff 436*5113495bSYour Name 437*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_4_RESERVED_4 438*5113495bSYour Name 439*5113495bSYour Name <legal 0> 440*5113495bSYour Name */ 441*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_4_RESERVED_4_OFFSET 0x00000010 442*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_4_RESERVED_4_LSB 24 443*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_4_RESERVED_4_MASK 0xff000000 444*5113495bSYour Name 445*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_5_LINK_DESCRIPTOR_COUNTER2 446*5113495bSYour Name 447*5113495bSYour Name Value of this counter at generation of this message 448*5113495bSYour Name 449*5113495bSYour Name <legal all> 450*5113495bSYour Name */ 451*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_5_LINK_DESCRIPTOR_COUNTER2_OFFSET 0x00000014 452*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_5_LINK_DESCRIPTOR_COUNTER2_LSB 0 453*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_5_LINK_DESCRIPTOR_COUNTER2_MASK 0x00ffffff 454*5113495bSYour Name 455*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_5_RESERVED_5 456*5113495bSYour Name 457*5113495bSYour Name <legal 0> 458*5113495bSYour Name */ 459*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_5_RESERVED_5_OFFSET 0x00000014 460*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_5_RESERVED_5_LSB 24 461*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_5_RESERVED_5_MASK 0xff000000 462*5113495bSYour Name 463*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_6_LINK_DESCRIPTOR_COUNTER_SUM 464*5113495bSYour Name 465*5113495bSYour Name Value of this counter at generation of this message 466*5113495bSYour Name 467*5113495bSYour Name <legal all> 468*5113495bSYour Name */ 469*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_6_LINK_DESCRIPTOR_COUNTER_SUM_OFFSET 0x00000018 470*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_6_LINK_DESCRIPTOR_COUNTER_SUM_LSB 0 471*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_6_LINK_DESCRIPTOR_COUNTER_SUM_MASK 0x03ffffff 472*5113495bSYour Name 473*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_6_RESERVED_6 474*5113495bSYour Name 475*5113495bSYour Name <legal 0> 476*5113495bSYour Name */ 477*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_6_RESERVED_6_OFFSET 0x00000018 478*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_6_RESERVED_6_LSB 26 479*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_6_RESERVED_6_MASK 0xfc000000 480*5113495bSYour Name 481*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_7_RESERVED_7 482*5113495bSYour Name 483*5113495bSYour Name <legal 0> 484*5113495bSYour Name */ 485*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_7_RESERVED_7_OFFSET 0x0000001c 486*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_7_RESERVED_7_LSB 0 487*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_7_RESERVED_7_MASK 0xffffffff 488*5113495bSYour Name 489*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_8_RESERVED_8 490*5113495bSYour Name 491*5113495bSYour Name <legal 0> 492*5113495bSYour Name */ 493*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_8_RESERVED_8_OFFSET 0x00000020 494*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_8_RESERVED_8_LSB 0 495*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_8_RESERVED_8_MASK 0xffffffff 496*5113495bSYour Name 497*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_9_RESERVED_9A 498*5113495bSYour Name 499*5113495bSYour Name <legal 0> 500*5113495bSYour Name */ 501*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_9_RESERVED_9A_OFFSET 0x00000024 502*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_9_RESERVED_9A_LSB 0 503*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_9_RESERVED_9A_MASK 0xffffffff 504*5113495bSYour Name 505*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_10_RESERVED_10A 506*5113495bSYour Name 507*5113495bSYour Name <legal 0> 508*5113495bSYour Name */ 509*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_10_RESERVED_10A_OFFSET 0x00000028 510*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_10_RESERVED_10A_LSB 0 511*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_10_RESERVED_10A_MASK 0xffffffff 512*5113495bSYour Name 513*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_11_RESERVED_11A 514*5113495bSYour Name 515*5113495bSYour Name <legal 0> 516*5113495bSYour Name */ 517*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_11_RESERVED_11A_OFFSET 0x0000002c 518*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_11_RESERVED_11A_LSB 0 519*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_11_RESERVED_11A_MASK 0xffffffff 520*5113495bSYour Name 521*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_12_RESERVED_12A 522*5113495bSYour Name 523*5113495bSYour Name <legal 0> 524*5113495bSYour Name */ 525*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_12_RESERVED_12A_OFFSET 0x00000030 526*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_12_RESERVED_12A_LSB 0 527*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_12_RESERVED_12A_MASK 0xffffffff 528*5113495bSYour Name 529*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_13_RESERVED_13A 530*5113495bSYour Name 531*5113495bSYour Name <legal 0> 532*5113495bSYour Name */ 533*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_13_RESERVED_13A_OFFSET 0x00000034 534*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_13_RESERVED_13A_LSB 0 535*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_13_RESERVED_13A_MASK 0xffffffff 536*5113495bSYour Name 537*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_14_RESERVED_14A 538*5113495bSYour Name 539*5113495bSYour Name <legal 0> 540*5113495bSYour Name */ 541*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_14_RESERVED_14A_OFFSET 0x00000038 542*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_14_RESERVED_14A_LSB 0 543*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_14_RESERVED_14A_MASK 0xffffffff 544*5113495bSYour Name 545*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_15_RESERVED_15A 546*5113495bSYour Name 547*5113495bSYour Name <legal 0> 548*5113495bSYour Name */ 549*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_15_RESERVED_15A_OFFSET 0x0000003c 550*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_15_RESERVED_15A_LSB 0 551*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_15_RESERVED_15A_MASK 0xffffffff 552*5113495bSYour Name 553*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_16_RESERVED_16A 554*5113495bSYour Name 555*5113495bSYour Name <legal 0> 556*5113495bSYour Name */ 557*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_16_RESERVED_16A_OFFSET 0x00000040 558*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_16_RESERVED_16A_LSB 0 559*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_16_RESERVED_16A_MASK 0xffffffff 560*5113495bSYour Name 561*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_17_RESERVED_17A 562*5113495bSYour Name 563*5113495bSYour Name <legal 0> 564*5113495bSYour Name */ 565*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_17_RESERVED_17A_OFFSET 0x00000044 566*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_17_RESERVED_17A_LSB 0 567*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_17_RESERVED_17A_MASK 0xffffffff 568*5113495bSYour Name 569*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_18_RESERVED_18A 570*5113495bSYour Name 571*5113495bSYour Name <legal 0> 572*5113495bSYour Name */ 573*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_18_RESERVED_18A_OFFSET 0x00000048 574*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_18_RESERVED_18A_LSB 0 575*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_18_RESERVED_18A_MASK 0xffffffff 576*5113495bSYour Name 577*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_19_RESERVED_19A 578*5113495bSYour Name 579*5113495bSYour Name <legal 0> 580*5113495bSYour Name */ 581*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_19_RESERVED_19A_OFFSET 0x0000004c 582*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_19_RESERVED_19A_LSB 0 583*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_19_RESERVED_19A_MASK 0xffffffff 584*5113495bSYour Name 585*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_20_RESERVED_20A 586*5113495bSYour Name 587*5113495bSYour Name <legal 0> 588*5113495bSYour Name */ 589*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_20_RESERVED_20A_OFFSET 0x00000050 590*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_20_RESERVED_20A_LSB 0 591*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_20_RESERVED_20A_MASK 0xffffffff 592*5113495bSYour Name 593*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_21_RESERVED_21A 594*5113495bSYour Name 595*5113495bSYour Name <legal 0> 596*5113495bSYour Name */ 597*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_21_RESERVED_21A_OFFSET 0x00000054 598*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_21_RESERVED_21A_LSB 0 599*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_21_RESERVED_21A_MASK 0xffffffff 600*5113495bSYour Name 601*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_22_RESERVED_22A 602*5113495bSYour Name 603*5113495bSYour Name <legal 0> 604*5113495bSYour Name */ 605*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_22_RESERVED_22A_OFFSET 0x00000058 606*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_22_RESERVED_22A_LSB 0 607*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_22_RESERVED_22A_MASK 0xffffffff 608*5113495bSYour Name 609*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_23_RESERVED_23A 610*5113495bSYour Name 611*5113495bSYour Name <legal 0> 612*5113495bSYour Name */ 613*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_23_RESERVED_23A_OFFSET 0x0000005c 614*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_23_RESERVED_23A_LSB 0 615*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_23_RESERVED_23A_MASK 0xffffffff 616*5113495bSYour Name 617*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_24_RESERVED_24A 618*5113495bSYour Name 619*5113495bSYour Name <legal 0> 620*5113495bSYour Name */ 621*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_24_RESERVED_24A_OFFSET 0x00000060 622*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_24_RESERVED_24A_LSB 0 623*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_24_RESERVED_24A_MASK 0x0fffffff 624*5113495bSYour Name 625*5113495bSYour Name /* Description REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_24_LOOPING_COUNT 626*5113495bSYour Name 627*5113495bSYour Name A count value that indicates the number of times the 628*5113495bSYour Name producer of entries into this Ring has looped around the 629*5113495bSYour Name ring. 630*5113495bSYour Name 631*5113495bSYour Name At initialization time, this value is set to 0. On the 632*5113495bSYour Name first loop, this value is set to 1. After the max value is 633*5113495bSYour Name reached allowed by the number of bits for this field, the 634*5113495bSYour Name count value continues with 0 again. 635*5113495bSYour Name 636*5113495bSYour Name 637*5113495bSYour Name 638*5113495bSYour Name In case SW is the consumer of the ring entries, it can 639*5113495bSYour Name use this field to figure out up to where the producer of 640*5113495bSYour Name entries has created new entries. This eliminates the need to 641*5113495bSYour Name check where the head pointer' of the ring is located once 642*5113495bSYour Name the SW starts processing an interrupt indicating that new 643*5113495bSYour Name entries have been put into this ring... 644*5113495bSYour Name 645*5113495bSYour Name 646*5113495bSYour Name 647*5113495bSYour Name Also note that SW if it wants only needs to look at the 648*5113495bSYour Name LSB bit of this count value. 649*5113495bSYour Name 650*5113495bSYour Name <legal all> 651*5113495bSYour Name */ 652*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_24_LOOPING_COUNT_OFFSET 0x00000060 653*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_24_LOOPING_COUNT_LSB 28 654*5113495bSYour Name #define REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_24_LOOPING_COUNT_MASK 0xf0000000 655*5113495bSYour Name 656*5113495bSYour Name 657*5113495bSYour Name #endif // _REO_DESCRIPTOR_THRESHOLD_REACHED_STATUS_H_ 658