Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
c46c3ddf
Commit
c46c3ddf
authored
Oct 03, 2013
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/sw: prepare for the sharing of constructors between implementations
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
ef8d4781
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
83 additions
and
79 deletions
+83
-79
drivers/gpu/drm/nouveau/core/engine/device/nv04.c
drivers/gpu/drm/nouveau/core/engine/device/nv04.c
+2
-2
drivers/gpu/drm/nouveau/core/engine/device/nv10.c
drivers/gpu/drm/nouveau/core/engine/device/nv10.c
+7
-7
drivers/gpu/drm/nouveau/core/engine/device/nv20.c
drivers/gpu/drm/nouveau/core/engine/device/nv20.c
+4
-4
drivers/gpu/drm/nouveau/core/engine/device/nv30.c
drivers/gpu/drm/nouveau/core/engine/device/nv30.c
+5
-5
drivers/gpu/drm/nouveau/core/engine/device/nv40.c
drivers/gpu/drm/nouveau/core/engine/device/nv40.c
+16
-16
drivers/gpu/drm/nouveau/core/engine/device/nv50.c
drivers/gpu/drm/nouveau/core/engine/device/nv50.c
+14
-14
drivers/gpu/drm/nouveau/core/engine/device/nvc0.c
drivers/gpu/drm/nouveau/core/engine/device/nvc0.c
+9
-9
drivers/gpu/drm/nouveau/core/engine/device/nve0.c
drivers/gpu/drm/nouveau/core/engine/device/nve0.c
+4
-4
drivers/gpu/drm/nouveau/core/engine/software/nv04.c
drivers/gpu/drm/nouveau/core/engine/software/nv04.c
+2
-2
drivers/gpu/drm/nouveau/core/engine/software/nv10.c
drivers/gpu/drm/nouveau/core/engine/software/nv10.c
+2
-2
drivers/gpu/drm/nouveau/core/engine/software/nv50.c
drivers/gpu/drm/nouveau/core/engine/software/nv50.c
+5
-5
drivers/gpu/drm/nouveau/core/engine/software/nv50.h
drivers/gpu/drm/nouveau/core/engine/software/nv50.h
+4
-0
drivers/gpu/drm/nouveau/core/engine/software/nvc0.c
drivers/gpu/drm/nouveau/core/engine/software/nvc0.c
+5
-5
drivers/gpu/drm/nouveau/core/include/engine/software.h
drivers/gpu/drm/nouveau/core/include/engine/software.h
+4
-4
No files found.
drivers/gpu/drm/nouveau/core/engine/device/nv04.c
View file @
c46c3ddf
...
...
@@ -58,7 +58,7 @@ nv04_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv04_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv04_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv04_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv04_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv04_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
break
;
...
...
@@ -76,7 +76,7 @@ nv04_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv04_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv04_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv04_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv04_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv04_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
break
;
...
...
drivers/gpu/drm/nouveau/core/engine/device/nv10.c
View file @
c46c3ddf
...
...
@@ -77,7 +77,7 @@ nv10_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv04_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv10_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv10_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
break
;
...
...
@@ -96,7 +96,7 @@ nv10_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv04_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv10_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv10_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
break
;
...
...
@@ -115,7 +115,7 @@ nv10_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv04_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv10_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv10_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
break
;
...
...
@@ -134,7 +134,7 @@ nv10_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv04_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv10_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv10_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
break
;
...
...
@@ -153,7 +153,7 @@ nv10_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv04_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv17_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv10_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
break
;
...
...
@@ -172,7 +172,7 @@ nv10_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv04_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv17_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv10_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
break
;
...
...
@@ -191,7 +191,7 @@ nv10_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv04_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv17_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv10_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
break
;
...
...
drivers/gpu/drm/nouveau/core/engine/device/nv20.c
View file @
c46c3ddf
...
...
@@ -61,7 +61,7 @@ nv20_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv04_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv17_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv20_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
break
;
...
...
@@ -80,7 +80,7 @@ nv20_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv04_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv17_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv25_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
break
;
...
...
@@ -99,7 +99,7 @@ nv20_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv04_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv17_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv25_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
break
;
...
...
@@ -118,7 +118,7 @@ nv20_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv04_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv17_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv2a_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
break
;
...
...
drivers/gpu/drm/nouveau/core/engine/device/nv30.c
View file @
c46c3ddf
...
...
@@ -61,7 +61,7 @@ nv30_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv04_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv17_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv30_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
break
;
...
...
@@ -80,7 +80,7 @@ nv30_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv04_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv17_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv35_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
break
;
...
...
@@ -99,7 +99,7 @@ nv30_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv04_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv17_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv30_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_MPEG
]
=
&
nv31_mpeg_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
...
...
@@ -119,7 +119,7 @@ nv30_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv04_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv17_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv35_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_MPEG
]
=
&
nv31_mpeg_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
...
...
@@ -139,7 +139,7 @@ nv30_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv04_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv17_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv34_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_MPEG
]
=
&
nv31_mpeg_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
...
...
drivers/gpu/drm/nouveau/core/engine/device/nv40.c
View file @
c46c3ddf
...
...
@@ -64,7 +64,7 @@ nv40_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv04_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv40_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv40_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_MPEG
]
=
&
nv40_mpeg_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
...
...
@@ -85,7 +85,7 @@ nv40_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv41_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv40_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv40_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_MPEG
]
=
&
nv40_mpeg_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
...
...
@@ -106,7 +106,7 @@ nv40_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv41_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv40_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv40_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_MPEG
]
=
&
nv40_mpeg_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
...
...
@@ -127,7 +127,7 @@ nv40_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv41_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv40_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv40_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_MPEG
]
=
&
nv40_mpeg_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
...
...
@@ -148,7 +148,7 @@ nv40_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv04_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv40_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv40_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_MPEG
]
=
&
nv40_mpeg_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
...
...
@@ -169,7 +169,7 @@ nv40_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv41_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv40_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv40_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_MPEG
]
=
&
nv40_mpeg_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
...
...
@@ -190,7 +190,7 @@ nv40_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv41_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv40_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv40_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_MPEG
]
=
&
nv40_mpeg_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
...
...
@@ -211,7 +211,7 @@ nv40_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv41_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv40_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv40_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_MPEG
]
=
&
nv40_mpeg_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
...
...
@@ -232,7 +232,7 @@ nv40_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv44_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv40_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv40_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_MPEG
]
=
&
nv40_mpeg_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
...
...
@@ -253,7 +253,7 @@ nv40_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv44_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv40_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv40_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_MPEG
]
=
&
nv40_mpeg_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
...
...
@@ -274,7 +274,7 @@ nv40_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv44_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv40_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv40_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_MPEG
]
=
&
nv40_mpeg_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
...
...
@@ -295,7 +295,7 @@ nv40_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv44_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv40_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv40_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_MPEG
]
=
&
nv40_mpeg_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
...
...
@@ -316,7 +316,7 @@ nv40_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv44_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv40_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv40_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_MPEG
]
=
&
nv40_mpeg_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
...
...
@@ -337,7 +337,7 @@ nv40_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv44_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv40_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv40_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_MPEG
]
=
&
nv40_mpeg_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
...
...
@@ -358,7 +358,7 @@ nv40_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv44_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv40_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv40_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_MPEG
]
=
&
nv40_mpeg_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
...
...
@@ -379,7 +379,7 @@ nv40_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_VM
]
=
&
nv44_vmmgr_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv04_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv40_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv10_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv40_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_MPEG
]
=
&
nv40_mpeg_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv04_disp_oclass
;
...
...
drivers/gpu/drm/nouveau/core/engine/device/nv50.c
View file @
c46c3ddf
...
...
@@ -72,7 +72,7 @@ nv50_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_BAR
]
=
&
nv50_bar_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv50_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv50_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv50_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv50_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv50_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_MPEG
]
=
&
nv50_mpeg_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nv50_disp_oclass
;
...
...
@@ -95,7 +95,7 @@ nv50_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_BAR
]
=
&
nv50_bar_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv50_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv84_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv50_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv50_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv50_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_MPEG
]
=
&
nv84_mpeg_oclass
;
device
->
oclass
[
NVDEV_ENGINE_VP
]
=
&
nv84_vp_oclass
;
...
...
@@ -121,7 +121,7 @@ nv50_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_BAR
]
=
&
nv50_bar_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv50_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv84_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv50_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv50_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv50_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_MPEG
]
=
&
nv84_mpeg_oclass
;
device
->
oclass
[
NVDEV_ENGINE_VP
]
=
&
nv84_vp_oclass
;
...
...
@@ -147,7 +147,7 @@ nv50_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_BAR
]
=
&
nv50_bar_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv50_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv84_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv50_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv50_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv50_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_MPEG
]
=
&
nv84_mpeg_oclass
;
device
->
oclass
[
NVDEV_ENGINE_VP
]
=
&
nv84_vp_oclass
;
...
...
@@ -173,7 +173,7 @@ nv50_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_BAR
]
=
&
nv50_bar_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv50_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv84_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv50_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv50_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv50_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_MPEG
]
=
&
nv84_mpeg_oclass
;
device
->
oclass
[
NVDEV_ENGINE_VP
]
=
&
nv84_vp_oclass
;
...
...
@@ -199,7 +199,7 @@ nv50_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_BAR
]
=
&
nv50_bar_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv50_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv84_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv50_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv50_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv50_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_MPEG
]
=
&
nv84_mpeg_oclass
;
device
->
oclass
[
NVDEV_ENGINE_VP
]
=
&
nv84_vp_oclass
;
...
...
@@ -225,7 +225,7 @@ nv50_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_BAR
]
=
&
nv50_bar_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv50_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv84_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv50_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv50_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv50_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_VP
]
=
&
nv98_vp_oclass
;
device
->
oclass
[
NVDEV_ENGINE_CRYPT
]
=
&
nv98_crypt_oclass
;
...
...
@@ -251,7 +251,7 @@ nv50_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_BAR
]
=
&
nv50_bar_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv50_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv84_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv50_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv50_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv50_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_MPEG
]
=
&
nv84_mpeg_oclass
;
device
->
oclass
[
NVDEV_ENGINE_VP
]
=
&
nv84_vp_oclass
;
...
...
@@ -277,7 +277,7 @@ nv50_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_BAR
]
=
&
nv50_bar_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv50_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv84_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv50_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv50_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv50_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_VP
]
=
&
nv98_vp_oclass
;
device
->
oclass
[
NVDEV_ENGINE_CRYPT
]
=
&
nv98_crypt_oclass
;
...
...
@@ -303,7 +303,7 @@ nv50_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_BAR
]
=
&
nv50_bar_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv50_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv84_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv50_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv50_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv50_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_VP
]
=
&
nv98_vp_oclass
;
device
->
oclass
[
NVDEV_ENGINE_CRYPT
]
=
&
nv98_crypt_oclass
;
...
...
@@ -329,7 +329,7 @@ nv50_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_BAR
]
=
&
nv50_bar_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv50_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv84_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv50_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv50_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv50_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_MPEG
]
=
&
nv84_mpeg_oclass
;
device
->
oclass
[
NVDEV_ENGINE_VP
]
=
&
nv98_vp_oclass
;
...
...
@@ -356,7 +356,7 @@ nv50_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_BAR
]
=
&
nv50_bar_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv50_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv84_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv50_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv50_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv50_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_VP
]
=
&
nv98_vp_oclass
;
device
->
oclass
[
NVDEV_ENGINE_BSP
]
=
&
nv98_bsp_oclass
;
...
...
@@ -382,7 +382,7 @@ nv50_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_BAR
]
=
&
nv50_bar_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv50_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv84_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv50_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv50_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv50_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_VP
]
=
&
nv98_vp_oclass
;
device
->
oclass
[
NVDEV_ENGINE_BSP
]
=
&
nv98_bsp_oclass
;
...
...
@@ -408,7 +408,7 @@ nv50_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_BAR
]
=
&
nv50_bar_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nv50_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nv84_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nv50_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nv50_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
&
nv50_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_VP
]
=
&
nv98_vp_oclass
;
device
->
oclass
[
NVDEV_ENGINE_BSP
]
=
&
nv98_bsp_oclass
;
...
...
drivers/gpu/drm/nouveau/core/engine/device/nvc0.c
View file @
c46c3ddf
...
...
@@ -74,7 +74,7 @@ nvc0_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_BAR
]
=
&
nvc0_bar_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nvc0_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nvc0_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nvc0_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nvc0_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
nvc0_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_VP
]
=
&
nvc0_vp_oclass
;
device
->
oclass
[
NVDEV_ENGINE_BSP
]
=
&
nvc0_bsp_oclass
;
...
...
@@ -103,7 +103,7 @@ nvc0_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_BAR
]
=
&
nvc0_bar_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nvc0_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nvc0_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nvc0_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nvc0_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
nvc3_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_VP
]
=
&
nvc0_vp_oclass
;
device
->
oclass
[
NVDEV_ENGINE_BSP
]
=
&
nvc0_bsp_oclass
;
...
...
@@ -132,7 +132,7 @@ nvc0_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_BAR
]
=
&
nvc0_bar_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nvc0_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nvc0_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nvc0_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nvc0_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
nvc3_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_VP
]
=
&
nvc0_vp_oclass
;
device
->
oclass
[
NVDEV_ENGINE_BSP
]
=
&
nvc0_bsp_oclass
;
...
...
@@ -160,7 +160,7 @@ nvc0_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_BAR
]
=
&
nvc0_bar_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nvc0_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nvc0_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nvc0_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nvc0_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
nvc3_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_VP
]
=
&
nvc0_vp_oclass
;
device
->
oclass
[
NVDEV_ENGINE_BSP
]
=
&
nvc0_bsp_oclass
;
...
...
@@ -189,7 +189,7 @@ nvc0_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_BAR
]
=
&
nvc0_bar_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nvc0_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nvc0_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nvc0_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nvc0_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
nvc3_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_VP
]
=
&
nvc0_vp_oclass
;
device
->
oclass
[
NVDEV_ENGINE_BSP
]
=
&
nvc0_bsp_oclass
;
...
...
@@ -218,7 +218,7 @@ nvc0_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_BAR
]
=
&
nvc0_bar_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nvc0_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nvc0_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nvc0_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nvc0_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
nvc1_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_VP
]
=
&
nvc0_vp_oclass
;
device
->
oclass
[
NVDEV_ENGINE_BSP
]
=
&
nvc0_bsp_oclass
;
...
...
@@ -246,7 +246,7 @@ nvc0_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_BAR
]
=
&
nvc0_bar_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nvc0_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nvc0_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nvc0_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nvc0_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
nvc8_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_VP
]
=
&
nvc0_vp_oclass
;
device
->
oclass
[
NVDEV_ENGINE_BSP
]
=
&
nvc0_bsp_oclass
;
...
...
@@ -275,7 +275,7 @@ nvc0_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_BAR
]
=
&
nvc0_bar_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nvd0_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nvc0_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nvc0_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nvc0_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
nvd9_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_VP
]
=
&
nvc0_vp_oclass
;
device
->
oclass
[
NVDEV_ENGINE_BSP
]
=
&
nvc0_bsp_oclass
;
...
...
@@ -303,7 +303,7 @@ nvc0_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_BAR
]
=
&
nvc0_bar_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nvd0_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nvc0_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nvc0_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nvc0_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
nvd7_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_VP
]
=
&
nvc0_vp_oclass
;
device
->
oclass
[
NVDEV_ENGINE_BSP
]
=
&
nvc0_bsp_oclass
;
...
...
drivers/gpu/drm/nouveau/core/engine/device/nve0.c
View file @
c46c3ddf
...
...
@@ -74,7 +74,7 @@ nve0_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_BAR
]
=
&
nvc0_bar_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nvd0_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nve0_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nvc0_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nvc0_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
nve4_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nve0_disp_oclass
;
device
->
oclass
[
NVDEV_ENGINE_COPY0
]
=
&
nve0_copy0_oclass
;
...
...
@@ -104,7 +104,7 @@ nve0_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_BAR
]
=
&
nvc0_bar_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nvd0_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nve0_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nvc0_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nvc0_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
nve4_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nve0_disp_oclass
;
device
->
oclass
[
NVDEV_ENGINE_COPY0
]
=
&
nve0_copy0_oclass
;
...
...
@@ -134,7 +134,7 @@ nve0_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_BAR
]
=
&
nvc0_bar_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nvd0_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nve0_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nvc0_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nvc0_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
nve4_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nve0_disp_oclass
;
device
->
oclass
[
NVDEV_ENGINE_COPY0
]
=
&
nve0_copy0_oclass
;
...
...
@@ -164,7 +164,7 @@ nve0_identify(struct nouveau_device *device)
device
->
oclass
[
NVDEV_SUBDEV_BAR
]
=
&
nvc0_bar_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DMAOBJ
]
=
&
nvd0_dmaeng_oclass
;
device
->
oclass
[
NVDEV_ENGINE_FIFO
]
=
&
nve0_fifo_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
&
nvc0_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_SW
]
=
nvc0_software_oclass
;
device
->
oclass
[
NVDEV_ENGINE_GR
]
=
nvf0_graph_oclass
;
device
->
oclass
[
NVDEV_ENGINE_DISP
]
=
&
nvf0_disp_oclass
;
device
->
oclass
[
NVDEV_ENGINE_COPY0
]
=
&
nve0_copy0_oclass
;
...
...
drivers/gpu/drm/nouveau/core/engine/software/nv04.c
View file @
c46c3ddf
...
...
@@ -135,8 +135,8 @@ nv04_software_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
return
0
;
}
struct
nouveau_oclass
nv04_software_oclass
=
{
struct
nouveau_oclass
*
nv04_software_oclass
=
&
(
struct
nouveau_oclass
)
{
.
handle
=
NV_ENGINE
(
SW
,
0x04
),
.
ofuncs
=
&
(
struct
nouveau_ofuncs
)
{
.
ctor
=
nv04_software_ctor
,
...
...
drivers/gpu/drm/nouveau/core/engine/software/nv10.c
View file @
c46c3ddf
...
...
@@ -117,8 +117,8 @@ nv10_software_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
return
0
;
}
struct
nouveau_oclass
nv10_software_oclass
=
{
struct
nouveau_oclass
*
nv10_software_oclass
=
&
(
struct
nouveau_oclass
)
{
.
handle
=
NV_ENGINE
(
SW
,
0x10
),
.
ofuncs
=
&
(
struct
nouveau_ofuncs
)
{
.
ctor
=
nv10_software_ctor
,
...
...
drivers/gpu/drm/nouveau/core/engine/software/nv50.c
View file @
c46c3ddf
...
...
@@ -200,13 +200,13 @@ nv50_software_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
return
0
;
}
struct
nouveau_oclass
nv50_software_oclass
=
{
.
handle
=
NV_ENGINE
(
SW
,
0x50
),
.
ofuncs
=
&
(
struct
nouveau_ofuncs
)
{
struct
nouveau_oclass
*
nv50_software_oclass
=
&
(
struct
nv50_software_oclass
)
{
.
base
.
handle
=
NV_ENGINE
(
SW
,
0x50
),
.
base
.
ofuncs
=
&
(
struct
nouveau_ofuncs
)
{
.
ctor
=
nv50_software_ctor
,
.
dtor
=
_nouveau_software_dtor
,
.
init
=
_nouveau_software_init
,
.
fini
=
_nouveau_software_fini
,
},
};
}
.
base
;
drivers/gpu/drm/nouveau/core/engine/software/nv50.h
View file @
c46c3ddf
...
...
@@ -3,6 +3,10 @@
#include <engine/software.h>
struct
nv50_software_oclass
{
struct
nouveau_oclass
base
;
};
struct
nv50_software_priv
{
struct
nouveau_software
base
;
};
...
...
drivers/gpu/drm/nouveau/core/engine/software/nvc0.c
View file @
c46c3ddf
...
...
@@ -207,13 +207,13 @@ nvc0_software_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
return
0
;
}
struct
nouveau_oclass
nvc0_software_oclass
=
{
.
handle
=
NV_ENGINE
(
SW
,
0xc0
),
.
ofuncs
=
&
(
struct
nouveau_ofuncs
)
{
struct
nouveau_oclass
*
nvc0_software_oclass
=
&
(
struct
nv50_software_oclass
)
{
.
base
.
handle
=
NV_ENGINE
(
SW
,
0xc0
),
.
base
.
ofuncs
=
&
(
struct
nouveau_ofuncs
)
{
.
ctor
=
nvc0_software_ctor
,
.
dtor
=
_nouveau_software_dtor
,
.
init
=
_nouveau_software_init
,
.
fini
=
_nouveau_software_fini
,
},
};
}
.
base
;
drivers/gpu/drm/nouveau/core/include/engine/software.h
View file @
c46c3ddf
...
...
@@ -41,10 +41,10 @@ struct nouveau_software {
#define _nouveau_software_init _nouveau_engine_init
#define _nouveau_software_fini _nouveau_engine_fini
extern
struct
nouveau_oclass
nv04_software_oclass
;
extern
struct
nouveau_oclass
nv10_software_oclass
;
extern
struct
nouveau_oclass
nv50_software_oclass
;
extern
struct
nouveau_oclass
nvc0_software_oclass
;
extern
struct
nouveau_oclass
*
nv04_software_oclass
;
extern
struct
nouveau_oclass
*
nv10_software_oclass
;
extern
struct
nouveau_oclass
*
nv50_software_oclass
;
extern
struct
nouveau_oclass
*
nvc0_software_oclass
;
void
nv04_software_intr
(
struct
nouveau_subdev
*
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment