xref: /linux/drivers/gpu/drm/radeon/atom-names.h (revision 771fe6b912fca54f03e8a72eb63058b582775362)
1*771fe6b9SJerome Glisse /*
2*771fe6b9SJerome Glisse  * Copyright 2008 Advanced Micro Devices, Inc.
3*771fe6b9SJerome Glisse  *
4*771fe6b9SJerome Glisse  * Permission is hereby granted, free of charge, to any person obtaining a
5*771fe6b9SJerome Glisse  * copy of this software and associated documentation files (the "Software"),
6*771fe6b9SJerome Glisse  * to deal in the Software without restriction, including without limitation
7*771fe6b9SJerome Glisse  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8*771fe6b9SJerome Glisse  * and/or sell copies of the Software, and to permit persons to whom the
9*771fe6b9SJerome Glisse  * Software is furnished to do so, subject to the following conditions:
10*771fe6b9SJerome Glisse  *
11*771fe6b9SJerome Glisse  * The above copyright notice and this permission notice shall be included in
12*771fe6b9SJerome Glisse  * all copies or substantial portions of the Software.
13*771fe6b9SJerome Glisse  *
14*771fe6b9SJerome Glisse  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15*771fe6b9SJerome Glisse  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16*771fe6b9SJerome Glisse  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17*771fe6b9SJerome Glisse  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18*771fe6b9SJerome Glisse  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19*771fe6b9SJerome Glisse  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20*771fe6b9SJerome Glisse  * OTHER DEALINGS IN THE SOFTWARE.
21*771fe6b9SJerome Glisse  *
22*771fe6b9SJerome Glisse  * Author: Stanislaw Skowronek
23*771fe6b9SJerome Glisse  */
24*771fe6b9SJerome Glisse 
25*771fe6b9SJerome Glisse #ifndef ATOM_NAMES_H
26*771fe6b9SJerome Glisse #define ATOM_NAMES_H
27*771fe6b9SJerome Glisse 
28*771fe6b9SJerome Glisse #include "atom.h"
29*771fe6b9SJerome Glisse 
30*771fe6b9SJerome Glisse #ifdef ATOM_DEBUG
31*771fe6b9SJerome Glisse 
32*771fe6b9SJerome Glisse #define ATOM_OP_NAMES_CNT 123
33*771fe6b9SJerome Glisse static char *atom_op_names[ATOM_OP_NAMES_CNT] = {
34*771fe6b9SJerome Glisse "RESERVED", "MOVE_REG", "MOVE_PS", "MOVE_WS", "MOVE_FB", "MOVE_PLL",
35*771fe6b9SJerome Glisse "MOVE_MC", "AND_REG", "AND_PS", "AND_WS", "AND_FB", "AND_PLL", "AND_MC",
36*771fe6b9SJerome Glisse "OR_REG", "OR_PS", "OR_WS", "OR_FB", "OR_PLL", "OR_MC", "SHIFT_LEFT_REG",
37*771fe6b9SJerome Glisse "SHIFT_LEFT_PS", "SHIFT_LEFT_WS", "SHIFT_LEFT_FB", "SHIFT_LEFT_PLL",
38*771fe6b9SJerome Glisse "SHIFT_LEFT_MC", "SHIFT_RIGHT_REG", "SHIFT_RIGHT_PS", "SHIFT_RIGHT_WS",
39*771fe6b9SJerome Glisse "SHIFT_RIGHT_FB", "SHIFT_RIGHT_PLL", "SHIFT_RIGHT_MC", "MUL_REG",
40*771fe6b9SJerome Glisse "MUL_PS", "MUL_WS", "MUL_FB", "MUL_PLL", "MUL_MC", "DIV_REG", "DIV_PS",
41*771fe6b9SJerome Glisse "DIV_WS", "DIV_FB", "DIV_PLL", "DIV_MC", "ADD_REG", "ADD_PS", "ADD_WS",
42*771fe6b9SJerome Glisse "ADD_FB", "ADD_PLL", "ADD_MC", "SUB_REG", "SUB_PS", "SUB_WS", "SUB_FB",
43*771fe6b9SJerome Glisse "SUB_PLL", "SUB_MC", "SET_ATI_PORT", "SET_PCI_PORT", "SET_SYS_IO_PORT",
44*771fe6b9SJerome Glisse "SET_REG_BLOCK", "SET_FB_BASE", "COMPARE_REG", "COMPARE_PS",
45*771fe6b9SJerome Glisse "COMPARE_WS", "COMPARE_FB", "COMPARE_PLL", "COMPARE_MC", "SWITCH",
46*771fe6b9SJerome Glisse "JUMP", "JUMP_EQUAL", "JUMP_BELOW", "JUMP_ABOVE", "JUMP_BELOW_OR_EQUAL",
47*771fe6b9SJerome Glisse "JUMP_ABOVE_OR_EQUAL", "JUMP_NOT_EQUAL", "TEST_REG", "TEST_PS", "TEST_WS",
48*771fe6b9SJerome Glisse "TEST_FB", "TEST_PLL", "TEST_MC", "DELAY_MILLISEC", "DELAY_MICROSEC",
49*771fe6b9SJerome Glisse "CALL_TABLE", "REPEAT", "CLEAR_REG", "CLEAR_PS", "CLEAR_WS", "CLEAR_FB",
50*771fe6b9SJerome Glisse "CLEAR_PLL", "CLEAR_MC", "NOP", "EOT", "MASK_REG", "MASK_PS", "MASK_WS",
51*771fe6b9SJerome Glisse "MASK_FB", "MASK_PLL", "MASK_MC", "POST_CARD", "BEEP", "SAVE_REG",
52*771fe6b9SJerome Glisse "RESTORE_REG", "SET_DATA_BLOCK", "XOR_REG", "XOR_PS", "XOR_WS", "XOR_FB",
53*771fe6b9SJerome Glisse "XOR_PLL", "XOR_MC", "SHL_REG", "SHL_PS", "SHL_WS", "SHL_FB", "SHL_PLL",
54*771fe6b9SJerome Glisse "SHL_MC", "SHR_REG", "SHR_PS", "SHR_WS", "SHR_FB", "SHR_PLL", "SHR_MC",
55*771fe6b9SJerome Glisse "DEBUG", "CTB_DS",
56*771fe6b9SJerome Glisse };
57*771fe6b9SJerome Glisse 
58*771fe6b9SJerome Glisse #define ATOM_TABLE_NAMES_CNT 74
59*771fe6b9SJerome Glisse static char *atom_table_names[ATOM_TABLE_NAMES_CNT] = {
60*771fe6b9SJerome Glisse "ASIC_Init", "GetDisplaySurfaceSize", "ASIC_RegistersInit",
61*771fe6b9SJerome Glisse "VRAM_BlockVenderDetection", "SetClocksRatio", "MemoryControllerInit",
62*771fe6b9SJerome Glisse "GPIO_PinInit", "MemoryParamAdjust", "DVOEncoderControl",
63*771fe6b9SJerome Glisse "GPIOPinControl", "SetEngineClock", "SetMemoryClock", "SetPixelClock",
64*771fe6b9SJerome Glisse "DynamicClockGating", "ResetMemoryDLL", "ResetMemoryDevice",
65*771fe6b9SJerome Glisse "MemoryPLLInit", "EnableMemorySelfRefresh", "AdjustMemoryController",
66*771fe6b9SJerome Glisse "EnableASIC_StaticPwrMgt", "ASIC_StaticPwrMgtStatusChange",
67*771fe6b9SJerome Glisse "DAC_LoadDetection", "TMDS2EncoderControl", "LCD1OutputControl",
68*771fe6b9SJerome Glisse "DAC1EncoderControl", "DAC2EncoderControl", "DVOOutputControl",
69*771fe6b9SJerome Glisse "CV1OutputControl", "SetCRTC_DPM_State", "TVEncoderControl",
70*771fe6b9SJerome Glisse "TMDS1EncoderControl", "LVDSEncoderControl", "TV1OutputControl",
71*771fe6b9SJerome Glisse "EnableScaler", "BlankCRTC", "EnableCRTC", "GetPixelClock",
72*771fe6b9SJerome Glisse "EnableVGA_Render", "EnableVGA_Access", "SetCRTC_Timing",
73*771fe6b9SJerome Glisse "SetCRTC_OverScan", "SetCRTC_Replication", "SelectCRTC_Source",
74*771fe6b9SJerome Glisse "EnableGraphSurfaces", "UpdateCRTC_DoubleBufferRegisters",
75*771fe6b9SJerome Glisse "LUT_AutoFill", "EnableHW_IconCursor", "GetMemoryClock",
76*771fe6b9SJerome Glisse "GetEngineClock", "SetCRTC_UsingDTDTiming", "TVBootUpStdPinDetection",
77*771fe6b9SJerome Glisse "DFP2OutputControl", "VRAM_BlockDetectionByStrap", "MemoryCleanUp",
78*771fe6b9SJerome Glisse "ReadEDIDFromHWAssistedI2C", "WriteOneByteToHWAssistedI2C",
79*771fe6b9SJerome Glisse "ReadHWAssistedI2CStatus", "SpeedFanControl", "PowerConnectorDetection",
80*771fe6b9SJerome Glisse "MC_Synchronization", "ComputeMemoryEnginePLL", "MemoryRefreshConversion",
81*771fe6b9SJerome Glisse "VRAM_GetCurrentInfoBlock", "DynamicMemorySettings", "MemoryTraining",
82*771fe6b9SJerome Glisse "EnableLVDS_SS", "DFP1OutputControl", "SetVoltage", "CRT1OutputControl",
83*771fe6b9SJerome Glisse "CRT2OutputControl", "SetupHWAssistedI2CStatus", "ClockSource",
84*771fe6b9SJerome Glisse "MemoryDeviceInit", "EnableYUV",
85*771fe6b9SJerome Glisse };
86*771fe6b9SJerome Glisse 
87*771fe6b9SJerome Glisse #define ATOM_IO_NAMES_CNT 5
88*771fe6b9SJerome Glisse static char *atom_io_names[ATOM_IO_NAMES_CNT] = {
89*771fe6b9SJerome Glisse "MM", "PLL", "MC", "PCIE", "PCIE PORT",
90*771fe6b9SJerome Glisse };
91*771fe6b9SJerome Glisse 
92*771fe6b9SJerome Glisse #else
93*771fe6b9SJerome Glisse 
94*771fe6b9SJerome Glisse #define ATOM_OP_NAMES_CNT 0
95*771fe6b9SJerome Glisse #define ATOM_TABLE_NAMES_CNT 0
96*771fe6b9SJerome Glisse #define ATOM_IO_NAMES_CNT 0
97*771fe6b9SJerome Glisse 
98*771fe6b9SJerome Glisse #endif
99*771fe6b9SJerome Glisse 
100*771fe6b9SJerome Glisse #endif
101