diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2011-04-12 18:50:36 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2011-05-16 10:49:13 +1000 |
commit | fe799114e2f0de37c3ddf900d15fa5e85936deba (patch) | |
tree | bf22e8163d492acbe6c5cf00551d05d862c4e589 /drivers/gpu/drm/nouveau/nvc0_graph.h | |
parent | 9548258fbce1e8d6fcd96bba299386f5666840ae (diff) | |
download | blackbird-obmc-linux-fe799114e2f0de37c3ddf900d15fa5e85936deba.tar.gz blackbird-obmc-linux-fe799114e2f0de37c3ddf900d15fa5e85936deba.zip |
drm/nvc0/gr: better handling of fuc firmware
Allows per-chipset firmware to be installed, and keeps a copy in memory
for suspend/resume purposes.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvc0_graph.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvc0_graph.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvc0_graph.h b/drivers/gpu/drm/nouveau/nvc0_graph.h index fecc187d724c..f59d848b52eb 100644 --- a/drivers/gpu/drm/nouveau/nvc0_graph.h +++ b/drivers/gpu/drm/nouveau/nvc0_graph.h @@ -34,9 +34,19 @@ #define GPC_UNIT(t, r) (0x500000 + (t) * 0x8000 + (r)) #define TP_UNIT(t, m, r) (0x504000 + (t) * 0x8000 + (m) * 0x800 + (r)) +struct nvc0_graph_fuc { + u32 *data; + u32 size; +}; + struct nvc0_graph_priv { struct nouveau_exec_engine base; + struct nvc0_graph_fuc fuc409c; + struct nvc0_graph_fuc fuc409d; + struct nvc0_graph_fuc fuc41ac; + struct nvc0_graph_fuc fuc41ad; + u8 gpc_nr; u8 rop_nr; u8 tp_nr[GPC_MAX]; |