From owner-freebsd-hackers Sat Jul 28 11:45:27 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from freebsd.dk (fw-rl0.freebsd.dk [212.242.86.114]) by hub.freebsd.org (Postfix) with ESMTP id 3268237B405 for ; Sat, 28 Jul 2001 11:45:24 -0700 (PDT) (envelope-from sos@freebsd.dk) Received: (from sos@localhost) by freebsd.dk (8.11.3/8.11.3) id f6SIjVu26928; Sat, 28 Jul 2001 20:45:31 +0200 (CEST) (envelope-from sos) From: Søren Schmidt Message-Id: <200107281845.f6SIjVu26928@freebsd.dk> Subject: Re: Someone knowledgeable with ATAPI CD stuff... In-Reply-To: <01072811294301.00557@mutt.home.net> "from David Leimbach at Jul 28, 2001 11:29:43 am" To: David Leimbach Date: Sat, 28 Jul 2001 20:42:51 +0200 (CEST) Cc: hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG It seems David Leimbach wrote: > I am trying to write some user code that will enable me to select one of the > four slots on my ATAPI cd changer. Why do you want that ? As it is now the driver "autoselects" the slot that has access to it, that is you can mount all four CD's in a changer an access them at will, the driver will do its best (well, at least it does try :) ), to select around the active CD's so all get their fair share. However doing hefty IO on all CD's in a changer will probably eat you changer mechanism for lunch :) > I have noticed there is no explicit IOCTL for this function but that the the > acd_softc struct does indeed have both a slot entry and a struct acd_softc ** > which points to the softc's of changer slots. There is no need for such an ioctl, the driver will issue commands to the right slot all by itself.. The slots are accessed as individual CD devices, ie a lone 4 CD changer on a system will get acd0, acd1, acd2 and acd3 and each CD can be accessed through those... Did that solve your problem, or did I missunderstand your questions ? -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message