CAM framework for FLASH devices

2011-09-23 Thread geoffrey levand
Could CAM framework be used for devices which do not support SCSI or ATA commands natively, e.g. FLASH devices ? I didn't find any examples for this case. I'm developing PS3 flash device driver. Or is disk framework better in this case ? I used CAM for PS3 CDROM driver but it supports

Re: CAM framework for FLASH devices

2011-09-23 Thread Daniel O'Connor
On 23/09/2011, at 22:31, geoffrey levand wrote: Could CAM framework be used for devices which do not support SCSI or ATA commands natively, e.g. FLASH devices ? I didn't find any examples for this case. I'm developing PS3 flash device driver. Or is disk framework better in this case ? I

CAM framework for FLASH devices

2011-09-23 Thread geoffrey levand
Could CAM framework be used for devices which do not support SCSI or ATA commands natively, e.g. FLASH devices ? I didn't find any examples for this case. I'm developing PS3 flash device driver. Or is disk framework better in this case ? I used CAM for PS3 CDROM driver but it supports SCSI

Re[2]: CAM framework for FLASH devices

2011-09-23 Thread geoffrey levand
The interface to the PS3 flash device is NOT like normal NOR/NAND flash interfaces. The interface to the PS3 FLASH is abstracted by the hypervisor and it looks like HDD to FreeBSD but has several logical units like SCSI devices. The flash device supports write, read and flush operation. Sector

Re: Re[2]: Sharing device driver between kernel and user space

2011-09-23 Thread Jilles Tjoelker
On Wed, Sep 21, 2011 at 04:23:28PM +0200, Ivan Voras wrote: On 21 September 2011 16:09, geoffrey levand geoffrey.lev...@mail.ru wrote: Sure i can use the synchronization primitives, the problem is that the response to a request sent to PS3 VUART port is not available immediately, and i have

Re[4]: Sharing device driver between kernel and user space

2011-09-23 Thread geoffrey levand
Thanks for your responses. The one with open/close seems to be the most reasonable. 23 сентября 2011, 23:06 от Jilles Tjoelker jil...@stack.nl: On Wed, Sep 21, 2011 at 04:23:28PM +0200, Ivan Voras wrote: On 21 September 2011 16:09, geoffrey levand geoffrey.lev...@mail.ru wrote: Sure i can

Re: CAM framework for FLASH devices

2011-09-23 Thread Daniel O'Connor
On 24/09/2011, at 1:24, geoffrey levand wrote: The interface to the PS3 flash device is NOT like normal NOR/NAND flash interfaces. The interface to the PS3 FLASH is abstracted by the hypervisor and it looks like HDD to FreeBSD but has several logical units like SCSI devices. The flash