• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2 ************************************************************************************************************************
3 *
4 *  Copyright (C) 2007-2022 Advanced Micro Devices, Inc.  All rights reserved.
5 *
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:
12 *
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 *
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
23 *
24 ***********************************************************************************************************************/
25 
26 #if !defined (__GFX10_GB_REG_H__)
27 #define __GFX10_GB_REG_H__
28 
29 /*
30 *    gfx10_gb_reg.h
31 *
32 *    Register Spec Release:  1.0
33 *
34 */
35 
36 //
37 // Make sure the necessary endian defines are there.
38 //
39 #if defined(LITTLEENDIAN_CPU)
40 #elif defined(BIGENDIAN_CPU)
41 #else
42 #error "BIGENDIAN_CPU or LITTLEENDIAN_CPU must be defined"
43 #endif
44 
45 union GB_ADDR_CONFIG_GFX10
46 {
47     struct
48     {
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;
54         unsigned int                                 : 21;
55 #elif defined(BIGENDIAN_CPU)
56         unsigned int                                 : 21;
57         unsigned int                       NUM_PKRS  : 3;
58         unsigned int            MAX_COMPRESSED_FRAGS : 2;
59         unsigned int            PIPE_INTERLEAVE_SIZE : 3;
60         unsigned int                       NUM_PIPES : 3;
61 #endif
62     } bitfields, bits;
63     unsigned int    u32All;
64     int             i32All;
65     float           f32All;
66 };
67 
68 #endif
69 
70