Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
954bce50
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看板
提交
954bce50
编写于
1月 07, 2010
作者:
E
Eric Anholt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
agp/intel: Add a new Sandybridge HB/IG PCI ID combo.
Signed-off-by:
N
Eric Anholt
<
eric@anholt.net
>
上级
14bc490b
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
13 addition
and
4 deletion
+13
-4
drivers/char/agp/intel-agp.c
drivers/char/agp/intel-agp.c
+13
-4
未找到文件。
drivers/char/agp/intel-agp.c
浏览文件 @
954bce50
...
...
@@ -66,6 +66,8 @@
#define PCI_DEVICE_ID_INTEL_IRONLAKE_M_IG 0x0046
#define PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB 0x0100
#define PCI_DEVICE_ID_INTEL_SANDYBRIDGE_IG 0x0102
#define PCI_DEVICE_ID_INTEL_SANDYBRIDGE_M_HB 0x0104
#define PCI_DEVICE_ID_INTEL_SANDYBRIDGE_M_IG 0x0106
/* cover 915 and 945 variants */
#define IS_I915 (agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_E7221_HB || \
...
...
@@ -101,7 +103,8 @@
agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_IRONLAKE_M_HB || \
agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_IRONLAKE_MA_HB || \
agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_IRONLAKE_MC2_HB || \
agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB)
agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB || \
agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_SANDYBRIDGE_M_HB)
extern
int
agp_memory_reserved
;
...
...
@@ -317,7 +320,9 @@ static void intel_agp_insert_sg_entries(struct agp_memory *mem,
int
i
,
j
;
u32
cache_bits
=
0
;
if
(
agp_bridge
->
dev
->
device
==
PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB
)
{
if
(
agp_bridge
->
dev
->
device
==
PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB
||
agp_bridge
->
dev
->
device
==
PCI_DEVICE_ID_INTEL_SANDYBRIDGE_M_HB
)
{
cache_bits
=
I830_PTE_SYSTEM_CACHED
;
}
...
...
@@ -732,8 +737,8 @@ static void intel_i830_init_gtt_entries(void)
gtt_entries
=
0
;
break
;
}
}
else
if
(
agp_bridge
->
dev
->
device
==
PCI_DEVICE_ID_INTEL_SANDYBRIDGE
_HB
)
{
}
else
if
(
agp_bridge
->
dev
->
device
==
PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB
||
agp_bridge
->
dev
->
device
==
PCI_DEVICE_ID_INTEL_SANDYBRIDGE_M
_HB
)
{
/*
* SandyBridge has new memory control reg at 0x50.w
*/
...
...
@@ -1449,6 +1454,7 @@ static void intel_i965_get_gtt_range(int *gtt_offset, int *gtt_size)
case
PCI_DEVICE_ID_INTEL_IRONLAKE_MA_HB
:
case
PCI_DEVICE_ID_INTEL_IRONLAKE_MC2_HB
:
case
PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB
:
case
PCI_DEVICE_ID_INTEL_SANDYBRIDGE_M_HB
:
*
gtt_offset
=
*
gtt_size
=
MB
(
2
);
break
;
default:
...
...
@@ -2456,6 +2462,8 @@ static const struct intel_driver_description {
"HD Graphics"
,
NULL
,
&
intel_i965_driver
},
{
PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB
,
PCI_DEVICE_ID_INTEL_SANDYBRIDGE_IG
,
0
,
"Sandybridge"
,
NULL
,
&
intel_i965_driver
},
{
PCI_DEVICE_ID_INTEL_SANDYBRIDGE_M_HB
,
PCI_DEVICE_ID_INTEL_SANDYBRIDGE_M_IG
,
0
,
"Sandybridge"
,
NULL
,
&
intel_i965_driver
},
{
0
,
0
,
0
,
NULL
,
NULL
,
NULL
}
};
...
...
@@ -2663,6 +2671,7 @@ static struct pci_device_id agp_intel_pci_table[] = {
ID
(
PCI_DEVICE_ID_INTEL_IRONLAKE_MA_HB
),
ID
(
PCI_DEVICE_ID_INTEL_IRONLAKE_MC2_HB
),
ID
(
PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB
),
ID
(
PCI_DEVICE_ID_INTEL_SANDYBRIDGE_M_HB
),
{
}
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录