X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fenv_internal.h;h=f30fd6159d87b8ad282583c3c2cd55ae75548289;hb=ddd39d0cc1a025a1e2e3c792cc8286dbdfa29b54;hp=f74927cd64194f57537fe936f621ecd1ecbee5e0;hpb=360e392274e3bfeda3b7226d2cac7514774d0da1;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/env_internal.h b/include/env_internal.h index f74927c..f30fd61 100644 --- a/include/env_internal.h +++ b/include/env_internal.h @@ -54,7 +54,6 @@ # error "is set" # endif extern unsigned long nand_env_oob_offset; -# define CONFIG_ENV_OFFSET nand_env_oob_offset # endif /* CONFIG_ENV_OFFSET_OOB */ #endif /* CONFIG_ENV_IS_IN_NAND */ @@ -221,7 +220,7 @@ extern struct hsearch_data env_htab; * It is a weak function allowing board to overidde the default interface for * U-Boot env in EXT4: CONFIG_ENV_EXT4_INTERFACE * - * @return string of interface, empty if not supported + * Return: string of interface, empty if not supported */ const char *env_ext4_get_intf(void); @@ -231,21 +230,57 @@ const char *env_ext4_get_intf(void); * It is a weak function allowing board to overidde the default device and * partition used for U-Boot env in EXT4: CONFIG_ENV_EXT4_DEVICE_AND_PART * - * @return string of device and partition + * Return: string of device and partition */ const char *env_ext4_get_dev_part(void); /** + * arch_env_get_location()- Provide the best location for the U-Boot environment + * + * It is a weak function allowing board to overidde the environment location + * on architecture level. This has lower priority than env_get_location(), + * which can be defined on board level. + * + * @op: operations performed on the environment + * @prio: priority between the multiple environments, 0 being the + * highest priority + * Return: an enum env_location value on success, or -ve error code. + */ +enum env_location arch_env_get_location(enum env_operation op, int prio); + +/** * env_get_location()- Provide the best location for the U-Boot environment * * It is a weak function allowing board to overidde the environment location + * on board level. This has higher priority than arch_env_get_location(), + * which can be defined on architecture level. * * @op: operations performed on the environment * @prio: priority between the multiple environments, 0 being the * highest priority - * @return an enum env_location value on success, or -ve error code. + * Return: an enum env_location value on success, or -ve error code. */ enum env_location env_get_location(enum env_operation op, int prio); + +/** + * env_fat_get_intf() - Provide the interface for env in FAT + * + * It is a weak function allowing board to overidde the default interface for + * U-Boot env in FAT: CONFIG_ENV_FAT_INTERFACE + * + * Return: string of interface, empty if not supported + */ +const char *env_fat_get_intf(void); + +/** + * env_fat_get_dev_part() - Provide the device and partition for env in FAT + * + * It is a weak function allowing board to overidde the default device and + * partition used for U-Boot env in FAT: CONFIG_ENV_FAT_DEVICE_AND_PART + * + * Return: string of device and partition + */ +char *env_fat_get_dev_part(void); #endif /* DO_DEPS_ONLY */ #endif /* _ENV_INTERNAL_H_ */