Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
845f2725
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
845f2725
编写于
11月 08, 2015
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/nvif: split out ctxdma interface definitions
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
75445a4d
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
79 addition
and
75 deletion
+79
-75
drivers/gpu/drm/nouveau/include/nvif/cl0002.h
drivers/gpu/drm/nouveau/include/nvif/cl0002.h
+66
-0
drivers/gpu/drm/nouveau/include/nvif/class.h
drivers/gpu/drm/nouveau/include/nvif/class.h
+3
-71
drivers/gpu/drm/nouveau/nouveau_abi16.c
drivers/gpu/drm/nouveau/nouveau_abi16.c
+1
-0
drivers/gpu/drm/nouveau/nouveau_chan.c
drivers/gpu/drm/nouveau/nouveau_chan.c
+1
-0
drivers/gpu/drm/nouveau/nouveau_drm.c
drivers/gpu/drm/nouveau/nouveau_drm.c
+1
-0
drivers/gpu/drm/nouveau/nv17_fence.c
drivers/gpu/drm/nouveau/nv17_fence.c
+1
-0
drivers/gpu/drm/nouveau/nv50_display.c
drivers/gpu/drm/nouveau/nv50_display.c
+1
-0
drivers/gpu/drm/nouveau/nv50_fence.c
drivers/gpu/drm/nouveau/nv50_fence.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/dma/user.c
drivers/gpu/drm/nouveau/nvkm/engine/dma/user.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/dma/usergf100.c
drivers/gpu/drm/nouveau/nvkm/engine/dma/usergf100.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/dma/usergf119.c
drivers/gpu/drm/nouveau/nvkm/engine/dma/usergf119.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/dma/usernv50.c
drivers/gpu/drm/nouveau/nvkm/engine/dma/usernv50.c
+1
-1
未找到文件。
drivers/gpu/drm/nouveau/include/nvif/cl0002.h
0 → 100644
浏览文件 @
845f2725
#ifndef __NVIF_CL0002_H__
#define __NVIF_CL0002_H__
struct
nv_dma_v0
{
__u8
version
;
#define NV_DMA_V0_TARGET_VM 0x00
#define NV_DMA_V0_TARGET_VRAM 0x01
#define NV_DMA_V0_TARGET_PCI 0x02
#define NV_DMA_V0_TARGET_PCI_US 0x03
#define NV_DMA_V0_TARGET_AGP 0x04
__u8
target
;
#define NV_DMA_V0_ACCESS_VM 0x00
#define NV_DMA_V0_ACCESS_RD 0x01
#define NV_DMA_V0_ACCESS_WR 0x02
#define NV_DMA_V0_ACCESS_RDWR (NV_DMA_V0_ACCESS_RD | NV_DMA_V0_ACCESS_WR)
__u8
access
;
__u8
pad03
[
5
];
__u64
start
;
__u64
limit
;
/* ... chipset-specific class data */
};
struct
nv50_dma_v0
{
__u8
version
;
#define NV50_DMA_V0_PRIV_VM 0x00
#define NV50_DMA_V0_PRIV_US 0x01
#define NV50_DMA_V0_PRIV__S 0x02
__u8
priv
;
#define NV50_DMA_V0_PART_VM 0x00
#define NV50_DMA_V0_PART_256 0x01
#define NV50_DMA_V0_PART_1KB 0x02
__u8
part
;
#define NV50_DMA_V0_COMP_NONE 0x00
#define NV50_DMA_V0_COMP_1 0x01
#define NV50_DMA_V0_COMP_2 0x02
#define NV50_DMA_V0_COMP_VM 0x03
__u8
comp
;
#define NV50_DMA_V0_KIND_PITCH 0x00
#define NV50_DMA_V0_KIND_VM 0x7f
__u8
kind
;
__u8
pad05
[
3
];
};
struct
gf100_dma_v0
{
__u8
version
;
#define GF100_DMA_V0_PRIV_VM 0x00
#define GF100_DMA_V0_PRIV_US 0x01
#define GF100_DMA_V0_PRIV__S 0x02
__u8
priv
;
#define GF100_DMA_V0_KIND_PITCH 0x00
#define GF100_DMA_V0_KIND_VM 0xff
__u8
kind
;
__u8
pad03
[
5
];
};
struct
gf119_dma_v0
{
__u8
version
;
#define GF119_DMA_V0_PAGE_LP 0x00
#define GF119_DMA_V0_PAGE_SP 0x01
__u8
page
;
#define GF119_DMA_V0_KIND_PITCH 0x00
#define GF119_DMA_V0_KIND_VM 0xff
__u8
kind
;
__u8
pad03
[
5
];
};
#endif
drivers/gpu/drm/nouveau/include/nvif/class.h
浏览文件 @
845f2725
...
...
@@ -13,9 +13,9 @@
/* the below match nvidia-assigned (either in hw, or sw) class numbers */
#define NV_DEVICE 0x00000080
#define NV_DMA_FROM_MEMORY
0x00000002
#define NV_DMA_TO_MEMORY
0x00000003
#define NV_DMA_IN_MEMORY
0x0000003d
#define NV_DMA_FROM_MEMORY
/* cl0002.h */
0x00000002
#define NV_DMA_TO_MEMORY
/* cl0002.h */
0x00000003
#define NV_DMA_IN_MEMORY
/* cl0002.h */
0x0000003d
#define FERMI_TWOD_A 0x0000902d
...
...
@@ -198,72 +198,4 @@ struct nv_device_time_v0 {
__u8
pad01
[
7
];
__u64
time
;
};
/*******************************************************************************
* context dma
******************************************************************************/
struct
nv_dma_v0
{
__u8
version
;
#define NV_DMA_V0_TARGET_VM 0x00
#define NV_DMA_V0_TARGET_VRAM 0x01
#define NV_DMA_V0_TARGET_PCI 0x02
#define NV_DMA_V0_TARGET_PCI_US 0x03
#define NV_DMA_V0_TARGET_AGP 0x04
__u8
target
;
#define NV_DMA_V0_ACCESS_VM 0x00
#define NV_DMA_V0_ACCESS_RD 0x01
#define NV_DMA_V0_ACCESS_WR 0x02
#define NV_DMA_V0_ACCESS_RDWR (NV_DMA_V0_ACCESS_RD | NV_DMA_V0_ACCESS_WR)
__u8
access
;
__u8
pad03
[
5
];
__u64
start
;
__u64
limit
;
/* ... chipset-specific class data */
};
struct
nv50_dma_v0
{
__u8
version
;
#define NV50_DMA_V0_PRIV_VM 0x00
#define NV50_DMA_V0_PRIV_US 0x01
#define NV50_DMA_V0_PRIV__S 0x02
__u8
priv
;
#define NV50_DMA_V0_PART_VM 0x00
#define NV50_DMA_V0_PART_256 0x01
#define NV50_DMA_V0_PART_1KB 0x02
__u8
part
;
#define NV50_DMA_V0_COMP_NONE 0x00
#define NV50_DMA_V0_COMP_1 0x01
#define NV50_DMA_V0_COMP_2 0x02
#define NV50_DMA_V0_COMP_VM 0x03
__u8
comp
;
#define NV50_DMA_V0_KIND_PITCH 0x00
#define NV50_DMA_V0_KIND_VM 0x7f
__u8
kind
;
__u8
pad05
[
3
];
};
struct
gf100_dma_v0
{
__u8
version
;
#define GF100_DMA_V0_PRIV_VM 0x00
#define GF100_DMA_V0_PRIV_US 0x01
#define GF100_DMA_V0_PRIV__S 0x02
__u8
priv
;
#define GF100_DMA_V0_KIND_PITCH 0x00
#define GF100_DMA_V0_KIND_VM 0xff
__u8
kind
;
__u8
pad03
[
5
];
};
struct
gf119_dma_v0
{
__u8
version
;
#define GF119_DMA_V0_PAGE_LP 0x00
#define GF119_DMA_V0_PAGE_SP 0x01
__u8
page
;
#define GF119_DMA_V0_KIND_PITCH 0x00
#define GF119_DMA_V0_KIND_VM 0xff
__u8
kind
;
__u8
pad03
[
5
];
};
#endif
drivers/gpu/drm/nouveau/nouveau_abi16.c
浏览文件 @
845f2725
...
...
@@ -25,6 +25,7 @@
#include <nvif/driver.h>
#include <nvif/ioctl.h>
#include <nvif/class.h>
#include <nvif/cl0002.h>
#include <nvif/cla06f.h>
#include <nvif/unpack.h>
...
...
drivers/gpu/drm/nouveau/nouveau_chan.c
浏览文件 @
845f2725
...
...
@@ -24,6 +24,7 @@
#include <nvif/os.h>
#include <nvif/class.h>
#include <nvif/cl0002.h>
#include <nvif/cl006b.h>
#include <nvif/cl506f.h>
#include <nvif/cl906f.h>
...
...
drivers/gpu/drm/nouveau/nouveau_drm.c
浏览文件 @
845f2725
...
...
@@ -37,6 +37,7 @@
#include <core/pci.h>
#include <core/tegra.h>
#include <nvif/cl0002.h>
#include <nvif/cla06f.h>
#include <nvif/if0004.h>
...
...
drivers/gpu/drm/nouveau/nv17_fence.c
浏览文件 @
845f2725
...
...
@@ -24,6 +24,7 @@
#include <nvif/os.h>
#include <nvif/class.h>
#include <nvif/cl0002.h>
#include "nouveau_drm.h"
#include "nouveau_dma.h"
...
...
drivers/gpu/drm/nouveau/nv50_display.c
浏览文件 @
845f2725
...
...
@@ -31,6 +31,7 @@
#include <drm/drm_fb_helper.h>
#include <nvif/class.h>
#include <nvif/cl0002.h>
#include <nvif/cl5070.h>
#include <nvif/cl507a.h>
#include <nvif/cl507b.h>
...
...
drivers/gpu/drm/nouveau/nv50_fence.c
浏览文件 @
845f2725
...
...
@@ -24,6 +24,7 @@
#include <nvif/os.h>
#include <nvif/class.h>
#include <nvif/cl0002.h>
#include "nouveau_drm.h"
#include "nouveau_dma.h"
...
...
drivers/gpu/drm/nouveau/nvkm/engine/dma/user.c
浏览文件 @
845f2725
...
...
@@ -28,7 +28,7 @@
#include <subdev/fb.h>
#include <subdev/instmem.h>
#include <nvif/cl
ass
.h>
#include <nvif/cl
0002
.h>
#include <nvif/unpack.h>
static
int
...
...
drivers/gpu/drm/nouveau/nvkm/engine/dma/usergf100.c
浏览文件 @
845f2725
...
...
@@ -28,7 +28,7 @@
#include <core/gpuobj.h>
#include <subdev/fb.h>
#include <nvif/cl
ass
.h>
#include <nvif/cl
0002
.h>
#include <nvif/unpack.h>
struct
gf100_dmaobj
{
...
...
drivers/gpu/drm/nouveau/nvkm/engine/dma/usergf119.c
浏览文件 @
845f2725
...
...
@@ -28,7 +28,7 @@
#include <core/gpuobj.h>
#include <subdev/fb.h>
#include <nvif/cl
ass
.h>
#include <nvif/cl
0002
.h>
#include <nvif/unpack.h>
struct
gf119_dmaobj
{
...
...
drivers/gpu/drm/nouveau/nvkm/engine/dma/usernv50.c
浏览文件 @
845f2725
...
...
@@ -28,7 +28,7 @@
#include <core/gpuobj.h>
#include <subdev/fb.h>
#include <nvif/cl
ass
.h>
#include <nvif/cl
0002
.h>
#include <nvif/unpack.h>
struct
nv50_dmaobj
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录