blob: f4155484b39580cddab4fb14175bc7e3895e34ef [file] [log] [blame]
Alex Deucher138e4e12013-01-11 15:33:13 -05001/*
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
Alex Deuchera0ceada2013-03-27 15:18:04 -040035#define SI_PFP_UCODE_SIZE 2144
36#define SI_PM4_UCODE_SIZE 2144
37#define SI_CE_UCODE_SIZE 2144
Alex Deucher8c68e392013-06-21 15:38:37 -040038#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
Alex Deucher138e4e12013-01-11 15:33:13 -050044
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
Alex Deuchera0ceada2013-03-27 15:18:04 -040051#define SI_RLC_UCODE_SIZE 2048
Alex Deucher8c68e392013-06-21 15:38:37 -040052#define BONAIRE_RLC_UCODE_SIZE 2048
53#define KB_RLC_UCODE_SIZE 2560
54#define KV_RLC_UCODE_SIZE 2560
Alex Deucher138e4e12013-01-11 15:33:13 -050055
56/* MC */
57#define BTC_MC_UCODE_SIZE 6024
58#define CAYMAN_MC_UCODE_SIZE 6037
Alex Deuchera0ceada2013-03-27 15:18:04 -040059#define SI_MC_UCODE_SIZE 7769
Alex Deucher1ebe9282014-04-11 11:21:49 -040060#define TAHITI_MC_UCODE_SIZE 7808
61#define PITCAIRN_MC_UCODE_SIZE 7775
62#define VERDE_MC_UCODE_SIZE 7875
Alex Deuchera0ceada2013-03-27 15:18:04 -040063#define OLAND_MC_UCODE_SIZE 7863
Alex Deucher8c68e392013-06-21 15:38:37 -040064#define CIK_MC_UCODE_SIZE 7866
Alex Deucherd4775652013-08-08 16:06:35 -040065#define HAWAII_MC_UCODE_SIZE 7933
Alex Deucher8c68e392013-06-21 15:38:37 -040066
67/* SDMA */
68#define CIK_SDMA_UCODE_SIZE 1050
69#define CIK_SDMA_UCODE_VERSION 64
Alex Deucher138e4e12013-01-11 15:33:13 -050070
Alex Deucher66229b22013-06-26 00:11:19 -040071/* SMC */
72#define RV770_SMC_UCODE_START 0x0100
73#define RV770_SMC_UCODE_SIZE 0x410d
74#define RV770_SMC_INT_VECTOR_START 0xffc0
75#define RV770_SMC_INT_VECTOR_SIZE 0x0040
76
77#define RV730_SMC_UCODE_START 0x0100
78#define RV730_SMC_UCODE_SIZE 0x412c
79#define RV730_SMC_INT_VECTOR_START 0xffc0
80#define RV730_SMC_INT_VECTOR_SIZE 0x0040
81
82#define RV710_SMC_UCODE_START 0x0100
83#define RV710_SMC_UCODE_SIZE 0x3f1f
84#define RV710_SMC_INT_VECTOR_START 0xffc0
85#define RV710_SMC_INT_VECTOR_SIZE 0x0040
86
87#define RV740_SMC_UCODE_START 0x0100
88#define RV740_SMC_UCODE_SIZE 0x41c5
89#define RV740_SMC_INT_VECTOR_START 0xffc0
90#define RV740_SMC_INT_VECTOR_SIZE 0x0040
91
Alex Deucherdc50ba72013-06-26 00:33:35 -040092#define CEDAR_SMC_UCODE_START 0x0100
93#define CEDAR_SMC_UCODE_SIZE 0x5d50
94#define CEDAR_SMC_INT_VECTOR_START 0xffc0
95#define CEDAR_SMC_INT_VECTOR_SIZE 0x0040
96
97#define REDWOOD_SMC_UCODE_START 0x0100
98#define REDWOOD_SMC_UCODE_SIZE 0x5f0a
99#define REDWOOD_SMC_INT_VECTOR_START 0xffc0
100#define REDWOOD_SMC_INT_VECTOR_SIZE 0x0040
101
102#define JUNIPER_SMC_UCODE_START 0x0100
103#define JUNIPER_SMC_UCODE_SIZE 0x5f1f
104#define JUNIPER_SMC_INT_VECTOR_START 0xffc0
105#define JUNIPER_SMC_INT_VECTOR_SIZE 0x0040
106
107#define CYPRESS_SMC_UCODE_START 0x0100
108#define CYPRESS_SMC_UCODE_SIZE 0x61f7
109#define CYPRESS_SMC_INT_VECTOR_START 0xffc0
110#define CYPRESS_SMC_INT_VECTOR_SIZE 0x0040
111
Alex Deucher6596afd2013-06-26 00:15:24 -0400112#define BARTS_SMC_UCODE_START 0x0100
113#define BARTS_SMC_UCODE_SIZE 0x6107
114#define BARTS_SMC_INT_VECTOR_START 0xffc0
115#define BARTS_SMC_INT_VECTOR_SIZE 0x0040
116
117#define TURKS_SMC_UCODE_START 0x0100
118#define TURKS_SMC_UCODE_SIZE 0x605b
119#define TURKS_SMC_INT_VECTOR_START 0xffc0
120#define TURKS_SMC_INT_VECTOR_SIZE 0x0040
121
122#define CAICOS_SMC_UCODE_START 0x0100
123#define CAICOS_SMC_UCODE_SIZE 0x5fbd
124#define CAICOS_SMC_INT_VECTOR_START 0xffc0
125#define CAICOS_SMC_INT_VECTOR_SIZE 0x0040
126
Alex Deucher69e0b572013-04-12 16:42:42 -0400127#define CAYMAN_SMC_UCODE_START 0x0100
128#define CAYMAN_SMC_UCODE_SIZE 0x79ec
129#define CAYMAN_SMC_INT_VECTOR_START 0xffc0
130#define CAYMAN_SMC_INT_VECTOR_SIZE 0x0040
131
Alex Deuchera9e61412013-06-25 17:56:16 -0400132#define TAHITI_SMC_UCODE_START 0x10000
133#define TAHITI_SMC_UCODE_SIZE 0xf458
134
135#define PITCAIRN_SMC_UCODE_START 0x10000
136#define PITCAIRN_SMC_UCODE_SIZE 0xe9f4
137
138#define VERDE_SMC_UCODE_START 0x10000
139#define VERDE_SMC_UCODE_SIZE 0xebe4
140
141#define OLAND_SMC_UCODE_START 0x10000
142#define OLAND_SMC_UCODE_SIZE 0xe7b4
143
144#define HAINAN_SMC_UCODE_START 0x10000
145#define HAINAN_SMC_UCODE_SIZE 0xe67C
146
Alex Deuchercc8dbbb2013-08-14 01:03:41 -0400147#define BONAIRE_SMC_UCODE_START 0x20000
148#define BONAIRE_SMC_UCODE_SIZE 0x1FDEC
149
Alex Deucherd4775652013-08-08 16:06:35 -0400150#define HAWAII_SMC_UCODE_START 0x20000
151#define HAWAII_SMC_UCODE_SIZE 0x1FDEC
152
Alex Deucher138e4e12013-01-11 15:33:13 -0500153#endif