From owner-freebsd-current Sun Oct 27 15:17:50 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7CE3437B401 for ; Sun, 27 Oct 2002 15:17:49 -0800 (PST) Received: from falcon.mail.pas.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0737843E6E for ; Sun, 27 Oct 2002 15:17:49 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0347.cvx22-bradley.dialup.earthlink.net ([209.179.199.92] helo=mindspring.com) by falcon.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 185wf1-0003Qo-00; Sun, 27 Oct 2002 15:17:35 -0800 Message-ID: <3DBC73C2.9C786C38@mindspring.com> Date: Sun, 27 Oct 2002 15:16:18 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Nate Lawson Cc: Julian Elischer , current@FreeBSD.ORG Subject: Re: burncd/cdcontrol References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Nate Lawson wrote: > The problem with making burncd work for SCSI is that it doesn't use the > ATAPI interface, instead it implements our own ioctl interface. > Currently, the ioctls burncd uses that are missing from cd(4) are: [ ... ] > Instead of cutting/pasting those from atapi-cd.c, I think it would be > better eventually to rewrite burncd using the ATAPI commands and libcam to > send them to the drive. That way we can have one CD driver instead of > duplicating all that code. IMO, atapi-cd.c need never have been written > but atapi-cam should have been done much earlier. We now have two nearly > identical drivers for supporting the exact same hardware. cd(4) works for > ATAPI and SCSI drives. acd(4) doesn't but has newer ATAPI commands that > have not yet been cut/pasted into cd(4). If you want to do 8 at a time, ATAPI isn't an option. Also, SCSI is the least common denominator; ATAPI is SCSI over IDE. Finally, the CAM/ATAPI SCSI code is already written and checked in, so there's already a common API (it's just that, as you point out, missing some ioctl() entry points. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message