mirror of
https://github.com/eclipse-threadx/levelx.git
synced 2026-09-14 04:06:00 +08:00
Merge pull request #68 from fdesbiens/dev
Updated copyright headers and version number constants
This commit is contained in:
+4
-59
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
* Portion Copyright (c) 2025 STMicroelectronics
|
* Portion Copyright (c) 2025 STMicroelectronics
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
@@ -37,62 +38,6 @@
|
|||||||
/* high-performance LevelX. All service prototypes and data structure */
|
/* high-performance LevelX. All service prototypes and data structure */
|
||||||
/* definitions are defined in this file. */
|
/* definitions are defined in this file. */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), and */
|
|
||||||
/* updated product constants, */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 11-09-2020 William E. Lamie Modified comment(s), and */
|
|
||||||
/* added support for lx_user.h */
|
|
||||||
/* so user can specify values, */
|
|
||||||
/* resulting in version 6.1.2 */
|
|
||||||
/* 12-31-2020 William E. Lamie Modified comment(s), and */
|
|
||||||
/* updated product constants, */
|
|
||||||
/* resulting in version 6.1.3 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* added standalone support, */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* 08-02-2021 William E. Lamie Modified comment(s), and */
|
|
||||||
/* updated product constants, */
|
|
||||||
/* resulting in version 6.1.8 */
|
|
||||||
/* 10-15-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* updated configuration for */
|
|
||||||
/* nand flash */
|
|
||||||
/* resulting in version 6.1.9 */
|
|
||||||
/* 01-31-2022 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* updated include order for */
|
|
||||||
/* standalone mode, */
|
|
||||||
/* resulting in version 6.1.10 */
|
|
||||||
/* 04-25-2022 William E. Lamie Modified comment(s), and */
|
|
||||||
/* updated product constants, */
|
|
||||||
/* resulting in version 6.1.11 */
|
|
||||||
/* 07-29-2022 William E. Lamie Modified comment(s), and */
|
|
||||||
/* updated product constants, */
|
|
||||||
/* resulting in version 6.1.12 */
|
|
||||||
/* 10-31-2022 Xiuwen Cai Modified comment(s), and */
|
|
||||||
/* updated product constants, */
|
|
||||||
/* resulting in version 6.2.0 */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* modified NAND logic, */
|
|
||||||
/* added new driver interface */
|
|
||||||
/* and user extension, */
|
|
||||||
/* 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 */
|
|
||||||
/* 12-31-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* added configuration checks, */
|
|
||||||
/* resulting in version 6.4.0 */
|
|
||||||
/* 03-01-2024 Tiejun Zhou Modified comment(s), */
|
|
||||||
/* update version number, */
|
|
||||||
/* resulting in version 6.4.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
|
|
||||||
#ifndef LX_API_H
|
#ifndef LX_API_H
|
||||||
@@ -203,9 +148,9 @@ typedef unsigned long long ULONG64;
|
|||||||
/* Define basic constants for the LevelX Stack. */
|
/* Define basic constants for the LevelX Stack. */
|
||||||
#define AZURE_RTOS_LEVELX
|
#define AZURE_RTOS_LEVELX
|
||||||
#define LEVELX_MAJOR_VERSION 6
|
#define LEVELX_MAJOR_VERSION 6
|
||||||
#define LEVELX_MINOR_VERSION 4
|
#define LEVELX_MINOR_VERSION 5
|
||||||
#define LEVELX_PATCH_VERSION 5
|
#define LEVELX_PATCH_VERSION 0
|
||||||
#define LEVELX_BUILD_VERSION 202504
|
#define LEVELX_BUILD_VERSION 202601
|
||||||
#define LEVELX_HOTFIX_VERSION ' '
|
#define LEVELX_HOTFIX_VERSION ' '
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -39,23 +40,6 @@
|
|||||||
/* Note that all the defines in this file may also be made on the */
|
/* Note that all the defines in this file may also be made on the */
|
||||||
/* command line when building LevelX library and application objects. */
|
/* command line when building LevelX library and application objects. */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 11-09-2020 William E. Lamie Initial Version 6.1.2 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), and */
|
|
||||||
/* added standalone support, */
|
|
||||||
/* 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 */
|
|
||||||
/* 10-31-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* added options for mapping , */
|
|
||||||
/* bitmap cache and obsolete */
|
|
||||||
/* count cache, */
|
|
||||||
/* resulting in version 6.3.0 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
|
|
||||||
#ifndef LX_USER_H
|
#ifndef LX_USER_H
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -116,19 +117,6 @@ VOID _fx_nand_flash_simulator_driver(FX_MEDIA *media_ptr);
|
|||||||
/* */
|
/* */
|
||||||
/* FileX System Functions */
|
/* FileX System Functions */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* changed to use new API, */
|
|
||||||
/* resulting in version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
VOID _fx_nand_flash_simulator_driver(FX_MEDIA *media_ptr)
|
VOID _fx_nand_flash_simulator_driver(FX_MEDIA *media_ptr)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -109,16 +110,6 @@ VOID _fx_nor_flash_simulator_driver(FX_MEDIA *media_ptr);
|
|||||||
/* */
|
/* */
|
||||||
/* FileX System Functions */
|
/* FileX System Functions */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
VOID _fx_nor_flash_simulator_driver(FX_MEDIA *media_ptr)
|
VOID _fx_nor_flash_simulator_driver(FX_MEDIA *media_ptr)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -66,16 +67,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* _lx_nand_flash_page_ecc_check NAND page check */
|
/* _lx_nand_flash_page_ecc_check NAND page check */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_256byte_ecc_check(UCHAR *page_buffer, UCHAR *ecc_buffer)
|
UINT _lx_nand_flash_256byte_ecc_check(UCHAR *page_buffer, UCHAR *ecc_buffer)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -67,19 +68,6 @@
|
|||||||
/* _lx_nand_flash_page_ecc_compute NAND page ECC compute */
|
/* _lx_nand_flash_page_ecc_compute NAND page ECC compute */
|
||||||
/* _lx_nand_flash_256byte_ecc_check Check 256 bytes and ECC */
|
/* _lx_nand_flash_256byte_ecc_check Check 256 bytes and ECC */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* inverted output, */
|
|
||||||
/* resulting in version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_256byte_ecc_compute(UCHAR *page_buffer, UCHAR *ecc_buffer)
|
UINT _lx_nand_flash_256byte_ecc_compute(UCHAR *page_buffer, UCHAR *ecc_buffer)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -65,12 +66,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Initial Version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_block_allocate(LX_NAND_FLASH* nand_flash, ULONG* block)
|
UINT _lx_nand_flash_block_allocate(LX_NAND_FLASH* nand_flash, ULONG* block)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -78,12 +79,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Application Code */
|
/* Application Code */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Initial Version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_block_data_move(LX_NAND_FLASH *nand_flash, ULONG new_block)
|
UINT _lx_nand_flash_block_data_move(LX_NAND_FLASH *nand_flash, ULONG new_block)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -72,12 +73,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Initial Version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_block_find(LX_NAND_FLASH *nand_flash, ULONG logical_sector, ULONG *block, USHORT *block_status)
|
UINT _lx_nand_flash_block_find(LX_NAND_FLASH *nand_flash, ULONG logical_sector, ULONG *block, USHORT *block_status)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -66,12 +67,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Initial Version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_block_mapping_set(LX_NAND_FLASH *nand_flash, ULONG logical_sector, ULONG block)
|
UINT _lx_nand_flash_block_mapping_set(LX_NAND_FLASH *nand_flash, ULONG logical_sector, ULONG block)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -66,12 +67,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Initial Version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_block_status_set(LX_NAND_FLASH *nand_flash, ULONG block, ULONG block_status)
|
UINT _lx_nand_flash_block_status_set(LX_NAND_FLASH *nand_flash, ULONG block, ULONG block_status)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -64,16 +65,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Application Code */
|
/* Application Code */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_close(LX_NAND_FLASH *nand_flash)
|
UINT _lx_nand_flash_close(LX_NAND_FLASH *nand_flash)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -73,16 +74,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Initial Version 6.2.1 */
|
|
||||||
/* 12-31-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* fixed sequential checking */
|
|
||||||
/* logic, */
|
|
||||||
/* resulting in version 6.4.0 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_data_page_copy(LX_NAND_FLASH* nand_flash, ULONG logical_sector, ULONG source_block, USHORT src_block_status,
|
UINT _lx_nand_flash_data_page_copy(LX_NAND_FLASH* nand_flash, ULONG logical_sector, ULONG source_block, USHORT src_block_status,
|
||||||
ULONG destination_block, USHORT* dest_block_status_ptr, ULONG sectors)
|
ULONG destination_block, USHORT* dest_block_status_ptr, ULONG sectors)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -67,19 +68,6 @@
|
|||||||
/* Application Code */
|
/* Application Code */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* deprecated this API, */
|
|
||||||
/* resulting in version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_defragment(LX_NAND_FLASH *nand_flash)
|
UINT _lx_nand_flash_defragment(LX_NAND_FLASH *nand_flash)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -66,20 +67,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* removed cache support, */
|
|
||||||
/* added new driver interface, */
|
|
||||||
/* resulting in version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_driver_block_erase(LX_NAND_FLASH *nand_flash, ULONG block, ULONG erase_count)
|
UINT _lx_nand_flash_driver_block_erase(LX_NAND_FLASH *nand_flash, ULONG block, ULONG erase_count)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -67,19 +68,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* added new driver interface, */
|
|
||||||
/* resulting in version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_driver_block_erased_verify(LX_NAND_FLASH *nand_flash, ULONG block)
|
UINT _lx_nand_flash_driver_block_erased_verify(LX_NAND_FLASH *nand_flash, ULONG block)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -68,20 +69,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* removed cache support, */
|
|
||||||
/* added new driver interface, */
|
|
||||||
/* resulting in version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_driver_block_status_get(LX_NAND_FLASH *nand_flash, ULONG block, UCHAR *bad_block_flag)
|
UINT _lx_nand_flash_driver_block_status_get(LX_NAND_FLASH *nand_flash, ULONG block, UCHAR *bad_block_flag)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -68,20 +69,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* removed cache support, */
|
|
||||||
/* added new driver interface, */
|
|
||||||
/* resulting in version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_driver_block_status_set(LX_NAND_FLASH *nand_flash, ULONG block, UCHAR bad_block_flag)
|
UINT _lx_nand_flash_driver_block_status_set(LX_NAND_FLASH *nand_flash, ULONG block, UCHAR bad_block_flag)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -67,19 +68,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* added new driver interface, */
|
|
||||||
/* resulting in version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_driver_page_erased_verify(LX_NAND_FLASH *nand_flash, ULONG block, ULONG page)
|
UINT _lx_nand_flash_driver_page_erased_verify(LX_NAND_FLASH *nand_flash, ULONG block, ULONG page)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -66,12 +67,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Initial Version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_erase_count_set(LX_NAND_FLASH *nand_flash, ULONG block, UCHAR erase_count)
|
UINT _lx_nand_flash_erase_count_set(LX_NAND_FLASH *nand_flash, ULONG block, UCHAR erase_count)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -69,19 +70,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* deprecated this API, */
|
|
||||||
/* resulting in version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_extended_cache_enable(LX_NAND_FLASH *nand_flash, VOID *memory, ULONG size)
|
UINT _lx_nand_flash_extended_cache_enable(LX_NAND_FLASH *nand_flash, VOID *memory, ULONG size)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
* Copyright (c) 2025 STMicroelectronics
|
* Copyright (c) 2025 STMicroelectronics
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
* Copyright (c) 2025 STMicroelectronics
|
* Copyright (c) 2025 STMicroelectronics
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -65,12 +66,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Initial Version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_free_block_list_add(LX_NAND_FLASH* nand_flash, ULONG block)
|
UINT _lx_nand_flash_free_block_list_add(LX_NAND_FLASH* nand_flash, ULONG block)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -63,14 +64,6 @@ ULONG _lx_nand_flash_opened_count;
|
|||||||
/* */
|
/* */
|
||||||
/* Application Code */
|
/* Application Code */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_initialize(void)
|
UINT _lx_nand_flash_initialize(void)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -65,12 +66,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Initial Version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_mapped_block_list_add(LX_NAND_FLASH* nand_flash, ULONG block_mapping_index)
|
UINT _lx_nand_flash_mapped_block_list_add(LX_NAND_FLASH* nand_flash, ULONG block_mapping_index)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -66,12 +67,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Initial Version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_mapped_block_list_get(LX_NAND_FLASH* nand_flash, ULONG *block_mapping_index)
|
UINT _lx_nand_flash_mapped_block_list_get(LX_NAND_FLASH* nand_flash, ULONG *block_mapping_index)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -65,12 +66,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Initial Version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_mapped_block_list_remove(LX_NAND_FLASH* nand_flash, ULONG block_mapping_index)
|
UINT _lx_nand_flash_mapped_block_list_remove(LX_NAND_FLASH* nand_flash, ULONG block_mapping_index)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -67,12 +68,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Initial Version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_memory_initialize(LX_NAND_FLASH *nand_flash, ULONG* memory_ptr, UINT memory_size)
|
UINT _lx_nand_flash_memory_initialize(LX_NAND_FLASH *nand_flash, ULONG* memory_ptr, UINT memory_size)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -73,12 +74,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Initial Version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_metadata_allocate(LX_NAND_FLASH *nand_flash)
|
UINT _lx_nand_flash_metadata_allocate(LX_NAND_FLASH *nand_flash)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -64,12 +65,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Initial Version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_metadata_build(LX_NAND_FLASH *nand_flash)
|
UINT _lx_nand_flash_metadata_build(LX_NAND_FLASH *nand_flash)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -69,12 +70,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Initial Version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_metadata_write(LX_NAND_FLASH *nand_flash, UCHAR* main_buffer, ULONG spare_value)
|
UINT _lx_nand_flash_metadata_write(LX_NAND_FLASH *nand_flash, UCHAR* main_buffer, ULONG spare_value)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -73,17 +74,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Application Code */
|
/* Application Code */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Initial Version 6.2.1 */
|
|
||||||
/* 10-31-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* avoided clearing user */
|
|
||||||
/* extension in flash control */
|
|
||||||
/* block, */
|
|
||||||
/* resulting in version 6.3.0 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_open(LX_NAND_FLASH *nand_flash, CHAR *name, UINT (*nand_driver_initialize)(LX_NAND_FLASH *),
|
UINT _lx_nand_flash_open(LX_NAND_FLASH *nand_flash, CHAR *name, UINT (*nand_driver_initialize)(LX_NAND_FLASH *),
|
||||||
ULONG* memory_ptr, UINT memory_size)
|
ULONG* memory_ptr, UINT memory_size)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -80,17 +81,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Application Code */
|
/* Application Code */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Initial Version 6.2.1 */
|
|
||||||
/* 10-31-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* avoided clearing user */
|
|
||||||
/* extension in flash control */
|
|
||||||
/* block, */
|
|
||||||
/* resulting in version 6.3.0 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
|
|
||||||
UINT _lx_nand_flash_open_extended(LX_NAND_FLASH *nand_flash, CHAR *name, UINT (*nand_driver_initialize)(LX_NAND_FLASH *),
|
UINT _lx_nand_flash_open_extended(LX_NAND_FLASH *nand_flash, CHAR *name, UINT (*nand_driver_initialize)(LX_NAND_FLASH *),
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -67,16 +68,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* NAND flash driver */
|
/* NAND flash driver */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_page_ecc_check(LX_NAND_FLASH *nand_flash, UCHAR *page_buffer, UCHAR *ecc_buffer)
|
UINT _lx_nand_flash_page_ecc_check(LX_NAND_FLASH *nand_flash, UCHAR *page_buffer, UCHAR *ecc_buffer)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -66,16 +67,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* NAND flash driver */
|
/* NAND flash driver */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_page_ecc_compute(LX_NAND_FLASH *nand_flash, UCHAR *page_buffer, UCHAR *ecc_buffer)
|
UINT _lx_nand_flash_page_ecc_compute(LX_NAND_FLASH *nand_flash, UCHAR *page_buffer, UCHAR *ecc_buffer)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -68,19 +69,6 @@
|
|||||||
/* Application Code */
|
/* Application Code */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* deprecated this API, */
|
|
||||||
/* resulting in version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_partial_defragment(LX_NAND_FLASH *nand_flash, UINT max_blocks)
|
UINT _lx_nand_flash_partial_defragment(LX_NAND_FLASH *nand_flash, UINT max_blocks)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -72,12 +73,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Application Code */
|
/* Application Code */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Initial Version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_sector_read(LX_NAND_FLASH *nand_flash, ULONG logical_sector, VOID *buffer)
|
UINT _lx_nand_flash_sector_read(LX_NAND_FLASH *nand_flash, ULONG logical_sector, VOID *buffer)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -81,12 +82,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Application Code */
|
/* Application Code */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Initial Version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_sector_release(LX_NAND_FLASH *nand_flash, ULONG logical_sector)
|
UINT _lx_nand_flash_sector_release(LX_NAND_FLASH *nand_flash, ULONG logical_sector)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -83,12 +84,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Application Code */
|
/* Application Code */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Initial Version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_sector_write(LX_NAND_FLASH *nand_flash, ULONG logical_sector, VOID *buffer)
|
UINT _lx_nand_flash_sector_write(LX_NAND_FLASH *nand_flash, ULONG logical_sector, VOID *buffer)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -69,12 +70,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Application Code */
|
/* Application Code */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Initial Version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_sectors_read(LX_NAND_FLASH *nand_flash, ULONG logical_sector, VOID *buffer, ULONG sector_count)
|
UINT _lx_nand_flash_sectors_read(LX_NAND_FLASH *nand_flash, ULONG logical_sector, VOID *buffer, ULONG sector_count)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -67,12 +68,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Application Code */
|
/* Application Code */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Initial Version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_sectors_release(LX_NAND_FLASH *nand_flash, ULONG logical_sector, ULONG sector_count)
|
UINT _lx_nand_flash_sectors_release(LX_NAND_FLASH *nand_flash, ULONG logical_sector, ULONG sector_count)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -69,12 +70,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Application Code */
|
/* Application Code */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Initial Version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nand_flash_sectors_write(LX_NAND_FLASH *nand_flash, ULONG logical_sector, VOID *buffer, ULONG sector_count)
|
UINT _lx_nand_flash_sectors_write(LX_NAND_FLASH *nand_flash, ULONG logical_sector, VOID *buffer, ULONG sector_count)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -67,19 +68,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* added new driver interface, */
|
|
||||||
/* resulting in version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
VOID _lx_nand_flash_system_error(LX_NAND_FLASH *nand_flash, UINT error_code, ULONG block, ULONG page)
|
VOID _lx_nand_flash_system_error(LX_NAND_FLASH *nand_flash, UINT error_code, ULONG block, ULONG page)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -73,21 +74,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* 10-31-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* added count for minimum */
|
|
||||||
/* erased blocks, added */
|
|
||||||
/* obsolete count cache, */
|
|
||||||
/* resulting in version 6.3.0 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nor_flash_block_reclaim(LX_NOR_FLASH *nor_flash)
|
UINT _lx_nor_flash_block_reclaim(LX_NOR_FLASH *nor_flash)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -64,16 +65,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Application Code */
|
/* Application Code */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nor_flash_close(LX_NOR_FLASH *nor_flash)
|
UINT _lx_nor_flash_close(LX_NOR_FLASH *nor_flash)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -67,16 +68,6 @@
|
|||||||
/* Application Code */
|
/* Application Code */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nor_flash_defragment(LX_NOR_FLASH *nor_flash)
|
UINT _lx_nor_flash_defragment(LX_NOR_FLASH *nor_flash)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -66,19 +67,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Application Code */
|
/* Application Code */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* added new driver interface, */
|
|
||||||
/* resulting in version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nor_flash_driver_block_erase(LX_NOR_FLASH *nor_flash, ULONG block, ULONG erase_count)
|
UINT _lx_nor_flash_driver_block_erase(LX_NOR_FLASH *nor_flash, ULONG block, ULONG erase_count)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -67,19 +68,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Application Code */
|
/* Application Code */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* added new driver interface, */
|
|
||||||
/* resulting in version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nor_flash_driver_read(LX_NOR_FLASH *nor_flash, ULONG *flash_address, ULONG *destination, ULONG words)
|
UINT _lx_nor_flash_driver_read(LX_NOR_FLASH *nor_flash, ULONG *flash_address, ULONG *destination, ULONG words)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -67,19 +68,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Application Code */
|
/* Application Code */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* added new driver interface, */
|
|
||||||
/* resulting in version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nor_flash_driver_write(LX_NOR_FLASH *nor_flash, ULONG *flash_address, ULONG *source, ULONG words)
|
UINT _lx_nor_flash_driver_write(LX_NOR_FLASH *nor_flash, ULONG *flash_address, ULONG *source, ULONG words)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -66,28 +67,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Application Code */
|
/* Application Code */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 12-31-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* fixed compiler warnings, */
|
|
||||||
/* resulting in version 6.1.3 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), and */
|
|
||||||
/* updated product constants */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* 10-15-2021 Bhupendra Naphade Modified comment(s), and */
|
|
||||||
/* added check for out of */
|
|
||||||
/* bound memory access, */
|
|
||||||
/* resulting in version 6.1.9 */
|
|
||||||
/* 10-31-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* added mapping bitmap cache, */
|
|
||||||
/* added obsolete count cache, */
|
|
||||||
/* resulting in version 6.3.0 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nor_flash_extended_cache_enable(LX_NOR_FLASH *nor_flash, VOID *memory, ULONG size)
|
UINT _lx_nor_flash_extended_cache_enable(LX_NOR_FLASH *nor_flash, VOID *memory, ULONG size)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -63,16 +64,6 @@ ULONG _lx_nor_flash_opened_count;
|
|||||||
/* */
|
/* */
|
||||||
/* Application Code */
|
/* Application Code */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nor_flash_initialize(void)
|
UINT _lx_nor_flash_initialize(void)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -76,22 +77,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* 10-31-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* added mapping bitmap cache, */
|
|
||||||
/* added obsolete count cache, */
|
|
||||||
/* optimized full obsoleted */
|
|
||||||
/* block searching logic, */
|
|
||||||
/* resulting in version 6.3.0 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nor_flash_logical_sector_find(LX_NOR_FLASH *nor_flash, ULONG logical_sector, ULONG superceded_check, ULONG **physical_sector_map_entry, ULONG **physical_sector_address)
|
UINT _lx_nor_flash_logical_sector_find(LX_NOR_FLASH *nor_flash, ULONG logical_sector, ULONG superceded_check, ULONG **physical_sector_map_entry, ULONG **physical_sector_address)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -71,22 +72,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* 10-31-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* added mapping bitmap cache, */
|
|
||||||
/* added obsolete count cache, */
|
|
||||||
/* optimized full obsoleted */
|
|
||||||
/* block searching logic, */
|
|
||||||
/* resulting in version 6.3.0 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nor_flash_next_block_to_erase_find(LX_NOR_FLASH *nor_flash, ULONG *return_erase_block, ULONG *return_erase_count, ULONG *return_mapped_sectors, ULONG *return_obsolete_sectors)
|
UINT _lx_nor_flash_next_block_to_erase_find(LX_NOR_FLASH *nor_flash, ULONG *return_erase_block, ULONG *return_erase_count, ULONG *return_mapped_sectors, ULONG *return_obsolete_sectors)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
* Portion Copyright (c) 2025 STMicroelectronics
|
* Portion Copyright (c) 2025 STMicroelectronics
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
|
|||||||
@@ -76,34 +76,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Application Code */
|
/* Application Code */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 11-09-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* fixed compiler warnings, */
|
|
||||||
/* resulting in version 6.1.2 */
|
|
||||||
/* 12-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* fixed compiler warnings, */
|
|
||||||
/* resulting in version 6.1.3 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), and */
|
|
||||||
/* updated product constants */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* added new driver interface, */
|
|
||||||
/* resulting in version 6.2.1 */
|
|
||||||
/* 10-31-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* added count for minimum */
|
|
||||||
/* erased blocks, added */
|
|
||||||
/* obsolete count cache, */
|
|
||||||
/* avoided clearing user */
|
|
||||||
/* extension in flash control */
|
|
||||||
/* block, */
|
|
||||||
/* resulting in version 6.3.0 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
|
|
||||||
UINT _lx_nor_flash_open_extended(LX_NOR_FLASH *nor_flash, CHAR *name, UINT (*nor_driver_initialize)(LX_NOR_FLASH *), VOID *nor_driver_info_ptr)
|
UINT _lx_nor_flash_open_extended(LX_NOR_FLASH *nor_flash, CHAR *name, UINT (*nor_driver_initialize)(LX_NOR_FLASH *), VOID *nor_driver_info_ptr)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -70,16 +71,6 @@
|
|||||||
/* Application Code */
|
/* Application Code */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nor_flash_partial_defragment(LX_NOR_FLASH *nor_flash, UINT max_blocks)
|
UINT _lx_nor_flash_partial_defragment(LX_NOR_FLASH *nor_flash, UINT max_blocks)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -70,16 +71,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nor_flash_physical_sector_allocate(LX_NOR_FLASH *nor_flash, ULONG logical_sector, ULONG **physical_sector_map_entry, ULONG **physical_sector_address)
|
UINT _lx_nor_flash_physical_sector_allocate(LX_NOR_FLASH *nor_flash, ULONG logical_sector, ULONG **physical_sector_map_entry, ULONG **physical_sector_address)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -66,16 +67,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
VOID _lx_nor_flash_sector_mapping_cache_invalidate(LX_NOR_FLASH *nor_flash, ULONG logical_sector)
|
VOID _lx_nor_flash_sector_mapping_cache_invalidate(LX_NOR_FLASH *nor_flash, ULONG logical_sector)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -74,19 +75,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Application Code */
|
/* Application Code */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* 10-31-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* added mapping bitmap cache, */
|
|
||||||
/* resulting in version 6.3.0 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nor_flash_sector_read(LX_NOR_FLASH *nor_flash, ULONG logical_sector, VOID *buffer)
|
UINT _lx_nor_flash_sector_read(LX_NOR_FLASH *nor_flash, ULONG logical_sector, VOID *buffer)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -74,20 +75,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Application Code */
|
/* Application Code */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* 10-31-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* added mapping bitmap cache, */
|
|
||||||
/* added obsolete count cache, */
|
|
||||||
/* resulting in version 6.3.0 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nor_flash_sector_release(LX_NOR_FLASH *nor_flash, ULONG logical_sector)
|
UINT _lx_nor_flash_sector_release(LX_NOR_FLASH *nor_flash, ULONG logical_sector)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -77,20 +78,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Application Code */
|
/* Application Code */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* 10-31-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* added mapping bitmap cache, */
|
|
||||||
/* added obsolete count cache, */
|
|
||||||
/* resulting in version 6.3.0 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
UINT _lx_nor_flash_sector_write(LX_NOR_FLASH *nor_flash, ULONG logical_sector, VOID *buffer)
|
UINT _lx_nor_flash_sector_write(LX_NOR_FLASH *nor_flash, ULONG logical_sector, VOID *buffer)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Copyright (c) 2024 Microsoft Corporation
|
* Copyright (c) 2024 Microsoft Corporation
|
||||||
|
* Copyright (c) 2026-present Eclipse ThreadX contributors
|
||||||
*
|
*
|
||||||
* This program and the accompanying materials are made available under the
|
* This program and the accompanying materials are made available under the
|
||||||
* terms of the MIT License which is available at
|
* terms of the MIT License which is available at
|
||||||
@@ -65,19 +66,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* Internal LevelX */
|
/* Internal LevelX */
|
||||||
/* */
|
/* */
|
||||||
/* RELEASE HISTORY */
|
|
||||||
/* */
|
|
||||||
/* DATE NAME DESCRIPTION */
|
|
||||||
/* */
|
|
||||||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */
|
|
||||||
/* 09-30-2020 William E. Lamie Modified comment(s), */
|
|
||||||
/* resulting in version 6.1 */
|
|
||||||
/* 06-02-2021 Bhupendra Naphade Modified comment(s), */
|
|
||||||
/* resulting in version 6.1.7 */
|
|
||||||
/* 03-08-2023 Xiuwen Cai Modified comment(s), */
|
|
||||||
/* added new driver interface, */
|
|
||||||
/* resulting in version 6.2.1 */
|
|
||||||
/* */
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
VOID _lx_nor_flash_system_error(LX_NOR_FLASH *nor_flash, UINT error_code)
|
VOID _lx_nor_flash_system_error(LX_NOR_FLASH *nor_flash, UINT error_code)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user