摘要 |
A method and apparatus for accessing a storage media employed to store data from a host includes identifying a module as a block storage device. The block storage device is coupled to a host and includes a bridge controller and magnetic random access memory (MRAM). The MRAM has a buffer window for storing data from a host, the buffer window is movable throughout the MRAM. The bridge controller has a bridge controller buffer and controller registers. A request to access the block storage device is intercepted and a command to the block storage device is issued. If the command is a write command, at least a portion of the data to be saved into the MRAM is saved. The size of the at least a portion of the data is based on the capacity of the bridge controller buffer. Further, at least a portion of the data to the buffer window is transferred and upon having additional data to be saved into the MRAM, the buffer window is moved within the MRAM. Another portion of the data from the bridge controller buffer is transferred to the moved buffer window and the moving the buffer window and the transferring data steps are repeated until the data is transferred, in its entirety, from the host to the MRAM.
|