diff options
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_ucode.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_ucode.h | 129 |
1 files changed, 129 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_ucode.h b/drivers/gpu/drm/radeon/radeon_ucode.h new file mode 100644 index 000000000000..d8b05f7bcf1a --- /dev/null +++ b/drivers/gpu/drm/radeon/radeon_ucode.h | |||
@@ -0,0 +1,129 @@ | |||
1 | /* | ||
2 | * Copyright 2012 Advanced Micro Devices, Inc. | ||
3 | * | ||
4 | * Permission is hereby granted, free of charge, to any person obtaining a | ||
5 | * copy of this software and associated documentation files (the "Software"), | ||
6 | * to deal in the Software without restriction, including without limitation | ||
7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
8 | * and/or sell copies of the Software, and to permit persons to whom the | ||
9 | * Software is furnished to do so, subject to the following conditions: | ||
10 | * | ||
11 | * The above copyright notice and this permission notice shall be included in | ||
12 | * all copies or substantial portions of the Software. | ||
13 | * | ||
14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
17 | * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||
18 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
19 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
20 | * OTHER DEALINGS IN THE SOFTWARE. | ||
21 | * | ||
22 | */ | ||
23 | #ifndef __RADEON_UCODE_H__ | ||
24 | #define __RADEON_UCODE_H__ | ||
25 | |||
26 | /* CP */ | ||
27 | #define R600_PFP_UCODE_SIZE 576 | ||
28 | #define R600_PM4_UCODE_SIZE 1792 | ||
29 | #define R700_PFP_UCODE_SIZE 848 | ||
30 | #define R700_PM4_UCODE_SIZE 1360 | ||
31 | #define EVERGREEN_PFP_UCODE_SIZE 1120 | ||
32 | #define EVERGREEN_PM4_UCODE_SIZE 1376 | ||
33 | #define CAYMAN_PFP_UCODE_SIZE 2176 | ||
34 | #define CAYMAN_PM4_UCODE_SIZE 2176 | ||
35 | #define SI_PFP_UCODE_SIZE 2144 | ||
36 | #define SI_PM4_UCODE_SIZE 2144 | ||
37 | #define SI_CE_UCODE_SIZE 2144 | ||
38 | |||
39 | /* RLC */ | ||
40 | #define R600_RLC_UCODE_SIZE 768 | ||
41 | #define R700_RLC_UCODE_SIZE 1024 | ||
42 | #define EVERGREEN_RLC_UCODE_SIZE 768 | ||
43 | #define CAYMAN_RLC_UCODE_SIZE 1024 | ||
44 | #define ARUBA_RLC_UCODE_SIZE 1536 | ||
45 | #define SI_RLC_UCODE_SIZE 2048 | ||
46 | |||
47 | /* MC */ | ||
48 | #define BTC_MC_UCODE_SIZE 6024 | ||
49 | #define CAYMAN_MC_UCODE_SIZE 6037 | ||
50 | #define SI_MC_UCODE_SIZE 7769 | ||
51 | #define OLAND_MC_UCODE_SIZE 7863 | ||
52 | |||
53 | /* SMC */ | ||
54 | #define RV770_SMC_UCODE_START 0x0100 | ||
55 | #define RV770_SMC_UCODE_SIZE 0x410d | ||
56 | #define RV770_SMC_INT_VECTOR_START 0xffc0 | ||
57 | #define RV770_SMC_INT_VECTOR_SIZE 0x0040 | ||
58 | |||
59 | #define RV730_SMC_UCODE_START 0x0100 | ||
60 | #define RV730_SMC_UCODE_SIZE 0x412c | ||
61 | #define RV730_SMC_INT_VECTOR_START 0xffc0 | ||
62 | #define RV730_SMC_INT_VECTOR_SIZE 0x0040 | ||
63 | |||
64 | #define RV710_SMC_UCODE_START 0x0100 | ||
65 | #define RV710_SMC_UCODE_SIZE 0x3f1f | ||
66 | #define RV710_SMC_INT_VECTOR_START 0xffc0 | ||
67 | #define RV710_SMC_INT_VECTOR_SIZE 0x0040 | ||
68 | |||
69 | #define RV740_SMC_UCODE_START 0x0100 | ||
70 | #define RV740_SMC_UCODE_SIZE 0x41c5 | ||
71 | #define RV740_SMC_INT_VECTOR_START 0xffc0 | ||
72 | #define RV740_SMC_INT_VECTOR_SIZE 0x0040 | ||
73 | |||
74 | #define CEDAR_SMC_UCODE_START 0x0100 | ||
75 | #define CEDAR_SMC_UCODE_SIZE 0x5d50 | ||
76 | #define CEDAR_SMC_INT_VECTOR_START 0xffc0 | ||
77 | #define CEDAR_SMC_INT_VECTOR_SIZE 0x0040 | ||
78 | |||
79 | #define REDWOOD_SMC_UCODE_START 0x0100 | ||
80 | #define REDWOOD_SMC_UCODE_SIZE 0x5f0a | ||
81 | #define REDWOOD_SMC_INT_VECTOR_START 0xffc0 | ||
82 | #define REDWOOD_SMC_INT_VECTOR_SIZE 0x0040 | ||
83 | |||
84 | #define JUNIPER_SMC_UCODE_START 0x0100 | ||
85 | #define JUNIPER_SMC_UCODE_SIZE 0x5f1f | ||
86 | #define JUNIPER_SMC_INT_VECTOR_START 0xffc0 | ||
87 | #define JUNIPER_SMC_INT_VECTOR_SIZE 0x0040 | ||
88 | |||
89 | #define CYPRESS_SMC_UCODE_START 0x0100 | ||
90 | #define CYPRESS_SMC_UCODE_SIZE 0x61f7 | ||
91 | #define CYPRESS_SMC_INT_VECTOR_START 0xffc0 | ||
92 | #define CYPRESS_SMC_INT_VECTOR_SIZE 0x0040 | ||
93 | |||
94 | #define BARTS_SMC_UCODE_START 0x0100 | ||
95 | #define BARTS_SMC_UCODE_SIZE 0x6107 | ||
96 | #define BARTS_SMC_INT_VECTOR_START 0xffc0 | ||
97 | #define BARTS_SMC_INT_VECTOR_SIZE 0x0040 | ||
98 | |||
99 | #define TURKS_SMC_UCODE_START 0x0100 | ||
100 | #define TURKS_SMC_UCODE_SIZE 0x605b | ||
101 | #define TURKS_SMC_INT_VECTOR_START 0xffc0 | ||
102 | #define TURKS_SMC_INT_VECTOR_SIZE 0x0040 | ||
103 | |||
104 | #define CAICOS_SMC_UCODE_START 0x0100 | ||
105 | #define CAICOS_SMC_UCODE_SIZE 0x5fbd | ||
106 | #define CAICOS_SMC_INT_VECTOR_START 0xffc0 | ||
107 | #define CAICOS_SMC_INT_VECTOR_SIZE 0x0040 | ||
108 | |||
109 | #define CAYMAN_SMC_UCODE_START 0x0100 | ||
110 | #define CAYMAN_SMC_UCODE_SIZE 0x79ec | ||
111 | #define CAYMAN_SMC_INT_VECTOR_START 0xffc0 | ||
112 | #define CAYMAN_SMC_INT_VECTOR_SIZE 0x0040 | ||
113 | |||
114 | #define TAHITI_SMC_UCODE_START 0x10000 | ||
115 | #define TAHITI_SMC_UCODE_SIZE 0xf458 | ||
116 | |||
117 | #define PITCAIRN_SMC_UCODE_START 0x10000 | ||
118 | #define PITCAIRN_SMC_UCODE_SIZE 0xe9f4 | ||
119 | |||
120 | #define VERDE_SMC_UCODE_START 0x10000 | ||
121 | #define VERDE_SMC_UCODE_SIZE 0xebe4 | ||
122 | |||
123 | #define OLAND_SMC_UCODE_START 0x10000 | ||
124 | #define OLAND_SMC_UCODE_SIZE 0xe7b4 | ||
125 | |||
126 | #define HAINAN_SMC_UCODE_START 0x10000 | ||
127 | #define HAINAN_SMC_UCODE_SIZE 0xe67C | ||
128 | |||
129 | #endif | ||