head907d.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433
  1. /*
  2. * Copyright 2018 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. #include <drm/drm_connector.h>
  23. #include <drm/drm_mode_config.h>
  24. #include <drm/drm_vblank.h>
  25. #include "nouveau_drv.h"
  26. #include "nouveau_bios.h"
  27. #include "nouveau_connector.h"
  28. #include "head.h"
  29. #include "core.h"
  30. #include "crc.h"
  31. #include <nvif/push507c.h>
  32. #include <nvhw/class/cl907d.h>
  33. int
  34. head907d_or(struct nv50_head *head, struct nv50_head_atom *asyh)
  35. {
  36. struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push;
  37. const int i = head->base.index;
  38. int ret;
  39. if ((ret = PUSH_WAIT(push, 3)))
  40. return ret;
  41. PUSH_MTHD(push, NV907D, HEAD_SET_CONTROL_OUTPUT_RESOURCE(i),
  42. NVVAL(NV907D, HEAD_SET_CONTROL_OUTPUT_RESOURCE, CRC_MODE, asyh->or.crc_raster) |
  43. NVVAL(NV907D, HEAD_SET_CONTROL_OUTPUT_RESOURCE, HSYNC_POLARITY, asyh->or.nhsync) |
  44. NVVAL(NV907D, HEAD_SET_CONTROL_OUTPUT_RESOURCE, VSYNC_POLARITY, asyh->or.nvsync) |
  45. NVVAL(NV907D, HEAD_SET_CONTROL_OUTPUT_RESOURCE, PIXEL_DEPTH, asyh->or.depth),
  46. HEAD_SET_CONTROL(i), 0x31ec6000 | head->base.index << 25 |
  47. NVVAL(NV907D, HEAD_SET_CONTROL, STRUCTURE, asyh->mode.interlace));
  48. return 0;
  49. }
  50. int
  51. head907d_procamp(struct nv50_head *head, struct nv50_head_atom *asyh)
  52. {
  53. struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push;
  54. const int i = head->base.index;
  55. int ret;
  56. if ((ret = PUSH_WAIT(push, 2)))
  57. return ret;
  58. PUSH_MTHD(push, NV907D, HEAD_SET_PROCAMP(i),
  59. NVDEF(NV907D, HEAD_SET_PROCAMP, COLOR_SPACE, RGB) |
  60. NVDEF(NV907D, HEAD_SET_PROCAMP, CHROMA_LPF, AUTO) |
  61. NVVAL(NV907D, HEAD_SET_PROCAMP, SAT_COS, asyh->procamp.sat.cos) |
  62. NVVAL(NV907D, HEAD_SET_PROCAMP, SAT_SINE, asyh->procamp.sat.sin) |
  63. NVDEF(NV907D, HEAD_SET_PROCAMP, DYNAMIC_RANGE, VESA) |
  64. NVDEF(NV907D, HEAD_SET_PROCAMP, RANGE_COMPRESSION, DISABLE));
  65. return 0;
  66. }
  67. static int
  68. head907d_dither(struct nv50_head *head, struct nv50_head_atom *asyh)
  69. {
  70. struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push;
  71. const int i = head->base.index;
  72. int ret;
  73. if ((ret = PUSH_WAIT(push, 2)))
  74. return ret;
  75. PUSH_MTHD(push, NV907D, HEAD_SET_DITHER_CONTROL(i),
  76. NVVAL(NV907D, HEAD_SET_DITHER_CONTROL, ENABLE, asyh->dither.enable) |
  77. NVVAL(NV907D, HEAD_SET_DITHER_CONTROL, BITS, asyh->dither.bits) |
  78. NVVAL(NV907D, HEAD_SET_DITHER_CONTROL, MODE, asyh->dither.mode) |
  79. NVVAL(NV907D, HEAD_SET_DITHER_CONTROL, PHASE, 0));
  80. return 0;
  81. }
  82. int
  83. head907d_ovly(struct nv50_head *head, struct nv50_head_atom *asyh)
  84. {
  85. struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push;
  86. const int i = head->base.index;
  87. u32 bounds = 0;
  88. int ret;
  89. if (asyh->ovly.cpp) {
  90. switch (asyh->ovly.cpp) {
  91. case 8: bounds |= NVDEF(NV907D, HEAD_SET_OVERLAY_USAGE_BOUNDS, PIXEL_DEPTH, BPP_64); break;
  92. case 4: bounds |= NVDEF(NV907D, HEAD_SET_OVERLAY_USAGE_BOUNDS, PIXEL_DEPTH, BPP_32); break;
  93. case 2: bounds |= NVDEF(NV907D, HEAD_SET_OVERLAY_USAGE_BOUNDS, PIXEL_DEPTH, BPP_16); break;
  94. default:
  95. WARN_ON(1);
  96. break;
  97. }
  98. bounds |= NVDEF(NV907D, HEAD_SET_OVERLAY_USAGE_BOUNDS, USABLE, TRUE);
  99. } else {
  100. bounds |= NVDEF(NV907D, HEAD_SET_OVERLAY_USAGE_BOUNDS, PIXEL_DEPTH, BPP_16);
  101. }
  102. if ((ret = PUSH_WAIT(push, 2)))
  103. return ret;
  104. PUSH_MTHD(push, NV907D, HEAD_SET_OVERLAY_USAGE_BOUNDS(i), bounds);
  105. return 0;
  106. }
  107. static int
  108. head907d_base(struct nv50_head *head, struct nv50_head_atom *asyh)
  109. {
  110. struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push;
  111. const int i = head->base.index;
  112. u32 bounds = 0;
  113. int ret;
  114. if (asyh->base.cpp) {
  115. switch (asyh->base.cpp) {
  116. case 8: bounds |= NVDEF(NV907D, HEAD_SET_BASE_CHANNEL_USAGE_BOUNDS, PIXEL_DEPTH, BPP_64); break;
  117. case 4: bounds |= NVDEF(NV907D, HEAD_SET_BASE_CHANNEL_USAGE_BOUNDS, PIXEL_DEPTH, BPP_32); break;
  118. case 2: bounds |= NVDEF(NV907D, HEAD_SET_BASE_CHANNEL_USAGE_BOUNDS, PIXEL_DEPTH, BPP_16); break;
  119. case 1: bounds |= NVDEF(NV907D, HEAD_SET_BASE_CHANNEL_USAGE_BOUNDS, PIXEL_DEPTH, BPP_8); break;
  120. default:
  121. WARN_ON(1);
  122. break;
  123. }
  124. bounds |= NVDEF(NV907D, HEAD_SET_BASE_CHANNEL_USAGE_BOUNDS, USABLE, TRUE);
  125. }
  126. if ((ret = PUSH_WAIT(push, 2)))
  127. return ret;
  128. PUSH_MTHD(push, NV907D, HEAD_SET_BASE_CHANNEL_USAGE_BOUNDS(i), bounds);
  129. return 0;
  130. }
  131. int
  132. head907d_curs_clr(struct nv50_head *head)
  133. {
  134. struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push;
  135. const int i = head->base.index;
  136. int ret;
  137. if ((ret = PUSH_WAIT(push, 4)))
  138. return ret;
  139. PUSH_MTHD(push, NV907D, HEAD_SET_CONTROL_CURSOR(i),
  140. NVDEF(NV907D, HEAD_SET_CONTROL_CURSOR, ENABLE, DISABLE) |
  141. NVDEF(NV907D, HEAD_SET_CONTROL_CURSOR, FORMAT, A8R8G8B8) |
  142. NVDEF(NV907D, HEAD_SET_CONTROL_CURSOR, SIZE, W64_H64));
  143. PUSH_MTHD(push, NV907D, HEAD_SET_CONTEXT_DMA_CURSOR(i), 0x00000000);
  144. return 0;
  145. }
  146. int
  147. head907d_curs_set(struct nv50_head *head, struct nv50_head_atom *asyh)
  148. {
  149. struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push;
  150. const int i = head->base.index;
  151. int ret;
  152. if ((ret = PUSH_WAIT(push, 5)))
  153. return ret;
  154. PUSH_MTHD(push, NV907D, HEAD_SET_CONTROL_CURSOR(i),
  155. NVDEF(NV907D, HEAD_SET_CONTROL_CURSOR, ENABLE, ENABLE) |
  156. NVVAL(NV907D, HEAD_SET_CONTROL_CURSOR, FORMAT, asyh->curs.format) |
  157. NVVAL(NV907D, HEAD_SET_CONTROL_CURSOR, SIZE, asyh->curs.layout) |
  158. NVVAL(NV907D, HEAD_SET_CONTROL_CURSOR, HOT_SPOT_X, 0) |
  159. NVVAL(NV907D, HEAD_SET_CONTROL_CURSOR, HOT_SPOT_Y, 0) |
  160. NVDEF(NV907D, HEAD_SET_CONTROL_CURSOR, COMPOSITION, ALPHA_BLEND),
  161. HEAD_SET_OFFSET_CURSOR(i), asyh->curs.offset >> 8);
  162. PUSH_MTHD(push, NV907D, HEAD_SET_CONTEXT_DMA_CURSOR(i), asyh->curs.handle);
  163. return 0;
  164. }
  165. int
  166. head907d_core_clr(struct nv50_head *head)
  167. {
  168. struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push;
  169. const int i = head->base.index;
  170. int ret;
  171. if ((ret = PUSH_WAIT(push, 2)))
  172. return ret;
  173. PUSH_MTHD(push, NV907D, HEAD_SET_CONTEXT_DMAS_ISO(i), 0x00000000);
  174. return 0;
  175. }
  176. int
  177. head907d_core_set(struct nv50_head *head, struct nv50_head_atom *asyh)
  178. {
  179. struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push;
  180. const int i = head->base.index;
  181. int ret;
  182. if ((ret = PUSH_WAIT(push, 9)))
  183. return ret;
  184. PUSH_MTHD(push, NV907D, HEAD_SET_OFFSET(i),
  185. NVVAL(NV907D, HEAD_SET_OFFSET, ORIGIN, asyh->core.offset >> 8));
  186. PUSH_MTHD(push, NV907D, HEAD_SET_SIZE(i),
  187. NVVAL(NV907D, HEAD_SET_SIZE, WIDTH, asyh->core.w) |
  188. NVVAL(NV907D, HEAD_SET_SIZE, HEIGHT, asyh->core.h),
  189. HEAD_SET_STORAGE(i),
  190. NVVAL(NV907D, HEAD_SET_STORAGE, BLOCK_HEIGHT, asyh->core.blockh) |
  191. NVVAL(NV907D, HEAD_SET_STORAGE, PITCH, asyh->core.pitch >> 8) |
  192. NVVAL(NV907D, HEAD_SET_STORAGE, PITCH, asyh->core.blocks) |
  193. NVVAL(NV907D, HEAD_SET_STORAGE, MEMORY_LAYOUT, asyh->core.layout),
  194. HEAD_SET_PARAMS(i),
  195. NVVAL(NV907D, HEAD_SET_PARAMS, FORMAT, asyh->core.format) |
  196. NVDEF(NV907D, HEAD_SET_PARAMS, SUPER_SAMPLE, X1_AA) |
  197. NVDEF(NV907D, HEAD_SET_PARAMS, GAMMA, LINEAR),
  198. HEAD_SET_CONTEXT_DMAS_ISO(i),
  199. NVVAL(NV907D, HEAD_SET_CONTEXT_DMAS_ISO, HANDLE, asyh->core.handle));
  200. PUSH_MTHD(push, NV907D, HEAD_SET_VIEWPORT_POINT_IN(i),
  201. NVVAL(NV907D, HEAD_SET_VIEWPORT_POINT_IN, X, asyh->core.x) |
  202. NVVAL(NV907D, HEAD_SET_VIEWPORT_POINT_IN, Y, asyh->core.y));
  203. return 0;
  204. }
  205. int
  206. head907d_olut_clr(struct nv50_head *head)
  207. {
  208. struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push;
  209. const int i = head->base.index;
  210. int ret;
  211. if ((ret = PUSH_WAIT(push, 4)))
  212. return ret;
  213. PUSH_MTHD(push, NV907D, HEAD_SET_OUTPUT_LUT_LO(i),
  214. NVDEF(NV907D, HEAD_SET_OUTPUT_LUT_LO, ENABLE, DISABLE));
  215. PUSH_MTHD(push, NV907D, HEAD_SET_CONTEXT_DMA_LUT(i), 0x00000000);
  216. return 0;
  217. }
  218. int
  219. head907d_olut_set(struct nv50_head *head, struct nv50_head_atom *asyh)
  220. {
  221. struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push;
  222. const int i = head->base.index;
  223. int ret;
  224. if ((ret = PUSH_WAIT(push, 5)))
  225. return ret;
  226. PUSH_MTHD(push, NV907D, HEAD_SET_OUTPUT_LUT_LO(i),
  227. NVDEF(NV907D, HEAD_SET_OUTPUT_LUT_LO, ENABLE, ENABLE) |
  228. NVVAL(NV907D, HEAD_SET_OUTPUT_LUT_LO, MODE, asyh->olut.mode) |
  229. NVDEF(NV907D, HEAD_SET_OUTPUT_LUT_LO, NEVER_YIELD_TO_BASE, DISABLE),
  230. HEAD_SET_OUTPUT_LUT_HI(i),
  231. NVVAL(NV907D, HEAD_SET_OUTPUT_LUT_HI, ORIGIN, asyh->olut.offset >> 8));
  232. PUSH_MTHD(push, NV907D, HEAD_SET_CONTEXT_DMA_LUT(i), asyh->olut.handle);
  233. return 0;
  234. }
  235. void
  236. head907d_olut_load(struct drm_color_lut *in, int size, void __iomem *mem)
  237. {
  238. for (; size--; in++, mem += 8) {
  239. writew(drm_color_lut_extract(in-> red, 14) + 0x6000, mem + 0);
  240. writew(drm_color_lut_extract(in->green, 14) + 0x6000, mem + 2);
  241. writew(drm_color_lut_extract(in-> blue, 14) + 0x6000, mem + 4);
  242. }
  243. /* INTERPOLATE modes require a "next" entry to interpolate with,
  244. * so we replicate the last entry to deal with this for now.
  245. */
  246. writew(readw(mem - 8), mem + 0);
  247. writew(readw(mem - 6), mem + 2);
  248. writew(readw(mem - 4), mem + 4);
  249. }
  250. bool
  251. head907d_olut(struct nv50_head *head, struct nv50_head_atom *asyh, int size)
  252. {
  253. if (size != 256 && size != 1024)
  254. return false;
  255. if (size == 1024)
  256. asyh->olut.mode = NV907D_HEAD_SET_OUTPUT_LUT_LO_MODE_INTERPOLATE_1025_UNITY_RANGE;
  257. else
  258. asyh->olut.mode = NV907D_HEAD_SET_OUTPUT_LUT_LO_MODE_INTERPOLATE_257_UNITY_RANGE;
  259. asyh->olut.load = head907d_olut_load;
  260. return true;
  261. }
  262. bool head907d_ilut_check(int size)
  263. {
  264. return size == 256 || size == 1024;
  265. }
  266. int
  267. head907d_mode(struct nv50_head *head, struct nv50_head_atom *asyh)
  268. {
  269. struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push;
  270. struct nv50_head_mode *m = &asyh->mode;
  271. const int i = head->base.index;
  272. int ret;
  273. if ((ret = PUSH_WAIT(push, 13)))
  274. return ret;
  275. PUSH_MTHD(push, NV907D, HEAD_SET_OVERSCAN_COLOR(i),
  276. NVVAL(NV907D, HEAD_SET_OVERSCAN_COLOR, RED, 0) |
  277. NVVAL(NV907D, HEAD_SET_OVERSCAN_COLOR, GRN, 0) |
  278. NVVAL(NV907D, HEAD_SET_OVERSCAN_COLOR, BLU, 0),
  279. HEAD_SET_RASTER_SIZE(i),
  280. NVVAL(NV907D, HEAD_SET_RASTER_SIZE, WIDTH, m->h.active) |
  281. NVVAL(NV907D, HEAD_SET_RASTER_SIZE, HEIGHT, m->v.active),
  282. HEAD_SET_RASTER_SYNC_END(i),
  283. NVVAL(NV907D, HEAD_SET_RASTER_SYNC_END, X, m->h.synce) |
  284. NVVAL(NV907D, HEAD_SET_RASTER_SYNC_END, Y, m->v.synce),
  285. HEAD_SET_RASTER_BLANK_END(i),
  286. NVVAL(NV907D, HEAD_SET_RASTER_BLANK_END, X, m->h.blanke) |
  287. NVVAL(NV907D, HEAD_SET_RASTER_BLANK_END, Y, m->v.blanke),
  288. HEAD_SET_RASTER_BLANK_START(i),
  289. NVVAL(NV907D, HEAD_SET_RASTER_BLANK_START, X, m->h.blanks) |
  290. NVVAL(NV907D, HEAD_SET_RASTER_BLANK_START, Y, m->v.blanks),
  291. HEAD_SET_RASTER_VERT_BLANK2(i),
  292. NVVAL(NV907D, HEAD_SET_RASTER_VERT_BLANK2, YSTART, m->v.blank2s) |
  293. NVVAL(NV907D, HEAD_SET_RASTER_VERT_BLANK2, YEND, m->v.blank2e));
  294. PUSH_MTHD(push, NV907D, HEAD_SET_DEFAULT_BASE_COLOR(i),
  295. NVVAL(NV907D, HEAD_SET_DEFAULT_BASE_COLOR, RED, 0) |
  296. NVVAL(NV907D, HEAD_SET_DEFAULT_BASE_COLOR, GREEN, 0) |
  297. NVVAL(NV907D, HEAD_SET_DEFAULT_BASE_COLOR, BLUE, 0));
  298. PUSH_MTHD(push, NV907D, HEAD_SET_PIXEL_CLOCK_FREQUENCY(i),
  299. NVVAL(NV907D, HEAD_SET_PIXEL_CLOCK_FREQUENCY, HERTZ, m->clock * 1000) |
  300. NVDEF(NV907D, HEAD_SET_PIXEL_CLOCK_FREQUENCY, ADJ1000DIV1001, FALSE),
  301. HEAD_SET_PIXEL_CLOCK_CONFIGURATION(i),
  302. NVDEF(NV907D, HEAD_SET_PIXEL_CLOCK_CONFIGURATION, MODE, CLK_CUSTOM) |
  303. NVDEF(NV907D, HEAD_SET_PIXEL_CLOCK_CONFIGURATION, NOT_DRIVER, FALSE) |
  304. NVDEF(NV907D, HEAD_SET_PIXEL_CLOCK_CONFIGURATION, ENABLE_HOPPING, FALSE),
  305. HEAD_SET_PIXEL_CLOCK_FREQUENCY_MAX(i),
  306. NVVAL(NV907D, HEAD_SET_PIXEL_CLOCK_FREQUENCY_MAX, HERTZ, m->clock * 1000) |
  307. NVDEF(NV907D, HEAD_SET_PIXEL_CLOCK_FREQUENCY_MAX, ADJ1000DIV1001, FALSE));
  308. return 0;
  309. }
  310. int
  311. head907d_view(struct nv50_head *head, struct nv50_head_atom *asyh)
  312. {
  313. struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push;
  314. const int i = head->base.index;
  315. int ret;
  316. if ((ret = PUSH_WAIT(push, 8)))
  317. return ret;
  318. PUSH_MTHD(push, NV907D, HEAD_SET_CONTROL_OUTPUT_SCALER(i),
  319. NVDEF(NV907D, HEAD_SET_CONTROL_OUTPUT_SCALER, VERTICAL_TAPS, TAPS_1) |
  320. NVDEF(NV907D, HEAD_SET_CONTROL_OUTPUT_SCALER, HORIZONTAL_TAPS, TAPS_1) |
  321. NVVAL(NV907D, HEAD_SET_CONTROL_OUTPUT_SCALER, HRESPONSE_BIAS, 0) |
  322. NVVAL(NV907D, HEAD_SET_CONTROL_OUTPUT_SCALER, VRESPONSE_BIAS, 0));
  323. PUSH_MTHD(push, NV907D, HEAD_SET_VIEWPORT_SIZE_IN(i),
  324. NVVAL(NV907D, HEAD_SET_VIEWPORT_SIZE_IN, WIDTH, asyh->view.iW) |
  325. NVVAL(NV907D, HEAD_SET_VIEWPORT_SIZE_IN, HEIGHT, asyh->view.iH));
  326. PUSH_MTHD(push, NV907D, HEAD_SET_VIEWPORT_SIZE_OUT(i),
  327. NVVAL(NV907D, HEAD_SET_VIEWPORT_SIZE_OUT, WIDTH, asyh->view.oW) |
  328. NVVAL(NV907D, HEAD_SET_VIEWPORT_SIZE_OUT, HEIGHT, asyh->view.oH),
  329. HEAD_SET_VIEWPORT_SIZE_OUT_MIN(i),
  330. NVVAL(NV907D, HEAD_SET_VIEWPORT_SIZE_OUT_MIN, WIDTH, asyh->view.oW) |
  331. NVVAL(NV907D, HEAD_SET_VIEWPORT_SIZE_OUT_MIN, HEIGHT, asyh->view.oH),
  332. HEAD_SET_VIEWPORT_SIZE_OUT_MAX(i),
  333. NVVAL(NV907D, HEAD_SET_VIEWPORT_SIZE_OUT_MAX, WIDTH, asyh->view.oW) |
  334. NVVAL(NV907D, HEAD_SET_VIEWPORT_SIZE_OUT_MAX, HEIGHT, asyh->view.oH));
  335. return 0;
  336. }
  337. const struct nv50_head_func
  338. head907d = {
  339. .view = head907d_view,
  340. .mode = head907d_mode,
  341. .olut = head907d_olut,
  342. .ilut_check = head907d_ilut_check,
  343. .olut_size = 1024,
  344. .olut_set = head907d_olut_set,
  345. .olut_clr = head907d_olut_clr,
  346. .core_calc = head507d_core_calc,
  347. .core_set = head907d_core_set,
  348. .core_clr = head907d_core_clr,
  349. .curs_layout = head507d_curs_layout,
  350. .curs_format = head507d_curs_format,
  351. .curs_set = head907d_curs_set,
  352. .curs_clr = head907d_curs_clr,
  353. .base = head907d_base,
  354. .ovly = head907d_ovly,
  355. .dither = head907d_dither,
  356. .procamp = head907d_procamp,
  357. .or = head907d_or,
  358. };