]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/ibl.git/blobdiff - src/iblloc.h
Single Binary Support: Initial Commit
[keystone-rtos/ibl.git] / src / iblloc.h
index 748d755e11efa592fee8d3982148f27dcecd2797..cd7a7adc7aa0177c3b996de094f977a47e84d72a 100644 (file)
@@ -110,8 +110,24 @@ typedef struct BOOT_MODULE_FXN_TABLE
 /* Prototypes */
 Uint32 iblBoot (BOOT_MODULE_FXN_TABLE *bootFxn, int32 dataFormat, void *formatParams);
 
+/* Stdlibs referenced through functions to use a single copy in the two stage boot */
+void *iblMalloc (Uint32 size);
+void  iblFree   (void *mem);
+void *iblMemset (void *mem, Int32 ch, Uint32 n);
+void *iblMemcpy (void *s1, const void *s2, Uint32 n);
 
 /* squash printfs */
 void mprintf(char *x, ...);
 
+
+/* Initial Boot Devices */
+#define BOOT_DEVICE_INVALID    -1
+#define BOOT_DEVICE_I2C         0
+#define BOOT_DEVICE_SPI_NOR     1
+#define BOOT_DEVICE_SPI_NAND    2
+
+BOOT_MODULE_FXN_TABLE *iblInitI2c     (void);
+BOOT_MODULE_FXN_TABLE *iblInitSpiNor  (void);
+BOOT_MODULE_FXN_TABLE *iblInitSpiNand (void);
+
 #endif /* _IBLLOC_H */