mirror of
https://github.com/eclipse-threadx/levelx.git
synced 2026-09-14 04:06:00 +08:00
Update on 23 Oct 2023. Expand to see details.
f203c27 Update headers and readme for 6.3.0 release. 40d3d10 Avoid clearing user extension in flash control block on opening flash 689dcc1 Added obsolete count and mapping bitmap cache for NOR flash. optimized block seraching logic. b183526 Enable weekly pipeline build to avoid CodeQL expiration 2eec506 Enable codeql in onebranch pipeline
This commit is contained in:
+27
-4
@@ -26,7 +26,7 @@
|
||||
/* APPLICATION INTERFACE DEFINITION RELEASE */
|
||||
/* */
|
||||
/* lx_api.h PORTABLE C */
|
||||
/* 6.2.1 */
|
||||
/* 6.3.0 */
|
||||
/* AUTHOR */
|
||||
/* */
|
||||
/* William E. Lamie, Microsoft Corporation */
|
||||
@@ -79,7 +79,13 @@
|
||||
/* modified NAND logic, */
|
||||
/* added new driver interface */
|
||||
/* and user extension, */
|
||||
/* resulting in version 6.2.1 */
|
||||
/* resulting in version 6.2.1 */
|
||||
/* 10-31-2023 Xiuwen Cai Modified comment(s), */
|
||||
/* made LX_NOR_SECTOR_SIZE */
|
||||
/* configurable, added mapping */
|
||||
/* bitmap and obsolete count */
|
||||
/* cache for NOR flash, */
|
||||
/* resulting in version 6.3.0 */
|
||||
/* */
|
||||
/**************************************************************************/
|
||||
|
||||
@@ -191,8 +197,8 @@ typedef unsigned long long ULONG64;
|
||||
/* Define basic constants for the LevelX Stack. */
|
||||
#define AZURE_RTOS_LEVELX
|
||||
#define LEVELX_MAJOR_VERSION 6
|
||||
#define LEVELX_MINOR_VERSION 2
|
||||
#define LEVELX_PATCH_VERSION 1
|
||||
#define LEVELX_MINOR_VERSION 3
|
||||
#define LEVELX_PATCH_VERSION 0
|
||||
|
||||
|
||||
/* Define general LevelX Constants. */
|
||||
@@ -233,7 +239,9 @@ typedef unsigned long long ULONG64;
|
||||
|
||||
#define LX_NOR_FLASH_OPENED ((ULONG) 0x4E4F524F)
|
||||
#define LX_NOR_FLASH_CLOSED ((ULONG) 0x4E4F5244)
|
||||
#ifndef LX_NOR_SECTOR_SIZE
|
||||
#define LX_NOR_SECTOR_SIZE (512/sizeof(ULONG))
|
||||
#endif
|
||||
#define LX_NOR_FLASH_MIN_LOGICAL_SECTOR_OFFSET 1
|
||||
#define LX_NOR_FLASH_MAX_LOGICAL_SECTOR_OFFSET 2
|
||||
#ifndef LX_NOR_FLASH_MAX_ERASE_COUNT_DELTA
|
||||
@@ -246,6 +254,11 @@ typedef unsigned long long ULONG64;
|
||||
#ifndef LX_NOR_EXTENDED_CACHE_SIZE
|
||||
#define LX_NOR_EXTENDED_CACHE_SIZE 8 /* Maximum number of extended cache sectors. */
|
||||
#endif
|
||||
#ifdef LX_NOR_ENABLE_OBSOLETE_COUNT_CACHE
|
||||
#ifndef LX_NOR_OBSOLETE_COUNT_CACHE_TYPE
|
||||
#define LX_NOR_OBSOLETE_COUNT_CACHE_TYPE UCHAR
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
/* Define the mask for the hash index into the sector mapping cache table. The sector mapping cache is divided
|
||||
@@ -566,6 +579,7 @@ typedef struct LX_NOR_FLASH_STRUCT
|
||||
ULONG lx_nor_flash_mapped_physical_sectors;
|
||||
ULONG lx_nor_flash_obsolete_physical_sectors;
|
||||
ULONG lx_nor_flash_minimum_erase_count;
|
||||
ULONG lx_nor_flash_minimum_erased_blocks;
|
||||
ULONG lx_nor_flash_maximum_erase_count;
|
||||
|
||||
ULONG lx_nor_flash_free_block_search;
|
||||
@@ -616,6 +630,15 @@ typedef struct LX_NOR_FLASH_STRUCT
|
||||
lx_nor_flash_extended_cache[LX_NOR_EXTENDED_CACHE_SIZE];
|
||||
ULONG lx_nor_flash_extended_cache_hits;
|
||||
ULONG lx_nor_flash_extended_cache_misses;
|
||||
#ifdef LX_NOR_ENABLE_MAPPING_BITMAP
|
||||
ULONG *lx_nor_flash_extended_cache_mapping_bitmap;
|
||||
ULONG lx_nor_flash_extended_cache_mapping_bitmap_max_logical_sector;
|
||||
#endif
|
||||
#ifdef LX_NOR_ENABLE_OBSOLETE_COUNT_CACHE
|
||||
LX_NOR_OBSOLETE_COUNT_CACHE_TYPE
|
||||
*lx_nor_flash_extended_cache_obsolete_count;
|
||||
ULONG lx_nor_flash_extended_cache_obsolete_count_max_block;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef LX_THREAD_SAFE_ENABLE
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
/* PORT SPECIFIC C INFORMATION RELEASE */
|
||||
/* */
|
||||
/* lx_user.h PORTABLE C */
|
||||
/* 6.2.1 */
|
||||
/* 6.3.0 */
|
||||
/* */
|
||||
/* AUTHOR */
|
||||
/* */
|
||||
@@ -50,7 +50,12 @@
|
||||
/* resulting in version 6.1.7 */
|
||||
/* 03-08-2023 Xiuwen Cai Modified comment(s), and */
|
||||
/* added new NAND options, */
|
||||
/* resulting in version 6.2.1 */
|
||||
/* resulting in version 6.2.1 */
|
||||
/* 10-31-2023 Xiuwen Cai Modified comment(s), */
|
||||
/* added options for mapping , */
|
||||
/* bitmap cache and obsolete */
|
||||
/* count cache, */
|
||||
/* resulting in version 6.3.0 */
|
||||
/* */
|
||||
/**************************************************************************/
|
||||
|
||||
@@ -113,15 +118,39 @@
|
||||
|
||||
/* #define LX_STANDALONE_ENABLE */
|
||||
|
||||
/* Define user extension for NOR flash control block. */
|
||||
/* Define user extension for NOR flash control block. User extension is placed at the end of flash control block and it is not cleared on opening flash. */
|
||||
/*
|
||||
#define LX_NOR_FLASH_USER_EXTENSION ????
|
||||
*/
|
||||
|
||||
/* Define user extension for NAND flash control block. */
|
||||
/* Define user extension for NAND flash control block. User extension is placed at the end of flash control block and it is not cleared on opening flash. */
|
||||
/*
|
||||
#define LX_NAND_FLASH_USER_EXTENSION ????
|
||||
*/
|
||||
|
||||
/* Determine if logical sector mapping bitmap should be enabled in extended cache.
|
||||
Cache memory will be allocated to sector mapping bitmap first. One bit can be allocated for each physical sector. */
|
||||
/*
|
||||
#define LX_NOR_ENABLE_MAPPING_BITMAP
|
||||
*/
|
||||
|
||||
/* Determine if obsolete count cache should be enabled in extended cache.
|
||||
Cache memory will be allocated to obsolete count cache after the mapping bitmap if enabled,
|
||||
and the rest of the cache memory is allocated to sector cache. */
|
||||
/*
|
||||
#define LX_NOR_ENABLE_OBSOLETE_COUNT_CACHE
|
||||
*/
|
||||
|
||||
/* Defines obsolete count cache element size. If number of sectors per block is greater than 256, use USHORT instead of UCHAR. */
|
||||
/*
|
||||
#define LX_NOR_OBSOLETE_COUNT_CACHE_TYPE UCHAR
|
||||
*/
|
||||
|
||||
/* Define the logical sector size for NOR flash. The sector size is in units of 32-bit words.
|
||||
This sector size should match the sector size used in file system. */
|
||||
/*
|
||||
#define LX_NOR_SECTOR_SIZE (512/sizeof(ULONG))
|
||||
*/
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user