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 device supports write, read and flush operation. Sector size is 512 
> byte. But it doesn't support any ATA or SCSI commands except flush.

> 
I think you could use make_dev() etc.. although I haven't used it :)

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


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 used CAM for PS3 CDROM driver but it supports SCSI commands natively and
> i liked it very much so i would like to use it for FLASH devices too.


I don't think so - I think you want a GEOM class, e.g...
http://osdir.com/ml/freebsd-geom/2009-04/msg8.html

(I haven't really looked in detail though..)

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C






___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"