Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
17ffc7ba
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看板
提交
17ffc7ba
编写于
6月 22, 2006
作者:
A
Artem B. Bityutskiy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[MTD] Initialize 'writesize'
Signed-off-by:
N
Artem B. Bityutskiy
<
dedekind@infradead.org
>
上级
1794c130
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
13 addition
and
2 deletion
+13
-2
drivers/mtd/chips/cfi_cmdset_0001.c
drivers/mtd/chips/cfi_cmdset_0001.c
+1
-0
drivers/mtd/chips/jedec.c
drivers/mtd/chips/jedec.c
+1
-0
drivers/mtd/chips/map_absent.c
drivers/mtd/chips/map_absent.c
+2
-1
drivers/mtd/chips/map_ram.c
drivers/mtd/chips/map_ram.c
+1
-0
drivers/mtd/chips/map_rom.c
drivers/mtd/chips/map_rom.c
+1
-0
drivers/mtd/devices/block2mtd.c
drivers/mtd/devices/block2mtd.c
+1
-0
drivers/mtd/devices/ms02-nv.c
drivers/mtd/devices/ms02-nv.c
+1
-0
drivers/mtd/devices/mtd_dataflash.c
drivers/mtd/devices/mtd_dataflash.c
+1
-0
drivers/mtd/devices/phram.c
drivers/mtd/devices/phram.c
+1
-0
drivers/mtd/devices/pmc551.c
drivers/mtd/devices/pmc551.c
+2
-1
drivers/mtd/devices/slram.c
drivers/mtd/devices/slram.c
+1
-0
未找到文件。
drivers/mtd/chips/cfi_cmdset_0001.c
浏览文件 @
17ffc7ba
...
@@ -357,6 +357,7 @@ struct mtd_info *cfi_cmdset_0001(struct map_info *map, int primary)
...
@@ -357,6 +357,7 @@ struct mtd_info *cfi_cmdset_0001(struct map_info *map, int primary)
mtd
->
resume
=
cfi_intelext_resume
;
mtd
->
resume
=
cfi_intelext_resume
;
mtd
->
flags
=
MTD_CAP_NORFLASH
;
mtd
->
flags
=
MTD_CAP_NORFLASH
;
mtd
->
name
=
map
->
name
;
mtd
->
name
=
map
->
name
;
mtd
->
writesize
=
1
;
mtd
->
reboot_notifier
.
notifier_call
=
cfi_intelext_reboot
;
mtd
->
reboot_notifier
.
notifier_call
=
cfi_intelext_reboot
;
...
...
drivers/mtd/chips/jedec.c
浏览文件 @
17ffc7ba
...
@@ -256,6 +256,7 @@ static struct mtd_info *jedec_probe(struct map_info *map)
...
@@ -256,6 +256,7 @@ static struct mtd_info *jedec_probe(struct map_info *map)
MTD
->
name
=
map
->
name
;
MTD
->
name
=
map
->
name
;
MTD
->
type
=
MTD_NORFLASH
;
MTD
->
type
=
MTD_NORFLASH
;
MTD
->
flags
=
MTD_CAP_NORFLASH
;
MTD
->
flags
=
MTD_CAP_NORFLASH
;
MTD
->
writesize
=
1
;
MTD
->
erasesize
=
SectorSize
*
(
map
->
buswidth
);
MTD
->
erasesize
=
SectorSize
*
(
map
->
buswidth
);
// printk("MTD->erasesize is %x\n",(unsigned int)MTD->erasesize);
// printk("MTD->erasesize is %x\n",(unsigned int)MTD->erasesize);
MTD
->
size
=
priv
->
size
;
MTD
->
size
=
priv
->
size
;
...
...
drivers/mtd/chips/map_absent.c
浏览文件 @
17ffc7ba
...
@@ -64,7 +64,8 @@ static struct mtd_info *map_absent_probe(struct map_info *map)
...
@@ -64,7 +64,8 @@ static struct mtd_info *map_absent_probe(struct map_info *map)
mtd
->
write
=
map_absent_write
;
mtd
->
write
=
map_absent_write
;
mtd
->
sync
=
map_absent_sync
;
mtd
->
sync
=
map_absent_sync
;
mtd
->
flags
=
0
;
mtd
->
flags
=
0
;
mtd
->
erasesize
=
PAGE_SIZE
;
mtd
->
erasesize
=
PAGE_SIZE
;
mtd
->
writesize
=
1
;
__module_get
(
THIS_MODULE
);
__module_get
(
THIS_MODULE
);
return
mtd
;
return
mtd
;
...
...
drivers/mtd/chips/map_ram.c
浏览文件 @
17ffc7ba
...
@@ -71,6 +71,7 @@ static struct mtd_info *map_ram_probe(struct map_info *map)
...
@@ -71,6 +71,7 @@ static struct mtd_info *map_ram_probe(struct map_info *map)
mtd
->
write
=
mapram_write
;
mtd
->
write
=
mapram_write
;
mtd
->
sync
=
mapram_nop
;
mtd
->
sync
=
mapram_nop
;
mtd
->
flags
=
MTD_CAP_RAM
;
mtd
->
flags
=
MTD_CAP_RAM
;
mtd
->
writesize
=
1
;
mtd
->
erasesize
=
PAGE_SIZE
;
mtd
->
erasesize
=
PAGE_SIZE
;
while
(
mtd
->
size
&
(
mtd
->
erasesize
-
1
))
while
(
mtd
->
size
&
(
mtd
->
erasesize
-
1
))
...
...
drivers/mtd/chips/map_rom.c
浏览文件 @
17ffc7ba
...
@@ -47,6 +47,7 @@ static struct mtd_info *map_rom_probe(struct map_info *map)
...
@@ -47,6 +47,7 @@ static struct mtd_info *map_rom_probe(struct map_info *map)
mtd
->
sync
=
maprom_nop
;
mtd
->
sync
=
maprom_nop
;
mtd
->
flags
=
MTD_CAP_ROM
;
mtd
->
flags
=
MTD_CAP_ROM
;
mtd
->
erasesize
=
map
->
size
;
mtd
->
erasesize
=
map
->
size
;
mtd
->
writesize
=
1
;
__module_get
(
THIS_MODULE
);
__module_get
(
THIS_MODULE
);
return
mtd
;
return
mtd
;
...
...
drivers/mtd/devices/block2mtd.c
浏览文件 @
17ffc7ba
...
@@ -324,6 +324,7 @@ static struct block2mtd_dev *add_device(char *devname, int erase_size)
...
@@ -324,6 +324,7 @@ static struct block2mtd_dev *add_device(char *devname, int erase_size)
dev
->
mtd
.
size
=
dev
->
blkdev
->
bd_inode
->
i_size
&
PAGE_MASK
;
dev
->
mtd
.
size
=
dev
->
blkdev
->
bd_inode
->
i_size
&
PAGE_MASK
;
dev
->
mtd
.
erasesize
=
erase_size
;
dev
->
mtd
.
erasesize
=
erase_size
;
dev
->
mtd
.
writesize
=
1
;
dev
->
mtd
.
type
=
MTD_RAM
;
dev
->
mtd
.
type
=
MTD_RAM
;
dev
->
mtd
.
flags
=
MTD_CAP_RAM
;
dev
->
mtd
.
flags
=
MTD_CAP_RAM
;
dev
->
mtd
.
erase
=
block2mtd_erase
;
dev
->
mtd
.
erase
=
block2mtd_erase
;
...
...
drivers/mtd/devices/ms02-nv.c
浏览文件 @
17ffc7ba
...
@@ -225,6 +225,7 @@ static int __init ms02nv_init_one(ulong addr)
...
@@ -225,6 +225,7 @@ static int __init ms02nv_init_one(ulong addr)
mtd
->
owner
=
THIS_MODULE
;
mtd
->
owner
=
THIS_MODULE
;
mtd
->
read
=
ms02nv_read
;
mtd
->
read
=
ms02nv_read
;
mtd
->
write
=
ms02nv_write
;
mtd
->
write
=
ms02nv_write
;
mtd
->
writesize
=
1
;
ret
=
-
EIO
;
ret
=
-
EIO
;
if
(
add_mtd_device
(
mtd
))
{
if
(
add_mtd_device
(
mtd
))
{
...
...
drivers/mtd/devices/mtd_dataflash.c
浏览文件 @
17ffc7ba
...
@@ -478,6 +478,7 @@ add_dataflash(struct spi_device *spi, char *name,
...
@@ -478,6 +478,7 @@ add_dataflash(struct spi_device *spi, char *name,
device
->
name
=
(
pdata
&&
pdata
->
name
)
?
pdata
->
name
:
priv
->
name
;
device
->
name
=
(
pdata
&&
pdata
->
name
)
?
pdata
->
name
:
priv
->
name
;
device
->
size
=
nr_pages
*
pagesize
;
device
->
size
=
nr_pages
*
pagesize
;
device
->
erasesize
=
pagesize
;
device
->
erasesize
=
pagesize
;
device
->
writesize
=
pagesize
;
device
->
owner
=
THIS_MODULE
;
device
->
owner
=
THIS_MODULE
;
device
->
type
=
MTD_DATAFLASH
;
device
->
type
=
MTD_DATAFLASH
;
device
->
flags
=
MTD_CAP_NORFLASH
;
device
->
flags
=
MTD_CAP_NORFLASH
;
...
...
drivers/mtd/devices/phram.c
浏览文件 @
17ffc7ba
...
@@ -151,6 +151,7 @@ static int register_device(char *name, unsigned long start, unsigned long len)
...
@@ -151,6 +151,7 @@ static int register_device(char *name, unsigned long start, unsigned long len)
new
->
mtd
.
owner
=
THIS_MODULE
;
new
->
mtd
.
owner
=
THIS_MODULE
;
new
->
mtd
.
type
=
MTD_RAM
;
new
->
mtd
.
type
=
MTD_RAM
;
new
->
mtd
.
erasesize
=
PAGE_SIZE
;
new
->
mtd
.
erasesize
=
PAGE_SIZE
;
new
->
mtd
.
writesize
=
1
;
ret
=
-
EAGAIN
;
ret
=
-
EAGAIN
;
if
(
add_mtd_device
(
&
new
->
mtd
))
{
if
(
add_mtd_device
(
&
new
->
mtd
))
{
...
...
drivers/mtd/devices/pmc551.c
浏览文件 @
17ffc7ba
...
@@ -778,7 +778,8 @@ static int __init init_pmc551(void)
...
@@ -778,7 +778,8 @@ static int __init init_pmc551(void)
mtd
->
type
=
MTD_RAM
;
mtd
->
type
=
MTD_RAM
;
mtd
->
name
=
"PMC551 RAM board"
;
mtd
->
name
=
"PMC551 RAM board"
;
mtd
->
erasesize
=
0x10000
;
mtd
->
erasesize
=
0x10000
;
mtd
->
owner
=
THIS_MODULE
;
mtd
->
writesize
=
1
;
mtd
->
owner
=
THIS_MODULE
;
if
(
add_mtd_device
(
mtd
))
{
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
"
);
...
...
drivers/mtd/devices/slram.c
浏览文件 @
17ffc7ba
...
@@ -209,6 +209,7 @@ static int register_device(char *name, unsigned long start, unsigned long length
...
@@ -209,6 +209,7 @@ static int register_device(char *name, unsigned long start, unsigned long length
(
*
curmtd
)
->
mtdinfo
->
owner
=
THIS_MODULE
;
(
*
curmtd
)
->
mtdinfo
->
owner
=
THIS_MODULE
;
(
*
curmtd
)
->
mtdinfo
->
type
=
MTD_RAM
;
(
*
curmtd
)
->
mtdinfo
->
type
=
MTD_RAM
;
(
*
curmtd
)
->
mtdinfo
->
erasesize
=
SLRAM_BLK_SZ
;
(
*
curmtd
)
->
mtdinfo
->
erasesize
=
SLRAM_BLK_SZ
;
(
*
curmtd
)
->
mtdinfo
->
writesize
=
1
;
if
(
add_mtd_device
((
*
curmtd
)
->
mtdinfo
))
{
if
(
add_mtd_device
((
*
curmtd
)
->
mtdinfo
))
{
E
(
"slram: Failed to register new device
\n
"
);
E
(
"slram: Failed to register new device
\n
"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录