~mmach/netext73/mesa-haswell

« back to all changes in this revision

Viewing changes to src/amd/addrlib/src/chip/gfx11/gfx11_gb_reg.h

  • Committer: mmach
  • Date: 2022-09-22 20:02:48 UTC
  • Revision ID: netbit73@gmail.com-20220922200248-7y4wybmdgipuwdiw
2022-09-22 21:17:09

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 (__GFX11_GB_REG_H__)
 
27
#define __GFX11_GB_REG_H__
 
28
 
 
29
/*
 
30
*    gfx11_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_GFX11
 
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                      :  8;
 
55
                unsigned int NUM_SHADER_ENGINES   :  2;
 
56
                unsigned int                      :  5;
 
57
                unsigned int NUM_RB_PER_SE        :  2;
 
58
                unsigned int                      :  4;
 
59
#elif defined(BIGENDIAN_CPU)
 
60
                unsigned int                      :  4;
 
61
                unsigned int NUM_RB_PER_SE        :  2;
 
62
                unsigned int                      :  5;
 
63
                unsigned int NUM_SHADER_ENGINES   :  2;
 
64
                unsigned int                      :  8;
 
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;
 
69
#endif
 
70
    } bitfields, bits;
 
71
    unsigned int    u32All;
 
72
    int             i32All;
 
73
    float           f32All;
 
74
};
 
75
 
 
76
#endif
 
77