cik_reg.h 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * Copyright 2012 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. * Authors: Alex Deucher
  23. */
  24. #ifndef __CIK_REG_H__
  25. #define __CIK_REG_H__
  26. #define CIK_DC_GPIO_HPD_MASK 0x65b0
  27. #define CIK_DC_GPIO_HPD_A 0x65b4
  28. #define CIK_DC_GPIO_HPD_EN 0x65b8
  29. #define CIK_DC_GPIO_HPD_Y 0x65bc
  30. /* CUR blocks at 0x6998, 0x7598, 0x10198, 0x10d98, 0x11998, 0x12598 */
  31. #define CIK_CUR_CONTROL 0x6998
  32. # define CIK_CURSOR_EN (1 << 0)
  33. # define CIK_CURSOR_MODE(x) (((x) & 0x3) << 8)
  34. # define CIK_CURSOR_MONO 0
  35. # define CIK_CURSOR_24_1 1
  36. # define CIK_CURSOR_24_8_PRE_MULT 2
  37. # define CIK_CURSOR_24_8_UNPRE_MULT 3
  38. # define CIK_CURSOR_2X_MAGNIFY (1 << 16)
  39. # define CIK_CURSOR_FORCE_MC_ON (1 << 20)
  40. # define CIK_CURSOR_URGENT_CONTROL(x) (((x) & 0x7) << 24)
  41. # define CIK_CURSOR_URGENT_ALWAYS 0
  42. # define CIK_CURSOR_URGENT_1_8 1
  43. # define CIK_CURSOR_URGENT_1_4 2
  44. # define CIK_CURSOR_URGENT_3_8 3
  45. # define CIK_CURSOR_URGENT_1_2 4
  46. #define CIK_CUR_SURFACE_ADDRESS 0x699c
  47. # define CIK_CUR_SURFACE_ADDRESS_MASK 0xfffff000
  48. #define CIK_CUR_SIZE 0x69a0
  49. #define CIK_CUR_SURFACE_ADDRESS_HIGH 0x69a4
  50. #define CIK_CUR_POSITION 0x69a8
  51. #define CIK_CUR_HOT_SPOT 0x69ac
  52. #define CIK_CUR_COLOR1 0x69b0
  53. #define CIK_CUR_COLOR2 0x69b4
  54. #define CIK_CUR_UPDATE 0x69b8
  55. # define CIK_CURSOR_UPDATE_PENDING (1 << 0)
  56. # define CIK_CURSOR_UPDATE_TAKEN (1 << 1)
  57. # define CIK_CURSOR_UPDATE_LOCK (1 << 16)
  58. # define CIK_CURSOR_DISABLE_MULTIPLE_UPDATE (1 << 24)
  59. #define CIK_ALPHA_CONTROL 0x6af0
  60. # define CIK_CURSOR_ALPHA_BLND_ENA (1 << 1)
  61. #endif