summaryrefslogtreecommitdiffstats
path: root/sys/dev/cfi/cfi_var.h
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2009-03-09 23:16:02 +0000
committersam <sam@FreeBSD.org>2009-03-09 23:16:02 +0000
commit010280a0bccdd4e4ef8ea41fb3309a88fa97acde (patch)
treed70fc54072f8a3553bf462db467a75c2015dc6b7 /sys/dev/cfi/cfi_var.h
parent2f15c795a97265832068c77e9c224e94c5fcd8e6 (diff)
downloadFreeBSD-src-010280a0bccdd4e4ef8ea41fb3309a88fa97acde.zip
FreeBSD-src-010280a0bccdd4e4ef8ea41fb3309a88fa97acde.tar.gz
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.
Diffstat (limited to 'sys/dev/cfi/cfi_var.h')
-rw-r--r--sys/dev/cfi/cfi_var.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/cfi/cfi_var.h b/sys/dev/cfi/cfi_var.h
index d2a778b..4dd9a60 100644
--- a/sys/dev/cfi/cfi_var.h
+++ b/sys/dev/cfi/cfi_var.h
@@ -65,6 +65,7 @@ struct cfi_softc {
extern char cfi_driver_name[];
extern devclass_t cfi_devclass;
+extern devclass_t cfi_diskclass;
int cfi_probe(device_t);
int cfi_attach(device_t);
@@ -73,6 +74,8 @@ int cfi_detach(device_t);
uint32_t cfi_read(struct cfi_softc *, u_int);
uint8_t cfi_read_qry(struct cfi_softc *, u_int);
int cfi_write_block(struct cfi_softc *);
+int cfi_block_start(struct cfi_softc *, u_int);
+int cfi_block_finish(struct cfi_softc *);
#ifdef CFI_SUPPORT_STRATAFLASH
int cfi_intel_get_factory_pr(struct cfi_softc *sc, uint64_t *);
OpenPOWER on IntegriCloud