162306a36Sopenharmony_ci/* 262306a36Sopenharmony_ci * Copyright 2008 Advanced Micro Devices, Inc. 362306a36Sopenharmony_ci * 462306a36Sopenharmony_ci * Permission is hereby granted, free of charge, to any person obtaining a 562306a36Sopenharmony_ci * copy of this software and associated documentation files (the "Software"), 662306a36Sopenharmony_ci * to deal in the Software without restriction, including without limitation 762306a36Sopenharmony_ci * the rights to use, copy, modify, merge, publish, distribute, sublicense, 862306a36Sopenharmony_ci * and/or sell copies of the Software, and to permit persons to whom the 962306a36Sopenharmony_ci * Software is furnished to do so, subject to the following conditions: 1062306a36Sopenharmony_ci * 1162306a36Sopenharmony_ci * The above copyright notice and this permission notice shall be included in 1262306a36Sopenharmony_ci * all copies or substantial portions of the Software. 1362306a36Sopenharmony_ci * 1462306a36Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1562306a36Sopenharmony_ci * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1662306a36Sopenharmony_ci * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1762306a36Sopenharmony_ci * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 1862306a36Sopenharmony_ci * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 1962306a36Sopenharmony_ci * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 2062306a36Sopenharmony_ci * OTHER DEALINGS IN THE SOFTWARE. 2162306a36Sopenharmony_ci * 2262306a36Sopenharmony_ci * Author: Stanislaw Skowronek 2362306a36Sopenharmony_ci */ 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ci#ifndef ATOM_NAMES_H 2662306a36Sopenharmony_ci#define ATOM_NAMES_H 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_ci#include "atom.h" 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_ci#ifdef ATOM_DEBUG 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_ci#define ATOM_OP_NAMES_CNT 123 3362306a36Sopenharmony_cistatic char *atom_op_names[ATOM_OP_NAMES_CNT] = { 3462306a36Sopenharmony_ci"RESERVED", "MOVE_REG", "MOVE_PS", "MOVE_WS", "MOVE_FB", "MOVE_PLL", 3562306a36Sopenharmony_ci"MOVE_MC", "AND_REG", "AND_PS", "AND_WS", "AND_FB", "AND_PLL", "AND_MC", 3662306a36Sopenharmony_ci"OR_REG", "OR_PS", "OR_WS", "OR_FB", "OR_PLL", "OR_MC", "SHIFT_LEFT_REG", 3762306a36Sopenharmony_ci"SHIFT_LEFT_PS", "SHIFT_LEFT_WS", "SHIFT_LEFT_FB", "SHIFT_LEFT_PLL", 3862306a36Sopenharmony_ci"SHIFT_LEFT_MC", "SHIFT_RIGHT_REG", "SHIFT_RIGHT_PS", "SHIFT_RIGHT_WS", 3962306a36Sopenharmony_ci"SHIFT_RIGHT_FB", "SHIFT_RIGHT_PLL", "SHIFT_RIGHT_MC", "MUL_REG", 4062306a36Sopenharmony_ci"MUL_PS", "MUL_WS", "MUL_FB", "MUL_PLL", "MUL_MC", "DIV_REG", "DIV_PS", 4162306a36Sopenharmony_ci"DIV_WS", "DIV_FB", "DIV_PLL", "DIV_MC", "ADD_REG", "ADD_PS", "ADD_WS", 4262306a36Sopenharmony_ci"ADD_FB", "ADD_PLL", "ADD_MC", "SUB_REG", "SUB_PS", "SUB_WS", "SUB_FB", 4362306a36Sopenharmony_ci"SUB_PLL", "SUB_MC", "SET_ATI_PORT", "SET_PCI_PORT", "SET_SYS_IO_PORT", 4462306a36Sopenharmony_ci"SET_REG_BLOCK", "SET_FB_BASE", "COMPARE_REG", "COMPARE_PS", 4562306a36Sopenharmony_ci"COMPARE_WS", "COMPARE_FB", "COMPARE_PLL", "COMPARE_MC", "SWITCH", 4662306a36Sopenharmony_ci"JUMP", "JUMP_EQUAL", "JUMP_BELOW", "JUMP_ABOVE", "JUMP_BELOW_OR_EQUAL", 4762306a36Sopenharmony_ci"JUMP_ABOVE_OR_EQUAL", "JUMP_NOT_EQUAL", "TEST_REG", "TEST_PS", "TEST_WS", 4862306a36Sopenharmony_ci"TEST_FB", "TEST_PLL", "TEST_MC", "DELAY_MILLISEC", "DELAY_MICROSEC", 4962306a36Sopenharmony_ci"CALL_TABLE", "REPEAT", "CLEAR_REG", "CLEAR_PS", "CLEAR_WS", "CLEAR_FB", 5062306a36Sopenharmony_ci"CLEAR_PLL", "CLEAR_MC", "NOP", "EOT", "MASK_REG", "MASK_PS", "MASK_WS", 5162306a36Sopenharmony_ci"MASK_FB", "MASK_PLL", "MASK_MC", "POST_CARD", "BEEP", "SAVE_REG", 5262306a36Sopenharmony_ci"RESTORE_REG", "SET_DATA_BLOCK", "XOR_REG", "XOR_PS", "XOR_WS", "XOR_FB", 5362306a36Sopenharmony_ci"XOR_PLL", "XOR_MC", "SHL_REG", "SHL_PS", "SHL_WS", "SHL_FB", "SHL_PLL", 5462306a36Sopenharmony_ci"SHL_MC", "SHR_REG", "SHR_PS", "SHR_WS", "SHR_FB", "SHR_PLL", "SHR_MC", 5562306a36Sopenharmony_ci"DEBUG", "CTB_DS", 5662306a36Sopenharmony_ci}; 5762306a36Sopenharmony_ci 5862306a36Sopenharmony_ci#define ATOM_TABLE_NAMES_CNT 74 5962306a36Sopenharmony_cistatic char *atom_table_names[ATOM_TABLE_NAMES_CNT] = { 6062306a36Sopenharmony_ci"ASIC_Init", "GetDisplaySurfaceSize", "ASIC_RegistersInit", 6162306a36Sopenharmony_ci"VRAM_BlockVenderDetection", "SetClocksRatio", "MemoryControllerInit", 6262306a36Sopenharmony_ci"GPIO_PinInit", "MemoryParamAdjust", "DVOEncoderControl", 6362306a36Sopenharmony_ci"GPIOPinControl", "SetEngineClock", "SetMemoryClock", "SetPixelClock", 6462306a36Sopenharmony_ci"DynamicClockGating", "ResetMemoryDLL", "ResetMemoryDevice", 6562306a36Sopenharmony_ci"MemoryPLLInit", "EnableMemorySelfRefresh", "AdjustMemoryController", 6662306a36Sopenharmony_ci"EnableASIC_StaticPwrMgt", "ASIC_StaticPwrMgtStatusChange", 6762306a36Sopenharmony_ci"DAC_LoadDetection", "TMDS2EncoderControl", "LCD1OutputControl", 6862306a36Sopenharmony_ci"DAC1EncoderControl", "DAC2EncoderControl", "DVOOutputControl", 6962306a36Sopenharmony_ci"CV1OutputControl", "SetCRTC_DPM_State", "TVEncoderControl", 7062306a36Sopenharmony_ci"TMDS1EncoderControl", "LVDSEncoderControl", "TV1OutputControl", 7162306a36Sopenharmony_ci"EnableScaler", "BlankCRTC", "EnableCRTC", "GetPixelClock", 7262306a36Sopenharmony_ci"EnableVGA_Render", "EnableVGA_Access", "SetCRTC_Timing", 7362306a36Sopenharmony_ci"SetCRTC_OverScan", "SetCRTC_Replication", "SelectCRTC_Source", 7462306a36Sopenharmony_ci"EnableGraphSurfaces", "UpdateCRTC_DoubleBufferRegisters", 7562306a36Sopenharmony_ci"LUT_AutoFill", "EnableHW_IconCursor", "GetMemoryClock", 7662306a36Sopenharmony_ci"GetEngineClock", "SetCRTC_UsingDTDTiming", "TVBootUpStdPinDetection", 7762306a36Sopenharmony_ci"DFP2OutputControl", "VRAM_BlockDetectionByStrap", "MemoryCleanUp", 7862306a36Sopenharmony_ci"ReadEDIDFromHWAssistedI2C", "WriteOneByteToHWAssistedI2C", 7962306a36Sopenharmony_ci"ReadHWAssistedI2CStatus", "SpeedFanControl", "PowerConnectorDetection", 8062306a36Sopenharmony_ci"MC_Synchronization", "ComputeMemoryEnginePLL", "MemoryRefreshConversion", 8162306a36Sopenharmony_ci"VRAM_GetCurrentInfoBlock", "DynamicMemorySettings", "MemoryTraining", 8262306a36Sopenharmony_ci"EnableLVDS_SS", "DFP1OutputControl", "SetVoltage", "CRT1OutputControl", 8362306a36Sopenharmony_ci"CRT2OutputControl", "SetupHWAssistedI2CStatus", "ClockSource", 8462306a36Sopenharmony_ci"MemoryDeviceInit", "EnableYUV", 8562306a36Sopenharmony_ci}; 8662306a36Sopenharmony_ci 8762306a36Sopenharmony_ci#define ATOM_IO_NAMES_CNT 5 8862306a36Sopenharmony_cistatic char *atom_io_names[ATOM_IO_NAMES_CNT] = { 8962306a36Sopenharmony_ci"MM", "PLL", "MC", "PCIE", "PCIE PORT", 9062306a36Sopenharmony_ci}; 9162306a36Sopenharmony_ci 9262306a36Sopenharmony_ci#else 9362306a36Sopenharmony_ci 9462306a36Sopenharmony_ci#define ATOM_OP_NAMES_CNT 0 9562306a36Sopenharmony_ci#define ATOM_TABLE_NAMES_CNT 0 9662306a36Sopenharmony_ci#define ATOM_IO_NAMES_CNT 0 9762306a36Sopenharmony_ci 9862306a36Sopenharmony_ci#endif 9962306a36Sopenharmony_ci 10062306a36Sopenharmony_ci#endif 101