How do i control the read and write sequence for Async FIFO?

In reply to chr_sue:

I am not sure how to do this in driver. I thought of doing this in seq but then i need to use virtual interface in seq which will create synchronization problems. So if you can show me how to do this in driver, it will be great !