MdeModulePkg: SpiNorFlash update FillWriteBuffer headers.

The function headers for FillWriteBuffer have become out of
date with the implementation. Update the function headers
to more clearly define the interface for recent changes.

Signed-off-by: Aaron Pop <aaronpop@microsoft.com>
This commit is contained in:
Aaron Pop 2025-06-09 09:10:59 -07:00 committed by Ard Biesheuvel
parent 783a92f1ea
commit 1aedb79e9b
2 changed files with 13 additions and 5 deletions

View file

@ -20,6 +20,8 @@
/**
Fill Write Buffer with Opcode, Address, Dummy Bytes, and Data.
If WriteBytes is non-zero, WriteBuffer must be a valid buffer.
@param[in] Instance The instance of SPI_NOR_FLASH
@param[in] Opcode Opcode for transaction
@param[in] DummyBytes The dummy bytes send to SPI flash device

View file

@ -16,12 +16,18 @@
#include "SpiNorFlashJedecSfdpInternal.h"
/**
Fill Write Buffer with Opcode, Address, Dummy Bytes, and Data
Fill Write Buffer with Opcode, Address, Dummy Bytes, and Data.
@param[in] Opcode - Opcode for transaction
@param[in] Address - SPI Offset Start Address
@param[in] WriteBytes - Number of bytes to write to SPI device
@param[in] WriteBuffer - Buffer containing bytes to write to SPI device
If WriteBytes is non-zero, WriteBuffer must be a valid buffer.
@param[in] Instance The instance of SPI_NOR_FLASH
@param[in] Opcode Opcode for transaction
@param[in] DummyBytes The dummy bytes send to SPI flash device
@param[in] AddressBytesSupported Bytes of address supported by SPI flash device
@param[in] UseAddress Send the address for SPI flash command
@param[in] Address SPI Offset Start Address
@param[in] WriteBytes Number of bytes to write to SPI device
@param[in] WriteBuffer Buffer containing bytes to write to SPI device
@retval Size of Data in Buffer
**/