Re: Beginner's guide to writing a SATA device driver?

2022-05-08 Thread Ozgur Karatas
On Sun, May 8, 2022 at 4:51 AM Gabriel L. Somlo wrote: > > Hi Ozgur, > Hello Gabriel, > (replying off-list so as not to discourage further answers, on the off > chance I'm wrong about what I'm going to say next... :) I don't think that was a good method, because why? Please let me explain. Lin

Re: Beginner's guide to writing a SATA device driver?

2022-05-07 Thread Ozgur Karatas
On Sun, May 8, 2022 at 12:34 AM Gabriel L. Somlo wrote: > > Hi, > Hello Gabriel, > I have a (soft-IP, FPGA based, single-port) very simple SATA device > (https://github.com/enjoy-digital/litesata) that provides me (r/w) > access to a single physical SATA hard drive. I can access one sector > at

Beginner's guide to writing a SATA device driver?

2022-05-07 Thread Gabriel L. Somlo
Hi, I have a (soft-IP, FPGA based, single-port) very simple SATA device (https://github.com/enjoy-digital/litesata) that provides me (r/w) access to a single physical SATA hard drive. I can access one sector at a time from bare-metal C code, using DMA and the following three MMIO register sets: