+/**
+ * Flash25 KFile context structure.
+ */
+typedef struct Flash25
+{
+ KFile fd; ///< File descriptor.
+ KFile *channel; ///< Dataflash comm channel (usually SPI).
+} Flash25;
+
+/**
+ * ID for dataflash.
+ */
+#define KFT_FLASH25 MAKE_ID('F', 'L', '2', '5')
+
+
+/**
+ * Convert + ASSERT from generic KFile to Flash25.
+ */
+INLINE Flash25 * FLASH25_CAST(KFile *fd)
+{
+ ASSERT(fd->_type == KFT_FLASH25);
+ return (Flash25 *)fd;
+}