Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
54a56ac5
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看板
提交
54a56ac5
编写于
9月 22, 2006
作者:
D
Dave Airlie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm: use radeon specific names for radeon flags
Signed-off-by:
N
Dave Airlie
<
airlied@linux.ie
>
上级
2f02cc3f
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
128 addition
and
128 deletion
+128
-128
drivers/char/drm/drm_pciids.h
drivers/char/drm/drm_pciids.h
+89
-89
drivers/char/drm/radeon_cp.c
drivers/char/drm/radeon_cp.c
+23
-23
drivers/char/drm/radeon_drv.c
drivers/char/drm/radeon_drv.c
+1
-1
drivers/char/drm/radeon_drv.h
drivers/char/drm/radeon_drv.h
+10
-10
drivers/char/drm/radeon_state.c
drivers/char/drm/radeon_state.c
+5
-5
未找到文件。
drivers/char/drm/drm_pciids.h
浏览文件 @
54a56ac5
...
...
@@ -3,13 +3,13 @@
Please contact dri-devel@lists.sf.net to add new cards to this list
*/
#define radeon_PCI_IDS \
{0x1002, 0x3150, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|
CHIP
_IS_MOBILITY}, \
{0x1002, 0x3152, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|
CHIP_IS_MOBILITY|CHIP
_NEW_MEMMAP}, \
{0x1002, 0x3154, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|
CHIP_IS_MOBILITY|CHIP
_NEW_MEMMAP}, \
{0x1002, 0x3E50, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x3E54, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x4136, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS100|
CHIP
_IS_IGP}, \
{0x1002, 0x4137, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS200|
CHIP
_IS_IGP}, \
{0x1002, 0x3150, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|
RADEON
_IS_MOBILITY}, \
{0x1002, 0x3152, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|
RADEON_IS_MOBILITY|RADEON
_NEW_MEMMAP}, \
{0x1002, 0x3154, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|
RADEON_IS_MOBILITY|RADEON
_NEW_MEMMAP}, \
{0x1002, 0x3E50, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x3E54, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x4136, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS100|
RADEON
_IS_IGP}, \
{0x1002, 0x4137, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS200|
RADEON
_IS_IGP}, \
{0x1002, 0x4144, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R300}, \
{0x1002, 0x4145, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R300}, \
{0x1002, 0x4146, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R300}, \
...
...
@@ -25,35 +25,35 @@
{0x1002, 0x4154, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV350}, \
{0x1002, 0x4155, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV350}, \
{0x1002, 0x4156, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV350}, \
{0x1002, 0x4237, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS200|
CHIP
_IS_IGP}, \
{0x1002, 0x4237, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS200|
RADEON
_IS_IGP}, \
{0x1002, 0x4242, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R200}, \
{0x1002, 0x4243, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R200}, \
{0x1002, 0x4336, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS100|
CHIP_IS_IGP|CHIP
_IS_MOBILITY}, \
{0x1002, 0x4337, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS200|
CHIP_IS_IGP|CHIP
_IS_MOBILITY}, \
{0x1002, 0x4437, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS200|
CHIP_IS_IGP|CHIP
_IS_MOBILITY}, \
{0x1002, 0x4336, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS100|
RADEON_IS_IGP|RADEON
_IS_MOBILITY}, \
{0x1002, 0x4337, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS200|
RADEON_IS_IGP|RADEON
_IS_MOBILITY}, \
{0x1002, 0x4437, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS200|
RADEON_IS_IGP|RADEON
_IS_MOBILITY}, \
{0x1002, 0x4966, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV250}, \
{0x1002, 0x4967, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV250}, \
{0x1002, 0x4A48, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x4A49, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x4A4A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x4A4B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x4A4C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x4A4D, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x4A4E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP_IS_MOBILITY|CHIP
_NEW_MEMMAP}, \
{0x1002, 0x4A4F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x4A50, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x4A54, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x4B49, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x4B4A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x4B4B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x4B4C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x4C57, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV200|
CHIP
_IS_MOBILITY}, \
{0x1002, 0x4C58, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV200|
CHIP
_IS_MOBILITY}, \
{0x1002, 0x4C59, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV100|
CHIP
_IS_MOBILITY}, \
{0x1002, 0x4C5A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV100|
CHIP
_IS_MOBILITY}, \
{0x1002, 0x4C64, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV250|
CHIP
_IS_MOBILITY}, \
{0x1002, 0x4C66, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV250|
CHIP
_IS_MOBILITY}, \
{0x1002, 0x4C67, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV250|
CHIP
_IS_MOBILITY}, \
{0x1002, 0x4A48, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x4A49, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x4A4A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x4A4B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x4A4C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x4A4D, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x4A4E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON_IS_MOBILITY|RADEON
_NEW_MEMMAP}, \
{0x1002, 0x4A4F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x4A50, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x4A54, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x4B49, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x4B4A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x4B4B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x4B4C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x4C57, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV200|
RADEON
_IS_MOBILITY}, \
{0x1002, 0x4C58, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV200|
RADEON
_IS_MOBILITY}, \
{0x1002, 0x4C59, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV100|
RADEON
_IS_MOBILITY}, \
{0x1002, 0x4C5A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV100|
RADEON
_IS_MOBILITY}, \
{0x1002, 0x4C64, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV250|
RADEON
_IS_MOBILITY}, \
{0x1002, 0x4C66, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV250|
RADEON
_IS_MOBILITY}, \
{0x1002, 0x4C67, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV250|
RADEON
_IS_MOBILITY}, \
{0x1002, 0x4E44, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R300}, \
{0x1002, 0x4E45, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R300}, \
{0x1002, 0x4E46, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R300}, \
...
...
@@ -62,16 +62,16 @@
{0x1002, 0x4E49, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R350}, \
{0x1002, 0x4E4A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R350}, \
{0x1002, 0x4E4B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R350}, \
{0x1002, 0x4E50, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV350|
CHIP
_IS_MOBILITY}, \
{0x1002, 0x4E51, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV350|
CHIP
_IS_MOBILITY}, \
{0x1002, 0x4E52, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV350|
CHIP
_IS_MOBILITY}, \
{0x1002, 0x4E53, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV350|
CHIP
_IS_MOBILITY}, \
{0x1002, 0x4E54, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV350|
CHIP
_IS_MOBILITY}, \
{0x1002, 0x4E56, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV350|
CHIP
_IS_MOBILITY}, \
{0x1002, 0x5144, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R100|
CHIP
_SINGLE_CRTC}, \
{0x1002, 0x5145, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R100|
CHIP
_SINGLE_CRTC}, \
{0x1002, 0x5146, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R100|
CHIP
_SINGLE_CRTC}, \
{0x1002, 0x5147, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R100|
CHIP
_SINGLE_CRTC}, \
{0x1002, 0x4E50, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV350|
RADEON
_IS_MOBILITY}, \
{0x1002, 0x4E51, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV350|
RADEON
_IS_MOBILITY}, \
{0x1002, 0x4E52, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV350|
RADEON
_IS_MOBILITY}, \
{0x1002, 0x4E53, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV350|
RADEON
_IS_MOBILITY}, \
{0x1002, 0x4E54, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV350|
RADEON
_IS_MOBILITY}, \
{0x1002, 0x4E56, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV350|
RADEON
_IS_MOBILITY}, \
{0x1002, 0x5144, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R100|
RADEON
_SINGLE_CRTC}, \
{0x1002, 0x5145, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R100|
RADEON
_SINGLE_CRTC}, \
{0x1002, 0x5146, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R100|
RADEON
_SINGLE_CRTC}, \
{0x1002, 0x5147, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R100|
RADEON
_SINGLE_CRTC}, \
{0x1002, 0x5148, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R200}, \
{0x1002, 0x514C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R200}, \
{0x1002, 0x514D, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R200}, \
...
...
@@ -80,59 +80,59 @@
{0x1002, 0x5159, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV100}, \
{0x1002, 0x515A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV100}, \
{0x1002, 0x515E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV100}, \
{0x1002, 0x5460, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|
CHIP
_IS_MOBILITY}, \
{0x1002, 0x5462, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|
CHIP
_IS_MOBILITY}, \
{0x1002, 0x5464, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|
CHIP
_IS_MOBILITY}, \
{0x1002, 0x5548, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5549, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x554A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x554B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x554C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x554D, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x554E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x554F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5550, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5551, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5552, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5554, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x564A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|
CHIP_IS_MOBILITY|CHIP
_NEW_MEMMAP}, \
{0x1002, 0x564B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|
CHIP_IS_MOBILITY|CHIP
_NEW_MEMMAP}, \
{0x1002, 0x564F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|
CHIP_IS_MOBILITY|CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5652, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|
CHIP_IS_MOBILITY|CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5653, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|
CHIP_IS_MOBILITY|CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5834, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS300|
CHIP
_IS_IGP}, \
{0x1002, 0x5835, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS300|
CHIP_IS_IGP|CHIP
_IS_MOBILITY}, \
{0x1002, 0x5460, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|
RADEON
_IS_MOBILITY}, \
{0x1002, 0x5462, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|
RADEON
_IS_MOBILITY}, \
{0x1002, 0x5464, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|
RADEON
_IS_MOBILITY}, \
{0x1002, 0x5548, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x5549, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x554A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x554B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x554C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x554D, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x554E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x554F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x5550, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x5551, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x5552, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x5554, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x564A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|
RADEON_IS_MOBILITY|RADEON
_NEW_MEMMAP}, \
{0x1002, 0x564B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|
RADEON_IS_MOBILITY|RADEON
_NEW_MEMMAP}, \
{0x1002, 0x564F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|
RADEON_IS_MOBILITY|RADEON
_NEW_MEMMAP}, \
{0x1002, 0x5652, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|
RADEON_IS_MOBILITY|RADEON
_NEW_MEMMAP}, \
{0x1002, 0x5653, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|
RADEON_IS_MOBILITY|RADEON
_NEW_MEMMAP}, \
{0x1002, 0x5834, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS300|
RADEON
_IS_IGP}, \
{0x1002, 0x5835, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS300|
RADEON_IS_IGP|RADEON
_IS_MOBILITY}, \
{0x1002, 0x5960, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV280}, \
{0x1002, 0x5961, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV280}, \
{0x1002, 0x5962, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV280}, \
{0x1002, 0x5964, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV280}, \
{0x1002, 0x5965, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV280}, \
{0x1002, 0x5969, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV100}, \
{0x1002, 0x5b60, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5b62, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5b63, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5b64, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5b65, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5c61, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV280|
CHIP
_IS_MOBILITY}, \
{0x1002, 0x5c63, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV280|
CHIP
_IS_MOBILITY}, \
{0x1002, 0x5d48, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP_IS_MOBILITY|CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5d49, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP_IS_MOBILITY|CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5d4a, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP_IS_MOBILITY|CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5d4c, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5d4d, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5d4e, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5d4f, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5d50, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5d52, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5d57, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5e48, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5e4a, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5e4b, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5e4c, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5e4d, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5e4f, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|
CHIP
_NEW_MEMMAP}, \
{0x1002, 0x7834, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS300|
CHIP_IS_IGP|CHIP
_NEW_MEMMAP}, \
{0x1002, 0x7835, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS300|
CHIP_IS_IGP|CHIP_IS_MOBILITY|CHIP
_NEW_MEMMAP}, \
{0x1002, 0x5b60, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x5b62, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x5b63, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x5b64, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x5b65, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x5c61, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV280|
RADEON
_IS_MOBILITY}, \
{0x1002, 0x5c63, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV280|
RADEON
_IS_MOBILITY}, \
{0x1002, 0x5d48, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON_IS_MOBILITY|RADEON
_NEW_MEMMAP}, \
{0x1002, 0x5d49, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON_IS_MOBILITY|RADEON
_NEW_MEMMAP}, \
{0x1002, 0x5d4a, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON_IS_MOBILITY|RADEON
_NEW_MEMMAP}, \
{0x1002, 0x5d4c, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x5d4d, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x5d4e, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x5d4f, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x5d50, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x5d52, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x5d57, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x5e48, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x5e4a, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x5e4b, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x5e4c, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x5e4d, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x5e4f, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|
RADEON
_NEW_MEMMAP}, \
{0x1002, 0x7834, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS300|
RADEON_IS_IGP|RADEON
_NEW_MEMMAP}, \
{0x1002, 0x7835, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS300|
RADEON_IS_IGP|RADEON_IS_MOBILITY|RADEON
_NEW_MEMMAP}, \
{0, 0, 0}
#define r128_PCI_IDS \
...
...
drivers/char/drm/radeon_cp.c
浏览文件 @
54a56ac5
...
...
@@ -1130,7 +1130,7 @@ static void radeon_cp_init_ring_buffer(drm_device_t * dev,
|
(
dev_priv
->
fb_location
>>
16
));
#if __OS_HAS_AGP
if
(
dev_priv
->
flags
&
CHIP
_IS_AGP
)
{
if
(
dev_priv
->
flags
&
RADEON
_IS_AGP
)
{
RADEON_WRITE
(
RADEON_AGP_BASE
,
(
unsigned
int
)
dev
->
agp
->
base
);
RADEON_WRITE
(
RADEON_MC_AGP_LOCATION
,
(((
dev_priv
->
gart_vm_start
-
1
+
...
...
@@ -1158,7 +1158,7 @@ static void radeon_cp_init_ring_buffer(drm_device_t * dev,
dev_priv
->
ring
.
tail
=
cur_read_ptr
;
#if __OS_HAS_AGP
if
(
dev_priv
->
flags
&
CHIP
_IS_AGP
)
{
if
(
dev_priv
->
flags
&
RADEON
_IS_AGP
)
{
RADEON_WRITE
(
RADEON_CP_RB_RPTR_ADDR
,
dev_priv
->
ring_rptr
->
offset
-
dev
->
agp
->
base
+
dev_priv
->
gart_vm_start
);
...
...
@@ -1302,7 +1302,7 @@ static void radeon_set_pcigart(drm_radeon_private_t * dev_priv, int on)
{
u32
tmp
;
if
(
dev_priv
->
flags
&
CHIP
_IS_PCIE
)
{
if
(
dev_priv
->
flags
&
RADEON
_IS_PCIE
)
{
radeon_set_pciegart
(
dev_priv
,
on
);
return
;
}
...
...
@@ -1340,22 +1340,22 @@ static int radeon_do_init_cp(drm_device_t * dev, drm_radeon_init_t * init)
DRM_DEBUG
(
"
\n
"
);
/* if we require new memory map but we don't have it fail */
if
((
dev_priv
->
flags
&
CHIP
_NEW_MEMMAP
)
&&
!
dev_priv
->
new_memmap
)
{
if
((
dev_priv
->
flags
&
RADEON
_NEW_MEMMAP
)
&&
!
dev_priv
->
new_memmap
)
{
DRM_ERROR
(
"Cannot initialise DRM on this card
\n
This card requires a new X.org DDX for 3D
\n
"
);
radeon_do_cleanup_cp
(
dev
);
return
DRM_ERR
(
EINVAL
);
}
if
(
init
->
is_pci
&&
(
dev_priv
->
flags
&
CHIP
_IS_AGP
))
{
if
(
init
->
is_pci
&&
(
dev_priv
->
flags
&
RADEON
_IS_AGP
))
{
DRM_DEBUG
(
"Forcing AGP card to PCI mode
\n
"
);
dev_priv
->
flags
&=
~
CHIP
_IS_AGP
;
}
else
if
(
!
(
dev_priv
->
flags
&
(
CHIP_IS_AGP
|
CHIP_IS_PCI
|
CHIP
_IS_PCIE
))
dev_priv
->
flags
&=
~
RADEON
_IS_AGP
;
}
else
if
(
!
(
dev_priv
->
flags
&
(
RADEON_IS_AGP
|
RADEON_IS_PCI
|
RADEON
_IS_PCIE
))
&&
!
init
->
is_pci
)
{
DRM_DEBUG
(
"Restoring AGP flag
\n
"
);
dev_priv
->
flags
|=
CHIP
_IS_AGP
;
dev_priv
->
flags
|=
RADEON
_IS_AGP
;
}
if
((
!
(
dev_priv
->
flags
&
CHIP
_IS_AGP
))
&&
!
dev
->
sg
)
{
if
((
!
(
dev_priv
->
flags
&
RADEON
_IS_AGP
))
&&
!
dev
->
sg
)
{
DRM_ERROR
(
"PCI GART memory not allocated!
\n
"
);
radeon_do_cleanup_cp
(
dev
);
return
DRM_ERR
(
EINVAL
);
...
...
@@ -1498,7 +1498,7 @@ static int radeon_do_init_cp(drm_device_t * dev, drm_radeon_init_t * init)
init
->
sarea_priv_offset
);
#if __OS_HAS_AGP
if
(
dev_priv
->
flags
&
CHIP
_IS_AGP
)
{
if
(
dev_priv
->
flags
&
RADEON
_IS_AGP
)
{
drm_core_ioremap
(
dev_priv
->
cp_ring
,
dev
);
drm_core_ioremap
(
dev_priv
->
ring_rptr
,
dev
);
drm_core_ioremap
(
dev
->
agp_buffer_map
,
dev
);
...
...
@@ -1557,7 +1557,7 @@ static int radeon_do_init_cp(drm_device_t * dev, drm_radeon_init_t * init)
* align it down.
*/
#if __OS_HAS_AGP
if
(
dev_priv
->
flags
&
CHIP
_IS_AGP
)
{
if
(
dev_priv
->
flags
&
RADEON
_IS_AGP
)
{
base
=
dev
->
agp
->
base
;
/* Check if valid */
if
((
base
+
dev_priv
->
gart_size
)
>
dev_priv
->
fb_location
&&
...
...
@@ -1587,7 +1587,7 @@ static int radeon_do_init_cp(drm_device_t * dev, drm_radeon_init_t * init)
}
#if __OS_HAS_AGP
if
(
dev_priv
->
flags
&
CHIP
_IS_AGP
)
if
(
dev_priv
->
flags
&
RADEON
_IS_AGP
)
dev_priv
->
gart_buffers_offset
=
(
dev
->
agp_buffer_map
->
offset
-
dev
->
agp
->
base
+
dev_priv
->
gart_vm_start
);
...
...
@@ -1613,7 +1613,7 @@ static int radeon_do_init_cp(drm_device_t * dev, drm_radeon_init_t * init)
dev_priv
->
ring
.
high_mark
=
RADEON_RING_HIGH_MARK
;
#if __OS_HAS_AGP
if
(
dev_priv
->
flags
&
CHIP
_IS_AGP
)
{
if
(
dev_priv
->
flags
&
RADEON
_IS_AGP
)
{
/* Turn off PCI GART */
radeon_set_pcigart
(
dev_priv
,
0
);
}
else
...
...
@@ -1633,7 +1633,7 @@ static int radeon_do_init_cp(drm_device_t * dev, drm_radeon_init_t * init)
dev_priv
->
gart_info
.
mapping
.
handle
;
dev_priv
->
gart_info
.
is_pcie
=
!!
(
dev_priv
->
flags
&
CHIP
_IS_PCIE
);
!!
(
dev_priv
->
flags
&
RADEON
_IS_PCIE
);
dev_priv
->
gart_info
.
gart_table_location
=
DRM_ATI_GART_FB
;
...
...
@@ -1645,7 +1645,7 @@ static int radeon_do_init_cp(drm_device_t * dev, drm_radeon_init_t * init)
DRM_ATI_GART_MAIN
;
dev_priv
->
gart_info
.
addr
=
NULL
;
dev_priv
->
gart_info
.
bus_addr
=
0
;
if
(
dev_priv
->
flags
&
CHIP
_IS_PCIE
)
{
if
(
dev_priv
->
flags
&
RADEON
_IS_PCIE
)
{
DRM_ERROR
(
"Cannot use PCI Express without GART in FB memory
\n
"
);
radeon_do_cleanup_cp
(
dev
);
...
...
@@ -1687,7 +1687,7 @@ static int radeon_do_cleanup_cp(drm_device_t * dev)
drm_irq_uninstall
(
dev
);
#if __OS_HAS_AGP
if
(
dev_priv
->
flags
&
CHIP
_IS_AGP
)
{
if
(
dev_priv
->
flags
&
RADEON
_IS_AGP
)
{
if
(
dev_priv
->
cp_ring
!=
NULL
)
{
drm_core_ioremapfree
(
dev_priv
->
cp_ring
,
dev
);
dev_priv
->
cp_ring
=
NULL
;
...
...
@@ -1742,7 +1742,7 @@ static int radeon_do_resume_cp(drm_device_t * dev)
DRM_DEBUG
(
"Starting radeon_do_resume_cp()
\n
"
);
#if __OS_HAS_AGP
if
(
dev_priv
->
flags
&
CHIP
_IS_AGP
)
{
if
(
dev_priv
->
flags
&
RADEON
_IS_AGP
)
{
/* Turn off PCI GART */
radeon_set_pcigart
(
dev_priv
,
0
);
}
else
...
...
@@ -2186,7 +2186,7 @@ int radeon_driver_load(struct drm_device *dev, unsigned long flags)
dev
->
dev_private
=
(
void
*
)
dev_priv
;
dev_priv
->
flags
=
flags
;
switch
(
flags
&
CHIP
_FAMILY_MASK
)
{
switch
(
flags
&
RADEON
_FAMILY_MASK
)
{
case
CHIP_R100
:
case
CHIP_RV200
:
case
CHIP_R200
:
...
...
@@ -2194,7 +2194,7 @@ int radeon_driver_load(struct drm_device *dev, unsigned long flags)
case
CHIP_R350
:
case
CHIP_R420
:
case
CHIP_RV410
:
dev_priv
->
flags
|=
CHIP
_HAS_HIERZ
;
dev_priv
->
flags
|=
RADEON
_HAS_HIERZ
;
break
;
default:
/* all other chips have no hierarchical z buffer */
...
...
@@ -2202,14 +2202,14 @@ int radeon_driver_load(struct drm_device *dev, unsigned long flags)
}
if
(
drm_device_is_agp
(
dev
))
dev_priv
->
flags
|=
CHIP
_IS_AGP
;
dev_priv
->
flags
|=
RADEON
_IS_AGP
;
else
if
(
drm_device_is_pcie
(
dev
))
dev_priv
->
flags
|=
CHIP
_IS_PCIE
;
dev_priv
->
flags
|=
RADEON
_IS_PCIE
;
else
dev_priv
->
flags
|=
CHIP
_IS_PCI
;
dev_priv
->
flags
|=
RADEON
_IS_PCI
;
DRM_DEBUG
(
"%s card detected
\n
"
,
((
dev_priv
->
flags
&
CHIP_IS_AGP
)
?
"AGP"
:
(((
dev_priv
->
flags
&
CHIP
_IS_PCIE
)
?
"PCIE"
:
"PCI"
))));
((
dev_priv
->
flags
&
RADEON_IS_AGP
)
?
"AGP"
:
(((
dev_priv
->
flags
&
RADEON
_IS_PCIE
)
?
"PCIE"
:
"PCI"
))));
return
ret
;
}
...
...
drivers/char/drm/radeon_drv.c
浏览文件 @
54a56ac5
...
...
@@ -44,7 +44,7 @@ module_param_named(no_wb, radeon_no_wb, int, 0444);
static
int
dri_library_name
(
struct
drm_device
*
dev
,
char
*
buf
)
{
drm_radeon_private_t
*
dev_priv
=
dev
->
dev_private
;
int
family
=
dev_priv
->
flags
&
CHIP
_FAMILY_MASK
;
int
family
=
dev_priv
->
flags
&
RADEON
_FAMILY_MASK
;
return
snprintf
(
buf
,
PAGE_SIZE
,
"%s
\n
"
,
(
family
<
CHIP_R200
)
?
"radeon"
:
...
...
drivers/char/drm/radeon_drv.h
浏览文件 @
54a56ac5
...
...
@@ -133,16 +133,16 @@ enum radeon_cp_microcode_version {
* Chip flags
*/
enum
radeon_chip_flags
{
CHIP
_FAMILY_MASK
=
0x0000ffffUL
,
CHIP
_FLAGS_MASK
=
0xffff0000UL
,
CHIP
_IS_MOBILITY
=
0x00010000UL
,
CHIP
_IS_IGP
=
0x00020000UL
,
CHIP
_SINGLE_CRTC
=
0x00040000UL
,
CHIP
_IS_AGP
=
0x00080000UL
,
CHIP
_HAS_HIERZ
=
0x00100000UL
,
CHIP
_IS_PCIE
=
0x00200000UL
,
CHIP
_NEW_MEMMAP
=
0x00400000UL
,
CHIP
_IS_PCI
=
0x00800000UL
,
RADEON
_FAMILY_MASK
=
0x0000ffffUL
,
RADEON
_FLAGS_MASK
=
0xffff0000UL
,
RADEON
_IS_MOBILITY
=
0x00010000UL
,
RADEON
_IS_IGP
=
0x00020000UL
,
RADEON
_SINGLE_CRTC
=
0x00040000UL
,
RADEON
_IS_AGP
=
0x00080000UL
,
RADEON
_HAS_HIERZ
=
0x00100000UL
,
RADEON
_IS_PCIE
=
0x00200000UL
,
RADEON
_NEW_MEMMAP
=
0x00400000UL
,
RADEON
_IS_PCI
=
0x00800000UL
,
};
#define GET_RING_HEAD(dev_priv) (dev_priv->writeback_works ? \
...
...
drivers/char/drm/radeon_state.c
浏览文件 @
54a56ac5
...
...
@@ -868,7 +868,7 @@ static void radeon_cp_dispatch_clear(drm_device_t * dev,
*/
dev_priv
->
sarea_priv
->
ctx_owner
=
0
;
if
((
dev_priv
->
flags
&
CHIP
_HAS_HIERZ
)
if
((
dev_priv
->
flags
&
RADEON
_HAS_HIERZ
)
&&
(
flags
&
RADEON_USE_HIERZ
))
{
/* FIXME : reverse engineer that for Rx00 cards */
/* FIXME : the mask supposedly contains low-res z values. So can't set
...
...
@@ -913,7 +913,7 @@ static void radeon_cp_dispatch_clear(drm_device_t * dev,
for
(
i
=
0
;
i
<
nbox
;
i
++
)
{
int
tileoffset
,
nrtilesx
,
nrtilesy
,
j
;
/* it looks like r200 needs rv-style clears, at least if hierz is not enabled? */
if
((
dev_priv
->
flags
&
CHIP
_HAS_HIERZ
)
if
((
dev_priv
->
flags
&
RADEON
_HAS_HIERZ
)
&&
!
(
dev_priv
->
microcode_version
==
UCODE_R200
))
{
/* FIXME : figure this out for r200 (when hierz is enabled). Or
maybe r200 actually doesn't need to put the low-res z value into
...
...
@@ -997,7 +997,7 @@ static void radeon_cp_dispatch_clear(drm_device_t * dev,
}
/* TODO don't always clear all hi-level z tiles */
if
((
dev_priv
->
flags
&
CHIP
_HAS_HIERZ
)
if
((
dev_priv
->
flags
&
RADEON
_HAS_HIERZ
)
&&
(
dev_priv
->
microcode_version
==
UCODE_R200
)
&&
(
flags
&
RADEON_USE_HIERZ
))
/* r100 and cards without hierarchical z-buffer have no high-level z-buffer */
...
...
@@ -2992,9 +2992,9 @@ static int radeon_cp_getparam(DRM_IOCTL_ARGS)
value
=
RADEON_SCRATCH_REG_OFFSET
;
break
;
case
RADEON_PARAM_CARD_TYPE
:
if
(
dev_priv
->
flags
&
CHIP
_IS_PCIE
)
if
(
dev_priv
->
flags
&
RADEON
_IS_PCIE
)
value
=
RADEON_CARD_PCIE
;
else
if
(
dev_priv
->
flags
&
CHIP
_IS_AGP
)
else
if
(
dev_priv
->
flags
&
RADEON
_IS_AGP
)
value
=
RADEON_CARD_AGP
;
else
value
=
RADEON_CARD_PCI
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录