Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
62c96b9d
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
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看板
提交
62c96b9d
编写于
6月 19, 2008
作者:
D
Dave Airlie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
agp/intel: cleanup some serious whitespace badness
Signed-off-by:
N
Dave Airlie
<
airlied@redhat.com
>
上级
25ce77ab
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
66 addition
and
68 deletion
+66
-68
drivers/char/agp/intel-agp.c
drivers/char/agp/intel-agp.c
+66
-68
未找到文件。
drivers/char/agp/intel-agp.c
浏览文件 @
62c96b9d
...
...
@@ -1198,45 +1198,45 @@ static void intel_i965_get_gtt_range(int *gtt_offset, int *gtt_size)
*/
static
int
intel_i965_create_gatt_table
(
struct
agp_bridge_data
*
bridge
)
{
int
page_order
;
struct
aper_size_info_fixed
*
size
;
int
num_entries
;
u32
temp
;
int
gtt_offset
,
gtt_size
;
int
page_order
;
struct
aper_size_info_fixed
*
size
;
int
num_entries
;
u32
temp
;
int
gtt_offset
,
gtt_size
;
size
=
agp_bridge
->
current_size
;
page_order
=
size
->
page_order
;
num_entries
=
size
->
num_entries
;
agp_bridge
->
gatt_table_real
=
NULL
;
size
=
agp_bridge
->
current_size
;
page_order
=
size
->
page_order
;
num_entries
=
size
->
num_entries
;
agp_bridge
->
gatt_table_real
=
NULL
;
pci_read_config_dword
(
intel_private
.
pcidev
,
I915_MMADDR
,
&
temp
);
pci_read_config_dword
(
intel_private
.
pcidev
,
I915_MMADDR
,
&
temp
);
temp
&=
0xfff00000
;
temp
&=
0xfff00000
;
intel_i965_get_gtt_range
(
&
gtt_offset
,
&
gtt_size
);
intel_private
.
gtt
=
ioremap
((
temp
+
gtt_offset
)
,
gtt_size
);
intel_private
.
gtt
=
ioremap
((
temp
+
gtt_offset
)
,
gtt_size
);
if
(
!
intel_private
.
gtt
)
return
-
ENOMEM
;
if
(
!
intel_private
.
gtt
)
return
-
ENOMEM
;
intel_private
.
registers
=
ioremap
(
temp
,
128
*
4096
);
if
(
!
intel_private
.
registers
)
{
intel_private
.
registers
=
ioremap
(
temp
,
128
*
4096
);
if
(
!
intel_private
.
registers
)
{
iounmap
(
intel_private
.
gtt
);
return
-
ENOMEM
;
}
temp
=
readl
(
intel_private
.
registers
+
I810_PGETBL_CTL
)
&
0xfffff000
;
global_cache_flush
();
/* FIXME: ? */
temp
=
readl
(
intel_private
.
registers
+
I810_PGETBL_CTL
)
&
0xfffff000
;
global_cache_flush
();
/* FIXME: ? */
/* we have to call this as early as possible after the MMIO base address is known */
intel_i830_init_gtt_entries
();
/* we have to call this as early as possible after the MMIO base address is known */
intel_i830_init_gtt_entries
();
agp_bridge
->
gatt_table
=
NULL
;
agp_bridge
->
gatt_table
=
NULL
;
agp_bridge
->
gatt_bus_addr
=
temp
;
agp_bridge
->
gatt_bus_addr
=
temp
;
return
0
;
return
0
;
}
...
...
@@ -1753,7 +1753,7 @@ static const struct agp_bridge_driver intel_815_driver = {
.
free_by_type
=
agp_generic_free_by_type
,
.
agp_alloc_page
=
agp_generic_alloc_page
,
.
agp_destroy_page
=
agp_generic_destroy_page
,
.
agp_type_to_mask_type
=
agp_generic_type_to_mask_type
,
.
agp_type_to_mask_type
=
agp_generic_type_to_mask_type
,
};
static
const
struct
agp_bridge_driver
intel_830_driver
=
{
...
...
@@ -1954,28 +1954,26 @@ static const struct agp_bridge_driver intel_915_driver = {
};
static
const
struct
agp_bridge_driver
intel_i965_driver
=
{
.
owner
=
THIS_MODULE
,
.
aperture_sizes
=
intel_i830_sizes
,
.
size_type
=
FIXED_APER_SIZE
,
.
num_aperture_sizes
=
4
,
.
needs_scratch_page
=
true
,
.
configure
=
intel_i915_configure
,
.
fetch_size
=
intel_i9xx_fetch_size
,
.
cleanup
=
intel_i915_cleanup
,
.
tlb_flush
=
intel_i810_tlbflush
,
.
mask_memory
=
intel_i965_mask_memory
,
.
masks
=
intel_i810_masks
,
.
agp_enable
=
intel_i810_agp_enable
,
.
cache_flush
=
global_cache_flush
,
.
create_gatt_table
=
intel_i965_create_gatt_table
,
.
free_gatt_table
=
intel_i830_free_gatt_table
,
.
insert_memory
=
intel_i915_insert_entries
,
.
remove_memory
=
intel_i915_remove_entries
,
.
alloc_by_type
=
intel_i830_alloc_by_type
,
.
free_by_type
=
intel_i810_free_by_type
,
.
agp_alloc_page
=
agp_generic_alloc_page
,
.
agp_destroy_page
=
agp_generic_destroy_page
,
.
agp_type_to_mask_type
=
intel_i830_type_to_mask_type
,
.
owner
=
THIS_MODULE
,
.
aperture_sizes
=
intel_i830_sizes
,
.
size_type
=
FIXED_APER_SIZE
,
.
num_aperture_sizes
=
4
,
.
needs_scratch_page
=
true
,
.
cleanup
=
intel_i915_cleanup
,
.
tlb_flush
=
intel_i810_tlbflush
,
.
mask_memory
=
intel_i965_mask_memory
,
.
masks
=
intel_i810_masks
,
.
agp_enable
=
intel_i810_agp_enable
,
.
cache_flush
=
global_cache_flush
,
.
create_gatt_table
=
intel_i965_create_gatt_table
,
.
free_gatt_table
=
intel_i830_free_gatt_table
,
.
insert_memory
=
intel_i915_insert_entries
,
.
remove_memory
=
intel_i915_remove_entries
,
.
alloc_by_type
=
intel_i830_alloc_by_type
,
.
free_by_type
=
intel_i810_free_by_type
,
.
agp_alloc_page
=
agp_generic_alloc_page
,
.
agp_destroy_page
=
agp_generic_destroy_page
,
.
agp_type_to_mask_type
=
intel_i830_type_to_mask_type
,
.
chipset_flush
=
intel_i915_chipset_flush
,
};
...
...
@@ -2004,28 +2002,28 @@ static const struct agp_bridge_driver intel_7505_driver = {
};
static
const
struct
agp_bridge_driver
intel_g33_driver
=
{
.
owner
=
THIS_MODULE
,
.
aperture_sizes
=
intel_i830_sizes
,
.
size_type
=
FIXED_APER_SIZE
,
.
num_aperture_sizes
=
4
,
.
needs_scratch_page
=
true
,
.
configure
=
intel_i915_configure
,
.
fetch_size
=
intel_i9xx_fetch_size
,
.
cleanup
=
intel_i915_cleanup
,
.
tlb_flush
=
intel_i810_tlbflush
,
.
mask_memory
=
intel_i965_mask_memory
,
.
masks
=
intel_i810_masks
,
.
agp_enable
=
intel_i810_agp_enable
,
.
cache_flush
=
global_cache_flush
,
.
create_gatt_table
=
intel_i915_create_gatt_table
,
.
free_gatt_table
=
intel_i830_free_gatt_table
,
.
insert_memory
=
intel_i915_insert_entries
,
.
remove_memory
=
intel_i915_remove_entries
,
.
alloc_by_type
=
intel_i830_alloc_by_type
,
.
free_by_type
=
intel_i810_free_by_type
,
.
agp_alloc_page
=
agp_generic_alloc_page
,
.
agp_destroy_page
=
agp_generic_destroy_page
,
.
agp_type_to_mask_type
=
intel_i830_type_to_mask_type
,
.
owner
=
THIS_MODULE
,
.
aperture_sizes
=
intel_i830_sizes
,
.
size_type
=
FIXED_APER_SIZE
,
.
num_aperture_sizes
=
4
,
.
needs_scratch_page
=
true
,
.
configure
=
intel_i915_configure
,
.
fetch_size
=
intel_i9xx_fetch_size
,
.
cleanup
=
intel_i915_cleanup
,
.
tlb_flush
=
intel_i810_tlbflush
,
.
mask_memory
=
intel_i965_mask_memory
,
.
masks
=
intel_i810_masks
,
.
agp_enable
=
intel_i810_agp_enable
,
.
cache_flush
=
global_cache_flush
,
.
create_gatt_table
=
intel_i915_create_gatt_table
,
.
free_gatt_table
=
intel_i830_free_gatt_table
,
.
insert_memory
=
intel_i915_insert_entries
,
.
remove_memory
=
intel_i915_remove_entries
,
.
alloc_by_type
=
intel_i830_alloc_by_type
,
.
free_by_type
=
intel_i810_free_by_type
,
.
agp_alloc_page
=
agp_generic_alloc_page
,
.
agp_destroy_page
=
agp_generic_destroy_page
,
.
agp_type_to_mask_type
=
intel_i830_type_to_mask_type
,
.
chipset_flush
=
intel_i915_chipset_flush
,
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录