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