Subject: Re: ATAPI ioctls
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: Jun-ichiro itojun Hagino <itojun@iijlab.net>
List: tech-kern
Date: 08/23/2000 10:25:39
>> 	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 ...

	yup.

>> 	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.

	so are you saying that:
	(1) we do not merge FreeBSD ioctls into NetBSD
	(2) so they should be re-implemented in FreeBSD emulation layer
	    (compat_freebsd)

	is it correct understanding?

itojun