-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drm/nouveau/dmaobj: namespace + nvidia gpu names (no binary change)
The namespace of NVKM is being changed to nvkm_ instead of nouveau_, which will be used for the DRM part of the driver. This is being done in order to make it very clear as to what part of the driver a given symbol belongs to, and as a minor step towards splitting the DRM driver out to be able to stand on its own (for virt). Because there's already a large amount of churn here anyway, this is as good a time as any to also switch to NVIDIA's device and chipset naming to ease collaboration with them. A comparison of objdump disassemblies proves no code changes. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
- Loading branch information
Ben Skeggs
committed
Jan 22, 2015
1 parent
878da15
commit 5b85057
Showing
11 changed files
with
157 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,26 @@ | ||
#ifndef __NOUVEAU_DMAOBJ_H__ | ||
#define __NOUVEAU_DMAOBJ_H__ | ||
|
||
#include <core/object.h> | ||
#ifndef __NVKM_DMAOBJ_H__ | ||
#define __NVKM_DMAOBJ_H__ | ||
#include <core/engine.h> | ||
struct nvkm_gpuobj; | ||
|
||
struct nouveau_gpuobj; | ||
|
||
struct nouveau_dmaobj { | ||
struct nouveau_object base; | ||
struct nvkm_dmaobj { | ||
struct nvkm_object base; | ||
u32 target; | ||
u32 access; | ||
u64 start; | ||
u64 limit; | ||
}; | ||
|
||
struct nouveau_dmaeng { | ||
struct nouveau_engine base; | ||
struct nvkm_dmaeng { | ||
struct nvkm_engine base; | ||
|
||
/* creates a "physical" dma object from a struct nouveau_dmaobj */ | ||
int (*bind)(struct nouveau_dmaobj *dmaobj, | ||
struct nouveau_object *parent, | ||
struct nouveau_gpuobj **); | ||
/* creates a "physical" dma object from a struct nvkm_dmaobj */ | ||
int (*bind)(struct nvkm_dmaobj *dmaobj, struct nvkm_object *parent, | ||
struct nvkm_gpuobj **); | ||
}; | ||
|
||
extern struct nouveau_oclass *nv04_dmaeng_oclass; | ||
extern struct nouveau_oclass *nv50_dmaeng_oclass; | ||
extern struct nouveau_oclass *nvc0_dmaeng_oclass; | ||
extern struct nouveau_oclass *nvd0_dmaeng_oclass; | ||
|
||
extern struct nvkm_oclass *nv04_dmaeng_oclass; | ||
extern struct nvkm_oclass *nv50_dmaeng_oclass; | ||
extern struct nvkm_oclass *gf100_dmaeng_oclass; | ||
extern struct nvkm_oclass *gf110_dmaeng_oclass; | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
nvkm-y += nvkm/engine/dmaobj/base.o | ||
nvkm-y += nvkm/engine/dmaobj/nv04.o | ||
nvkm-y += nvkm/engine/dmaobj/nv50.o | ||
nvkm-y += nvkm/engine/dmaobj/nvc0.o | ||
nvkm-y += nvkm/engine/dmaobj/nvd0.o | ||
nvkm-y += nvkm/engine/dmaobj/gf100.o | ||
nvkm-y += nvkm/engine/dmaobj/gf110.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.