.. | .. |
---|
21 | 21 | */ |
---|
22 | 22 | #include "core.h" |
---|
23 | 23 | |
---|
24 | | -static void |
---|
| 24 | +#include <nvif/push507c.h> |
---|
| 25 | + |
---|
| 26 | +#include <nvhw/class/cl907d.h> |
---|
| 27 | + |
---|
| 28 | +static int |
---|
25 | 29 | dac907d_ctrl(struct nv50_core *core, int or, u32 ctrl, |
---|
26 | 30 | struct nv50_head_atom *asyh) |
---|
27 | 31 | { |
---|
28 | | - u32 *push; |
---|
29 | | - if ((push = evo_wait(&core->chan, 2))) { |
---|
30 | | - evo_mthd(push, 0x0180 + (or * 0x020), 1); |
---|
31 | | - evo_data(push, ctrl); |
---|
32 | | - evo_kick(push, &core->chan); |
---|
33 | | - } |
---|
| 32 | + struct nvif_push *push = core->chan.push; |
---|
| 33 | + int ret; |
---|
| 34 | + |
---|
| 35 | + if ((ret = PUSH_WAIT(push, 2))) |
---|
| 36 | + return ret; |
---|
| 37 | + |
---|
| 38 | + PUSH_MTHD(push, NV907D, DAC_SET_CONTROL(or), ctrl); |
---|
| 39 | + return 0; |
---|
34 | 40 | } |
---|
35 | 41 | |
---|
36 | 42 | const struct nv50_outp_func |
---|