SFDP and CFI parsers.
More...
SFDP and CFI parsers.
◆ rtems_flash_NOR_config_resource_acquire
| typedef uint8_t *(* rtems_flash_NOR_config_resource_acquire) (void *context, uint32_t offset, size_t length) |
acquire data from the NOR chip.
- Parameters
-
| [in] | context | The context data used to retrieve bytes. |
| [in] | offset | The offset to read from the flash begin in bytes. |
| [in] | length | The size of the buffer in bytes. |
- Return values
-
| NULL | on failure. |
| pointer | to the requested data on success. |
◆ rtems_flash_NOR_config_resource_release
| typedef void(* rtems_flash_NOR_config_resource_release) (void *context, uint8_t *data) |
release data acquired from the NOR chip.
- Parameters
-
| [in] | context | The context data used to retrieve bytes. |
| [in] | data | The data previously acquired. |
◆ rtems_flash_CFI_parse_from_buffer()
This function parses the provided buffer of CFI data into a rtems_flash_NOR_config_data structure.
- Parameters
-
| cfi_raw | is a buffer containing CFI data. |
| cfi_raw_len | is the length of the data in cfi_raw. |
| data | is a pointer to a rtems_flash_NOR_config_data struct to be filled with data about the flash chip. |
- Returns
- RTEMS_SUCCESSFUL if successful.
◆ rtems_flash_SFDP_parse()
This function parses a SFDP configuration space into a rtems_flash_NOR_config_data structure.
- Parameters
-
| accessor | is the accessor for the SFDP configuration space. |
| data | is a pointer to a NOR_config_data struct to be filled with data about the flash chip. |
- Returns
- RTEMS_SUCCESSFUL if successful.
◆ rtems_flash_SFDP_parse_from_buffer()
This function parses the provided buffer of SFDP data into a rtems_flash_NOR_config_data structure.
- Parameters
-
| sfdp_raw | is a buffer containing SFDP data. |
| sfdp_raw_len | is the length of the data in sfdp_raw. |
| data | is a pointer to a rtems_flash_NOR_config_data struct to be filled with data about the flash chip. |
- Returns
- RTEMS_SUCCESSFUL if successful.