ctxgm206.c 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * Copyright 2015 Red Hat 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: Ben Skeggs <bskeggs@redhat.com>
  23. */
  24. #include "ctxgf100.h"
  25. static const struct gf100_gr_init
  26. gm206_grctx_init_gpc_unk_1[] = {
  27. { 0x418600, 1, 0x04, 0x0000007f },
  28. { 0x418684, 1, 0x04, 0x0000001f },
  29. { 0x418700, 1, 0x04, 0x00000002 },
  30. { 0x418704, 1, 0x04, 0x00000080 },
  31. { 0x418708, 1, 0x04, 0x40000000 },
  32. { 0x41870c, 2, 0x04, 0x00000000 },
  33. { 0x418728, 1, 0x04, 0x00300020 },
  34. {}
  35. };
  36. static const struct gf100_gr_pack
  37. gm206_grctx_pack_gpc[] = {
  38. { gm107_grctx_init_gpc_unk_0 },
  39. { gm204_grctx_init_prop_0 },
  40. { gm206_grctx_init_gpc_unk_1 },
  41. { gm204_grctx_init_setup_0 },
  42. { gf100_grctx_init_zcull_0 },
  43. { gk208_grctx_init_crstr_0 },
  44. { gm204_grctx_init_gpm_0 },
  45. { gm204_grctx_init_gpc_unk_2 },
  46. { gf100_grctx_init_gcc_0 },
  47. {}
  48. };
  49. const struct gf100_grctx_func
  50. gm206_grctx = {
  51. .main = gm204_grctx_generate_main,
  52. .unkn = gk104_grctx_generate_unkn,
  53. .hub = gm204_grctx_pack_hub,
  54. .gpc = gm206_grctx_pack_gpc,
  55. .zcull = gf100_grctx_pack_zcull,
  56. .tpc = gm204_grctx_pack_tpc,
  57. .ppc = gm204_grctx_pack_ppc,
  58. .icmd = gm204_grctx_pack_icmd,
  59. .mthd = gm204_grctx_pack_mthd,
  60. .bundle = gm107_grctx_generate_bundle,
  61. .bundle_size = 0x3000,
  62. .bundle_min_gpm_fifo_depth = 0x180,
  63. .bundle_token_limit = 0x780,
  64. .pagepool = gm107_grctx_generate_pagepool,
  65. .pagepool_size = 0x20000,
  66. .attrib = gm107_grctx_generate_attrib,
  67. .attrib_nr_max = 0x600,
  68. .attrib_nr = 0x400,
  69. .alpha_nr_max = 0x1800,
  70. .alpha_nr = 0x1000,
  71. };