Merge tag 'davinci-fixes-for-v3.15-rc4' of git://git.kernel.org/pub/scm/linux/kernel...
[deliverable/linux.git] / drivers / gpu / drm / radeon / radeon_ucode.h
CommitLineData
138e4e16
AD
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
a0ceada6
AD
35#define SI_PFP_UCODE_SIZE 2144
36#define SI_PM4_UCODE_SIZE 2144
37#define SI_CE_UCODE_SIZE 2144
8c68e393
AD
38#define CIK_PFP_UCODE_SIZE 2144
39#define CIK_ME_UCODE_SIZE 2144
40#define CIK_CE_UCODE_SIZE 2144
41
42/* MEC */
43#define CIK_MEC_UCODE_SIZE 4192
138e4e16
AD
44
45/* RLC */
46#define R600_RLC_UCODE_SIZE 768
47#define R700_RLC_UCODE_SIZE 1024
48#define EVERGREEN_RLC_UCODE_SIZE 768
49#define CAYMAN_RLC_UCODE_SIZE 1024
50#define ARUBA_RLC_UCODE_SIZE 1536
a0ceada6 51#define SI_RLC_UCODE_SIZE 2048
8c68e393
AD
52#define BONAIRE_RLC_UCODE_SIZE 2048
53#define KB_RLC_UCODE_SIZE 2560
54#define KV_RLC_UCODE_SIZE 2560
138e4e16
AD
55
56/* MC */
57#define BTC_MC_UCODE_SIZE 6024
58#define CAYMAN_MC_UCODE_SIZE 6037
a0ceada6 59#define SI_MC_UCODE_SIZE 7769
1ebe9280
AD
60#define TAHITI_MC_UCODE_SIZE 7808
61#define PITCAIRN_MC_UCODE_SIZE 7775
62#define VERDE_MC_UCODE_SIZE 7875
a0ceada6 63#define OLAND_MC_UCODE_SIZE 7863
277babc3
AD
64#define BONAIRE_MC_UCODE_SIZE 7866
65#define BONAIRE_MC2_UCODE_SIZE 7948
d4775655 66#define HAWAII_MC_UCODE_SIZE 7933
277babc3 67#define HAWAII_MC2_UCODE_SIZE 8091
8c68e393
AD
68
69/* SDMA */
70#define CIK_SDMA_UCODE_SIZE 1050
71#define CIK_SDMA_UCODE_VERSION 64
138e4e16 72
66229b20
AD
73/* SMC */
74#define RV770_SMC_UCODE_START 0x0100
75#define RV770_SMC_UCODE_SIZE 0x410d
76#define RV770_SMC_INT_VECTOR_START 0xffc0
77#define RV770_SMC_INT_VECTOR_SIZE 0x0040
78
79#define RV730_SMC_UCODE_START 0x0100
80#define RV730_SMC_UCODE_SIZE 0x412c
81#define RV730_SMC_INT_VECTOR_START 0xffc0
82#define RV730_SMC_INT_VECTOR_SIZE 0x0040
83
84#define RV710_SMC_UCODE_START 0x0100
85#define RV710_SMC_UCODE_SIZE 0x3f1f
86#define RV710_SMC_INT_VECTOR_START 0xffc0
87#define RV710_SMC_INT_VECTOR_SIZE 0x0040
88
89#define RV740_SMC_UCODE_START 0x0100
90#define RV740_SMC_UCODE_SIZE 0x41c5
91#define RV740_SMC_INT_VECTOR_START 0xffc0
92#define RV740_SMC_INT_VECTOR_SIZE 0x0040
93
dc50ba7f
AD
94#define CEDAR_SMC_UCODE_START 0x0100
95#define CEDAR_SMC_UCODE_SIZE 0x5d50
96#define CEDAR_SMC_INT_VECTOR_START 0xffc0
97#define CEDAR_SMC_INT_VECTOR_SIZE 0x0040
98
99#define REDWOOD_SMC_UCODE_START 0x0100
100#define REDWOOD_SMC_UCODE_SIZE 0x5f0a
101#define REDWOOD_SMC_INT_VECTOR_START 0xffc0
102#define REDWOOD_SMC_INT_VECTOR_SIZE 0x0040
103
104#define JUNIPER_SMC_UCODE_START 0x0100
105#define JUNIPER_SMC_UCODE_SIZE 0x5f1f
106#define JUNIPER_SMC_INT_VECTOR_START 0xffc0
107#define JUNIPER_SMC_INT_VECTOR_SIZE 0x0040
108
109#define CYPRESS_SMC_UCODE_START 0x0100
110#define CYPRESS_SMC_UCODE_SIZE 0x61f7
111#define CYPRESS_SMC_INT_VECTOR_START 0xffc0
112#define CYPRESS_SMC_INT_VECTOR_SIZE 0x0040
113
6596afd4
AD
114#define BARTS_SMC_UCODE_START 0x0100
115#define BARTS_SMC_UCODE_SIZE 0x6107
116#define BARTS_SMC_INT_VECTOR_START 0xffc0
117#define BARTS_SMC_INT_VECTOR_SIZE 0x0040
118
119#define TURKS_SMC_UCODE_START 0x0100
120#define TURKS_SMC_UCODE_SIZE 0x605b
121#define TURKS_SMC_INT_VECTOR_START 0xffc0
122#define TURKS_SMC_INT_VECTOR_SIZE 0x0040
123
124#define CAICOS_SMC_UCODE_START 0x0100
125#define CAICOS_SMC_UCODE_SIZE 0x5fbd
126#define CAICOS_SMC_INT_VECTOR_START 0xffc0
127#define CAICOS_SMC_INT_VECTOR_SIZE 0x0040
128
69e0b57a
AD
129#define CAYMAN_SMC_UCODE_START 0x0100
130#define CAYMAN_SMC_UCODE_SIZE 0x79ec
131#define CAYMAN_SMC_INT_VECTOR_START 0xffc0
132#define CAYMAN_SMC_INT_VECTOR_SIZE 0x0040
133
a9e61410
AD
134#define TAHITI_SMC_UCODE_START 0x10000
135#define TAHITI_SMC_UCODE_SIZE 0xf458
136
137#define PITCAIRN_SMC_UCODE_START 0x10000
138#define PITCAIRN_SMC_UCODE_SIZE 0xe9f4
139
140#define VERDE_SMC_UCODE_START 0x10000
141#define VERDE_SMC_UCODE_SIZE 0xebe4
142
143#define OLAND_SMC_UCODE_START 0x10000
144#define OLAND_SMC_UCODE_SIZE 0xe7b4
145
146#define HAINAN_SMC_UCODE_START 0x10000
147#define HAINAN_SMC_UCODE_SIZE 0xe67C
148
cc8dbbb4
AD
149#define BONAIRE_SMC_UCODE_START 0x20000
150#define BONAIRE_SMC_UCODE_SIZE 0x1FDEC
151
d4775655
AD
152#define HAWAII_SMC_UCODE_START 0x20000
153#define HAWAII_SMC_UCODE_SIZE 0x1FDEC
154
138e4e16 155#endif
This page took 0.084524 seconds and 5 git commands to generate.