diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvc0_graph.h')
| -rw-r--r-- | drivers/gpu/drm/nouveau/nvc0_graph.h | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/drivers/gpu/drm/nouveau/nvc0_graph.h b/drivers/gpu/drm/nouveau/nvc0_graph.h index 40e26f9c56c4..f5d184e0689d 100644 --- a/drivers/gpu/drm/nouveau/nvc0_graph.h +++ b/drivers/gpu/drm/nouveau/nvc0_graph.h | |||
| @@ -28,13 +28,25 @@ | |||
| 28 | #define GPC_MAX 4 | 28 | #define GPC_MAX 4 |
| 29 | #define TP_MAX 32 | 29 | #define TP_MAX 32 |
| 30 | 30 | ||
| 31 | #define ROP_BCAST(r) (0x408800 + (r)) | 31 | #define ROP_BCAST(r) (0x408800 + (r)) |
| 32 | #define ROP_UNIT(u,r) (0x410000 + (u) * 0x400 + (r)) | 32 | #define ROP_UNIT(u, r) (0x410000 + (u) * 0x400 + (r)) |
| 33 | #define GPC_BCAST(r) (0x418000 + (r)) | 33 | #define GPC_BCAST(r) (0x418000 + (r)) |
| 34 | #define GPC_UNIT(t,r) (0x500000 + (t) * 0x8000 + (r)) | 34 | #define GPC_UNIT(t, r) (0x500000 + (t) * 0x8000 + (r)) |
| 35 | #define TP_UNIT(t,m,r) (0x504000 + (t) * 0x8000 + (m) * 0x800 + (r)) | 35 | #define TP_UNIT(t, m, r) (0x504000 + (t) * 0x8000 + (m) * 0x800 + (r)) |
| 36 | |||
| 37 | struct nvc0_graph_fuc { | ||
| 38 | u32 *data; | ||
| 39 | u32 size; | ||
| 40 | }; | ||
| 36 | 41 | ||
| 37 | struct nvc0_graph_priv { | 42 | struct nvc0_graph_priv { |
| 43 | struct nouveau_exec_engine base; | ||
| 44 | |||
| 45 | struct nvc0_graph_fuc fuc409c; | ||
| 46 | struct nvc0_graph_fuc fuc409d; | ||
| 47 | struct nvc0_graph_fuc fuc41ac; | ||
| 48 | struct nvc0_graph_fuc fuc41ad; | ||
| 49 | |||
| 38 | u8 gpc_nr; | 50 | u8 gpc_nr; |
| 39 | u8 rop_nr; | 51 | u8 rop_nr; |
| 40 | u8 tp_nr[GPC_MAX]; | 52 | u8 tp_nr[GPC_MAX]; |
| @@ -46,15 +58,14 @@ struct nvc0_graph_priv { | |||
| 46 | struct nouveau_gpuobj *unk4188b8; | 58 | struct nouveau_gpuobj *unk4188b8; |
| 47 | 59 | ||
| 48 | u8 magic_not_rop_nr; | 60 | u8 magic_not_rop_nr; |
| 49 | u32 magicgpc980[4]; | ||
| 50 | u32 magicgpc918; | 61 | u32 magicgpc918; |
| 51 | }; | 62 | }; |
| 52 | 63 | ||
| 53 | struct nvc0_graph_chan { | 64 | struct nvc0_graph_chan { |
| 54 | struct nouveau_gpuobj *grctx; | 65 | struct nouveau_gpuobj *grctx; |
| 55 | struct nouveau_gpuobj *unk408004; // 0x418810 too | 66 | struct nouveau_gpuobj *unk408004; /* 0x418810 too */ |
| 56 | struct nouveau_gpuobj *unk40800c; // 0x419004 too | 67 | struct nouveau_gpuobj *unk40800c; /* 0x419004 too */ |
| 57 | struct nouveau_gpuobj *unk418810; // 0x419848 too | 68 | struct nouveau_gpuobj *unk418810; /* 0x419848 too */ |
| 58 | struct nouveau_gpuobj *mmio; | 69 | struct nouveau_gpuobj *mmio; |
| 59 | int mmio_nr; | 70 | int mmio_nr; |
| 60 | }; | 71 | }; |
