1254885Sdumbbell/* 2254885Sdumbbell * Copyright 2008 Advanced Micro Devices, Inc. 3254885Sdumbbell * 4254885Sdumbbell * Permission is hereby granted, free of charge, to any person obtaining a 5254885Sdumbbell * copy of this software and associated documentation files (the "Software"), 6254885Sdumbbell * to deal in the Software without restriction, including without limitation 7254885Sdumbbell * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8254885Sdumbbell * and/or sell copies of the Software, and to permit persons to whom the 9254885Sdumbbell * Software is furnished to do so, subject to the following conditions: 10254885Sdumbbell * 11254885Sdumbbell * The above copyright notice and this permission notice shall be included in 12254885Sdumbbell * all copies or substantial portions of the Software. 13254885Sdumbbell * 14254885Sdumbbell * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15254885Sdumbbell * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16254885Sdumbbell * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17254885Sdumbbell * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 18254885Sdumbbell * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19254885Sdumbbell * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20254885Sdumbbell * OTHER DEALINGS IN THE SOFTWARE. 21254885Sdumbbell * 22254885Sdumbbell * Author: Stanislaw Skowronek 23254885Sdumbbell */ 24254885Sdumbbell 25254885Sdumbbell#ifndef ATOM_NAMES_H 26254885Sdumbbell#define ATOM_NAMES_H 27254885Sdumbbell 28254885Sdumbbell#include <sys/cdefs.h> 29254885Sdumbbell__FBSDID("$FreeBSD: releng/11.0/sys/dev/drm2/radeon/atom-names.h 254885 2013-08-25 19:37:15Z dumbbell $"); 30254885Sdumbbell 31254885Sdumbbell#include "atom.h" 32254885Sdumbbell 33254885Sdumbbell#ifdef ATOM_DEBUG 34254885Sdumbbell 35254885Sdumbbell#define ATOM_OP_NAMES_CNT 123 36254885Sdumbbellstatic char *atom_op_names[ATOM_OP_NAMES_CNT] = { 37254885Sdumbbell"RESERVED", "MOVE_REG", "MOVE_PS", "MOVE_WS", "MOVE_FB", "MOVE_PLL", 38254885Sdumbbell"MOVE_MC", "AND_REG", "AND_PS", "AND_WS", "AND_FB", "AND_PLL", "AND_MC", 39254885Sdumbbell"OR_REG", "OR_PS", "OR_WS", "OR_FB", "OR_PLL", "OR_MC", "SHIFT_LEFT_REG", 40254885Sdumbbell"SHIFT_LEFT_PS", "SHIFT_LEFT_WS", "SHIFT_LEFT_FB", "SHIFT_LEFT_PLL", 41254885Sdumbbell"SHIFT_LEFT_MC", "SHIFT_RIGHT_REG", "SHIFT_RIGHT_PS", "SHIFT_RIGHT_WS", 42254885Sdumbbell"SHIFT_RIGHT_FB", "SHIFT_RIGHT_PLL", "SHIFT_RIGHT_MC", "MUL_REG", 43254885Sdumbbell"MUL_PS", "MUL_WS", "MUL_FB", "MUL_PLL", "MUL_MC", "DIV_REG", "DIV_PS", 44254885Sdumbbell"DIV_WS", "DIV_FB", "DIV_PLL", "DIV_MC", "ADD_REG", "ADD_PS", "ADD_WS", 45254885Sdumbbell"ADD_FB", "ADD_PLL", "ADD_MC", "SUB_REG", "SUB_PS", "SUB_WS", "SUB_FB", 46254885Sdumbbell"SUB_PLL", "SUB_MC", "SET_ATI_PORT", "SET_PCI_PORT", "SET_SYS_IO_PORT", 47254885Sdumbbell"SET_REG_BLOCK", "SET_FB_BASE", "COMPARE_REG", "COMPARE_PS", 48254885Sdumbbell"COMPARE_WS", "COMPARE_FB", "COMPARE_PLL", "COMPARE_MC", "SWITCH", 49254885Sdumbbell"JUMP", "JUMP_EQUAL", "JUMP_BELOW", "JUMP_ABOVE", "JUMP_BELOW_OR_EQUAL", 50254885Sdumbbell"JUMP_ABOVE_OR_EQUAL", "JUMP_NOT_EQUAL", "TEST_REG", "TEST_PS", "TEST_WS", 51254885Sdumbbell"TEST_FB", "TEST_PLL", "TEST_MC", "DELAY_MILLISEC", "DELAY_MICROSEC", 52254885Sdumbbell"CALL_TABLE", "REPEAT", "CLEAR_REG", "CLEAR_PS", "CLEAR_WS", "CLEAR_FB", 53254885Sdumbbell"CLEAR_PLL", "CLEAR_MC", "NOP", "EOT", "MASK_REG", "MASK_PS", "MASK_WS", 54254885Sdumbbell"MASK_FB", "MASK_PLL", "MASK_MC", "POST_CARD", "BEEP", "SAVE_REG", 55254885Sdumbbell"RESTORE_REG", "SET_DATA_BLOCK", "XOR_REG", "XOR_PS", "XOR_WS", "XOR_FB", 56254885Sdumbbell"XOR_PLL", "XOR_MC", "SHL_REG", "SHL_PS", "SHL_WS", "SHL_FB", "SHL_PLL", 57254885Sdumbbell"SHL_MC", "SHR_REG", "SHR_PS", "SHR_WS", "SHR_FB", "SHR_PLL", "SHR_MC", 58254885Sdumbbell"DEBUG", "CTB_DS", 59254885Sdumbbell}; 60254885Sdumbbell 61254885Sdumbbell#define ATOM_TABLE_NAMES_CNT 74 62254885Sdumbbellstatic char *atom_table_names[ATOM_TABLE_NAMES_CNT] = { 63254885Sdumbbell"ASIC_Init", "GetDisplaySurfaceSize", "ASIC_RegistersInit", 64254885Sdumbbell"VRAM_BlockVenderDetection", "SetClocksRatio", "MemoryControllerInit", 65254885Sdumbbell"GPIO_PinInit", "MemoryParamAdjust", "DVOEncoderControl", 66254885Sdumbbell"GPIOPinControl", "SetEngineClock", "SetMemoryClock", "SetPixelClock", 67254885Sdumbbell"DynamicClockGating", "ResetMemoryDLL", "ResetMemoryDevice", 68254885Sdumbbell"MemoryPLLInit", "EnableMemorySelfRefresh", "AdjustMemoryController", 69254885Sdumbbell"EnableASIC_StaticPwrMgt", "ASIC_StaticPwrMgtStatusChange", 70254885Sdumbbell"DAC_LoadDetection", "TMDS2EncoderControl", "LCD1OutputControl", 71254885Sdumbbell"DAC1EncoderControl", "DAC2EncoderControl", "DVOOutputControl", 72254885Sdumbbell"CV1OutputControl", "SetCRTC_DPM_State", "TVEncoderControl", 73254885Sdumbbell"TMDS1EncoderControl", "LVDSEncoderControl", "TV1OutputControl", 74254885Sdumbbell"EnableScaler", "BlankCRTC", "EnableCRTC", "GetPixelClock", 75254885Sdumbbell"EnableVGA_Render", "EnableVGA_Access", "SetCRTC_Timing", 76254885Sdumbbell"SetCRTC_OverScan", "SetCRTC_Replication", "SelectCRTC_Source", 77254885Sdumbbell"EnableGraphSurfaces", "UpdateCRTC_DoubleBufferRegisters", 78254885Sdumbbell"LUT_AutoFill", "EnableHW_IconCursor", "GetMemoryClock", 79254885Sdumbbell"GetEngineClock", "SetCRTC_UsingDTDTiming", "TVBootUpStdPinDetection", 80254885Sdumbbell"DFP2OutputControl", "VRAM_BlockDetectionByStrap", "MemoryCleanUp", 81254885Sdumbbell"ReadEDIDFromHWAssistedI2C", "WriteOneByteToHWAssistedI2C", 82254885Sdumbbell"ReadHWAssistedI2CStatus", "SpeedFanControl", "PowerConnectorDetection", 83254885Sdumbbell"MC_Synchronization", "ComputeMemoryEnginePLL", "MemoryRefreshConversion", 84254885Sdumbbell"VRAM_GetCurrentInfoBlock", "DynamicMemorySettings", "MemoryTraining", 85254885Sdumbbell"EnableLVDS_SS", "DFP1OutputControl", "SetVoltage", "CRT1OutputControl", 86254885Sdumbbell"CRT2OutputControl", "SetupHWAssistedI2CStatus", "ClockSource", 87254885Sdumbbell"MemoryDeviceInit", "EnableYUV", 88254885Sdumbbell}; 89254885Sdumbbell 90254885Sdumbbell#define ATOM_IO_NAMES_CNT 5 91254885Sdumbbellstatic char *atom_io_names[ATOM_IO_NAMES_CNT] = { 92254885Sdumbbell"MM", "PLL", "MC", "PCIE", "PCIE PORT", 93254885Sdumbbell}; 94254885Sdumbbell 95254885Sdumbbell#else 96254885Sdumbbell 97254885Sdumbbell#define ATOM_OP_NAMES_CNT 0 98254885Sdumbbell#define ATOM_TABLE_NAMES_CNT 0 99254885Sdumbbell#define ATOM_IO_NAMES_CNT 0 100254885Sdumbbell 101254885Sdumbbell#endif 102254885Sdumbbell 103254885Sdumbbell#endif 104