Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
2adcd7e4
Commit
2adcd7e4
authored
Aug 12, 2004
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge intel.com:/home/lenb/bk/linux-2.6.8
into intel.com:/home/lenb/src/linux-acpi-test-2.6.8
parents
0401cc9d
da58de4b
Changes
43
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
43 changed files
with
680 additions
and
213 deletions
+680
-213
arch/ppc/configs/ebony_defconfig
arch/ppc/configs/ebony_defconfig
+1
-1
arch/ppc/configs/ocotea_defconfig
arch/ppc/configs/ocotea_defconfig
+1
-1
arch/sparc64/defconfig
arch/sparc64/defconfig
+3
-0
arch/sparc64/lib/copy_page.S
arch/sparc64/lib/copy_page.S
+2
-2
arch/sparc64/mm/fault.c
arch/sparc64/mm/fault.c
+2
-2
arch/sparc64/mm/tlb.c
arch/sparc64/mm/tlb.c
+1
-1
drivers/mtd/Kconfig
drivers/mtd/Kconfig
+2
-2
drivers/mtd/Makefile
drivers/mtd/Makefile
+5
-3
drivers/mtd/chips/amd_flash.c
drivers/mtd/chips/amd_flash.c
+2
-4
drivers/mtd/chips/cfi_cmdset_0001.c
drivers/mtd/chips/cfi_cmdset_0001.c
+2
-3
drivers/mtd/chips/cfi_cmdset_0002.c
drivers/mtd/chips/cfi_cmdset_0002.c
+3
-5
drivers/mtd/chips/cfi_cmdset_0020.c
drivers/mtd/chips/cfi_cmdset_0020.c
+2
-3
drivers/mtd/chips/jedec.c
drivers/mtd/chips/jedec.c
+2
-3
drivers/mtd/chips/map_ram.c
drivers/mtd/chips/map_ram.c
+2
-3
drivers/mtd/chips/sharp.c
drivers/mtd/chips/sharp.c
+2
-3
drivers/mtd/devices/Kconfig
drivers/mtd/devices/Kconfig
+17
-5
drivers/mtd/devices/blkmtd.c
drivers/mtd/devices/blkmtd.c
+3
-5
drivers/mtd/devices/doc2000.c
drivers/mtd/devices/doc2000.c
+2
-3
drivers/mtd/devices/doc2001.c
drivers/mtd/devices/doc2001.c
+2
-3
drivers/mtd/devices/doc2001plus.c
drivers/mtd/devices/doc2001plus.c
+2
-3
drivers/mtd/devices/lart.c
drivers/mtd/devices/lart.c
+2
-2
drivers/mtd/devices/ms02-nv.c
drivers/mtd/devices/ms02-nv.c
+2
-2
drivers/mtd/devices/mtdram.c
drivers/mtd/devices/mtdram.c
+2
-3
drivers/mtd/devices/phram.c
drivers/mtd/devices/phram.c
+2
-5
drivers/mtd/devices/pmc551.c
drivers/mtd/devices/pmc551.c
+2
-4
drivers/mtd/devices/slram.c
drivers/mtd/devices/slram.c
+2
-7
drivers/mtd/ftl.c
drivers/mtd/ftl.c
+2
-2
drivers/mtd/inftlcore.c
drivers/mtd/inftlcore.c
+2
-2
drivers/mtd/inftlmount.c
drivers/mtd/inftlmount.c
+2
-2
drivers/mtd/maps/Kconfig
drivers/mtd/maps/Kconfig
+11
-4
drivers/mtd/maps/ichxrom.c
drivers/mtd/maps/ichxrom.c
+1
-1
drivers/mtd/maps/physmap.c
drivers/mtd/maps/physmap.c
+7
-2
drivers/mtd/mtdchar.c
drivers/mtd/mtdchar.c
+3
-4
drivers/mtd/mtdpart.c
drivers/mtd/mtdpart.c
+15
-3
drivers/mtd/nand/Kconfig
drivers/mtd/nand/Kconfig
+41
-5
drivers/mtd/nand/diskonchip.c
drivers/mtd/nand/diskonchip.c
+487
-82
drivers/mtd/nand/nand_base.c
drivers/mtd/nand/nand_base.c
+10
-10
drivers/mtd/redboot.c
drivers/mtd/redboot.c
+4
-3
fs/nfsd/nfs3xdr.c
fs/nfsd/nfs3xdr.c
+1
-1
fs/nfsd/nfsxdr.c
fs/nfsd/nfsxdr.c
+1
-1
include/asm-sparc64/thread_info.h
include/asm-sparc64/thread_info.h
+7
-9
include/linux/mtd/mtd.h
include/linux/mtd/mtd.h
+13
-1
include/linux/mtd/physmap.h
include/linux/mtd/physmap.h
+3
-3
No files found.
arch/ppc/configs/ebony_defconfig
View file @
2adcd7e4
...
@@ -384,7 +384,7 @@ CONFIG_SERIAL_8250=y
...
@@ -384,7 +384,7 @@ CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_8250_NR_UARTS=4
CONFIG_SERIAL_8250_NR_UARTS=4
CONFIG_SERIAL_8250_EXTENDED=y
CONFIG_SERIAL_8250_EXTENDED=y
CONFIG_SERIAL_8250_MANY_PORTS=y
# CONFIG_SERIAL_8250_MANY_PORTS is not set
CONFIG_SERIAL_8250_SHARE_IRQ=y
CONFIG_SERIAL_8250_SHARE_IRQ=y
# CONFIG_SERIAL_8250_DETECT_IRQ is not set
# CONFIG_SERIAL_8250_DETECT_IRQ is not set
# CONFIG_SERIAL_8250_MULTIPORT is not set
# CONFIG_SERIAL_8250_MULTIPORT is not set
...
...
arch/ppc/configs/ocotea_defconfig
View file @
2adcd7e4
...
@@ -398,7 +398,7 @@ CONFIG_SERIAL_8250=y
...
@@ -398,7 +398,7 @@ CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_8250_NR_UARTS=4
CONFIG_SERIAL_8250_NR_UARTS=4
CONFIG_SERIAL_8250_EXTENDED=y
CONFIG_SERIAL_8250_EXTENDED=y
CONFIG_SERIAL_8250_MANY_PORTS=y
# CONFIG_SERIAL_8250_MANY_PORTS is not set
CONFIG_SERIAL_8250_SHARE_IRQ=y
CONFIG_SERIAL_8250_SHARE_IRQ=y
# CONFIG_SERIAL_8250_DETECT_IRQ is not set
# CONFIG_SERIAL_8250_DETECT_IRQ is not set
# CONFIG_SERIAL_8250_MULTIPORT is not set
# CONFIG_SERIAL_8250_MULTIPORT is not set
...
...
arch/sparc64/defconfig
View file @
2adcd7e4
...
@@ -1204,6 +1204,8 @@ CONFIG_UDF_NLS=y
...
@@ -1204,6 +1204,8 @@ CONFIG_UDF_NLS=y
CONFIG_FAT_FS=m
CONFIG_FAT_FS=m
CONFIG_MSDOS_FS=m
CONFIG_MSDOS_FS=m
CONFIG_VFAT_FS=m
CONFIG_VFAT_FS=m
CONFIG_FAT_DEFAULT_CODEPAGE=437
CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
# CONFIG_NTFS_FS is not set
# CONFIG_NTFS_FS is not set
#
#
...
@@ -1768,6 +1770,7 @@ CONFIG_CRYPTO_CAST5=m
...
@@ -1768,6 +1770,7 @@ CONFIG_CRYPTO_CAST5=m
CONFIG_CRYPTO_CAST6=m
CONFIG_CRYPTO_CAST6=m
CONFIG_CRYPTO_TEA=m
CONFIG_CRYPTO_TEA=m
CONFIG_CRYPTO_ARC4=m
CONFIG_CRYPTO_ARC4=m
CONFIG_CRYPTO_KHAZAD=m
CONFIG_CRYPTO_DEFLATE=y
CONFIG_CRYPTO_DEFLATE=y
CONFIG_CRYPTO_MICHAEL_MIC=m
CONFIG_CRYPTO_MICHAEL_MIC=m
CONFIG_CRYPTO_CRC32C=m
CONFIG_CRYPTO_CRC32C=m
...
...
arch/sparc64/lib/copy_page.S
View file @
2adcd7e4
...
@@ -168,9 +168,9 @@ copy_user_page: /* %o0=dest, %o1=src, %o2=vaddr */
...
@@ -168,9 +168,9 @@ copy_user_page: /* %o0=dest, %o1=src, %o2=vaddr */
9
:
9
:
VISEntry
VISEntry
ld
x
[%
g6
+
TI_FLAGS
],
%
g3
ld
ub
[%
g6
+
TI_FAULT_CODE
],
%
g3
mov
%
o0
,
%
g1
mov
%
o0
,
%
g1
andcc
%
g3
,
_TIF_BLKCOMMIT
,
%
g
0
cmp
%
g3
,
0
rd
%
asi
,
%
g3
rd
%
asi
,
%
g3
be
,
a
,
pt
%
icc
,
1
f
be
,
a
,
pt
%
icc
,
1
f
wr
%
g0
,
ASI_BLK_P
,
%
asi
wr
%
g0
,
ASI_BLK_P
,
%
asi
...
...
arch/sparc64/mm/fault.c
View file @
2adcd7e4
...
@@ -428,7 +428,8 @@ asmlinkage void do_sparc64_fault(struct pt_regs *regs)
...
@@ -428,7 +428,8 @@ asmlinkage void do_sparc64_fault(struct pt_regs *regs)
if
(
tlb_type
==
spitfire
&&
if
(
tlb_type
==
spitfire
&&
(
vma
->
vm_flags
&
VM_EXEC
)
!=
0
&&
(
vma
->
vm_flags
&
VM_EXEC
)
!=
0
&&
vma
->
vm_file
!=
NULL
)
vma
->
vm_file
!=
NULL
)
set_thread_flag
(
TIF_BLKCOMMIT
);
set_thread_fault_code
(
fault_code
|
FAULT_CODE_BLKCOMMIT
);
}
else
{
}
else
{
/* Allow reads even for write-only mappings */
/* Allow reads even for write-only mappings */
if
(
!
(
vma
->
vm_flags
&
(
VM_READ
|
VM_EXEC
)))
if
(
!
(
vma
->
vm_flags
&
(
VM_READ
|
VM_EXEC
)))
...
@@ -497,6 +498,5 @@ asmlinkage void do_sparc64_fault(struct pt_regs *regs)
...
@@ -497,6 +498,5 @@ asmlinkage void do_sparc64_fault(struct pt_regs *regs)
fault_done:
fault_done:
/* These values are no longer needed, clear them. */
/* These values are no longer needed, clear them. */
set_thread_fault_code
(
0
);
set_thread_fault_code
(
0
);
clear_thread_flag
(
TIF_BLKCOMMIT
);
current_thread_info
()
->
fault_address
=
0
;
current_thread_info
()
->
fault_address
=
0
;
}
}
arch/sparc64/mm/tlb.c
View file @
2adcd7e4
...
@@ -76,7 +76,7 @@ void tlb_batch_add(pte_t *ptep, pte_t orig)
...
@@ -76,7 +76,7 @@ void tlb_batch_add(pte_t *ptep, pte_t orig)
/* A real file page? */
/* A real file page? */
mapping
=
page_mapping
(
page
);
mapping
=
page_mapping
(
page
);
if
(
!
mapping
||
mapping
==
&
swapper_space
)
if
(
!
mapping
)
goto
no_cache_flush
;
goto
no_cache_flush
;
paddr
=
(
unsigned
long
)
page_address
(
page
);
paddr
=
(
unsigned
long
)
page_address
(
page
);
...
...
drivers/mtd/Kconfig
View file @
2adcd7e4
# $Id: Kconfig,v 1.
5 2004/06/04 15:59:32 gleixner
Exp $
# $Id: Kconfig,v 1.
6 2004/08/09 13:19:42 dwmw2
Exp $
menu "Memory Technology Devices (MTD)"
menu "Memory Technology Devices (MTD)"
...
@@ -28,7 +28,7 @@ config MTD_DEBUG_VERBOSE
...
@@ -28,7 +28,7 @@ config MTD_DEBUG_VERBOSE
Determines the verbosity level of the MTD debugging messages.
Determines the verbosity level of the MTD debugging messages.
config MTD_PARTITIONS
config MTD_PARTITIONS
tristate
"MTD partitioning support"
bool
"MTD partitioning support"
depends on MTD
depends on MTD
help
help
If you have a device which needs to divide its flash chip(s) up
If you have a device which needs to divide its flash chip(s) up
...
...
drivers/mtd/Makefile
View file @
2adcd7e4
#
#
# Makefile for the memory technology device drivers.
# Makefile for the memory technology device drivers.
#
#
# $Id: Makefile.common,v 1.
3 2004/07/12 16:07:30
dwmw2 Exp $
# $Id: Makefile.common,v 1.
5 2004/08/10 20:51:49
dwmw2 Exp $
# Core functionality.
# Core functionality.
obj-$(CONFIG_MTD)
+=
mtdcore.o
mtd-y
:=
mtdcore.o
mtd-$(CONFIG_MTD_PARTITIONS)
+=
mtdpart.o
obj-$(CONFIG_MTD)
+=
$
(
mtd-y
)
obj-$(CONFIG_MTD_CONCAT)
+=
mtdconcat.o
obj-$(CONFIG_MTD_CONCAT)
+=
mtdconcat.o
obj-$(CONFIG_MTD_PARTITIONS)
+=
mtdpart.o
obj-$(CONFIG_MTD_REDBOOT_PARTS)
+=
redboot.o
obj-$(CONFIG_MTD_REDBOOT_PARTS)
+=
redboot.o
obj-$(CONFIG_MTD_CMDLINE_PARTS)
+=
cmdlinepart.o
obj-$(CONFIG_MTD_CMDLINE_PARTS)
+=
cmdlinepart.o
obj-$(CONFIG_MTD_AFS_PARTS)
+=
afs.o
obj-$(CONFIG_MTD_AFS_PARTS)
+=
afs.o
...
...
drivers/mtd/chips/amd_flash.c
View file @
2adcd7e4
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
*
*
* Author: Jonas Holmberg <jonas.holmberg@axis.com>
* Author: Jonas Holmberg <jonas.holmberg@axis.com>
*
*
* $Id: amd_flash.c,v 1.2
4 2004/07/12 13:34:30
dwmw2 Exp $
* $Id: amd_flash.c,v 1.2
5 2004/08/09 13:19:43
dwmw2 Exp $
*
*
* Copyright (c) 2001 Axis Communications AB
* Copyright (c) 2001 Axis Communications AB
*
*
...
@@ -1307,9 +1307,7 @@ static int amd_flash_erase(struct mtd_info *mtd, struct erase_info *instr)
...
@@ -1307,9 +1307,7 @@ static int amd_flash_erase(struct mtd_info *mtd, struct erase_info *instr)
}
}
instr
->
state
=
MTD_ERASE_DONE
;
instr
->
state
=
MTD_ERASE_DONE
;
if
(
instr
->
callback
)
{
mtd_erase_callback
(
instr
);
instr
->
callback
(
instr
);
}
return
0
;
return
0
;
}
}
...
...
drivers/mtd/chips/cfi_cmdset_0001.c
View file @
2adcd7e4
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
*
*
* (C) 2000 Red Hat. GPL'd
* (C) 2000 Red Hat. GPL'd
*
*
* $Id: cfi_cmdset_0001.c,v 1.15
3 2004/07/12 21:52:20
dwmw2 Exp $
* $Id: cfi_cmdset_0001.c,v 1.15
4 2004/08/09 13:19:43
dwmw2 Exp $
*
*
*
*
* 10/10/2000 Nicolas Pitre <nico@cam.org>
* 10/10/2000 Nicolas Pitre <nico@cam.org>
...
@@ -1554,8 +1554,7 @@ int cfi_intelext_erase_varsize(struct mtd_info *mtd, struct erase_info *instr)
...
@@ -1554,8 +1554,7 @@ int cfi_intelext_erase_varsize(struct mtd_info *mtd, struct erase_info *instr)
return
ret
;
return
ret
;
instr
->
state
=
MTD_ERASE_DONE
;
instr
->
state
=
MTD_ERASE_DONE
;
if
(
instr
->
callback
)
mtd_erase_callback
(
instr
);
instr
->
callback
(
instr
);
return
0
;
return
0
;
}
}
...
...
drivers/mtd/chips/cfi_cmdset_0002.c
View file @
2adcd7e4
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
*
*
* This code is GPL
* This code is GPL
*
*
* $Id: cfi_cmdset_0002.c,v 1.10
3 2004/07/14 16:24:03
dwmw2 Exp $
* $Id: cfi_cmdset_0002.c,v 1.10
6 2004/08/09 14:02:32
dwmw2 Exp $
*
*
*/
*/
...
@@ -1420,8 +1420,7 @@ int cfi_amdstd_erase_varsize(struct mtd_info *mtd, struct erase_info *instr)
...
@@ -1420,8 +1420,7 @@ int cfi_amdstd_erase_varsize(struct mtd_info *mtd, struct erase_info *instr)
return
ret
;
return
ret
;
instr
->
state
=
MTD_ERASE_DONE
;
instr
->
state
=
MTD_ERASE_DONE
;
if
(
instr
->
callback
)
mtd_erase_callback
(
instr
);
instr
->
callback
(
instr
);
return
0
;
return
0
;
}
}
...
@@ -1444,8 +1443,7 @@ static int cfi_amdstd_erase_chip(struct mtd_info *mtd, struct erase_info *instr)
...
@@ -1444,8 +1443,7 @@ static int cfi_amdstd_erase_chip(struct mtd_info *mtd, struct erase_info *instr)
return
ret
;
return
ret
;
instr
->
state
=
MTD_ERASE_DONE
;
instr
->
state
=
MTD_ERASE_DONE
;
if
(
instr
->
callback
)
mtd_erase_callback
(
instr
);
instr
->
callback
(
instr
);
return
0
;
return
0
;
}
}
...
...
drivers/mtd/chips/cfi_cmdset_0020.c
View file @
2adcd7e4
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
*
*
* (C) 2000 Red Hat. GPL'd
* (C) 2000 Red Hat. GPL'd
*
*
* $Id: cfi_cmdset_0020.c,v 1.1
4 2004/07/20 02:44:25
dwmw2 Exp $
* $Id: cfi_cmdset_0020.c,v 1.1
5 2004/08/09 13:19:43
dwmw2 Exp $
*
*
* 10/10/2000 Nicolas Pitre <nico@cam.org>
* 10/10/2000 Nicolas Pitre <nico@cam.org>
* - completely revamped method functions so they are aware and
* - completely revamped method functions so they are aware and
...
@@ -966,8 +966,7 @@ int cfi_staa_erase_varsize(struct mtd_info *mtd, struct erase_info *instr)
...
@@ -966,8 +966,7 @@ int cfi_staa_erase_varsize(struct mtd_info *mtd, struct erase_info *instr)
}
}
instr
->
state
=
MTD_ERASE_DONE
;
instr
->
state
=
MTD_ERASE_DONE
;
if
(
instr
->
callback
)
mtd_erase_callback
(
instr
);
instr
->
callback
(
instr
);
return
0
;
return
0
;
}
}
...
...
drivers/mtd/chips/jedec.c
View file @
2adcd7e4
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
* not going to guess how to send commands to them, plus I expect they will
* not going to guess how to send commands to them, plus I expect they will
* all speak CFI..
* all speak CFI..
*
*
* $Id: jedec.c,v 1.2
0 2004/07/12 14:03:01
dwmw2 Exp $
* $Id: jedec.c,v 1.2
1 2004/08/09 13:19:43
dwmw2 Exp $
*/
*/
#include <linux/init.h>
#include <linux/init.h>
...
@@ -780,8 +780,7 @@ static int flash_erase(struct mtd_info *mtd, struct erase_info *instr)
...
@@ -780,8 +780,7 @@ static int flash_erase(struct mtd_info *mtd, struct erase_info *instr)
//printk("done\n");
//printk("done\n");
instr
->
state
=
MTD_ERASE_DONE
;
instr
->
state
=
MTD_ERASE_DONE
;
if
(
instr
->
callback
)
mtd_erase_callback
(
instr
);
instr
->
callback
(
instr
);
return
0
;
return
0
;
#undef flread
#undef flread
...
...
drivers/mtd/chips/map_ram.c
View file @
2adcd7e4
/*
/*
* Common code to handle map devices which are simple RAM
* Common code to handle map devices which are simple RAM
* (C) 2000 Red Hat. GPL'd.
* (C) 2000 Red Hat. GPL'd.
* $Id: map_ram.c,v 1.
19 2004/07/12 21:58:44
dwmw2 Exp $
* $Id: map_ram.c,v 1.
20 2004/08/09 13:19:43
dwmw2 Exp $
*/
*/
#include <linux/module.h>
#include <linux/module.h>
...
@@ -114,8 +114,7 @@ static int mapram_erase (struct mtd_info *mtd, struct erase_info *instr)
...
@@ -114,8 +114,7 @@ static int mapram_erase (struct mtd_info *mtd, struct erase_info *instr)
instr
->
state
=
MTD_ERASE_DONE
;
instr
->
state
=
MTD_ERASE_DONE
;
if
(
instr
->
callback
)
mtd_erase_callback
(
instr
);
instr
->
callback
(
instr
);
return
0
;
return
0
;
}
}
...
...
drivers/mtd/chips/sharp.c
View file @
2adcd7e4
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* Copyright 2000,2001 David A. Schleef <ds@schleef.org>
* Copyright 2000,2001 David A. Schleef <ds@schleef.org>
* 2000,2001 Lineo, Inc.
* 2000,2001 Lineo, Inc.
*
*
* $Id: sharp.c,v 1.1
3 2004/07/12 14:06:34
dwmw2 Exp $
* $Id: sharp.c,v 1.1
4 2004/08/09 13:19:43
dwmw2 Exp $
*
*
* Devices supported:
* Devices supported:
* LH28F016SCT Symmetrical block flash memory, 2Mx8
* LH28F016SCT Symmetrical block flash memory, 2Mx8
...
@@ -425,8 +425,7 @@ static int sharp_erase(struct mtd_info *mtd, struct erase_info *instr)
...
@@ -425,8 +425,7 @@ static int sharp_erase(struct mtd_info *mtd, struct erase_info *instr)
}
}
instr
->
state
=
MTD_ERASE_DONE
;
instr
->
state
=
MTD_ERASE_DONE
;
if
(
instr
->
callback
)
mtd_erase_callback
(
instr
);
instr
->
callback
(
instr
);
return
0
;
return
0
;
}
}
...
...
drivers/mtd/devices/Kconfig
View file @
2adcd7e4
# drivers/mtd/maps/Kconfig
# drivers/mtd/maps/Kconfig
# $Id: Kconfig,v 1.1
0 2004/07/15 00:34:49
dwmw2 Exp $
# $Id: Kconfig,v 1.1
2 2004/08/10 13:12:18
dwmw2 Exp $
menu "Self-contained MTD device drivers"
menu "Self-contained MTD device drivers"
depends on MTD!=n
depends on MTD!=n
...
@@ -128,7 +128,7 @@ config MTD_BLKMTD
...
@@ -128,7 +128,7 @@ config MTD_BLKMTD
comment "Disk-On-Chip Device Drivers"
comment "Disk-On-Chip Device Drivers"
config MTD_DOC2000
config MTD_DOC2000
tristate "M-Systems Disk-On-Chip 2000 and Millennium"
tristate "M-Systems Disk-On-Chip 2000 and Millennium
(DEPRECATED)
"
depends on MTD
depends on MTD
---help---
---help---
This provides an MTD device driver for the M-Systems DiskOnChip
This provides an MTD device driver for the M-Systems DiskOnChip
...
@@ -144,8 +144,12 @@ config MTD_DOC2000
...
@@ -144,8 +144,12 @@ config MTD_DOC2000
emulate a block device by using a kind of file system on the flash
emulate a block device by using a kind of file system on the flash
chips.
chips.
NOTE: This driver is deprecated and will probably be removed soon.
Please try the new DiskOnChip driver under "NAND Flash Device
Drivers".
config MTD_DOC2001
config MTD_DOC2001
tristate "M-Systems Disk-On-Chip Millennium-only alternative driver (
see help
)"
tristate "M-Systems Disk-On-Chip Millennium-only alternative driver (
DEPRECATED
)"
depends on MTD
depends on MTD
---help---
---help---
This provides an alternative MTD device driver for the M-Systems
This provides an alternative MTD device driver for the M-Systems
...
@@ -160,6 +164,10 @@ config MTD_DOC2001
...
@@ -160,6 +164,10 @@ config MTD_DOC2001
emulate a block device by using a kind of file system on the flash
emulate a block device by using a kind of file system on the flash
chips.
chips.
NOTE: This driver is deprecated and will probably be removed soon.
Please try the new DiskOnChip driver under "NAND Flash Device
Drivers".
config MTD_DOC2001PLUS
config MTD_DOC2001PLUS
tristate "M-Systems Disk-On-Chip Millennium Plus"
tristate "M-Systems Disk-On-Chip Millennium Plus"
depends on MTD
depends on MTD
...
@@ -172,19 +180,23 @@ config MTD_DOC2001PLUS
...
@@ -172,19 +180,23 @@ config MTD_DOC2001PLUS
to emulate a block device by using a kind of file system on the
to emulate a block device by using a kind of file system on the
flash chips.
flash chips.
NOTE: This driver will soon be replaced by the new DiskOnChip driver
under "NAND Flash Device Drivers" (currently that driver does not
support all Millennium Plus devices).
config MTD_DOCPROBE
config MTD_DOCPROBE
tristate
tristate
default m if MTD_DOC2001!=y && MTD_DOC2000!=y && MTD_DOC2001PLUS!=y && (MTD_DOC2001=m || MTD_DOC2000=m || MTD_DOC2001PLUS=m)
default m if MTD_DOC2001!=y && MTD_DOC2000!=y && MTD_DOC2001PLUS!=y && (MTD_DOC2001=m || MTD_DOC2000=m || MTD_DOC2001PLUS=m)
default y if MTD_DOC2001=y || MTD_DOC2000=y || MTD_DOC2001PLUS=y
default y if MTD_DOC2001=y || MTD_DOC2000=y || MTD_DOC2001PLUS=y
help
help
This isn't a real config option
,
it's derived.
This isn't a real config option
;
it's derived.
config MTD_DOCECC
config MTD_DOCECC
tristate
tristate
default m if MTD_DOCPROBE!=y && MTD_NAND_DISKONCHIP!=y && (MTD_DOCPROBE=m || MTD_NAND_DISKONCHIP=m)
default m if MTD_DOCPROBE!=y && MTD_NAND_DISKONCHIP!=y && (MTD_DOCPROBE=m || MTD_NAND_DISKONCHIP=m)
default y if MTD_DOCPROBE=y || MTD_NAND_DISKONCHIP=y
default y if MTD_DOCPROBE=y || MTD_NAND_DISKONCHIP=y
help
help
This isn't a real config option
,
it's derived.
This isn't a real config option
;
it's derived.
config MTD_DOCPROBE_ADVANCED
config MTD_DOCPROBE_ADVANCED
bool "Advanced detection options for DiskOnChip"
bool "Advanced detection options for DiskOnChip"
...
...
drivers/mtd/devices/blkmtd.c
View file @
2adcd7e4
/*
/*
* $Id: blkmtd
-25.c,v 1.6 2004/07/15 15:09:15
dwmw2 Exp $
* $Id: blkmtd
.c,v 1.23 2004/08/09 14:03:19
dwmw2 Exp $
*
*
* blkmtd.c - use a block device as a fake MTD
* blkmtd.c - use a block device as a fake MTD
*
*
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
/* Default erase size in K, always make it a multiple of PAGE_SIZE */
/* Default erase size in K, always make it a multiple of PAGE_SIZE */
#define CONFIG_MTD_BLKDEV_ERASESIZE (128 << 10)
/* 128KiB */
#define CONFIG_MTD_BLKDEV_ERASESIZE (128 << 10)
/* 128KiB */
#define VERSION "$Revision: 1.
6
$"
#define VERSION "$Revision: 1.
23
$"
/* Info for the block device */
/* Info for the block device */
struct
blkmtd_dev
{
struct
blkmtd_dev
{
...
@@ -435,9 +435,7 @@ static int blkmtd_erase(struct mtd_info *mtd, struct erase_info *instr)
...
@@ -435,9 +435,7 @@ static int blkmtd_erase(struct mtd_info *mtd, struct erase_info *instr)
}
}
DEBUG
(
3
,
"blkmtd: erase: checking callback
\n
"
);
DEBUG
(
3
,
"blkmtd: erase: checking callback
\n
"
);
if
(
instr
->
callback
)
{
mtd_erase_callback
(
instr
);
(
*
(
instr
->
callback
))(
instr
);
}
DEBUG
(
2
,
"blkmtd: erase: finished (err = %d)
\n
"
,
err
);
DEBUG
(
2
,
"blkmtd: erase: finished (err = %d)
\n
"
,
err
);
return
err
;
return
err
;
}
}
...
...
drivers/mtd/devices/doc2000.c
View file @
2adcd7e4
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* (c) 1999 Machine Vision Holdings, Inc.
* (c) 1999 Machine Vision Holdings, Inc.
* (c) 1999, 2000 David Woodhouse <dwmw2@infradead.org>
* (c) 1999, 2000 David Woodhouse <dwmw2@infradead.org>
*
*
* $Id: doc2000.c,v 1.6
0 2004/04/07 08:30:04 gleixner
Exp $
* $Id: doc2000.c,v 1.6
2 2004/08/09 14:04:02 dwmw2
Exp $
*/
*/
#include <linux/kernel.h>
#include <linux/kernel.h>
...
@@ -1277,8 +1277,7 @@ static int doc_erase(struct mtd_info *mtd, struct erase_info *instr)
...
@@ -1277,8 +1277,7 @@ static int doc_erase(struct mtd_info *mtd, struct erase_info *instr)
instr
->
state
=
MTD_ERASE_DONE
;
instr
->
state
=
MTD_ERASE_DONE
;
callback:
callback:
if
(
instr
->
callback
)
mtd_erase_callback
(
instr
);
instr
->
callback
(
instr
);
up
(
&
this
->
lock
);
up
(
&
this
->
lock
);
return
0
;
return
0
;
...
...
drivers/mtd/devices/doc2001.c
View file @
2adcd7e4
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* (c) 1999 Machine Vision Holdings, Inc.
* (c) 1999 Machine Vision Holdings, Inc.
* (c) 1999, 2000 David Woodhouse <dwmw2@infradead.org>
* (c) 1999, 2000 David Woodhouse <dwmw2@infradead.org>
*
*
* $Id: doc2001.c,v 1.4
2 2004/04/04 12:36:45 gleixner
Exp $
* $Id: doc2001.c,v 1.4
4 2004/08/09 14:04:24 dwmw2
Exp $
*/
*/
#include <linux/kernel.h>
#include <linux/kernel.h>
...
@@ -845,8 +845,7 @@ int doc_erase (struct mtd_info *mtd, struct erase_info *instr)
...
@@ -845,8 +845,7 @@ int doc_erase (struct mtd_info *mtd, struct erase_info *instr)
instr
->
state
=
MTD_ERASE_DONE
;
instr
->
state
=
MTD_ERASE_DONE
;
dummy
=
ReadDOC
(
docptr
,
LastDataRead
);
dummy
=
ReadDOC
(
docptr
,
LastDataRead
);
if
(
instr
->
callback
)
mtd_erase_callback
(
instr
);
instr
->
callback
(
instr
);
return
0
;
return
0
;
}
}
...
...
drivers/mtd/devices/doc2001plus.c
View file @
2adcd7e4
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* (c) 1999 Machine Vision Holdings, Inc.
* (c) 1999 Machine Vision Holdings, Inc.
* (c) 1999, 2000 David Woodhouse <dwmw2@infradead.org>
* (c) 1999, 2000 David Woodhouse <dwmw2@infradead.org>
*
*
* $Id: doc2001plus.c,v 1.
8 2004/04/04 12:36:45 gleixner
Exp $
* $Id: doc2001plus.c,v 1.
9 2004/08/09 13:19:44 dwmw2
Exp $
*
*
* Released under GPL
* Released under GPL
*/
*/
...
@@ -1111,8 +1111,7 @@ int doc_erase(struct mtd_info *mtd, struct erase_info *instr)
...
@@ -1111,8 +1111,7 @@ int doc_erase(struct mtd_info *mtd, struct erase_info *instr)
/* Disable flash internally */
/* Disable flash internally */
WriteDOC
(
0
,
docptr
,
Mplus_FlashSelect
);
WriteDOC
(
0
,
docptr
,
Mplus_FlashSelect
);
if
(
instr
->
callback
)
mtd_erase_callback
(
instr
);
instr
->
callback
(
instr
);
return
0
;
return
0
;
}
}
...
...
drivers/mtd/devices/lart.c
View file @
2adcd7e4
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
/*
/*
* MTD driver for the 28F160F3 Flash Memory (non-CFI) on LART.
* MTD driver for the 28F160F3 Flash Memory (non-CFI) on LART.
*
*
* $Id: lart.c,v 1.
6 2004/07/14 17:21:38
dwmw2 Exp $
* $Id: lart.c,v 1.
7 2004/08/09 13:19:44
dwmw2 Exp $
*
*
* Author: Abraham vd Merwe <abraham@2d3d.co.za>
* Author: Abraham vd Merwe <abraham@2d3d.co.za>
*
*
...
@@ -433,7 +433,7 @@ static int flash_erase (struct mtd_info *mtd,struct erase_info *instr)
...
@@ -433,7 +433,7 @@ static int flash_erase (struct mtd_info *mtd,struct erase_info *instr)
}
}
instr
->
state
=
MTD_ERASE_DONE
;
instr
->
state
=
MTD_ERASE_DONE
;
if
(
instr
->
callback
)
instr
->
callback
(
instr
);
mtd_erase_callback
(
instr
);
return
(
0
);
return
(
0
);
}
}
...
...
drivers/mtd/devices/ms02-nv.c
View file @
2adcd7e4
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* as published by the Free Software Foundation; either version
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
* 2 of the License, or (at your option) any later version.
*
*
* $Id: ms02-nv.c,v 1.
6 2003/08/19 09:25:36 dwmw2
Exp $
* $Id: ms02-nv.c,v 1.
7 2004/07/29 14:16:45 macro
Exp $
*/
*/
#include <linux/init.h>
#include <linux/init.h>
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
static
char
version
[]
__initdata
=
static
char
version
[]
__initdata
=
"ms02-nv.c: v.1.0.0 13 Aug 2001 Maciej W. Rozycki.
\n
"
;
"ms02-nv.c: v.1.0.0 13 Aug 2001 Maciej W. Rozycki.
\n
"
;
MODULE_AUTHOR
(
"Maciej W. Rozycki <macro@
ds2.pg.gda.pl
>"
);
MODULE_AUTHOR
(
"Maciej W. Rozycki <macro@
linux-mips.org
>"
);
MODULE_DESCRIPTION
(
"DEC MS02-NV NVRAM module driver"
);
MODULE_DESCRIPTION
(
"DEC MS02-NV NVRAM module driver"
);
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
...
...
drivers/mtd/devices/mtdram.c
View file @
2adcd7e4
/*
/*
* mtdram - a test mtd device
* mtdram - a test mtd device
* $Id: mtdram.c,v 1.3
2 2003/05/21 15:15:07
dwmw2 Exp $
* $Id: mtdram.c,v 1.3
3 2004/08/09 13:19:44
dwmw2 Exp $
* Author: Alexander Larsson <alex@cendio.se>
* Author: Alexander Larsson <alex@cendio.se>
*
*
* Copyright (c) 1999 Alexander Larsson <alex@cendio.se>
* Copyright (c) 1999 Alexander Larsson <alex@cendio.se>
...
@@ -57,9 +57,8 @@ ram_erase(struct mtd_info *mtd, struct erase_info *instr)
...
@@ -57,9 +57,8 @@ ram_erase(struct mtd_info *mtd, struct erase_info *instr)
memset
((
char
*
)
mtd
->
priv
+
instr
->
addr
,
0xff
,
instr
->
len
);
memset
((
char
*
)
mtd
->
priv
+
instr
->
addr
,
0xff
,
instr
->
len
);
instr
->
state
=
MTD_ERASE_DONE
;
instr
->
state
=
MTD_ERASE_DONE
;
mtd_erase_callback
(
instr
);
if
(
instr
->
callback
)
(
*
(
instr
->
callback
))(
instr
);
return
0
;
return
0
;
}
}
...
...
drivers/mtd/devices/phram.c
View file @
2adcd7e4
/**
/**
*
*
* $Id: phram.c,v 1.
1 2003/08/21 17:52:30 joern
Exp $
* $Id: phram.c,v 1.
2 2004/08/09 13:19:44 dwmw2
Exp $
*
*
* Copyright (c) Jochen Schaeuble <psionic@psionic.de>
* Copyright (c) Jochen Schaeuble <psionic@psionic.de>
* 07/2003 rewritten by Joern Engel <joern@wh.fh-wedel.de>
* 07/2003 rewritten by Joern Engel <joern@wh.fh-wedel.de>
...
@@ -55,10 +55,7 @@ int phram_erase(struct mtd_info *mtd, struct erase_info *instr)
...
@@ -55,10 +55,7 @@ int phram_erase(struct mtd_info *mtd, struct erase_info *instr)
instr
->
state
=
MTD_ERASE_DONE
;
instr
->
state
=
MTD_ERASE_DONE
;
if
(
instr
->
callback
)
mtd_erase_callback
(
instr
);
(
*
(
instr
->
callback
))(
instr
);
else
kfree
(
instr
);
return
0
;
return
0
;
}
}
...
...
drivers/mtd/devices/pmc551.c
View file @
2adcd7e4
/*
/*
* $Id: pmc551.c,v 1.2
7 2004/07/20 02:44:26
dwmw2 Exp $
* $Id: pmc551.c,v 1.2
8 2004/08/09 13:19:44
dwmw2 Exp $
*
*
* PMC551 PCI Mezzanine Ram Device
* PMC551 PCI Mezzanine Ram Device
*
*
...
@@ -169,9 +169,7 @@ static int pmc551_erase (struct mtd_info *mtd, struct erase_info *instr)
...
@@ -169,9 +169,7 @@ static int pmc551_erase (struct mtd_info *mtd, struct erase_info *instr)
printk
(
KERN_DEBUG
"pmc551_erase() done
\n
"
);
printk
(
KERN_DEBUG
"pmc551_erase() done
\n
"
);
#endif
#endif
if
(
instr
->
callback
)
{
mtd_erase_callback
(
instr
);
(
*
(
instr
->
callback
))(
instr
);
}
return
0
;
return
0
;
}
}
...
...
drivers/mtd/devices/slram.c
View file @
2adcd7e4
/*======================================================================
/*======================================================================
$Id: slram.c,v 1.3
0 2003/05/20 21:03:08
dwmw2 Exp $
$Id: slram.c,v 1.3
1 2004/08/09 13:19:44
dwmw2 Exp $
This driver provides a method to access memory not used by the kernel
This driver provides a method to access memory not used by the kernel
itself (i.e. if the kernel commandline mem=xxx is used). To actually
itself (i.e. if the kernel commandline mem=xxx is used). To actually
...
@@ -98,12 +98,7 @@ int slram_erase(struct mtd_info *mtd, struct erase_info *instr)
...
@@ -98,12 +98,7 @@ int slram_erase(struct mtd_info *mtd, struct erase_info *instr)
instr
->
state
=
MTD_ERASE_DONE
;
instr
->
state
=
MTD_ERASE_DONE
;
if
(
instr
->
callback
)
{
mtd_erase_callback
(
instr
);
(
*
(
instr
->
callback
))(
instr
);
}
else
{
kfree
(
instr
);
}
return
(
0
);
return
(
0
);
}
}
...
...
drivers/mtd/ftl.c
View file @
2adcd7e4
/* This version ported to the Linux-MTD system by dwmw2@infradead.org
/* This version ported to the Linux-MTD system by dwmw2@infradead.org
* $Id: ftl.c,v 1.5
2 2003/08/11 09:00:44
dwmw2 Exp $
* $Id: ftl.c,v 1.5
3 2004/08/09 13:55:43
dwmw2 Exp $
*
*
* Fixes: Arnaldo Carvalho de Melo <acme@conectiva.com.br>
* Fixes: Arnaldo Carvalho de Melo <acme@conectiva.com.br>
* - fixes some leaks on failure in build_maps and ftl_notify_add, cleanups
* - fixes some leaks on failure in build_maps and ftl_notify_add, cleanups
...
@@ -1094,7 +1094,7 @@ struct mtd_blktrans_ops ftl_tr = {
...
@@ -1094,7 +1094,7 @@ struct mtd_blktrans_ops ftl_tr = {
int
init_ftl
(
void
)
int
init_ftl
(
void
)
{
{
DEBUG
(
0
,
"$Id: ftl.c,v 1.5
2 2003/08/11 09:00:44
dwmw2 Exp $
\n
"
);
DEBUG
(
0
,
"$Id: ftl.c,v 1.5
3 2004/08/09 13:55:43
dwmw2 Exp $
\n
"
);
return
register_mtd_blktrans
(
&
ftl_tr
);
return
register_mtd_blktrans
(
&
ftl_tr
);
}
}
...
...
drivers/mtd/inftlcore.c
View file @
2adcd7e4
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
* (c) 1999 Machine Vision Holdings, Inc.
* (c) 1999 Machine Vision Holdings, Inc.
* Author: David Woodhouse <dwmw2@infradead.org>
* Author: David Woodhouse <dwmw2@infradead.org>
*
*
* $Id: inftlcore.c,v 1.1
6 2004/07/12 12:34:5
8 dwmw2 Exp $
* $Id: inftlcore.c,v 1.1
7 2004/08/09 13:56:4
8 dwmw2 Exp $
*
*
* This program is free software; you can redistribute it and/or modify
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* it under the terms of the GNU General Public License as published by
...
@@ -893,7 +893,7 @@ extern char inftlmountrev[];
...
@@ -893,7 +893,7 @@ extern char inftlmountrev[];
int
__init
init_inftl
(
void
)
int
__init
init_inftl
(
void
)
{
{
printk
(
KERN_INFO
"INFTL: inftlcore.c $Revision: 1.1
6
$, "
printk
(
KERN_INFO
"INFTL: inftlcore.c $Revision: 1.1
7
$, "
"inftlmount.c %s
\n
"
,
inftlmountrev
);
"inftlmount.c %s
\n
"
,
inftlmountrev
);
return
register_mtd_blktrans
(
&
inftl_tr
);
return
register_mtd_blktrans
(
&
inftl_tr
);
...
...
drivers/mtd/inftlmount.c
View file @
2adcd7e4
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
* Author: Fabrice Bellard (fabrice.bellard@netgem.com)
* Author: Fabrice Bellard (fabrice.bellard@netgem.com)
* Copyright (C) 2000 Netgem S.A.
* Copyright (C) 2000 Netgem S.A.
*
*
* $Id: inftlmount.c,v 1.1
3 2004/06/28 16:06:36 dbrown
Exp $
* $Id: inftlmount.c,v 1.1
4 2004/08/09 13:57:42 dwmw2
Exp $
*
*
* This program is free software; you can redistribute it and/or modify
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* it under the terms of the GNU General Public License as published by
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
#include <linux/mtd/inftl.h>
#include <linux/mtd/inftl.h>
#include <linux/mtd/compatmac.h>
#include <linux/mtd/compatmac.h>
char
inftlmountrev
[]
=
"$Revision: 1.1
3
$"
;
char
inftlmountrev
[]
=
"$Revision: 1.1
4
$"
;
/*
/*
* find_boot_record: Find the INFTL Media Header and its Spare copy which
* find_boot_record: Find the INFTL Media Header and its Spare copy which
...
...
drivers/mtd/maps/Kconfig
View file @
2adcd7e4
# drivers/mtd/maps/Kconfig
# drivers/mtd/maps/Kconfig
# $Id: Kconfig,v 1.
29 2004/07/15 15:29:17 dwmw2
Exp $
# $Id: Kconfig,v 1.
30 2004/07/21 00:16:14 jwboyer
Exp $
menu "Mapping drivers for chip access"
menu "Mapping drivers for chip access"
depends on MTD!=n
depends on MTD!=n
...
@@ -19,7 +19,8 @@ config MTD_PHYSMAP
...
@@ -19,7 +19,8 @@ config MTD_PHYSMAP
command set driver code to communicate with flash chips which
command set driver code to communicate with flash chips which
are mapped physically into the CPU's memory. You will need to
are mapped physically into the CPU's memory. You will need to
configure the physical address and size of the flash chips on
configure the physical address and size of the flash chips on
your particular board as well as the bus width.
your particular board as well as the bus width, either statically
with config options or at run-time.
config MTD_PHYSMAP_START
config MTD_PHYSMAP_START
hex "Physical start address of flash mapping"
hex "Physical start address of flash mapping"
...
@@ -30,6 +31,8 @@ config MTD_PHYSMAP_START
...
@@ -30,6 +31,8 @@ config MTD_PHYSMAP_START
are mapped on your particular target board. Refer to the
are mapped on your particular target board. Refer to the
memory map which should hopefully be in the documentation for
memory map which should hopefully be in the documentation for
your board.
your board.
Ignore this option if you use run-time physmap configuration
(i.e., run-time calling physmap_configure()).
config MTD_PHYSMAP_LEN
config MTD_PHYSMAP_LEN
hex "Physical length of flash mapping"
hex "Physical length of flash mapping"
...
@@ -42,9 +45,11 @@ config MTD_PHYSMAP_LEN
...
@@ -42,9 +45,11 @@ config MTD_PHYSMAP_LEN
than the total amount of flash present. Refer to the memory
than the total amount of flash present. Refer to the memory
map which should hopefully be in the documentation for your
map which should hopefully be in the documentation for your
board.
board.
Ignore this option if you use run-time physmap configuration
(i.e., run-time calling physmap_configure()).
config MTD_PHYSMAP_B
US
WIDTH
config MTD_PHYSMAP_B
ANK
WIDTH
int "B
us
width in octets"
int "B
ank
width in octets"
depends on MTD_PHYSMAP
depends on MTD_PHYSMAP
default "2"
default "2"
help
help
...
@@ -52,6 +57,8 @@ config MTD_PHYSMAP_BUSWIDTH
...
@@ -52,6 +57,8 @@ config MTD_PHYSMAP_BUSWIDTH
in octets. For example, if you have a data bus width of 32
in octets. For example, if you have a data bus width of 32
bits, you would set the bus width octect value to 4. This is
bits, you would set the bus width octect value to 4. This is
used internally by the CFI drivers.
used internally by the CFI drivers.
Ignore this option if you use run-time physmap configuration
(i.e., run-time calling physmap_configure()).
config MTD_SUN_UFLASH
config MTD_SUN_UFLASH
tristate "Sun Microsystems userflash support"
tristate "Sun Microsystems userflash support"
...
...
drivers/mtd/maps/ichxrom.c
View file @
2adcd7e4
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* ichxrom.c
* ichxrom.c
*
*
* Normal mappings of chips in physical memory
* Normal mappings of chips in physical memory
* $Id: ichxrom.c,v 1.
7 2004/07/14 18:14:09 eric
Exp $
* $Id: ichxrom.c,v 1.
8 2004/07/16 17:43:11 dwmw2
Exp $
*/
*/
#include <linux/module.h>
#include <linux/module.h>
...
...
drivers/mtd/maps/physmap.c
View file @
2adcd7e4
/*
/*
* $Id: physmap.c,v 1.3
3 2004/07/12 14:37:24 dwmw2
Exp $
* $Id: physmap.c,v 1.3
4 2004/07/21 00:16:14 jwboyer
Exp $
*
*
* Normal mappings of chips in physical memory
* Normal mappings of chips in physical memory
*
*
...
@@ -22,7 +22,12 @@
...
@@ -22,7 +22,12 @@
static
struct
mtd_info
*
mymtd
;
static
struct
mtd_info
*
mymtd
;
struct
map_info
physmap_map
=
{.
name
=
"phys_mapped_flash"
};
struct
map_info
physmap_map
=
{
.
name
=
"phys_mapped_flash"
,
.
phys
=
CONFIG_MTD_PHYSMAP_START
,
.
size
=
CONFIG_MTD_PHYSMAP_LEN
,
.
bankwidth
=
CONFIG_MTD_PHYSMAP_BANKWIDTH
,
};
#ifdef CONFIG_MTD_PARTITIONS
#ifdef CONFIG_MTD_PARTITIONS
static
struct
mtd_partition
*
mtd_parts
;
static
struct
mtd_partition
*
mtd_parts
;
...
...
drivers/mtd/mtdchar.c
View file @
2adcd7e4
/*
/*
* $Id: mtdchar.c,v 1.6
2 2004/07/14 13:20:42
dwmw2 Exp $
* $Id: mtdchar.c,v 1.6
4 2004/08/09 13:59:46
dwmw2 Exp $
*
*
* Character-device access to raw MTD devices.
* Character-device access to raw MTD devices.
*
*
...
@@ -262,7 +262,7 @@ static ssize_t mtd_write(struct file *file, const char __user *buf, size_t count
...
@@ -262,7 +262,7 @@ static ssize_t mtd_write(struct file *file, const char __user *buf, size_t count
IOCTL calls for getting device parameters.
IOCTL calls for getting device parameters.
======================================================================*/
======================================================================*/
static
void
mtd_erase_callback
(
struct
erase_info
*
instr
)
static
void
mtd
char
_erase_callback
(
struct
erase_info
*
instr
)
{
{
wake_up
((
wait_queue_head_t
*
)
instr
->
priv
);
wake_up
((
wait_queue_head_t
*
)
instr
->
priv
);
}
}
...
@@ -336,7 +336,7 @@ static int mtd_ioctl(struct inode *inode, struct file *file,
...
@@ -336,7 +336,7 @@ static int mtd_ioctl(struct inode *inode, struct file *file,
return
-
EFAULT
;
return
-
EFAULT
;
}
}
erase
->
mtd
=
mtd
;
erase
->
mtd
=
mtd
;
erase
->
callback
=
mtd_erase_callback
;
erase
->
callback
=
mtd
char
_erase_callback
;
erase
->
priv
=
(
unsigned
long
)
&
waitq
;
erase
->
priv
=
(
unsigned
long
)
&
waitq
;
/*
/*
...
@@ -511,7 +511,6 @@ static int mtd_ioctl(struct inode *inode, struct file *file,
...
@@ -511,7 +511,6 @@ static int mtd_ioctl(struct inode *inode, struct file *file,
}
}
default:
default:
DEBUG
(
MTD_DEBUG_LEVEL0
,
"Invalid ioctl %x (MEMGETINFO = %lx)
\n
"
,
cmd
,
(
unsigned
long
)
MEMGETINFO
);
ret
=
-
ENOTTY
;
ret
=
-
ENOTTY
;
}
}
...
...
drivers/mtd/mtdpart.c
View file @
2adcd7e4
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
*
*
* This code is GPL
* This code is GPL
*
*
* $Id: mtdpart.c,v 1.
46 2004/07/12 13:28:07
dwmw2 Exp $
* $Id: mtdpart.c,v 1.
50 2004/08/10 16:18:34
dwmw2 Exp $
*
*
* 02-21-2002 Thomas Gleixner <gleixner@autronix.de>
* 02-21-2002 Thomas Gleixner <gleixner@autronix.de>
* added support for read_oob, write_oob
* added support for read_oob, write_oob
...
@@ -246,11 +246,23 @@ static int part_erase (struct mtd_info *mtd, struct erase_info *instr)
...
@@ -246,11 +246,23 @@ static int part_erase (struct mtd_info *mtd, struct erase_info *instr)
return
-
EINVAL
;
return
-
EINVAL
;
instr
->
addr
+=
part
->
offset
;
instr
->
addr
+=
part
->
offset
;
ret
=
part
->
master
->
erase
(
part
->
master
,
instr
);
ret
=
part
->
master
->
erase
(
part
->
master
,
instr
);
if
(
instr
->
fail_addr
!=
0xffffffff
)
instr
->
fail_addr
-=
part
->
offset
;
return
ret
;
return
ret
;
}
}
void
mtd_erase_callback
(
struct
erase_info
*
instr
)
{
if
(
instr
->
mtd
->
erase
==
part_erase
)
{
struct
mtd_part
*
part
=
PART
(
instr
->
mtd
);
if
(
instr
->
fail_addr
!=
0xffffffff
)
instr
->
fail_addr
-=
part
->
offset
;
instr
->
addr
-=
part
->
offset
;
}
if
(
instr
->
callback
)
instr
->
callback
(
instr
);
}
EXPORT_SYMBOL_GPL
(
mtd_erase_callback
);
static
int
part_lock
(
struct
mtd_info
*
mtd
,
loff_t
ofs
,
size_t
len
)
static
int
part_lock
(
struct
mtd_info
*
mtd
,
loff_t
ofs
,
size_t
len
)
{
{
struct
mtd_part
*
part
=
PART
(
mtd
);
struct
mtd_part
*
part
=
PART
(
mtd
);
...
...
drivers/mtd/nand/Kconfig
View file @
2adcd7e4
# drivers/mtd/nand/Kconfig
# drivers/mtd/nand/Kconfig
# $Id: Kconfig,v 1.1
4 2004/07/13 00:14:35 dbrown
Exp $
# $Id: Kconfig,v 1.1
7 2004/08/10 14:24:07 dwmw2
Exp $
menu "NAND Flash Device Drivers"
menu "NAND Flash Device Drivers"
depends on MTD!=n
depends on MTD!=n
...
@@ -81,15 +81,51 @@ config MTD_NAND_PPCHAMELEONEVB
...
@@ -81,15 +81,51 @@ config MTD_NAND_PPCHAMELEONEVB
This enables the NAND flash driver on the PPChameleon EVB Board.
This enables the NAND flash driver on the PPChameleon EVB Board.
config MTD_NAND_DISKONCHIP
config MTD_NAND_DISKONCHIP
tristate "DiskOnChip 2000
and Millennium
(NAND reimplementation) (EXPERIMENTAL)"
tristate "DiskOnChip 2000
, Millennium and Millennium Plus
(NAND reimplementation) (EXPERIMENTAL)"
depends on MTD_NAND && EXPERIMENTAL
depends on MTD_NAND && EXPERIMENTAL
help
help
This is a reimplementation of M-Systems DiskOnChip 2000
and
This is a reimplementation of M-Systems DiskOnChip 2000
,
Millennium a
s a standard NAND device driver, as opposed to the
Millennium a
nd Millennium Plus as a standard NAND device driver,
earlier self-contained MTD device drivers.
as opposed to the
earlier self-contained MTD device drivers.
This should enable, among other things, proper JFFS2 operation on
This should enable, among other things, proper JFFS2 operation on
these devices.
these devices.
config MTD_NAND_DISKONCHIP_PROBE_ADVANCED
bool "Advanced detection options for DiskOnChip"
depends on MTD_NAND_DISKONCHIP
help
This option allows you to specify nonstandard address at which to
probe for a DiskOnChip, or to change the detection options. You
are unlikely to need any of this unless you are using LinuxBIOS.
Say 'N'.
config MTD_NAND_DISKONCHIP_PROBE_ADDRESS
hex "Physical address of DiskOnChip" if MTD_NAND_DISKONCHIP_PROBE_ADVANCED
depends on MTD_NAND_DISKONCHIP
default "0"
---help---
By default, the probe for DiskOnChip devices will look for a
DiskOnChip at every multiple of 0x2000 between 0xC8000 and 0xEE000.
This option allows you to specify a single address at which to probe
for the device, which is useful if you have other devices in that
range which get upset when they are probed.
(Note that on PowerPC, the normal probe will only check at
0xE4000000.)
Normally, you should leave this set to zero, to allow the probe at
the normal addresses.
config MTD_NAND_DISKONCHIP_PROBE_HIGH
bool "Probe high addresses"
depends on MTD_NAND_DISKONCHIP_PROBE_ADVANCED
help
By default, the probe for DiskOnChip devices will look for a
DiskOnChip at every multiple of 0x2000 between 0xC8000 and 0xEE000.
This option changes to make it probe between 0xFFFC8000 and
0xFFFEE000. Unless you are using LinuxBIOS, this is unlikely to be
useful to you. Say 'N'.
config MTD_NAND_DISKONCHIP_BBTWRITE
config MTD_NAND_DISKONCHIP_BBTWRITE
bool "Allow BBT writes on DiskOnChip Millennium and 2000TSOP"
bool "Allow BBT writes on DiskOnChip Millennium and 2000TSOP"
depends on MTD_NAND_DISKONCHIP
depends on MTD_NAND_DISKONCHIP
...
...
drivers/mtd/nand/diskonchip.c
View file @
2adcd7e4
This diff is collapsed.
Click to expand it.
drivers/mtd/nand/nand_base.c
View file @
2adcd7e4
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
* The AG-AND chips have nice features for speed improvement,
* The AG-AND chips have nice features for speed improvement,
* which are not supported yet. Read / program 4 pages in one go.
* which are not supported yet. Read / program 4 pages in one go.
*
*
* $Id: nand_base.c,v 1.11
3 2004/07/14 16:31:31 gleixner
Exp $
* $Id: nand_base.c,v 1.11
5 2004/08/09 13:19:45 dwmw2
Exp $
*
*
* This program is free software; you can redistribute it and/or modify
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* it under the terms of the GNU General Public License version 2 as
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
#include <linux/bitops.h>
#include <linux/bitops.h>
#include <asm/io.h>
#include <asm/io.h>
#if
defined(CONFIG_MTD_PARTITIONS) || defined(CONFIG_MTD_PARTITIONS_MODULE)
#if
def CONFIG_MTD_PARTITIONS
#include <linux/mtd/partitions.h>
#include <linux/mtd/partitions.h>
#endif
#endif
...
@@ -1284,12 +1284,12 @@ static int nand_read_ecc (struct mtd_info *mtd, loff_t from, size_t len,
...
@@ -1284,12 +1284,12 @@ static int nand_read_ecc (struct mtd_info *mtd, loff_t from, size_t len,
nand_release_chip
(
mtd
);
nand_release_chip
(
mtd
);
/*
/*
* Return success, if no ECC failures, else -E
IO
* Return success, if no ECC failures, else -E
BADMSG
* fs driver will take care of that, because
* fs driver will take care of that, because
* retlen == desired len and result == -E
IO
* retlen == desired len and result == -E
BADMSG
*/
*/
*
retlen
=
read
;
*
retlen
=
read
;
return
ecc_failed
?
-
E
IO
:
0
;
return
ecc_failed
?
-
E
BADMSG
:
0
;
}
}
/**
/**
...
@@ -2108,8 +2108,8 @@ int nand_erase_nand (struct mtd_info *mtd, struct erase_info *instr, int allowbb
...
@@ -2108,8 +2108,8 @@ int nand_erase_nand (struct mtd_info *mtd, struct erase_info *instr, int allowbb
ret
=
instr
->
state
==
MTD_ERASE_DONE
?
0
:
-
EIO
;
ret
=
instr
->
state
==
MTD_ERASE_DONE
?
0
:
-
EIO
;
/* Do call back function */
/* Do call back function */
if
(
!
ret
&&
instr
->
callback
)
if
(
!
ret
)
instr
->
callback
(
instr
);
mtd_erase_callback
(
instr
);
/* Deselect and wake up anyone waiting on the device */
/* Deselect and wake up anyone waiting on the device */
nand_release_chip
(
mtd
);
nand_release_chip
(
mtd
);
...
@@ -2555,11 +2555,11 @@ void nand_release (struct mtd_info *mtd)
...
@@ -2555,11 +2555,11 @@ void nand_release (struct mtd_info *mtd)
{
{
struct
nand_chip
*
this
=
mtd
->
priv
;
struct
nand_chip
*
this
=
mtd
->
priv
;
#if
defined(CONFIG_MTD_PARTITIONS) || defined(CONFIG_MTD_PARTITIONS_MODULE)
#if
def CONFIG_MTD_PARTITIONS
/*
Un
register partitions */
/*
De
register partitions */
del_mtd_partitions
(
mtd
);
del_mtd_partitions
(
mtd
);
#endif
#endif
/*
Un
register the device */
/*
De
register the device */
del_mtd_device
(
mtd
);
del_mtd_device
(
mtd
);
/* Free bad block table memory, if allocated */
/* Free bad block table memory, if allocated */
...
...
drivers/mtd/redboot.c
View file @
2adcd7e4
/*
/*
* $Id: redboot.c,v 1.1
3 2004/04/01 10:17:40 gthomas
Exp $
* $Id: redboot.c,v 1.1
5 2004/08/10 07:55:16 dwmw2
Exp $
*
*
* Parse RedBoot-style Flash Image System (FIS) tables and
* Parse RedBoot-style Flash Image System (FIS) tables and
* produce a Linux partition array to match.
* produce a Linux partition array to match.
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
#include <linux/kernel.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/init.h>
#include <linux/vmalloc.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
#include <linux/mtd/partitions.h>
...
@@ -53,7 +54,7 @@ static int parse_redboot_partitions(struct mtd_info *master,
...
@@ -53,7 +54,7 @@ static int parse_redboot_partitions(struct mtd_info *master,
static
char
nullstring
[]
=
"unallocated"
;
static
char
nullstring
[]
=
"unallocated"
;
#endif
#endif
buf
=
kmalloc
(
master
->
erasesize
,
GFP_KERNEL
);
buf
=
vmalloc
(
master
->
erasesize
);
if
(
!
buf
)
if
(
!
buf
)
return
-
ENOMEM
;
return
-
ENOMEM
;
...
@@ -190,7 +191,7 @@ static int parse_redboot_partitions(struct mtd_info *master,
...
@@ -190,7 +191,7 @@ static int parse_redboot_partitions(struct mtd_info *master,
fl
=
fl
->
next
;
fl
=
fl
->
next
;
kfree
(
old
);
kfree
(
old
);
}
}
k
free
(
buf
);
v
free
(
buf
);
return
ret
;
return
ret
;
}
}
...
...
fs/nfsd/nfs3xdr.c
View file @
2adcd7e4
...
@@ -347,8 +347,8 @@ nfs3svc_decode_readargs(struct svc_rqst *rqstp, u32 *p,
...
@@ -347,8 +347,8 @@ nfs3svc_decode_readargs(struct svc_rqst *rqstp, u32 *p,
svc_take_page
(
rqstp
);
svc_take_page
(
rqstp
);
args
->
vec
[
v
].
iov_base
=
page_address
(
rqstp
->
rq_respages
[
pn
]);
args
->
vec
[
v
].
iov_base
=
page_address
(
rqstp
->
rq_respages
[
pn
]);
args
->
vec
[
v
].
iov_len
=
len
<
PAGE_SIZE
?
len
:
PAGE_SIZE
;
args
->
vec
[
v
].
iov_len
=
len
<
PAGE_SIZE
?
len
:
PAGE_SIZE
;
len
-=
args
->
vec
[
v
].
iov_len
;
v
++
;
v
++
;
len
-=
PAGE_SIZE
;
}
}
args
->
vlen
=
v
;
args
->
vlen
=
v
;
return
xdr_argsize_check
(
rqstp
,
p
);
return
xdr_argsize_check
(
rqstp
,
p
);
...
...
fs/nfsd/nfsxdr.c
View file @
2adcd7e4
...
@@ -255,8 +255,8 @@ nfssvc_decode_readargs(struct svc_rqst *rqstp, u32 *p,
...
@@ -255,8 +255,8 @@ nfssvc_decode_readargs(struct svc_rqst *rqstp, u32 *p,
svc_take_page
(
rqstp
);
svc_take_page
(
rqstp
);
args
->
vec
[
v
].
iov_base
=
page_address
(
rqstp
->
rq_respages
[
pn
]);
args
->
vec
[
v
].
iov_base
=
page_address
(
rqstp
->
rq_respages
[
pn
]);
args
->
vec
[
v
].
iov_len
=
len
<
PAGE_SIZE
?
len
:
PAGE_SIZE
;
args
->
vec
[
v
].
iov_len
=
len
<
PAGE_SIZE
?
len
:
PAGE_SIZE
;
len
-=
args
->
vec
[
v
].
iov_len
;
v
++
;
v
++
;
len
-=
PAGE_SIZE
;
}
}
args
->
vlen
=
v
;
args
->
vlen
=
v
;
return
xdr_argsize_check
(
rqstp
,
p
);
return
xdr_argsize_check
(
rqstp
,
p
);
...
...
include/asm-sparc64/thread_info.h
View file @
2adcd7e4
...
@@ -47,6 +47,7 @@ struct thread_info {
...
@@ -47,6 +47,7 @@ struct thread_info {
struct
pt_regs
*
kregs
;
struct
pt_regs
*
kregs
;
struct
exec_domain
*
exec_domain
;
struct
exec_domain
*
exec_domain
;
int
preempt_count
;
int
preempt_count
;
int
__pad
;
unsigned
long
*
utraps
;
unsigned
long
*
utraps
;
...
@@ -101,10 +102,11 @@ struct thread_info {
...
@@ -101,10 +102,11 @@ struct thread_info {
#define TI_FPREGS 0x00000500
#define TI_FPREGS 0x00000500
/* We embed this in the uppermost byte of thread_info->flags */
/* We embed this in the uppermost byte of thread_info->flags */
#define FAULT_CODE_WRITE 0x01
/* Write access, implies D-TLB */
#define FAULT_CODE_WRITE 0x01
/* Write access, implies D-TLB */
#define FAULT_CODE_DTLB 0x02
/* Miss happened in D-TLB */
#define FAULT_CODE_DTLB 0x02
/* Miss happened in D-TLB */
#define FAULT_CODE_ITLB 0x04
/* Miss happened in I-TLB */
#define FAULT_CODE_ITLB 0x04
/* Miss happened in I-TLB */
#define FAULT_CODE_WINFIXUP 0x08
/* Miss happened during spill/fill */
#define FAULT_CODE_WINFIXUP 0x08
/* Miss happened during spill/fill */
#define FAULT_CODE_BLKCOMMIT 0x10
/* Use blk-commit ASI in copy_page */
#if PAGE_SHIFT == 13
#if PAGE_SHIFT == 13
#define THREAD_SIZE (2*PAGE_SIZE)
#define THREAD_SIZE (2*PAGE_SIZE)
...
@@ -218,10 +220,7 @@ register struct thread_info *current_thread_info_reg asm("g6");
...
@@ -218,10 +220,7 @@ register struct thread_info *current_thread_info_reg asm("g6");
#define TIF_NEWSIGNALS 6
/* wants new-style signals */
#define TIF_NEWSIGNALS 6
/* wants new-style signals */
#define TIF_32BIT 7
/* 32-bit binary */
#define TIF_32BIT 7
/* 32-bit binary */
#define TIF_NEWCHILD 8
/* just-spawned child process */
#define TIF_NEWCHILD 8
/* just-spawned child process */
/* TIF_* value 9 is available */
/* XXX Make this one FAULT_CODE_BLKCOMMIT XXX */
#define TIF_BLKCOMMIT 9
/* use ASI_BLK_COMMIT_* in copy_user_page */
#define TIF_POLLING_NRFLAG 10
#define TIF_POLLING_NRFLAG 10
#define TIF_SYSCALL_SUCCESS 11
#define TIF_SYSCALL_SUCCESS 11
/* NOTE: Thread flags >= 12 should be ones we have no interest
/* NOTE: Thread flags >= 12 should be ones we have no interest
...
@@ -239,7 +238,6 @@ register struct thread_info *current_thread_info_reg asm("g6");
...
@@ -239,7 +238,6 @@ register struct thread_info *current_thread_info_reg asm("g6");
#define _TIF_NEWSIGNALS (1<<TIF_NEWSIGNALS)
#define _TIF_NEWSIGNALS (1<<TIF_NEWSIGNALS)
#define _TIF_32BIT (1<<TIF_32BIT)
#define _TIF_32BIT (1<<TIF_32BIT)
#define _TIF_NEWCHILD (1<<TIF_NEWCHILD)
#define _TIF_NEWCHILD (1<<TIF_NEWCHILD)
#define _TIF_BLKCOMMIT (1<<TIF_BLKCOMMIT)
#define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG)
#define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG)
#define _TIF_ABI_PENDING (1<<TIF_ABI_PENDING)
#define _TIF_ABI_PENDING (1<<TIF_ABI_PENDING)
#define _TIF_SYSCALL_SUCCESS (1<<TIF_SYSCALL_SUCCESS)
#define _TIF_SYSCALL_SUCCESS (1<<TIF_SYSCALL_SUCCESS)
...
...
include/linux/mtd/mtd.h
View file @
2adcd7e4
/*
/*
* $Id: mtd.h,v 1.5
4 2004/07/15 01:13:12 dwmw2
Exp $
* $Id: mtd.h,v 1.5
6 2004/08/09 18:46:04 dmarlin
Exp $
*
*
* Copyright (C) 1999-2003 David Woodhouse <dwmw2@infradead.org> et al.
* Copyright (C) 1999-2003 David Woodhouse <dwmw2@infradead.org> et al.
*
*
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
#include <linux/module.h>
#include <linux/module.h>
#include <linux/uio.h>
#include <linux/uio.h>
#include <linux/mtd/compatmac.h>
#include <mtd/mtd-abi.h>
#include <mtd/mtd-abi.h>
#define MTD_CHAR_MAJOR 90
#define MTD_CHAR_MAJOR 90
...
@@ -192,6 +193,17 @@ int default_mtd_readv(struct mtd_info *mtd, struct kvec *vecs,
...
@@ -192,6 +193,17 @@ int default_mtd_readv(struct mtd_info *mtd, struct kvec *vecs,
#define MTD_WRITEOOB(mtd, args...) (*(mtd->write_oob))(mtd, args)
#define MTD_WRITEOOB(mtd, args...) (*(mtd->write_oob))(mtd, args)
#define MTD_SYNC(mtd) do { if (mtd->sync) (*(mtd->sync))(mtd); } while (0)
#define MTD_SYNC(mtd) do { if (mtd->sync) (*(mtd->sync))(mtd); } while (0)
#ifdef CONFIG_MTD_PARTITIONS
void
mtd_erase_callback
(
struct
erase_info
*
instr
);
#else
static
inline
void
mtd_erase_callback
(
struct
erase_info
*
instr
)
{
if
(
instr
->
callback
)
instr
->
callback
(
instr
);
}
#endif
/*
/*
* Debugging macro and defines
* Debugging macro and defines
*/
*/
...
...
include/linux/mtd/physmap.h
View file @
2adcd7e4
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* For boards with physically mapped flash and using
* For boards with physically mapped flash and using
* drivers/mtd/maps/physmap.c mapping driver.
* drivers/mtd/maps/physmap.c mapping driver.
*
*
* $Id: physmap.h,v 1.
2 2004/07/14 17:48:46 dwmw2
Exp $
* $Id: physmap.h,v 1.
3 2004/07/21 00:16:15 jwboyer
Exp $
*
*
* Copyright (C) 2003 MontaVista Software Inc.
* Copyright (C) 2003 MontaVista Software Inc.
* Author: Jun Sun, jsun@mvista.com or jsun@junsun.net
* Author: Jun Sun, jsun@mvista.com or jsun@junsun.net
...
@@ -33,11 +33,11 @@ extern struct map_info physmap_map;
...
@@ -33,11 +33,11 @@ extern struct map_info physmap_map;
/*
/*
* Board needs to specify the exact mapping during their setup time.
* Board needs to specify the exact mapping during their setup time.
*/
*/
static
inline
void
physmap_configure
(
unsigned
long
addr
,
unsigned
long
size
,
int
b
us
width
,
void
(
*
set_vpp
)(
struct
map_info
*
,
int
)
)
static
inline
void
physmap_configure
(
unsigned
long
addr
,
unsigned
long
size
,
int
b
ank
width
,
void
(
*
set_vpp
)(
struct
map_info
*
,
int
)
)
{
{
physmap_map
.
phys
=
addr
;
physmap_map
.
phys
=
addr
;
physmap_map
.
size
=
size
;
physmap_map
.
size
=
size
;
physmap_map
.
b
uswidth
=
bus
width
;
physmap_map
.
b
ankwidth
=
bank
width
;
physmap_map
.
set_vpp
=
set_vpp
;
physmap_map
.
set_vpp
=
set_vpp
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment