18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Copyright 2008 Advanced Micro Devices, Inc. 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * Permission is hereby granted, free of charge, to any person obtaining a 58c2ecf20Sopenharmony_ci * copy of this software and associated documentation files (the "Software"), 68c2ecf20Sopenharmony_ci * to deal in the Software without restriction, including without limitation 78c2ecf20Sopenharmony_ci * the rights to use, copy, modify, merge, publish, distribute, sublicense, 88c2ecf20Sopenharmony_ci * and/or sell copies of the Software, and to permit persons to whom the 98c2ecf20Sopenharmony_ci * Software is furnished to do so, subject to the following conditions: 108c2ecf20Sopenharmony_ci * 118c2ecf20Sopenharmony_ci * The above copyright notice and this permission notice shall be included in 128c2ecf20Sopenharmony_ci * all copies or substantial portions of the Software. 138c2ecf20Sopenharmony_ci * 148c2ecf20Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 158c2ecf20Sopenharmony_ci * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 168c2ecf20Sopenharmony_ci * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 178c2ecf20Sopenharmony_ci * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 188c2ecf20Sopenharmony_ci * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 198c2ecf20Sopenharmony_ci * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 208c2ecf20Sopenharmony_ci * OTHER DEALINGS IN THE SOFTWARE. 218c2ecf20Sopenharmony_ci * 228c2ecf20Sopenharmony_ci * Author: Stanislaw Skowronek 238c2ecf20Sopenharmony_ci */ 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci#ifndef ATOM_NAMES_H 268c2ecf20Sopenharmony_ci#define ATOM_NAMES_H 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci#include "atom.h" 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci#ifdef ATOM_DEBUG 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci#define ATOM_OP_NAMES_CNT 123 338c2ecf20Sopenharmony_cistatic char *atom_op_names[ATOM_OP_NAMES_CNT] = { 348c2ecf20Sopenharmony_ci"RESERVED", "MOVE_REG", "MOVE_PS", "MOVE_WS", "MOVE_FB", "MOVE_PLL", 358c2ecf20Sopenharmony_ci"MOVE_MC", "AND_REG", "AND_PS", "AND_WS", "AND_FB", "AND_PLL", "AND_MC", 368c2ecf20Sopenharmony_ci"OR_REG", "OR_PS", "OR_WS", "OR_FB", "OR_PLL", "OR_MC", "SHIFT_LEFT_REG", 378c2ecf20Sopenharmony_ci"SHIFT_LEFT_PS", "SHIFT_LEFT_WS", "SHIFT_LEFT_FB", "SHIFT_LEFT_PLL", 388c2ecf20Sopenharmony_ci"SHIFT_LEFT_MC", "SHIFT_RIGHT_REG", "SHIFT_RIGHT_PS", "SHIFT_RIGHT_WS", 398c2ecf20Sopenharmony_ci"SHIFT_RIGHT_FB", "SHIFT_RIGHT_PLL", "SHIFT_RIGHT_MC", "MUL_REG", 408c2ecf20Sopenharmony_ci"MUL_PS", "MUL_WS", "MUL_FB", "MUL_PLL", "MUL_MC", "DIV_REG", "DIV_PS", 418c2ecf20Sopenharmony_ci"DIV_WS", "DIV_FB", "DIV_PLL", "DIV_MC", "ADD_REG", "ADD_PS", "ADD_WS", 428c2ecf20Sopenharmony_ci"ADD_FB", "ADD_PLL", "ADD_MC", "SUB_REG", "SUB_PS", "SUB_WS", "SUB_FB", 438c2ecf20Sopenharmony_ci"SUB_PLL", "SUB_MC", "SET_ATI_PORT", "SET_PCI_PORT", "SET_SYS_IO_PORT", 448c2ecf20Sopenharmony_ci"SET_REG_BLOCK", "SET_FB_BASE", "COMPARE_REG", "COMPARE_PS", 458c2ecf20Sopenharmony_ci"COMPARE_WS", "COMPARE_FB", "COMPARE_PLL", "COMPARE_MC", "SWITCH", 468c2ecf20Sopenharmony_ci"JUMP", "JUMP_EQUAL", "JUMP_BELOW", "JUMP_ABOVE", "JUMP_BELOW_OR_EQUAL", 478c2ecf20Sopenharmony_ci"JUMP_ABOVE_OR_EQUAL", "JUMP_NOT_EQUAL", "TEST_REG", "TEST_PS", "TEST_WS", 488c2ecf20Sopenharmony_ci"TEST_FB", "TEST_PLL", "TEST_MC", "DELAY_MILLISEC", "DELAY_MICROSEC", 498c2ecf20Sopenharmony_ci"CALL_TABLE", "REPEAT", "CLEAR_REG", "CLEAR_PS", "CLEAR_WS", "CLEAR_FB", 508c2ecf20Sopenharmony_ci"CLEAR_PLL", "CLEAR_MC", "NOP", "EOT", "MASK_REG", "MASK_PS", "MASK_WS", 518c2ecf20Sopenharmony_ci"MASK_FB", "MASK_PLL", "MASK_MC", "POST_CARD", "BEEP", "SAVE_REG", 528c2ecf20Sopenharmony_ci"RESTORE_REG", "SET_DATA_BLOCK", "XOR_REG", "XOR_PS", "XOR_WS", "XOR_FB", 538c2ecf20Sopenharmony_ci"XOR_PLL", "XOR_MC", "SHL_REG", "SHL_PS", "SHL_WS", "SHL_FB", "SHL_PLL", 548c2ecf20Sopenharmony_ci"SHL_MC", "SHR_REG", "SHR_PS", "SHR_WS", "SHR_FB", "SHR_PLL", "SHR_MC", 558c2ecf20Sopenharmony_ci"DEBUG", "CTB_DS", 568c2ecf20Sopenharmony_ci}; 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_ci#define ATOM_TABLE_NAMES_CNT 74 598c2ecf20Sopenharmony_cistatic char *atom_table_names[ATOM_TABLE_NAMES_CNT] = { 608c2ecf20Sopenharmony_ci"ASIC_Init", "GetDisplaySurfaceSize", "ASIC_RegistersInit", 618c2ecf20Sopenharmony_ci"VRAM_BlockVenderDetection", "SetClocksRatio", "MemoryControllerInit", 628c2ecf20Sopenharmony_ci"GPIO_PinInit", "MemoryParamAdjust", "DVOEncoderControl", 638c2ecf20Sopenharmony_ci"GPIOPinControl", "SetEngineClock", "SetMemoryClock", "SetPixelClock", 648c2ecf20Sopenharmony_ci"DynamicClockGating", "ResetMemoryDLL", "ResetMemoryDevice", 658c2ecf20Sopenharmony_ci"MemoryPLLInit", "EnableMemorySelfRefresh", "AdjustMemoryController", 668c2ecf20Sopenharmony_ci"EnableASIC_StaticPwrMgt", "ASIC_StaticPwrMgtStatusChange", 678c2ecf20Sopenharmony_ci"DAC_LoadDetection", "TMDS2EncoderControl", "LCD1OutputControl", 688c2ecf20Sopenharmony_ci"DAC1EncoderControl", "DAC2EncoderControl", "DVOOutputControl", 698c2ecf20Sopenharmony_ci"CV1OutputControl", "SetCRTC_DPM_State", "TVEncoderControl", 708c2ecf20Sopenharmony_ci"TMDS1EncoderControl", "LVDSEncoderControl", "TV1OutputControl", 718c2ecf20Sopenharmony_ci"EnableScaler", "BlankCRTC", "EnableCRTC", "GetPixelClock", 728c2ecf20Sopenharmony_ci"EnableVGA_Render", "EnableVGA_Access", "SetCRTC_Timing", 738c2ecf20Sopenharmony_ci"SetCRTC_OverScan", "SetCRTC_Replication", "SelectCRTC_Source", 748c2ecf20Sopenharmony_ci"EnableGraphSurfaces", "UpdateCRTC_DoubleBufferRegisters", 758c2ecf20Sopenharmony_ci"LUT_AutoFill", "EnableHW_IconCursor", "GetMemoryClock", 768c2ecf20Sopenharmony_ci"GetEngineClock", "SetCRTC_UsingDTDTiming", "TVBootUpStdPinDetection", 778c2ecf20Sopenharmony_ci"DFP2OutputControl", "VRAM_BlockDetectionByStrap", "MemoryCleanUp", 788c2ecf20Sopenharmony_ci"ReadEDIDFromHWAssistedI2C", "WriteOneByteToHWAssistedI2C", 798c2ecf20Sopenharmony_ci"ReadHWAssistedI2CStatus", "SpeedFanControl", "PowerConnectorDetection", 808c2ecf20Sopenharmony_ci"MC_Synchronization", "ComputeMemoryEnginePLL", "MemoryRefreshConversion", 818c2ecf20Sopenharmony_ci"VRAM_GetCurrentInfoBlock", "DynamicMemorySettings", "MemoryTraining", 828c2ecf20Sopenharmony_ci"EnableLVDS_SS", "DFP1OutputControl", "SetVoltage", "CRT1OutputControl", 838c2ecf20Sopenharmony_ci"CRT2OutputControl", "SetupHWAssistedI2CStatus", "ClockSource", 848c2ecf20Sopenharmony_ci"MemoryDeviceInit", "EnableYUV", 858c2ecf20Sopenharmony_ci}; 868c2ecf20Sopenharmony_ci 878c2ecf20Sopenharmony_ci#define ATOM_IO_NAMES_CNT 5 888c2ecf20Sopenharmony_cistatic char *atom_io_names[ATOM_IO_NAMES_CNT] = { 898c2ecf20Sopenharmony_ci"MM", "PLL", "MC", "PCIE", "PCIE PORT", 908c2ecf20Sopenharmony_ci}; 918c2ecf20Sopenharmony_ci 928c2ecf20Sopenharmony_ci#else 938c2ecf20Sopenharmony_ci 948c2ecf20Sopenharmony_ci#define ATOM_OP_NAMES_CNT 0 958c2ecf20Sopenharmony_ci#define ATOM_TABLE_NAMES_CNT 0 968c2ecf20Sopenharmony_ci#define ATOM_IO_NAMES_CNT 0 978c2ecf20Sopenharmony_ci 988c2ecf20Sopenharmony_ci#endif 998c2ecf20Sopenharmony_ci 1008c2ecf20Sopenharmony_ci#endif 101