Patent ID: 6751686
Filing Date: 2004-06-15
Classification: G06F

Abstract:
A method for transferring data between a host device and a storage medium, comprising:receiving from the host device a command to transfer data between the host device and a storage medium; storing in a first register a value that is correlated to a number of second data units contained in a first data unit; storing in a second register a value for tracking a number of second data units that are transferred between the host device and a buffer; storing in a maximum buffer size register a size value that corresponds to a maximum total number of second data units that the buffer can store; transferring into the buffer at least one of the second data units; determining the difference between the value of the second register and the size value; transferring out of the buffer the second data units residing in the buffer when the determined difference is less than the value in the first register; and transferring into the buffer at least another one of the second data units when the determined difference is greater than the value in the first register.