atom-names.h 4.6 KB

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