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