Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
8e0aedc5
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看板
提交
8e0aedc5
编写于
6月 29, 2007
作者:
D
David Woodhouse
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[MTD] Use proper binary multiple prefixes in pmc551 driver
Signed-off-by:
N
David Woodhouse
<
dwmw2@infradead.org
>
上级
8f46c527
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
11 addition
and
12 deletion
+11
-12
drivers/mtd/devices/pmc551.c
drivers/mtd/devices/pmc551.c
+11
-12
未找到文件。
drivers/mtd/devices/pmc551.c
浏览文件 @
8e0aedc5
...
...
@@ -30,8 +30,8 @@
*
* Notes:
* Due to what I assume is more buggy SROM, the 64M PMC551 I
* have available claims that all 4 of it
's DRAM banks have 64M
* of ram configured (making a grand total of 256M onboard).
* have available claims that all 4 of it
s DRAM banks have 64MiB
* of ram configured (making a grand total of 256M
iB
onboard).
* This is slightly annoying since the BAR0 size reflects the
* aperture size, not the dram size, and the V370PDC supplies no
* other method for memory size discovery. This problem is
...
...
@@ -70,7 +70,7 @@
* made the memory unusable, added a fix to code to touch up
* the DRAM some.
*
* Bugs/FIXME
'
s:
* Bugs/FIXMEs:
* * MUST fix the init function to not spin on a register
* waiting for it to set .. this does not safely handle busted
* devices that never reset the register correctly which will
...
...
@@ -562,10 +562,10 @@ static u32 fixup_pmc551(struct pci_dev *dev)
/*
* Some screen fun
*/
printk
(
KERN_DEBUG
"pmc551: %d%
c
(0x%x) of %sprefetchable memory at "
printk
(
KERN_DEBUG
"pmc551: %d%
sB
(0x%x) of %sprefetchable memory at "
"0x%llx
\n
"
,
(
size
<
1024
)
?
size
:
(
size
<
1048576
)
?
size
>>
10
:
size
>>
20
,
(
size
<
1024
)
?
'B'
:
(
size
<
1048576
)
?
'K'
:
'M'
,
size
,
(
size
<
1024
)
?
""
:
(
size
<
1048576
)
?
"Ki"
:
"Mi"
,
size
,
((
dcmd
&
(
0x1
<<
3
))
==
0
)
?
"non-"
:
""
,
(
unsigned
long
long
)
pci_resource_start
(
dev
,
0
));
...
...
@@ -656,7 +656,7 @@ static int asize = 0;
#endif
module_param
(
msize
,
int
,
0
);
MODULE_PARM_DESC
(
msize
,
"memory size in M
egabytes
[1 - 1024]"
);
MODULE_PARM_DESC
(
msize
,
"memory size in M
iB
[1 - 1024]"
);
module_param
(
asize
,
int
,
0
);
MODULE_PARM_DESC
(
asize
,
"aperture size, must be <= memsize [1-1024]"
);
...
...
@@ -799,8 +799,7 @@ static int __init init_pmc551(void)
mtd
->
owner
=
THIS_MODULE
;
if
(
add_mtd_device
(
mtd
))
{
printk
(
KERN_NOTICE
"pmc551: Failed to register new "
"device
\n
"
);
printk
(
KERN_NOTICE
"pmc551: Failed to register new device
\n
"
);
pci_iounmap
(
PCI_Device
,
priv
->
start
);
kfree
(
mtd
->
priv
);
kfree
(
mtd
);
...
...
@@ -811,13 +810,13 @@ static int __init init_pmc551(void)
pci_dev_get
(
PCI_Device
);
printk
(
KERN_NOTICE
"Registered pmc551 memory device.
\n
"
);
printk
(
KERN_NOTICE
"Mapped %dM of memory from 0x%p to 0x%p
\n
"
,
printk
(
KERN_NOTICE
"Mapped %dM
iB
of memory from 0x%p to 0x%p
\n
"
,
priv
->
asize
>>
20
,
priv
->
start
,
priv
->
start
+
priv
->
asize
);
printk
(
KERN_NOTICE
"Total memory is %d%
c
\n
"
,
printk
(
KERN_NOTICE
"Total memory is %d%
sB
\n
"
,
(
length
<
1024
)
?
length
:
(
length
<
1048576
)
?
length
>>
10
:
length
>>
20
,
(
length
<
1024
)
?
'B'
:
(
length
<
1048576
)
?
'K'
:
'M'
);
(
length
<
1024
)
?
""
:
(
length
<
1048576
)
?
"Ki"
:
"Mi"
);
priv
->
nextpmc551
=
pmc551list
;
pmc551list
=
mtd
;
found
++
;
...
...
@@ -850,7 +849,7 @@ static void __exit cleanup_pmc551(void)
pmc551list
=
priv
->
nextpmc551
;
if
(
priv
->
start
)
{
printk
(
KERN_DEBUG
"pmc551: unmapping %dM starting at "
printk
(
KERN_DEBUG
"pmc551: unmapping %dM
iB
starting at "
"0x%p
\n
"
,
priv
->
asize
>>
20
,
priv
->
start
);
pci_iounmap
(
priv
->
dev
,
priv
->
start
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录