Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
89d17b96
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
161
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看板
提交
89d17b96
编写于
6月 20, 2006
作者:
D
Dave Jones
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[AGPGART] Whitespace cleanups for ati-agp
Signed-off-by:
N
Dave Jones
<
davej@redhat.com
>
上级
25f42b6a
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
8 addition
and
9 deletion
+8
-9
drivers/char/agp/ati-agp.c
drivers/char/agp/ati-agp.c
+8
-9
未找到文件。
drivers/char/agp/ati-agp.c
浏览文件 @
89d17b96
...
...
@@ -41,7 +41,6 @@ static struct gatt_mask ati_generic_masks[] =
};
typedef
struct
_ati_page_map
{
unsigned
long
*
real
;
unsigned
long
__iomem
*
remapped
;
...
...
@@ -141,7 +140,8 @@ static int ati_create_gatt_pages(int nr_tables)
ati_generic_private
.
num_tables
=
nr_tables
;
ati_generic_private
.
gatt_pages
=
tables
;
if
(
retval
!=
0
)
ati_free_gatt_pages
();
if
(
retval
!=
0
)
ati_free_gatt_pages
();
return
retval
;
}
...
...
@@ -219,16 +219,16 @@ static int ati_configure(void)
ati_generic_private
.
registers
=
(
volatile
u8
__iomem
*
)
ioremap
(
temp
,
4096
);
if
(
is_r200
())
pci_write_config_dword
(
agp_bridge
->
dev
,
ATI_RS100_IG_AGPMODE
,
0x20000
);
pci_write_config_dword
(
agp_bridge
->
dev
,
ATI_RS100_IG_AGPMODE
,
0x20000
);
else
pci_write_config_dword
(
agp_bridge
->
dev
,
ATI_RS300_IG_AGPMODE
,
0x20000
);
/* address to map too */
/*
/*
pci_read_config_dword(agp_bridge.dev, AGP_APBASE, &temp);
agp_bridge.gart_bus_addr = (temp & PCI_BASE_ADDRESS_MEM_MASK);
printk(KERN_INFO PFX "IGP320 gart_bus_addr: %x\n", agp_bridge.gart_bus_addr);
*/
*/
writel
(
0x60000
,
ati_generic_private
.
registers
+
ATI_GART_FEATURE_ID
);
readl
(
ati_generic_private
.
registers
+
ATI_GART_FEATURE_ID
);
/* PCI Posting.*/
...
...
@@ -321,9 +321,9 @@ static int ati_remove_memory(struct agp_memory * mem, off_t pg_start,
unsigned
long
__iomem
*
cur_gatt
;
unsigned
long
addr
;
if
(
type
!=
0
||
mem
->
type
!=
0
)
{
if
(
type
!=
0
||
mem
->
type
!=
0
)
return
-
EINVAL
;
}
for
(
i
=
pg_start
;
i
<
(
mem
->
page_count
+
pg_start
);
i
++
)
{
addr
=
(
i
*
PAGE_SIZE
)
+
agp_bridge
->
gart_bus_addr
;
cur_gatt
=
GET_GATT
(
addr
);
...
...
@@ -502,9 +502,8 @@ static int __devinit agp_ati_probe(struct pci_dev *pdev,
bridge
->
dev
=
pdev
;
bridge
->
capndx
=
cap_ptr
;
bridge
->
driver
=
&
ati_generic_bridge
;
bridge
->
driver
=
&
ati_generic_bridge
;
printk
(
KERN_INFO
PFX
"Detected Ati %s chipset
\n
"
,
devs
[
j
].
chipset_name
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录