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