1*5113495bSYour Name /* 2*5113495bSYour Name * Copyright (c) 2016-2017 The Linux Foundation. All rights reserved. 3*5113495bSYour Name * 4*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for 5*5113495bSYour Name * any purpose with or without fee is hereby granted, provided that the 6*5113495bSYour Name * above copyright notice and this permission notice appear in all 7*5113495bSYour Name * copies. 8*5113495bSYour Name * 9*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 10*5113495bSYour Name * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 11*5113495bSYour Name * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 12*5113495bSYour Name * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 13*5113495bSYour Name * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 14*5113495bSYour Name * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 15*5113495bSYour Name * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 16*5113495bSYour Name * PERFORMANCE OF THIS SOFTWARE. 17*5113495bSYour Name */ 18*5113495bSYour Name 19*5113495bSYour Name // DO NOT EDIT! This file is automatically generated 20*5113495bSYour Name // These definitions are tied to a particular hardware layout 21*5113495bSYour Name 22*5113495bSYour Name 23*5113495bSYour Name #ifndef _REO_FLUSH_CACHE_STATUS_H_ 24*5113495bSYour Name #define _REO_FLUSH_CACHE_STATUS_H_ 25*5113495bSYour Name #if !defined(__ASSEMBLER__) 26*5113495bSYour Name #endif 27*5113495bSYour Name 28*5113495bSYour Name #include "uniform_reo_status_header.h" 29*5113495bSYour Name 30*5113495bSYour Name // ################ START SUMMARY ################# 31*5113495bSYour Name // 32*5113495bSYour Name // Dword Fields 33*5113495bSYour Name // 0-1 struct uniform_reo_status_header status_header; 34*5113495bSYour Name // 2 error_detected[0], block_error_details[2:1], reserved_2a[7:3], cache_controller_flush_status_hit[8], cache_controller_flush_status_desc_type[11:9], cache_controller_flush_status_client_id[15:12], cache_controller_flush_status_error[17:16], cache_controller_flush_count[25:18], reserved_2b[31:26] 35*5113495bSYour Name // 3 reserved_3a[31:0] 36*5113495bSYour Name // 4 reserved_4a[31:0] 37*5113495bSYour Name // 5 reserved_5a[31:0] 38*5113495bSYour Name // 6 reserved_6a[31:0] 39*5113495bSYour Name // 7 reserved_7a[31:0] 40*5113495bSYour Name // 8 reserved_8a[31:0] 41*5113495bSYour Name // 9 reserved_9a[31:0] 42*5113495bSYour Name // 10 reserved_10a[31:0] 43*5113495bSYour Name // 11 reserved_11a[31:0] 44*5113495bSYour Name // 12 reserved_12a[31:0] 45*5113495bSYour Name // 13 reserved_13a[31:0] 46*5113495bSYour Name // 14 reserved_14a[31:0] 47*5113495bSYour Name // 15 reserved_15a[31:0] 48*5113495bSYour Name // 16 reserved_16a[31:0] 49*5113495bSYour Name // 17 reserved_17a[31:0] 50*5113495bSYour Name // 18 reserved_18a[31:0] 51*5113495bSYour Name // 19 reserved_19a[31:0] 52*5113495bSYour Name // 20 reserved_20a[31:0] 53*5113495bSYour Name // 21 reserved_21a[31:0] 54*5113495bSYour Name // 22 reserved_22a[31:0] 55*5113495bSYour Name // 23 reserved_23a[31:0] 56*5113495bSYour Name // 24 reserved_24a[27:0], looping_count[31:28] 57*5113495bSYour Name // 58*5113495bSYour Name // ################ END SUMMARY ################# 59*5113495bSYour Name 60*5113495bSYour Name #define NUM_OF_DWORDS_REO_FLUSH_CACHE_STATUS 25 61*5113495bSYour Name 62*5113495bSYour Name struct reo_flush_cache_status { 63*5113495bSYour Name struct uniform_reo_status_header status_header; 64*5113495bSYour Name uint32_t error_detected : 1, //[0] 65*5113495bSYour Name block_error_details : 2, //[2:1] 66*5113495bSYour Name reserved_2a : 5, //[7:3] 67*5113495bSYour Name cache_controller_flush_status_hit: 1, //[8] 68*5113495bSYour Name cache_controller_flush_status_desc_type: 3, //[11:9] 69*5113495bSYour Name cache_controller_flush_status_client_id: 4, //[15:12] 70*5113495bSYour Name cache_controller_flush_status_error: 2, //[17:16] 71*5113495bSYour Name cache_controller_flush_count : 8, //[25:18] 72*5113495bSYour Name reserved_2b : 6; //[31:26] 73*5113495bSYour Name uint32_t reserved_3a : 32; //[31:0] 74*5113495bSYour Name uint32_t reserved_4a : 32; //[31:0] 75*5113495bSYour Name uint32_t reserved_5a : 32; //[31:0] 76*5113495bSYour Name uint32_t reserved_6a : 32; //[31:0] 77*5113495bSYour Name uint32_t reserved_7a : 32; //[31:0] 78*5113495bSYour Name uint32_t reserved_8a : 32; //[31:0] 79*5113495bSYour Name uint32_t reserved_9a : 32; //[31:0] 80*5113495bSYour Name uint32_t reserved_10a : 32; //[31:0] 81*5113495bSYour Name uint32_t reserved_11a : 32; //[31:0] 82*5113495bSYour Name uint32_t reserved_12a : 32; //[31:0] 83*5113495bSYour Name uint32_t reserved_13a : 32; //[31:0] 84*5113495bSYour Name uint32_t reserved_14a : 32; //[31:0] 85*5113495bSYour Name uint32_t reserved_15a : 32; //[31:0] 86*5113495bSYour Name uint32_t reserved_16a : 32; //[31:0] 87*5113495bSYour Name uint32_t reserved_17a : 32; //[31:0] 88*5113495bSYour Name uint32_t reserved_18a : 32; //[31:0] 89*5113495bSYour Name uint32_t reserved_19a : 32; //[31:0] 90*5113495bSYour Name uint32_t reserved_20a : 32; //[31:0] 91*5113495bSYour Name uint32_t reserved_21a : 32; //[31:0] 92*5113495bSYour Name uint32_t reserved_22a : 32; //[31:0] 93*5113495bSYour Name uint32_t reserved_23a : 32; //[31:0] 94*5113495bSYour Name uint32_t reserved_24a : 28, //[27:0] 95*5113495bSYour Name looping_count : 4; //[31:28] 96*5113495bSYour Name }; 97*5113495bSYour Name 98*5113495bSYour Name /* 99*5113495bSYour Name 100*5113495bSYour Name struct uniform_reo_status_header status_header 101*5113495bSYour Name 102*5113495bSYour Name Consumer: SW 103*5113495bSYour Name 104*5113495bSYour Name Producer: REO 105*5113495bSYour Name 106*5113495bSYour Name 107*5113495bSYour Name 108*5113495bSYour Name Details that can link this status with the original 109*5113495bSYour Name command. It also contains info on how long REO took to 110*5113495bSYour Name execute this command. 111*5113495bSYour Name 112*5113495bSYour Name error_detected 113*5113495bSYour Name 114*5113495bSYour Name Status for blocking resource handling 115*5113495bSYour Name 116*5113495bSYour Name 117*5113495bSYour Name 118*5113495bSYour Name 0: No error has been detected while executing this 119*5113495bSYour Name command 120*5113495bSYour Name 121*5113495bSYour Name 1: an error in the blocking resource management was 122*5113495bSYour Name detected 123*5113495bSYour Name 124*5113495bSYour Name See field 'Block_error_details' 125*5113495bSYour Name 126*5113495bSYour Name block_error_details 127*5113495bSYour Name 128*5113495bSYour Name Field only valid when 'Error_detected' is set. 129*5113495bSYour Name 130*5113495bSYour Name 0: no blocking related error found 131*5113495bSYour Name 132*5113495bSYour Name 1: blocking resource was already in use 133*5113495bSYour Name 134*5113495bSYour Name 2: resource that was asked to be unblocked, was not 135*5113495bSYour Name blocked 136*5113495bSYour Name 137*5113495bSYour Name <legal 0-2> 138*5113495bSYour Name 139*5113495bSYour Name reserved_2a 140*5113495bSYour Name 141*5113495bSYour Name <legal 0> 142*5113495bSYour Name 143*5113495bSYour Name cache_controller_flush_status_hit 144*5113495bSYour Name 145*5113495bSYour Name The status that the cache controller returned for 146*5113495bSYour Name executing the flush command 147*5113495bSYour Name 148*5113495bSYour Name 149*5113495bSYour Name 150*5113495bSYour Name descriptor hit 151*5113495bSYour Name 152*5113495bSYour Name 1 = hit 153*5113495bSYour Name 154*5113495bSYour Name 0 = miss 155*5113495bSYour Name 156*5113495bSYour Name <legal all> 157*5113495bSYour Name 158*5113495bSYour Name cache_controller_flush_status_desc_type 159*5113495bSYour Name 160*5113495bSYour Name The status that the cache controller returned for 161*5113495bSYour Name executing the flush command 162*5113495bSYour Name 163*5113495bSYour Name Descriptor type 164*5113495bSYour Name 165*5113495bSYour Name FLOW_QUEUE_DESCRIPTOR 166*5113495bSYour Name 3'd0 167*5113495bSYour Name 168*5113495bSYour Name 169*5113495bSYour Name <legal all> 170*5113495bSYour Name 171*5113495bSYour Name cache_controller_flush_status_client_id 172*5113495bSYour Name 173*5113495bSYour Name The status that the cache controller returned for 174*5113495bSYour Name executing the flush command 175*5113495bSYour Name 176*5113495bSYour Name 177*5113495bSYour Name 178*5113495bSYour Name client ID 179*5113495bSYour Name 180*5113495bSYour Name Module who made flush the request 181*5113495bSYour Name 182*5113495bSYour Name 183*5113495bSYour Name 184*5113495bSYour Name In REO, this is always set to 0 185*5113495bSYour Name 186*5113495bSYour Name <legal 0> 187*5113495bSYour Name 188*5113495bSYour Name cache_controller_flush_status_error 189*5113495bSYour Name 190*5113495bSYour Name The status that the cache controller returned for 191*5113495bSYour Name executing the flush command 192*5113495bSYour Name 193*5113495bSYour Name 194*5113495bSYour Name 195*5113495bSYour Name Error condition 196*5113495bSYour Name 197*5113495bSYour Name 2'b00: No error found 198*5113495bSYour Name 199*5113495bSYour Name 2'b01: HW IF still busy 200*5113495bSYour Name 201*5113495bSYour Name 2'b10: Line is currently locked. Used for the one line 202*5113495bSYour Name flush command. 203*5113495bSYour Name 204*5113495bSYour Name 2'b11: At least one line is currently still locked. Used 205*5113495bSYour Name for the cache flush command. 206*5113495bSYour Name 207*5113495bSYour Name 208*5113495bSYour Name 209*5113495bSYour Name <legal all> 210*5113495bSYour Name 211*5113495bSYour Name cache_controller_flush_count 212*5113495bSYour Name 213*5113495bSYour Name The number of lines that were actually flushed out. 214*5113495bSYour Name 215*5113495bSYour Name <legal all> 216*5113495bSYour Name 217*5113495bSYour Name reserved_2b 218*5113495bSYour Name 219*5113495bSYour Name <legal 0> 220*5113495bSYour Name 221*5113495bSYour Name reserved_3a 222*5113495bSYour Name 223*5113495bSYour Name <legal 0> 224*5113495bSYour Name 225*5113495bSYour Name reserved_4a 226*5113495bSYour Name 227*5113495bSYour Name <legal 0> 228*5113495bSYour Name 229*5113495bSYour Name reserved_5a 230*5113495bSYour Name 231*5113495bSYour Name <legal 0> 232*5113495bSYour Name 233*5113495bSYour Name reserved_6a 234*5113495bSYour Name 235*5113495bSYour Name <legal 0> 236*5113495bSYour Name 237*5113495bSYour Name reserved_7a 238*5113495bSYour Name 239*5113495bSYour Name <legal 0> 240*5113495bSYour Name 241*5113495bSYour Name reserved_8a 242*5113495bSYour Name 243*5113495bSYour Name <legal 0> 244*5113495bSYour Name 245*5113495bSYour Name reserved_9a 246*5113495bSYour Name 247*5113495bSYour Name <legal 0> 248*5113495bSYour Name 249*5113495bSYour Name reserved_10a 250*5113495bSYour Name 251*5113495bSYour Name <legal 0> 252*5113495bSYour Name 253*5113495bSYour Name reserved_11a 254*5113495bSYour Name 255*5113495bSYour Name <legal 0> 256*5113495bSYour Name 257*5113495bSYour Name reserved_12a 258*5113495bSYour Name 259*5113495bSYour Name <legal 0> 260*5113495bSYour Name 261*5113495bSYour Name reserved_13a 262*5113495bSYour Name 263*5113495bSYour Name <legal 0> 264*5113495bSYour Name 265*5113495bSYour Name reserved_14a 266*5113495bSYour Name 267*5113495bSYour Name <legal 0> 268*5113495bSYour Name 269*5113495bSYour Name reserved_15a 270*5113495bSYour Name 271*5113495bSYour Name <legal 0> 272*5113495bSYour Name 273*5113495bSYour Name reserved_16a 274*5113495bSYour Name 275*5113495bSYour Name <legal 0> 276*5113495bSYour Name 277*5113495bSYour Name reserved_17a 278*5113495bSYour Name 279*5113495bSYour Name <legal 0> 280*5113495bSYour Name 281*5113495bSYour Name reserved_18a 282*5113495bSYour Name 283*5113495bSYour Name <legal 0> 284*5113495bSYour Name 285*5113495bSYour Name reserved_19a 286*5113495bSYour Name 287*5113495bSYour Name <legal 0> 288*5113495bSYour Name 289*5113495bSYour Name reserved_20a 290*5113495bSYour Name 291*5113495bSYour Name <legal 0> 292*5113495bSYour Name 293*5113495bSYour Name reserved_21a 294*5113495bSYour Name 295*5113495bSYour Name <legal 0> 296*5113495bSYour Name 297*5113495bSYour Name reserved_22a 298*5113495bSYour Name 299*5113495bSYour Name <legal 0> 300*5113495bSYour Name 301*5113495bSYour Name reserved_23a 302*5113495bSYour Name 303*5113495bSYour Name <legal 0> 304*5113495bSYour Name 305*5113495bSYour Name reserved_24a 306*5113495bSYour Name 307*5113495bSYour Name <legal 0> 308*5113495bSYour Name 309*5113495bSYour Name looping_count 310*5113495bSYour Name 311*5113495bSYour Name A count value that indicates the number of times the 312*5113495bSYour Name producer of entries into this Ring has looped around the 313*5113495bSYour Name ring. 314*5113495bSYour Name 315*5113495bSYour Name At initialization time, this value is set to 0. On the 316*5113495bSYour Name first loop, this value is set to 1. After the max value is 317*5113495bSYour Name reached allowed by the number of bits for this field, the 318*5113495bSYour Name count value continues with 0 again. 319*5113495bSYour Name 320*5113495bSYour Name 321*5113495bSYour Name 322*5113495bSYour Name In case SW is the consumer of the ring entries, it can 323*5113495bSYour Name use this field to figure out up to where the producer of 324*5113495bSYour Name entries has created new entries. This eliminates the need to 325*5113495bSYour Name check where the head pointer' of the ring is located once 326*5113495bSYour Name the SW starts processing an interrupt indicating that new 327*5113495bSYour Name entries have been put into this ring... 328*5113495bSYour Name 329*5113495bSYour Name 330*5113495bSYour Name 331*5113495bSYour Name Also note that SW if it wants only needs to look at the 332*5113495bSYour Name LSB bit of this count value. 333*5113495bSYour Name 334*5113495bSYour Name <legal all> 335*5113495bSYour Name */ 336*5113495bSYour Name 337*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_0_UNIFORM_REO_STATUS_HEADER_STATUS_HEADER_OFFSET 0x00000000 338*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_0_UNIFORM_REO_STATUS_HEADER_STATUS_HEADER_LSB 28 339*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_0_UNIFORM_REO_STATUS_HEADER_STATUS_HEADER_MASK 0xffffffff 340*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_1_UNIFORM_REO_STATUS_HEADER_STATUS_HEADER_OFFSET 0x00000004 341*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_1_UNIFORM_REO_STATUS_HEADER_STATUS_HEADER_LSB 28 342*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_1_UNIFORM_REO_STATUS_HEADER_STATUS_HEADER_MASK 0xffffffff 343*5113495bSYour Name 344*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_2_ERROR_DETECTED 345*5113495bSYour Name 346*5113495bSYour Name Status for blocking resource handling 347*5113495bSYour Name 348*5113495bSYour Name 349*5113495bSYour Name 350*5113495bSYour Name 0: No error has been detected while executing this 351*5113495bSYour Name command 352*5113495bSYour Name 353*5113495bSYour Name 1: an error in the blocking resource management was 354*5113495bSYour Name detected 355*5113495bSYour Name 356*5113495bSYour Name See field 'Block_error_details' 357*5113495bSYour Name */ 358*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_2_ERROR_DETECTED_OFFSET 0x00000008 359*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_2_ERROR_DETECTED_LSB 0 360*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_2_ERROR_DETECTED_MASK 0x00000001 361*5113495bSYour Name 362*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_2_BLOCK_ERROR_DETAILS 363*5113495bSYour Name 364*5113495bSYour Name Field only valid when 'Error_detected' is set. 365*5113495bSYour Name 366*5113495bSYour Name 0: no blocking related error found 367*5113495bSYour Name 368*5113495bSYour Name 1: blocking resource was already in use 369*5113495bSYour Name 370*5113495bSYour Name 2: resource that was asked to be unblocked, was not 371*5113495bSYour Name blocked 372*5113495bSYour Name 373*5113495bSYour Name <legal 0-2> 374*5113495bSYour Name */ 375*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_2_BLOCK_ERROR_DETAILS_OFFSET 0x00000008 376*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_2_BLOCK_ERROR_DETAILS_LSB 1 377*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_2_BLOCK_ERROR_DETAILS_MASK 0x00000006 378*5113495bSYour Name 379*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_2_RESERVED_2A 380*5113495bSYour Name 381*5113495bSYour Name <legal 0> 382*5113495bSYour Name */ 383*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_2_RESERVED_2A_OFFSET 0x00000008 384*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_2_RESERVED_2A_LSB 3 385*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_2_RESERVED_2A_MASK 0x000000f8 386*5113495bSYour Name 387*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_2_CACHE_CONTROLLER_FLUSH_STATUS_HIT 388*5113495bSYour Name 389*5113495bSYour Name The status that the cache controller returned for 390*5113495bSYour Name executing the flush command 391*5113495bSYour Name 392*5113495bSYour Name 393*5113495bSYour Name 394*5113495bSYour Name descriptor hit 395*5113495bSYour Name 396*5113495bSYour Name 1 = hit 397*5113495bSYour Name 398*5113495bSYour Name 0 = miss 399*5113495bSYour Name 400*5113495bSYour Name <legal all> 401*5113495bSYour Name */ 402*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_2_CACHE_CONTROLLER_FLUSH_STATUS_HIT_OFFSET 0x00000008 403*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_2_CACHE_CONTROLLER_FLUSH_STATUS_HIT_LSB 8 404*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_2_CACHE_CONTROLLER_FLUSH_STATUS_HIT_MASK 0x00000100 405*5113495bSYour Name 406*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_2_CACHE_CONTROLLER_FLUSH_STATUS_DESC_TYPE 407*5113495bSYour Name 408*5113495bSYour Name The status that the cache controller returned for 409*5113495bSYour Name executing the flush command 410*5113495bSYour Name 411*5113495bSYour Name Descriptor type 412*5113495bSYour Name 413*5113495bSYour Name FLOW_QUEUE_DESCRIPTOR 414*5113495bSYour Name 3'd0 415*5113495bSYour Name 416*5113495bSYour Name 417*5113495bSYour Name <legal all> 418*5113495bSYour Name */ 419*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_2_CACHE_CONTROLLER_FLUSH_STATUS_DESC_TYPE_OFFSET 0x00000008 420*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_2_CACHE_CONTROLLER_FLUSH_STATUS_DESC_TYPE_LSB 9 421*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_2_CACHE_CONTROLLER_FLUSH_STATUS_DESC_TYPE_MASK 0x00000e00 422*5113495bSYour Name 423*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_2_CACHE_CONTROLLER_FLUSH_STATUS_CLIENT_ID 424*5113495bSYour Name 425*5113495bSYour Name The status that the cache controller returned for 426*5113495bSYour Name executing the flush command 427*5113495bSYour Name 428*5113495bSYour Name 429*5113495bSYour Name 430*5113495bSYour Name client ID 431*5113495bSYour Name 432*5113495bSYour Name Module who made flush the request 433*5113495bSYour Name 434*5113495bSYour Name 435*5113495bSYour Name 436*5113495bSYour Name In REO, this is always set to 0 437*5113495bSYour Name 438*5113495bSYour Name <legal 0> 439*5113495bSYour Name */ 440*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_2_CACHE_CONTROLLER_FLUSH_STATUS_CLIENT_ID_OFFSET 0x00000008 441*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_2_CACHE_CONTROLLER_FLUSH_STATUS_CLIENT_ID_LSB 12 442*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_2_CACHE_CONTROLLER_FLUSH_STATUS_CLIENT_ID_MASK 0x0000f000 443*5113495bSYour Name 444*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_2_CACHE_CONTROLLER_FLUSH_STATUS_ERROR 445*5113495bSYour Name 446*5113495bSYour Name The status that the cache controller returned for 447*5113495bSYour Name executing the flush command 448*5113495bSYour Name 449*5113495bSYour Name 450*5113495bSYour Name 451*5113495bSYour Name Error condition 452*5113495bSYour Name 453*5113495bSYour Name 2'b00: No error found 454*5113495bSYour Name 455*5113495bSYour Name 2'b01: HW IF still busy 456*5113495bSYour Name 457*5113495bSYour Name 2'b10: Line is currently locked. Used for the one line 458*5113495bSYour Name flush command. 459*5113495bSYour Name 460*5113495bSYour Name 2'b11: At least one line is currently still locked. Used 461*5113495bSYour Name for the cache flush command. 462*5113495bSYour Name 463*5113495bSYour Name 464*5113495bSYour Name 465*5113495bSYour Name <legal all> 466*5113495bSYour Name */ 467*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_2_CACHE_CONTROLLER_FLUSH_STATUS_ERROR_OFFSET 0x00000008 468*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_2_CACHE_CONTROLLER_FLUSH_STATUS_ERROR_LSB 16 469*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_2_CACHE_CONTROLLER_FLUSH_STATUS_ERROR_MASK 0x00030000 470*5113495bSYour Name 471*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_2_CACHE_CONTROLLER_FLUSH_COUNT 472*5113495bSYour Name 473*5113495bSYour Name The number of lines that were actually flushed out. 474*5113495bSYour Name 475*5113495bSYour Name <legal all> 476*5113495bSYour Name */ 477*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_2_CACHE_CONTROLLER_FLUSH_COUNT_OFFSET 0x00000008 478*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_2_CACHE_CONTROLLER_FLUSH_COUNT_LSB 18 479*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_2_CACHE_CONTROLLER_FLUSH_COUNT_MASK 0x03fc0000 480*5113495bSYour Name 481*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_2_RESERVED_2B 482*5113495bSYour Name 483*5113495bSYour Name <legal 0> 484*5113495bSYour Name */ 485*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_2_RESERVED_2B_OFFSET 0x00000008 486*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_2_RESERVED_2B_LSB 26 487*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_2_RESERVED_2B_MASK 0xfc000000 488*5113495bSYour Name 489*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_3_RESERVED_3A 490*5113495bSYour Name 491*5113495bSYour Name <legal 0> 492*5113495bSYour Name */ 493*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_3_RESERVED_3A_OFFSET 0x0000000c 494*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_3_RESERVED_3A_LSB 0 495*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_3_RESERVED_3A_MASK 0xffffffff 496*5113495bSYour Name 497*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_4_RESERVED_4A 498*5113495bSYour Name 499*5113495bSYour Name <legal 0> 500*5113495bSYour Name */ 501*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_4_RESERVED_4A_OFFSET 0x00000010 502*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_4_RESERVED_4A_LSB 0 503*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_4_RESERVED_4A_MASK 0xffffffff 504*5113495bSYour Name 505*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_5_RESERVED_5A 506*5113495bSYour Name 507*5113495bSYour Name <legal 0> 508*5113495bSYour Name */ 509*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_5_RESERVED_5A_OFFSET 0x00000014 510*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_5_RESERVED_5A_LSB 0 511*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_5_RESERVED_5A_MASK 0xffffffff 512*5113495bSYour Name 513*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_6_RESERVED_6A 514*5113495bSYour Name 515*5113495bSYour Name <legal 0> 516*5113495bSYour Name */ 517*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_6_RESERVED_6A_OFFSET 0x00000018 518*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_6_RESERVED_6A_LSB 0 519*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_6_RESERVED_6A_MASK 0xffffffff 520*5113495bSYour Name 521*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_7_RESERVED_7A 522*5113495bSYour Name 523*5113495bSYour Name <legal 0> 524*5113495bSYour Name */ 525*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_7_RESERVED_7A_OFFSET 0x0000001c 526*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_7_RESERVED_7A_LSB 0 527*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_7_RESERVED_7A_MASK 0xffffffff 528*5113495bSYour Name 529*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_8_RESERVED_8A 530*5113495bSYour Name 531*5113495bSYour Name <legal 0> 532*5113495bSYour Name */ 533*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_8_RESERVED_8A_OFFSET 0x00000020 534*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_8_RESERVED_8A_LSB 0 535*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_8_RESERVED_8A_MASK 0xffffffff 536*5113495bSYour Name 537*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_9_RESERVED_9A 538*5113495bSYour Name 539*5113495bSYour Name <legal 0> 540*5113495bSYour Name */ 541*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_9_RESERVED_9A_OFFSET 0x00000024 542*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_9_RESERVED_9A_LSB 0 543*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_9_RESERVED_9A_MASK 0xffffffff 544*5113495bSYour Name 545*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_10_RESERVED_10A 546*5113495bSYour Name 547*5113495bSYour Name <legal 0> 548*5113495bSYour Name */ 549*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_10_RESERVED_10A_OFFSET 0x00000028 550*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_10_RESERVED_10A_LSB 0 551*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_10_RESERVED_10A_MASK 0xffffffff 552*5113495bSYour Name 553*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_11_RESERVED_11A 554*5113495bSYour Name 555*5113495bSYour Name <legal 0> 556*5113495bSYour Name */ 557*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_11_RESERVED_11A_OFFSET 0x0000002c 558*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_11_RESERVED_11A_LSB 0 559*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_11_RESERVED_11A_MASK 0xffffffff 560*5113495bSYour Name 561*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_12_RESERVED_12A 562*5113495bSYour Name 563*5113495bSYour Name <legal 0> 564*5113495bSYour Name */ 565*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_12_RESERVED_12A_OFFSET 0x00000030 566*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_12_RESERVED_12A_LSB 0 567*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_12_RESERVED_12A_MASK 0xffffffff 568*5113495bSYour Name 569*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_13_RESERVED_13A 570*5113495bSYour Name 571*5113495bSYour Name <legal 0> 572*5113495bSYour Name */ 573*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_13_RESERVED_13A_OFFSET 0x00000034 574*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_13_RESERVED_13A_LSB 0 575*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_13_RESERVED_13A_MASK 0xffffffff 576*5113495bSYour Name 577*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_14_RESERVED_14A 578*5113495bSYour Name 579*5113495bSYour Name <legal 0> 580*5113495bSYour Name */ 581*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_14_RESERVED_14A_OFFSET 0x00000038 582*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_14_RESERVED_14A_LSB 0 583*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_14_RESERVED_14A_MASK 0xffffffff 584*5113495bSYour Name 585*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_15_RESERVED_15A 586*5113495bSYour Name 587*5113495bSYour Name <legal 0> 588*5113495bSYour Name */ 589*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_15_RESERVED_15A_OFFSET 0x0000003c 590*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_15_RESERVED_15A_LSB 0 591*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_15_RESERVED_15A_MASK 0xffffffff 592*5113495bSYour Name 593*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_16_RESERVED_16A 594*5113495bSYour Name 595*5113495bSYour Name <legal 0> 596*5113495bSYour Name */ 597*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_16_RESERVED_16A_OFFSET 0x00000040 598*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_16_RESERVED_16A_LSB 0 599*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_16_RESERVED_16A_MASK 0xffffffff 600*5113495bSYour Name 601*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_17_RESERVED_17A 602*5113495bSYour Name 603*5113495bSYour Name <legal 0> 604*5113495bSYour Name */ 605*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_17_RESERVED_17A_OFFSET 0x00000044 606*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_17_RESERVED_17A_LSB 0 607*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_17_RESERVED_17A_MASK 0xffffffff 608*5113495bSYour Name 609*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_18_RESERVED_18A 610*5113495bSYour Name 611*5113495bSYour Name <legal 0> 612*5113495bSYour Name */ 613*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_18_RESERVED_18A_OFFSET 0x00000048 614*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_18_RESERVED_18A_LSB 0 615*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_18_RESERVED_18A_MASK 0xffffffff 616*5113495bSYour Name 617*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_19_RESERVED_19A 618*5113495bSYour Name 619*5113495bSYour Name <legal 0> 620*5113495bSYour Name */ 621*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_19_RESERVED_19A_OFFSET 0x0000004c 622*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_19_RESERVED_19A_LSB 0 623*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_19_RESERVED_19A_MASK 0xffffffff 624*5113495bSYour Name 625*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_20_RESERVED_20A 626*5113495bSYour Name 627*5113495bSYour Name <legal 0> 628*5113495bSYour Name */ 629*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_20_RESERVED_20A_OFFSET 0x00000050 630*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_20_RESERVED_20A_LSB 0 631*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_20_RESERVED_20A_MASK 0xffffffff 632*5113495bSYour Name 633*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_21_RESERVED_21A 634*5113495bSYour Name 635*5113495bSYour Name <legal 0> 636*5113495bSYour Name */ 637*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_21_RESERVED_21A_OFFSET 0x00000054 638*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_21_RESERVED_21A_LSB 0 639*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_21_RESERVED_21A_MASK 0xffffffff 640*5113495bSYour Name 641*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_22_RESERVED_22A 642*5113495bSYour Name 643*5113495bSYour Name <legal 0> 644*5113495bSYour Name */ 645*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_22_RESERVED_22A_OFFSET 0x00000058 646*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_22_RESERVED_22A_LSB 0 647*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_22_RESERVED_22A_MASK 0xffffffff 648*5113495bSYour Name 649*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_23_RESERVED_23A 650*5113495bSYour Name 651*5113495bSYour Name <legal 0> 652*5113495bSYour Name */ 653*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_23_RESERVED_23A_OFFSET 0x0000005c 654*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_23_RESERVED_23A_LSB 0 655*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_23_RESERVED_23A_MASK 0xffffffff 656*5113495bSYour Name 657*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_24_RESERVED_24A 658*5113495bSYour Name 659*5113495bSYour Name <legal 0> 660*5113495bSYour Name */ 661*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_24_RESERVED_24A_OFFSET 0x00000060 662*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_24_RESERVED_24A_LSB 0 663*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_24_RESERVED_24A_MASK 0x0fffffff 664*5113495bSYour Name 665*5113495bSYour Name /* Description REO_FLUSH_CACHE_STATUS_24_LOOPING_COUNT 666*5113495bSYour Name 667*5113495bSYour Name A count value that indicates the number of times the 668*5113495bSYour Name producer of entries into this Ring has looped around the 669*5113495bSYour Name ring. 670*5113495bSYour Name 671*5113495bSYour Name At initialization time, this value is set to 0. On the 672*5113495bSYour Name first loop, this value is set to 1. After the max value is 673*5113495bSYour Name reached allowed by the number of bits for this field, the 674*5113495bSYour Name count value continues with 0 again. 675*5113495bSYour Name 676*5113495bSYour Name 677*5113495bSYour Name 678*5113495bSYour Name In case SW is the consumer of the ring entries, it can 679*5113495bSYour Name use this field to figure out up to where the producer of 680*5113495bSYour Name entries has created new entries. This eliminates the need to 681*5113495bSYour Name check where the head pointer' of the ring is located once 682*5113495bSYour Name the SW starts processing an interrupt indicating that new 683*5113495bSYour Name entries have been put into this ring... 684*5113495bSYour Name 685*5113495bSYour Name 686*5113495bSYour Name 687*5113495bSYour Name Also note that SW if it wants only needs to look at the 688*5113495bSYour Name LSB bit of this count value. 689*5113495bSYour Name 690*5113495bSYour Name <legal all> 691*5113495bSYour Name */ 692*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_24_LOOPING_COUNT_OFFSET 0x00000060 693*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_24_LOOPING_COUNT_LSB 28 694*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_24_LOOPING_COUNT_MASK 0xf0000000 695*5113495bSYour Name 696*5113495bSYour Name 697*5113495bSYour Name #endif // _REO_FLUSH_CACHE_STATUS_H_ 698