- Write some blocks of data to the block device.\r
-\r
- @param This The Block IO protocol\r
- @param MediaId The media's ID of the device for current request\r
- @param Lba The start block number\r
- @param BufferSize The size of buffer to write data to\r
- @param Buffer The buffer to write data to\r
-\r
- @retval EFI_SUCCESS The data is successfully written\r
- @retval EFI_NO_MEDIA Media isn't present\r
- @retval EFI_MEDIA_CHANGED The device media has been changed, that is,\r
- MediaId changed\r
- @retval EFI_INVALID_PARAMETER Some parameters are invalid, such as Buffer is\r
- NULL.\r
- @retval EFI_BAD_BUFFER_SIZE The buffer size isn't a multiple of media's block\r
- size,\r
+ Writes a specified number of blocks to the device.\r
+\r
+ This function implements EFI_BLOCK_IO_PROTOCOL.WriteBlocks().\r
+ It writes a specified number of blocks to the device.\r
+ All blocks are written, or an error is returned.\r
+\r
+ @param This Indicates a pointer to the calling context.\r
+ @param MediaId The media ID that the write request is for.\r
+ @param Lba The starting logical block address to be written.\r
+ @param BufferSize The size of the Buffer in bytes.\r
+ This must be a multiple of the intrinsic block size of the device.\r
+ @param Buffer Pointer to the source buffer for the data.\r
+\r
+ @retval EFI_SUCCESS The data were written correctly to the device.\r
+ @retval EFI_WRITE_PROTECTED The device cannot be written to.\r
+ @retval EFI_NO_MEDIA There is no media in the device.\r
+ @retval EFI_MEDIA_CHANGED The MediaId is not for the current media.\r
+ @retval EFI_DEVICE_ERROR The device reported an error while attempting to perform the write operation.\r
+ @retval EFI_BAD_BUFFER_SIZE The BufferSize parameter is not a multiple of the intrinsic\r
+ block size of the device.\r
+ @retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid,\r
+ or the buffer is not on proper alignment.\r