Subject: Re: ATAPI ioctls
To: Jun-ichiro itojun Hagino <itojun@iijlab.net>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: tech-kern
Date: 08/22/2000 22:51:43
On Fri, Aug 18, 2000 at 12:23:11AM +0900, Jun-ichiro itojun Hagino wrote:
> 	I have read http://people.freebsd.org/~luoqi/ (a freebsd patch to add
> 	ioctl to allow command code 0xbe (READ_CD - LBA raw disk access)

This is an ATAPI command, rigth ? I suspect SCSI CD drives have the same ...

> 	to ATAPI CD, with any content type).
> 	the patch includes Linux emulation support for raw ATAPI CD read,
> 	which enables mpegtv (pkgsrc/graphics/mtv) to play Video CDs!
> 
> 	I love to see mpegtv to play Video CD on my notebook.  I'm rather
> 	novice about the direction NetBSD ATAPI driver is taking.  so I have
> 	couple of questions about overall plan about NetBSD ATAPI driver in
> 	the future:
> 	- NetBSD lacks couple of ioctls freebsd has.  what is the right way
> 	  to address these?  (1) add those ioctls into NetBSD ATAPI driver.
> 	  (2) no, NetBSD ATAPI driver has some specific design goal, so
> 	  implement it in sys/compat/freebsd by using SCIOCCOMMAND.

SCIOCCOMMAND should allow to do most things needed in this area.
You should be able to implement the FreeBSD and linux ioctls with it.

--
Manuel Bouyer <bouyer@antioche.eu.org>
--