Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
8ed1730c
cloud-kernel
项目概览
openanolis
/
cloud-kernel
接近 2 年 前同步成功
通知
169
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
8ed1730c
编写于
11月 08, 2015
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/nvif: split out fifo interface definitions
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
7568b106
变更
23
隐藏空白更改
内联
并排
Showing
23 changed file
with
132 addition
and
78 deletion
+132
-78
drivers/gpu/drm/nouveau/include/nvif/cl006b.h
drivers/gpu/drm/nouveau/include/nvif/cl006b.h
+11
-0
drivers/gpu/drm/nouveau/include/nvif/cl506e.h
drivers/gpu/drm/nouveau/include/nvif/cl506e.h
+12
-0
drivers/gpu/drm/nouveau/include/nvif/cl506f.h
drivers/gpu/drm/nouveau/include/nvif/cl506f.h
+13
-0
drivers/gpu/drm/nouveau/include/nvif/cl826e.h
drivers/gpu/drm/nouveau/include/nvif/cl826e.h
+14
-0
drivers/gpu/drm/nouveau/include/nvif/cl826f.h
drivers/gpu/drm/nouveau/include/nvif/cl826f.h
+15
-0
drivers/gpu/drm/nouveau/include/nvif/cl906f.h
drivers/gpu/drm/nouveau/include/nvif/cl906f.h
+14
-0
drivers/gpu/drm/nouveau/include/nvif/cla06f.h
drivers/gpu/drm/nouveau/include/nvif/cla06f.h
+21
-0
drivers/gpu/drm/nouveau/include/nvif/class.h
drivers/gpu/drm/nouveau/include/nvif/class.h
+12
-75
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
+4
-0
drivers/gpu/drm/nouveau/nouveau_drm.c
drivers/gpu/drm/nouveau/nouveau_drm.c
+1
-0
drivers/gpu/drm/nouveau/nouveau_fence.c
drivers/gpu/drm/nouveau/nouveau_fence.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/fifo/chang84.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/chang84.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmag84.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmag84.c
+2
-1
drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv10.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv10.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv17.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv17.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv50.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv50.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifog84.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifog84.c
+2
-1
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifonv50.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifonv50.c
+1
-0
未找到文件。
drivers/gpu/drm/nouveau/include/nvif/cl006b.h
0 → 100644
浏览文件 @
8ed1730c
#ifndef __NVIF_CL006B_H__
#define __NVIF_CL006B_H__
struct
nv03_channel_dma_v0
{
__u8
version
;
__u8
chid
;
__u8
pad02
[
2
];
__u32
offset
;
__u64
pushbuf
;
};
#endif
drivers/gpu/drm/nouveau/include/nvif/cl506e.h
0 → 100644
浏览文件 @
8ed1730c
#ifndef __NVIF_CL506E_H__
#define __NVIF_CL506E_H__
struct
nv50_channel_dma_v0
{
__u8
version
;
__u8
chid
;
__u8
pad02
[
6
];
__u64
vm
;
__u64
pushbuf
;
__u64
offset
;
};
#endif
drivers/gpu/drm/nouveau/include/nvif/cl506f.h
0 → 100644
浏览文件 @
8ed1730c
#ifndef __NVIF_CL506F_H__
#define __NVIF_CL506F_H__
struct
nv50_channel_gpfifo_v0
{
__u8
version
;
__u8
chid
;
__u8
pad02
[
2
];
__u32
ilength
;
__u64
ioffset
;
__u64
pushbuf
;
__u64
vm
;
};
#endif
drivers/gpu/drm/nouveau/include/nvif/cl826e.h
0 → 100644
浏览文件 @
8ed1730c
#ifndef __NVIF_CL826E_H__
#define __NVIF_CL826E_H__
struct
g82_channel_dma_v0
{
__u8
version
;
__u8
chid
;
__u8
pad02
[
6
];
__u64
vm
;
__u64
pushbuf
;
__u64
offset
;
};
#define G82_CHANNEL_DMA_V0_NTFY_UEVENT 0x00
#endif
drivers/gpu/drm/nouveau/include/nvif/cl826f.h
0 → 100644
浏览文件 @
8ed1730c
#ifndef __NVIF_CL826F_H__
#define __NVIF_CL826F_H__
struct
g82_channel_gpfifo_v0
{
__u8
version
;
__u8
chid
;
__u8
pad02
[
2
];
__u32
ilength
;
__u64
ioffset
;
__u64
pushbuf
;
__u64
vm
;
};
#define G82_CHANNEL_GPFIFO_V0_NTFY_UEVENT 0x00
#endif
drivers/gpu/drm/nouveau/include/nvif/cl906f.h
0 → 100644
浏览文件 @
8ed1730c
#ifndef __NVIF_CL906F_H__
#define __NVIF_CL906F_H__
struct
fermi_channel_gpfifo_v0
{
__u8
version
;
__u8
chid
;
__u8
pad02
[
2
];
__u32
ilength
;
__u64
ioffset
;
__u64
vm
;
};
#define FERMI_CHANNEL_GPFIFO_V0_NTFY_UEVENT 0x00
#endif
drivers/gpu/drm/nouveau/include/nvif/cla06f.h
0 → 100644
浏览文件 @
8ed1730c
#ifndef __NVIF_CLA06F_H__
#define __NVIF_CLA06F_H__
struct
kepler_channel_gpfifo_a_v0
{
__u8
version
;
#define KEPLER_CHANNEL_GPFIFO_A_V0_ENGINE_GR 0x01
#define KEPLER_CHANNEL_GPFIFO_A_V0_ENGINE_MSPDEC 0x02
#define KEPLER_CHANNEL_GPFIFO_A_V0_ENGINE_MSPPP 0x04
#define KEPLER_CHANNEL_GPFIFO_A_V0_ENGINE_MSVLD 0x08
#define KEPLER_CHANNEL_GPFIFO_A_V0_ENGINE_CE0 0x10
#define KEPLER_CHANNEL_GPFIFO_A_V0_ENGINE_CE1 0x20
#define KEPLER_CHANNEL_GPFIFO_A_V0_ENGINE_ENC 0x40
__u8
engine
;
__u16
chid
;
__u32
ilength
;
__u64
ioffset
;
__u64
vm
;
};
#define KEPLER_CHANNEL_GPFIFO_A_V0_NTFY_UEVENT 0x00
#endif
drivers/gpu/drm/nouveau/include/nvif/class.h
浏览文件 @
8ed1730c
...
...
@@ -26,18 +26,18 @@
#define NV04_DISP
/* cl0046.h */
0x00000046
#define NV03_CHANNEL_DMA
0x0000006b
#define NV10_CHANNEL_DMA
0x0000006e
#define NV17_CHANNEL_DMA
0x0000176e
#define NV40_CHANNEL_DMA
0x0000406e
#define NV50_CHANNEL_DMA
0x0000506e
#define G82_CHANNEL_DMA
0x0000826e
#define NV50_CHANNEL_GPFIFO
0x0000506f
#define G82_CHANNEL_GPFIFO
0x0000826f
#define FERMI_CHANNEL_GPFIFO
0x0000906f
#define KEPLER_CHANNEL_GPFIFO_A
0x0000a06f
#define MAXWELL_CHANNEL_GPFIFO_A
0x0000b06f
#define NV03_CHANNEL_DMA
/* cl506b.h */
0x0000006b
#define NV10_CHANNEL_DMA
/* cl506b.h */
0x0000006e
#define NV17_CHANNEL_DMA
/* cl506b.h */
0x0000176e
#define NV40_CHANNEL_DMA
/* cl506b.h */
0x0000406e
#define NV50_CHANNEL_DMA
/* cl506e.h */
0x0000506e
#define G82_CHANNEL_DMA
/* cl826e.h */
0x0000826e
#define NV50_CHANNEL_GPFIFO
/* cl506f.h */
0x0000506f
#define G82_CHANNEL_GPFIFO
/* cl826f.h */
0x0000826f
#define FERMI_CHANNEL_GPFIFO
/* cl906f.h */
0x0000906f
#define KEPLER_CHANNEL_GPFIFO_A
/* cla06f.h */
0x0000a06f
#define MAXWELL_CHANNEL_GPFIFO_A
/* cla06f.h */
0x0000b06f
#define NV50_DISP
/* cl5070.h */
0x00005070
#define G82_DISP
/* cl5070.h */
0x00008270
...
...
@@ -389,67 +389,4 @@ struct nvif_control_pstate_user_v0 {
__s8
pwrsrc
;
/* in: target power source */
__u8
pad03
[
5
];
};
/*******************************************************************************
* DMA FIFO channels
******************************************************************************/
struct
nv03_channel_dma_v0
{
__u8
version
;
__u8
chid
;
__u8
pad02
[
2
];
__u32
offset
;
__u64
pushbuf
;
};
struct
nv50_channel_dma_v0
{
__u8
version
;
__u8
chid
;
__u8
pad02
[
6
];
__u64
vm
;
__u64
pushbuf
;
__u64
offset
;
};
#define G82_CHANNEL_DMA_V0_NTFY_UEVENT 0x00
/*******************************************************************************
* GPFIFO channels
******************************************************************************/
struct
nv50_channel_gpfifo_v0
{
__u8
version
;
__u8
chid
;
__u8
pad02
[
2
];
__u32
ilength
;
__u64
ioffset
;
__u64
pushbuf
;
__u64
vm
;
};
struct
fermi_channel_gpfifo_v0
{
__u8
version
;
__u8
chid
;
__u8
pad02
[
2
];
__u32
ilength
;
__u64
ioffset
;
__u64
vm
;
};
struct
kepler_channel_gpfifo_a_v0
{
__u8
version
;
#define KEPLER_CHANNEL_GPFIFO_A_V0_ENGINE_GR 0x01
#define KEPLER_CHANNEL_GPFIFO_A_V0_ENGINE_MSPDEC 0x02
#define KEPLER_CHANNEL_GPFIFO_A_V0_ENGINE_MSPPP 0x04
#define KEPLER_CHANNEL_GPFIFO_A_V0_ENGINE_MSVLD 0x08
#define KEPLER_CHANNEL_GPFIFO_A_V0_ENGINE_CE0 0x10
#define KEPLER_CHANNEL_GPFIFO_A_V0_ENGINE_CE1 0x20
#define KEPLER_CHANNEL_GPFIFO_A_V0_ENGINE_ENC 0x40
__u8
engine
;
__u16
chid
;
__u32
ilength
;
__u64
ioffset
;
__u64
vm
;
};
#endif
drivers/gpu/drm/nouveau/nouveau_abi16.c
浏览文件 @
8ed1730c
...
...
@@ -25,6 +25,7 @@
#include <nvif/driver.h>
#include <nvif/ioctl.h>
#include <nvif/class.h>
#include <nvif/cla06f.h>
#include <nvif/unpack.h>
#include "nouveau_drm.h"
...
...
drivers/gpu/drm/nouveau/nouveau_chan.c
浏览文件 @
8ed1730c
...
...
@@ -24,6 +24,10 @@
#include <nvif/os.h>
#include <nvif/class.h>
#include <nvif/cl006b.h>
#include <nvif/cl506f.h>
#include <nvif/cl906f.h>
#include <nvif/cla06f.h>
#include <nvif/ioctl.h>
/*XXX*/
...
...
drivers/gpu/drm/nouveau/nouveau_drm.c
浏览文件 @
8ed1730c
...
...
@@ -37,6 +37,7 @@
#include <core/pci.h>
#include <core/tegra.h>
#include <nvif/cla06f.h>
#include <nvif/if0004.h>
#include "nouveau_drm.h"
...
...
drivers/gpu/drm/nouveau/nouveau_fence.c
浏览文件 @
8ed1730c
...
...
@@ -30,6 +30,7 @@
#include <linux/hrtimer.h>
#include <trace/events/fence.h>
#include <nvif/cl826e.h>
#include <nvif/notify.h>
#include <nvif/event.h>
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/chang84.c
浏览文件 @
8ed1730c
...
...
@@ -28,7 +28,7 @@
#include <subdev/mmu.h>
#include <subdev/timer.h>
#include <nvif/cl
ass
.h>
#include <nvif/cl
826e
.h>
int
g84_fifo_chan_ntfy
(
struct
nvkm_fifo_chan
*
chan
,
u32
type
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmag84.c
浏览文件 @
8ed1730c
...
...
@@ -27,6 +27,7 @@
#include <core/ramht.h>
#include <nvif/class.h>
#include <nvif/cl826e.h>
#include <nvif/unpack.h>
static
int
...
...
@@ -35,7 +36,7 @@ g84_fifo_dma_new(struct nvkm_fifo *base, const struct nvkm_oclass *oclass,
{
struct
nvkm_object
*
parent
=
oclass
->
parent
;
union
{
struct
nv50
_channel_dma_v0
v0
;
struct
g82
_channel_dma_v0
v0
;
}
*
args
=
data
;
struct
nv50_fifo
*
fifo
=
nv50_fifo
(
base
);
struct
nv50_fifo_chan
*
chan
;
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c
浏览文件 @
8ed1730c
...
...
@@ -29,6 +29,7 @@
#include <subdev/instmem.h>
#include <nvif/class.h>
#include <nvif/cl006b.h>
#include <nvif/unpack.h>
void
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv10.c
浏览文件 @
8ed1730c
...
...
@@ -29,6 +29,7 @@
#include <subdev/instmem.h>
#include <nvif/class.h>
#include <nvif/cl006b.h>
#include <nvif/unpack.h>
static
int
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv17.c
浏览文件 @
8ed1730c
...
...
@@ -29,6 +29,7 @@
#include <subdev/instmem.h>
#include <nvif/class.h>
#include <nvif/cl006b.h>
#include <nvif/unpack.h>
static
int
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c
浏览文件 @
8ed1730c
...
...
@@ -29,6 +29,7 @@
#include <subdev/instmem.h>
#include <nvif/class.h>
#include <nvif/cl006b.h>
#include <nvif/unpack.h>
static
bool
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv50.c
浏览文件 @
8ed1730c
...
...
@@ -27,6 +27,7 @@
#include <core/ramht.h>
#include <nvif/class.h>
#include <nvif/cl506e.h>
#include <nvif/unpack.h>
static
int
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifog84.c
浏览文件 @
8ed1730c
...
...
@@ -27,6 +27,7 @@
#include <core/ramht.h>
#include <nvif/class.h>
#include <nvif/cl826f.h>
#include <nvif/unpack.h>
static
int
...
...
@@ -35,7 +36,7 @@ g84_fifo_gpfifo_new(struct nvkm_fifo *base, const struct nvkm_oclass *oclass,
{
struct
nvkm_object
*
parent
=
oclass
->
parent
;
union
{
struct
nv50
_channel_gpfifo_v0
v0
;
struct
g82
_channel_gpfifo_v0
v0
;
}
*
args
=
data
;
struct
nv50_fifo
*
fifo
=
nv50_fifo
(
base
);
struct
nv50_fifo_chan
*
chan
;
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c
浏览文件 @
8ed1730c
...
...
@@ -29,6 +29,7 @@
#include <subdev/timer.h>
#include <nvif/class.h>
#include <nvif/cl906f.h>
#include <nvif/unpack.h>
static
u32
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c
浏览文件 @
8ed1730c
...
...
@@ -30,6 +30,7 @@
#include <subdev/timer.h>
#include <nvif/class.h>
#include <nvif/cla06f.h>
#include <nvif/unpack.h>
static
int
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifonv50.c
浏览文件 @
8ed1730c
...
...
@@ -27,6 +27,7 @@
#include <core/ramht.h>
#include <nvif/class.h>
#include <nvif/cl506f.h>
#include <nvif/unpack.h>
static
int
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录