aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/cfi/cfi_dev.c
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2009-03-09 23:16:02 +0000
committerSam Leffler <sam@FreeBSD.org>2009-03-09 23:16:02 +0000
commitf2c6781bfd0205e45bf03f031c2baddf79c31e32 (patch)
treed70fc54072f8a3553bf462db467a75c2015dc6b7 /sys/dev/cfi/cfi_dev.c
parent2e986da5f19af7e8d8123f221f7ec329e60b22bb (diff)
downloadsrc-f2c6781bfd0205e45bf03f031c2baddf79c31e32.tar.gz
src-f2c6781bfd0205e45bf03f031c2baddf79c31e32.zip
Add cfid, a disk interface to CFI flash devices; this enables construction
of flash-based filesystems. Note this is not interlocked against the raw CFI device.
Notes
Notes: svn path=/head/; revision=189606
Diffstat (limited to 'sys/dev/cfi/cfi_dev.c')
-rw-r--r--sys/dev/cfi/cfi_dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/cfi/cfi_dev.c b/sys/dev/cfi/cfi_dev.c
index 89069cbbe95d..d6357531ab8f 100644
--- a/sys/dev/cfi/cfi_dev.c
+++ b/sys/dev/cfi/cfi_dev.c
@@ -74,7 +74,7 @@ struct cdevsw cfi_cdevsw = {
* or the process stops writing. At that time we write the whole
* sector to flash (see cfi_block_finish).
*/
-static int
+int
cfi_block_start(struct cfi_softc *sc, u_int ofs)
{
union {
@@ -124,7 +124,7 @@ cfi_block_start(struct cfi_softc *sc, u_int ofs)
* Finish updating the current block/sector by writing the compound
* set of changes to the flash.
*/
-static int
+int
cfi_block_finish(struct cfi_softc *sc)
{
int error;