2
************************************************************************************************************************
4
* Copyright (C) 2007-2022 Advanced Micro Devices, Inc. All rights reserved.
6
* Permission is hereby granted, free of charge, to any person obtaining a
7
* copy of this software and associated documentation files (the "Software"),
8
* to deal in the Software without restriction, including without limitation
9
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
10
* and/or sell copies of the Software, and to permit persons to whom the
11
* Software is furnished to do so, subject to the following conditions:
13
* The above copyright notice and this permission notice shall be included in
14
* all copies or substantial portions of the Software.
16
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19
* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
20
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
* OTHER DEALINGS IN THE SOFTWARE
24
***********************************************************************************************************************/
26
#if !defined (__GFX11_GB_REG_H__)
27
#define __GFX11_GB_REG_H__
32
* Register Spec Release: 1.0
37
// Make sure the necessary endian defines are there.
39
#if defined(LITTLEENDIAN_CPU)
40
#elif defined(BIGENDIAN_CPU)
42
#error "BIGENDIAN_CPU or LITTLEENDIAN_CPU must be defined"
45
union GB_ADDR_CONFIG_GFX11
49
#if defined(LITTLEENDIAN_CPU)
50
unsigned int NUM_PIPES : 3;
51
unsigned int PIPE_INTERLEAVE_SIZE : 3;
52
unsigned int MAX_COMPRESSED_FRAGS : 2;
53
unsigned int NUM_PKRS : 3;
55
unsigned int NUM_SHADER_ENGINES : 2;
57
unsigned int NUM_RB_PER_SE : 2;
59
#elif defined(BIGENDIAN_CPU)
61
unsigned int NUM_RB_PER_SE : 2;
63
unsigned int NUM_SHADER_ENGINES : 2;
65
unsigned int NUM_PKRS : 3;
66
unsigned int MAX_COMPRESSED_FRAGS : 2;
67
unsigned int PIPE_INTERLEAVE_SIZE : 3;
68
unsigned int NUM_PIPES : 3;