Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
66f24723
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看板
提交
66f24723
编写于
7月 18, 2012
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau: pull nouveau_gem definitions into their own header
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
8be21a64
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
44 addition
and
33 deletion
+44
-33
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_drv.h
+1
-33
drivers/gpu/drm/nouveau/nouveau_gem.h
drivers/gpu/drm/nouveau/nouveau_gem.h
+43
-0
未找到文件。
drivers/gpu/drm/nouveau/nouveau_drv.h
浏览文件 @
66f24723
...
...
@@ -105,15 +105,7 @@ struct nouveau_mem;
#define NOUVEAU_MAX_TILE_NR 15
#include "nouveau_bo.h"
#define nouveau_bo_tile_layout(nvbo) \
((nvbo)->tile_flags & NOUVEAU_GEM_TILE_LAYOUT_MASK)
static
inline
struct
nouveau_bo
*
nouveau_gem_object
(
struct
drm_gem_object
*
gem
)
{
return
gem
?
gem
->
driver_private
:
NULL
;
}
#include "nouveau_gem.h"
/* TODO: submit equivalent to TTM generic API upstream? */
static
inline
void
__iomem
*
...
...
@@ -874,30 +866,6 @@ void nvd0_display_flip_stop(struct drm_crtc *);
int
nvd0_display_flip_next
(
struct
drm_crtc
*
,
struct
drm_framebuffer
*
,
struct
nouveau_channel
*
,
u32
swap_interval
);
/* nouveau_gem.c */
extern
int
nouveau_gem_new
(
struct
drm_device
*
,
int
size
,
int
align
,
uint32_t
domain
,
uint32_t
tile_mode
,
uint32_t
tile_flags
,
struct
nouveau_bo
**
);
extern
int
nouveau_gem_object_new
(
struct
drm_gem_object
*
);
extern
void
nouveau_gem_object_del
(
struct
drm_gem_object
*
);
extern
int
nouveau_gem_object_open
(
struct
drm_gem_object
*
,
struct
drm_file
*
);
extern
void
nouveau_gem_object_close
(
struct
drm_gem_object
*
,
struct
drm_file
*
);
extern
int
nouveau_gem_ioctl_new
(
struct
drm_device
*
,
void
*
,
struct
drm_file
*
);
extern
int
nouveau_gem_ioctl_pushbuf
(
struct
drm_device
*
,
void
*
,
struct
drm_file
*
);
extern
int
nouveau_gem_ioctl_cpu_prep
(
struct
drm_device
*
,
void
*
,
struct
drm_file
*
);
extern
int
nouveau_gem_ioctl_cpu_fini
(
struct
drm_device
*
,
void
*
,
struct
drm_file
*
);
extern
int
nouveau_gem_ioctl_info
(
struct
drm_device
*
,
void
*
,
struct
drm_file
*
);
extern
struct
dma_buf
*
nouveau_gem_prime_export
(
struct
drm_device
*
dev
,
struct
drm_gem_object
*
obj
,
int
flags
);
extern
struct
drm_gem_object
*
nouveau_gem_prime_import
(
struct
drm_device
*
dev
,
struct
dma_buf
*
dma_buf
);
/* nouveau_display.c */
int
nouveau_display_create
(
struct
drm_device
*
dev
);
...
...
drivers/gpu/drm/nouveau/nouveau_gem.h
0 → 100644
浏览文件 @
66f24723
#ifndef __NOUVEAU_GEM_H__
#define __NOUVEAU_GEM_H__
#include "drmP.h"
#include <nouveau_drm.h>
#include "nouveau_bo.h"
#define nouveau_bo_tile_layout(nvbo) \
((nvbo)->tile_flags & NOUVEAU_GEM_TILE_LAYOUT_MASK)
static
inline
struct
nouveau_bo
*
nouveau_gem_object
(
struct
drm_gem_object
*
gem
)
{
return
gem
?
gem
->
driver_private
:
NULL
;
}
/* nouveau_gem.c */
extern
int
nouveau_gem_new
(
struct
drm_device
*
,
int
size
,
int
align
,
uint32_t
domain
,
uint32_t
tile_mode
,
uint32_t
tile_flags
,
struct
nouveau_bo
**
);
extern
int
nouveau_gem_object_new
(
struct
drm_gem_object
*
);
extern
void
nouveau_gem_object_del
(
struct
drm_gem_object
*
);
extern
int
nouveau_gem_object_open
(
struct
drm_gem_object
*
,
struct
drm_file
*
);
extern
void
nouveau_gem_object_close
(
struct
drm_gem_object
*
,
struct
drm_file
*
);
extern
int
nouveau_gem_ioctl_new
(
struct
drm_device
*
,
void
*
,
struct
drm_file
*
);
extern
int
nouveau_gem_ioctl_pushbuf
(
struct
drm_device
*
,
void
*
,
struct
drm_file
*
);
extern
int
nouveau_gem_ioctl_cpu_prep
(
struct
drm_device
*
,
void
*
,
struct
drm_file
*
);
extern
int
nouveau_gem_ioctl_cpu_fini
(
struct
drm_device
*
,
void
*
,
struct
drm_file
*
);
extern
int
nouveau_gem_ioctl_info
(
struct
drm_device
*
,
void
*
,
struct
drm_file
*
);
extern
struct
dma_buf
*
nouveau_gem_prime_export
(
struct
drm_device
*
dev
,
struct
drm_gem_object
*
obj
,
int
flags
);
extern
struct
drm_gem_object
*
nouveau_gem_prime_import
(
struct
drm_device
*
dev
,
struct
dma_buf
*
dma_buf
);
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录