diff packages/io/flash/current/cdl/io_flash.cdl @ 791:a2dfa8bf3c57

Export RedBoot FIS functions - from Knud Woehler <knud.woehler@microplex.de>
author gthomas
date Mon, 03 Mar 2003 17:09:56 +0000
parents 769b19e0b086
children dbcfe4e0dbd2
line wrap: on
line diff
--- a/packages/io/flash/current/cdl/io_flash.cdl
+++ b/packages/io/flash/current/cdl/io_flash.cdl
@@ -42,7 +42,7 @@
 #
 # Author(s):      gthomas
 # Original data:  gthomas
-# Contributors:
+# Contributors:   woehler
 # Date:           2000-07-06
 #
 #####DESCRIPTIONEND####
@@ -133,26 +133,54 @@ cdl_package CYGPKG_IO_FLASH {
                 API ( cyg_io_read() etc. )"
 
         cdl_component CYGDAT_IO_FLASH_BLOCK_DEVICE_NAME_1 {
-                display       "Name of flash device 1 block device"
-                flavor        data
-                default_value { "\"/dev/flash1\"" }
+			display       "Name of flash device 1 block device"
+            flavor        data
+            default_value { "\"/dev/flash1\"" }
+                
+			cdl_interface CYGINT_IO_FLASH_BLOCK_CFG_1 {
+				requires 1 == CYGINT_IO_FLASH_BLOCK_CFG_1
+				no_define
+			}
 
-            cdl_option CYGNUM_IO_FLASH_BLOCK_OFFSET_1 {
-                display         "Start offset from flash base"
-                flavor          data
-                default_value   0x100000
-                description     "
-                    This gives the offset from the base of flash which this
-                    block device corresponds to."
-            }
-            cdl_option CYGNUM_IO_FLASH_BLOCK_LENGTH_1 {
-                display         "Length"
-                flavor          data
-                default_value   0x100000
-                description     "
-                    This gives the length of the region of flash given over
-                    to this block device."
-            }
+			cdl_component CYGNUM_IO_FLASH_BLOCK_CFG_STATIC_1 {
+				display       "Static configuration"
+				default_value 1
+				implements    CYGINT_IO_FLASH_BLOCK_CFG_1
+				description   "
+					This configures the flash device 1 block device
+					with static base and length"
+			
+				cdl_option CYGNUM_IO_FLASH_BLOCK_OFFSET_1 {
+					display         "Start offset from flash base"
+					flavor          data
+					default_value   0x100000
+					description     "
+						This gives the offset from the base of flash which this
+						block device corresponds to."
+					}
+					cdl_option CYGNUM_IO_FLASH_BLOCK_LENGTH_1 {
+					display         "Length"
+					flavor          data
+					default_value   0x100000
+					description     "
+						This gives the length of the region of flash given over
+						to this block device."
+					}
+				}
+			cdl_component CYGNUM_IO_FLASH_BLOCK_CFG_FIS_1 {
+				display       "Configuration from FIS"
+				default_value 0
+				implements    CYGINT_IO_FLASH_BLOCK_CFG_1
+				description   "
+					This configures the flash device 1 block device
+					from Redboot FIS"
+					
+				cdl_component CYGDAT_IO_FLASH_BLOCK_FIS_NAME_1 {
+					display       "Name of FIS entry"
+					flavor        data
+					default_value { "\"jffs2\"" }	
+				}
+            }        
         }
     }
 }