11.1Sriastrad/*	$NetBSD: atom-names.h,v 1.4 2021/12/18 23:45:08 riastradh Exp $	*/
21.1Sriastrad
31.1Sriastrad/*
41.1Sriastrad * Copyright 2008 Advanced Micro Devices, Inc.
51.1Sriastrad *
61.1Sriastrad * Permission is hereby granted, free of charge, to any person obtaining a
71.1Sriastrad * copy of this software and associated documentation files (the "Software"),
81.1Sriastrad * to deal in the Software without restriction, including without limitation
91.1Sriastrad * the rights to use, copy, modify, merge, publish, distribute, sublicense,
101.1Sriastrad * and/or sell copies of the Software, and to permit persons to whom the
111.1Sriastrad * Software is furnished to do so, subject to the following conditions:
121.1Sriastrad *
131.1Sriastrad * The above copyright notice and this permission notice shall be included in
141.1Sriastrad * all copies or substantial portions of the Software.
151.1Sriastrad *
161.1Sriastrad * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
171.1Sriastrad * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
181.1Sriastrad * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
191.1Sriastrad * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
201.1Sriastrad * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
211.1Sriastrad * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
221.1Sriastrad * OTHER DEALINGS IN THE SOFTWARE.
231.1Sriastrad *
241.1Sriastrad * Author: Stanislaw Skowronek
251.1Sriastrad */
261.1Sriastrad
271.1Sriastrad#ifndef ATOM_NAMES_H
281.1Sriastrad#define ATOM_NAMES_H
291.1Sriastrad
301.1Sriastrad#include "atom.h"
311.1Sriastrad
321.1Sriastrad#ifdef ATOM_DEBUG
331.1Sriastrad
341.1Sriastrad#define ATOM_OP_NAMES_CNT 123
351.3Sriastradstatic const char *const atom_op_names[ATOM_OP_NAMES_CNT] = {
361.1Sriastrad"RESERVED", "MOVE_REG", "MOVE_PS", "MOVE_WS", "MOVE_FB", "MOVE_PLL",
371.1Sriastrad"MOVE_MC", "AND_REG", "AND_PS", "AND_WS", "AND_FB", "AND_PLL", "AND_MC",
381.1Sriastrad"OR_REG", "OR_PS", "OR_WS", "OR_FB", "OR_PLL", "OR_MC", "SHIFT_LEFT_REG",
391.1Sriastrad"SHIFT_LEFT_PS", "SHIFT_LEFT_WS", "SHIFT_LEFT_FB", "SHIFT_LEFT_PLL",
401.1Sriastrad"SHIFT_LEFT_MC", "SHIFT_RIGHT_REG", "SHIFT_RIGHT_PS", "SHIFT_RIGHT_WS",
411.1Sriastrad"SHIFT_RIGHT_FB", "SHIFT_RIGHT_PLL", "SHIFT_RIGHT_MC", "MUL_REG",
421.1Sriastrad"MUL_PS", "MUL_WS", "MUL_FB", "MUL_PLL", "MUL_MC", "DIV_REG", "DIV_PS",
431.1Sriastrad"DIV_WS", "DIV_FB", "DIV_PLL", "DIV_MC", "ADD_REG", "ADD_PS", "ADD_WS",
441.1Sriastrad"ADD_FB", "ADD_PLL", "ADD_MC", "SUB_REG", "SUB_PS", "SUB_WS", "SUB_FB",
451.1Sriastrad"SUB_PLL", "SUB_MC", "SET_ATI_PORT", "SET_PCI_PORT", "SET_SYS_IO_PORT",
461.1Sriastrad"SET_REG_BLOCK", "SET_FB_BASE", "COMPARE_REG", "COMPARE_PS",
471.1Sriastrad"COMPARE_WS", "COMPARE_FB", "COMPARE_PLL", "COMPARE_MC", "SWITCH",
481.1Sriastrad"JUMP", "JUMP_EQUAL", "JUMP_BELOW", "JUMP_ABOVE", "JUMP_BELOW_OR_EQUAL",
491.1Sriastrad"JUMP_ABOVE_OR_EQUAL", "JUMP_NOT_EQUAL", "TEST_REG", "TEST_PS", "TEST_WS",
501.1Sriastrad"TEST_FB", "TEST_PLL", "TEST_MC", "DELAY_MILLISEC", "DELAY_MICROSEC",
511.1Sriastrad"CALL_TABLE", "REPEAT", "CLEAR_REG", "CLEAR_PS", "CLEAR_WS", "CLEAR_FB",
521.1Sriastrad"CLEAR_PLL", "CLEAR_MC", "NOP", "EOT", "MASK_REG", "MASK_PS", "MASK_WS",
531.1Sriastrad"MASK_FB", "MASK_PLL", "MASK_MC", "POST_CARD", "BEEP", "SAVE_REG",
541.1Sriastrad"RESTORE_REG", "SET_DATA_BLOCK", "XOR_REG", "XOR_PS", "XOR_WS", "XOR_FB",
551.1Sriastrad"XOR_PLL", "XOR_MC", "SHL_REG", "SHL_PS", "SHL_WS", "SHL_FB", "SHL_PLL",
561.1Sriastrad"SHL_MC", "SHR_REG", "SHR_PS", "SHR_WS", "SHR_FB", "SHR_PLL", "SHR_MC",
571.1Sriastrad"DEBUG", "CTB_DS",
581.1Sriastrad};
591.1Sriastrad
601.1Sriastrad#define ATOM_TABLE_NAMES_CNT 74
611.3Sriastradstatic const char *const atom_table_names[ATOM_TABLE_NAMES_CNT] = {
621.1Sriastrad"ASIC_Init", "GetDisplaySurfaceSize", "ASIC_RegistersInit",
631.1Sriastrad"VRAM_BlockVenderDetection", "SetClocksRatio", "MemoryControllerInit",
641.1Sriastrad"GPIO_PinInit", "MemoryParamAdjust", "DVOEncoderControl",
651.1Sriastrad"GPIOPinControl", "SetEngineClock", "SetMemoryClock", "SetPixelClock",
661.1Sriastrad"DynamicClockGating", "ResetMemoryDLL", "ResetMemoryDevice",
671.1Sriastrad"MemoryPLLInit", "EnableMemorySelfRefresh", "AdjustMemoryController",
681.1Sriastrad"EnableASIC_StaticPwrMgt", "ASIC_StaticPwrMgtStatusChange",
691.1Sriastrad"DAC_LoadDetection", "TMDS2EncoderControl", "LCD1OutputControl",
701.1Sriastrad"DAC1EncoderControl", "DAC2EncoderControl", "DVOOutputControl",
711.1Sriastrad"CV1OutputControl", "SetCRTC_DPM_State", "TVEncoderControl",
721.1Sriastrad"TMDS1EncoderControl", "LVDSEncoderControl", "TV1OutputControl",
731.1Sriastrad"EnableScaler", "BlankCRTC", "EnableCRTC", "GetPixelClock",
741.1Sriastrad"EnableVGA_Render", "EnableVGA_Access", "SetCRTC_Timing",
751.1Sriastrad"SetCRTC_OverScan", "SetCRTC_Replication", "SelectCRTC_Source",
761.1Sriastrad"EnableGraphSurfaces", "UpdateCRTC_DoubleBufferRegisters",
771.1Sriastrad"LUT_AutoFill", "EnableHW_IconCursor", "GetMemoryClock",
781.1Sriastrad"GetEngineClock", "SetCRTC_UsingDTDTiming", "TVBootUpStdPinDetection",
791.1Sriastrad"DFP2OutputControl", "VRAM_BlockDetectionByStrap", "MemoryCleanUp",
801.1Sriastrad"ReadEDIDFromHWAssistedI2C", "WriteOneByteToHWAssistedI2C",
811.1Sriastrad"ReadHWAssistedI2CStatus", "SpeedFanControl", "PowerConnectorDetection",
821.1Sriastrad"MC_Synchronization", "ComputeMemoryEnginePLL", "MemoryRefreshConversion",
831.1Sriastrad"VRAM_GetCurrentInfoBlock", "DynamicMemorySettings", "MemoryTraining",
841.1Sriastrad"EnableLVDS_SS", "DFP1OutputControl", "SetVoltage", "CRT1OutputControl",
851.1Sriastrad"CRT2OutputControl", "SetupHWAssistedI2CStatus", "ClockSource",
861.1Sriastrad"MemoryDeviceInit", "EnableYUV",
871.1Sriastrad};
881.1Sriastrad
891.1Sriastrad#define ATOM_IO_NAMES_CNT 5
901.3Sriastradstatic const char *const atom_io_names[ATOM_IO_NAMES_CNT] = {
911.1Sriastrad"MM", "PLL", "MC", "PCIE", "PCIE PORT",
921.1Sriastrad};
931.1Sriastrad
941.1Sriastrad#else
951.1Sriastrad
961.1Sriastrad#define ATOM_OP_NAMES_CNT 0
971.1Sriastrad#define ATOM_TABLE_NAMES_CNT 0
981.1Sriastrad#define ATOM_IO_NAMES_CNT 0
991.1Sriastrad
1001.1Sriastrad#endif
1011.1Sriastrad
1021.1Sriastrad#endif
103