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