nv17.c 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * Copyright 2007 Matthieu CASTET <castet.matthieu@free.fr>
  3. * All Rights Reserved.
  4. *
  5. * Permission is hereby granted, free of charge, to any person obtaining a
  6. * copy of this software and associated documentation files (the "Software"),
  7. * to deal in the Software without restriction, including without limitation
  8. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  9. * and/or sell copies of the Software, and to permit persons to whom the
  10. * Software is furnished to do so, subject to the following conditions:
  11. *
  12. * The above copyright notice and this permission notice (including the next
  13. * paragr) shall be included in all copies or substantial portions of the
  14. * Software.
  15. *
  16. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  17. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  18. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  19. * PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
  20. * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  21. * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  22. * DEALINGS IN THE SOFTWARE.
  23. */
  24. #include "nv10.h"
  25. static const struct nvkm_gr_func
  26. nv17_gr = {
  27. .init = nv10_gr_init,
  28. .intr = nv10_gr_intr,
  29. .tile = nv10_gr_tile,
  30. .chan_new = nv10_gr_chan_new,
  31. .sclass = {
  32. { -1, -1, 0x0012, &nv04_gr_object }, /* beta1 */
  33. { -1, -1, 0x0019, &nv04_gr_object }, /* clip */
  34. { -1, -1, 0x0030, &nv04_gr_object }, /* null */
  35. { -1, -1, 0x0039, &nv04_gr_object }, /* m2mf */
  36. { -1, -1, 0x0043, &nv04_gr_object }, /* rop */
  37. { -1, -1, 0x0044, &nv04_gr_object }, /* pattern */
  38. { -1, -1, 0x004a, &nv04_gr_object }, /* gdi */
  39. { -1, -1, 0x0052, &nv04_gr_object }, /* swzsurf */
  40. { -1, -1, 0x005f, &nv04_gr_object }, /* blit */
  41. { -1, -1, 0x0062, &nv04_gr_object }, /* surf2d */
  42. { -1, -1, 0x0072, &nv04_gr_object }, /* beta4 */
  43. { -1, -1, 0x0089, &nv04_gr_object }, /* sifm */
  44. { -1, -1, 0x008a, &nv04_gr_object }, /* ifc */
  45. { -1, -1, 0x009f, &nv04_gr_object }, /* blit */
  46. { -1, -1, 0x0093, &nv04_gr_object }, /* surf3d */
  47. { -1, -1, 0x0094, &nv04_gr_object }, /* ttri */
  48. { -1, -1, 0x0095, &nv04_gr_object }, /* mtri */
  49. { -1, -1, 0x0099, &nv04_gr_object },
  50. {}
  51. }
  52. };
  53. int
  54. nv17_gr_new(struct nvkm_device *device, int index, struct nvkm_gr **pgr)
  55. {
  56. return nv10_gr_new_(&nv17_gr, device, index, pgr);
  57. }