Commit 3740c825 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/gr/gf100-: add symbolic names for classes

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 8fd4b7d4
...@@ -12,6 +12,13 @@ ...@@ -12,6 +12,13 @@
#define NV_DMA_TO_MEMORY 0x00000003 #define NV_DMA_TO_MEMORY 0x00000003
#define NV_DMA_IN_MEMORY 0x0000003d #define NV_DMA_IN_MEMORY 0x0000003d
#define FERMI_TWOD_A 0x0000902d
#define FERMI_MEMORY_TO_MEMORY_FORMAT_A 0x0000903d
#define KEPLER_INLINE_TO_MEMORY_A 0x0000a040
#define KEPLER_INLINE_TO_MEMORY_B 0x0000a140
#define NV04_DISP 0x00000046 #define NV04_DISP 0x00000046
#define NV03_CHANNEL_DMA 0x0000006b #define NV03_CHANNEL_DMA 0x0000006b
......
...@@ -260,8 +260,8 @@ gf100_gr_90c0_omthds[] = { ...@@ -260,8 +260,8 @@ gf100_gr_90c0_omthds[] = {
struct nvkm_oclass struct nvkm_oclass
gf100_gr_sclass[] = { gf100_gr_sclass[] = {
{ 0x902d, &nvkm_object_ofuncs }, { FERMI_TWOD_A, &nvkm_object_ofuncs },
{ 0x9039, &nvkm_object_ofuncs }, { FERMI_MEMORY_TO_MEMORY_FORMAT_A, &nvkm_object_ofuncs },
{ FERMI_A, &gf100_fermi_ofuncs, gf100_gr_9097_omthds }, { FERMI_A, &gf100_fermi_ofuncs, gf100_gr_9097_omthds },
{ FERMI_COMPUTE_A, &nvkm_object_ofuncs, gf100_gr_90c0_omthds }, { FERMI_COMPUTE_A, &nvkm_object_ofuncs, gf100_gr_90c0_omthds },
{} {}
......
...@@ -32,8 +32,8 @@ ...@@ -32,8 +32,8 @@
static struct nvkm_oclass static struct nvkm_oclass
gf108_gr_sclass[] = { gf108_gr_sclass[] = {
{ 0x902d, &nvkm_object_ofuncs }, { FERMI_TWOD_A, &nvkm_object_ofuncs },
{ 0x9039, &nvkm_object_ofuncs }, { FERMI_MEMORY_TO_MEMORY_FORMAT_A, &nvkm_object_ofuncs },
{ FERMI_A, &gf100_fermi_ofuncs, gf100_gr_9097_omthds }, { FERMI_A, &gf100_fermi_ofuncs, gf100_gr_9097_omthds },
{ FERMI_B, &gf100_fermi_ofuncs, gf100_gr_9097_omthds }, { FERMI_B, &gf100_fermi_ofuncs, gf100_gr_9097_omthds },
{ FERMI_COMPUTE_A, &nvkm_object_ofuncs, gf100_gr_90c0_omthds }, { FERMI_COMPUTE_A, &nvkm_object_ofuncs, gf100_gr_90c0_omthds },
......
...@@ -32,8 +32,8 @@ ...@@ -32,8 +32,8 @@
struct nvkm_oclass struct nvkm_oclass
gf110_gr_sclass[] = { gf110_gr_sclass[] = {
{ 0x902d, &nvkm_object_ofuncs }, { FERMI_TWOD_A, &nvkm_object_ofuncs },
{ 0x9039, &nvkm_object_ofuncs }, { FERMI_MEMORY_TO_MEMORY_FORMAT_A, &nvkm_object_ofuncs },
{ FERMI_A, &gf100_fermi_ofuncs, gf100_gr_9097_omthds }, { FERMI_A, &gf100_fermi_ofuncs, gf100_gr_9097_omthds },
{ FERMI_B, &gf100_fermi_ofuncs, gf100_gr_9097_omthds }, { FERMI_B, &gf100_fermi_ofuncs, gf100_gr_9097_omthds },
{ FERMI_C, &gf100_fermi_ofuncs, gf100_gr_9097_omthds }, { FERMI_C, &gf100_fermi_ofuncs, gf100_gr_9097_omthds },
......
...@@ -34,8 +34,8 @@ ...@@ -34,8 +34,8 @@
static struct nvkm_oclass static struct nvkm_oclass
gk104_gr_sclass[] = { gk104_gr_sclass[] = {
{ 0x902d, &nvkm_object_ofuncs }, { FERMI_TWOD_A, &nvkm_object_ofuncs },
{ 0xa040, &nvkm_object_ofuncs }, { KEPLER_INLINE_TO_MEMORY_A, &nvkm_object_ofuncs },
{ KEPLER_A, &gf100_fermi_ofuncs, gf100_gr_9097_omthds }, { KEPLER_A, &gf100_fermi_ofuncs, gf100_gr_9097_omthds },
{ KEPLER_COMPUTE_A, &nvkm_object_ofuncs, gf100_gr_90c0_omthds }, { KEPLER_COMPUTE_A, &nvkm_object_ofuncs, gf100_gr_90c0_omthds },
{} {}
......
...@@ -34,8 +34,8 @@ ...@@ -34,8 +34,8 @@
struct nvkm_oclass struct nvkm_oclass
gk110_gr_sclass[] = { gk110_gr_sclass[] = {
{ 0x902d, &nvkm_object_ofuncs }, { FERMI_TWOD_A, &nvkm_object_ofuncs },
{ 0xa140, &nvkm_object_ofuncs }, { KEPLER_INLINE_TO_MEMORY_B, &nvkm_object_ofuncs },
{ KEPLER_B, &gf100_fermi_ofuncs, gf100_gr_9097_omthds }, { KEPLER_B, &gf100_fermi_ofuncs, gf100_gr_9097_omthds },
{ KEPLER_COMPUTE_B, &nvkm_object_ofuncs, gf100_gr_90c0_omthds }, { KEPLER_COMPUTE_B, &nvkm_object_ofuncs, gf100_gr_90c0_omthds },
{} {}
......
...@@ -34,10 +34,10 @@ ...@@ -34,10 +34,10 @@
static struct nvkm_oclass static struct nvkm_oclass
gk208_gr_sclass[] = { gk208_gr_sclass[] = {
{ 0x902d, &nvkm_object_ofuncs }, { FERMI_TWOD_A, &nvkm_object_ofuncs },
{ 0xa140, &nvkm_object_ofuncs }, { KEPLER_INLINE_TO_MEMORY_B, &nvkm_object_ofuncs },
{ KEPLER_B, &gf100_fermi_ofuncs }, { KEPLER_B, &gf100_fermi_ofuncs },
{ 0xa1c0, &nvkm_object_ofuncs }, { KEPLER_COMPUTE_B, &nvkm_object_ofuncs },
{} {}
}; };
......
...@@ -26,8 +26,8 @@ ...@@ -26,8 +26,8 @@
static struct nvkm_oclass static struct nvkm_oclass
gk20a_gr_sclass[] = { gk20a_gr_sclass[] = {
{ 0x902d, &nvkm_object_ofuncs }, { FERMI_TWOD_A, &nvkm_object_ofuncs },
{ 0xa040, &nvkm_object_ofuncs }, { KEPLER_INLINE_TO_MEMORY_A, &nvkm_object_ofuncs },
{ KEPLER_C, &gf100_fermi_ofuncs, gf100_gr_9097_omthds }, { KEPLER_C, &gf100_fermi_ofuncs, gf100_gr_9097_omthds },
{ KEPLER_COMPUTE_A, &nvkm_object_ofuncs, gf100_gr_90c0_omthds }, { KEPLER_COMPUTE_A, &nvkm_object_ofuncs, gf100_gr_90c0_omthds },
{} {}
......
...@@ -35,8 +35,8 @@ ...@@ -35,8 +35,8 @@
static struct nvkm_oclass static struct nvkm_oclass
gm107_gr_sclass[] = { gm107_gr_sclass[] = {
{ 0x902d, &nvkm_object_ofuncs }, { FERMI_TWOD_A, &nvkm_object_ofuncs },
{ 0xa140, &nvkm_object_ofuncs }, { KEPLER_INLINE_TO_MEMORY_B, &nvkm_object_ofuncs },
{ MAXWELL_A, &gf100_fermi_ofuncs, gf100_gr_9097_omthds }, { MAXWELL_A, &gf100_fermi_ofuncs, gf100_gr_9097_omthds },
{ MAXWELL_COMPUTE_A, &nvkm_object_ofuncs, gf100_gr_90c0_omthds }, { MAXWELL_COMPUTE_A, &nvkm_object_ofuncs, gf100_gr_90c0_omthds },
{} {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment