base507c.c (222439ebe6d4ec94b013968b07334a55612f641b) | base507c.c (34838908f62a0160d2c12c12be6c3be910d17b85) |
---|---|
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 --- 75 unchanged lines hidden (view full) --- 84 asyw->image.blocks[0] << 8 | 85 asyw->image.blockh); 86 evo_data(push, asyw->image.kind << 16 | 87 asyw->image.format << 8); 88 evo_kick(push, &wndw->wndw); 89 } 90} 91 | 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 --- 75 unchanged lines hidden (view full) --- 84 asyw->image.blocks[0] << 8 | 85 asyw->image.blockh); 86 evo_data(push, asyw->image.kind << 16 | 87 asyw->image.format << 8); 88 evo_kick(push, &wndw->wndw); 89 } 90} 91 |
92void | 92int |
93base507c_xlut_clr(struct nv50_wndw *wndw) 94{ | 93base507c_xlut_clr(struct nv50_wndw *wndw) 94{ |
95 u32 *push; 96 if ((push = evo_wait(&wndw->wndw, 2))) { 97 evo_mthd(push, 0x00e0, 1); 98 evo_data(push, 0x00000000); 99 evo_kick(push, &wndw->wndw); 100 } | 95 struct nvif_push *push = wndw->wndw.push; 96 int ret; 97 98 if ((ret = PUSH_WAIT(push, 2))) 99 return ret; 100 101 PUSH_NVSQ(push, NV507C, 0x00e0, 0x00000000); 102 return 0; |
101} 102 103int 104base507c_xlut_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) 105{ 106 struct nvif_push *push = wndw->wndw.push; 107 int ret; 108 --- 211 unchanged lines hidden --- | 103} 104 105int 106base507c_xlut_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) 107{ 108 struct nvif_push *push = wndw->wndw.push; 109 int ret; 110 --- 211 unchanged lines hidden --- |