From owner-freebsd-hackers Sat Aug 26 13:42:41 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id NAA00351 for hackers-outgoing; Sat, 26 Aug 1995 13:42:41 -0700 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.FreeBSD.org (8.6.11/8.6.6) with ESMTP id NAA00333 for ; Sat, 26 Aug 1995 13:42:37 -0700 Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id WAA18050 for ; Sat, 26 Aug 1995 22:42:33 +0200 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id WAA28086 for freebsd-hackers@freebsd.org; Sat, 26 Aug 1995 22:42:32 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.6.11/8.6.9) id WAA17141 for freebsd-hackers@freebsd.org; Sat, 26 Aug 1995 22:40:19 +0200 From: J Wunsch Message-Id: <199508262040.WAA17141@uriah.heep.sax.de> Subject: Re: Byte-swapping on NEC IDE CD ROM To: freebsd-hackers@freebsd.org Date: Sat, 26 Aug 1995 22:40:18 +0200 (MET DST) Reply-To: freebsd-hackers@freebsd.org In-Reply-To: <199508261409.JAA25201@chrome.onramp.net> from "Jon Loeliger" at Aug 26, 95 09:09:56 am Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 2348 Sender: hackers-owner@freebsd.org Precedence: bulk As Jon Loeliger wrote: > > As Joerg suggested, I byte swapped the entire atapi probe tb buffer, > and things look promising. It's raised a few questions too. ... > One question: Is it likely that I will have to byte swap the buffers > headed out to the drive? Will the user data buffers need to be swapped > too, or just things like the command/response buffers? No idea, but i've found this in the archive, even though i've never seen Søren's original message, just Paul's reply only: : From: Paul Richards : Message-Id: <199508211013.LAA28054@server.netcraft.co.uk> : Subject: Re: ATAPI : To: sos@freebsd.org : Date: Mon, 21 Aug 1995 11:13:39 +0100 (BST) : Cc: paul@freebsd.org, vak@cronyx.ru, FreeBSD-current@freebsd.org : In-Reply-To: <199508210531.WAA21303@freefall.FreeBSD.org> from "sos@freebsd.org" : at Aug 20, 95 10:31:41 pm : Reply-to: paul@freebsd.org : X-Mailer: ELM [version 2.4 PL24] : MIME-Version: 1.0 : Content-Type: text/plain; charset=ISO-8859-1 : Content-Transfer-Encoding: 8bit : Content-Length: 1591 : Sender: current-owner@freebsd.org : Precedence: bulk : Status: OR : : In reply to sos@freebsd.org who said : > : > In reply to Paul Richards who wrote: : > > : > > My IDE cdrom seems to think it's a hard disk. : > > : > > wdc0 at 0x1f0-0x1f7 irq 14 on isa : > > wdc0: unit 0 (wd0): : > > wd0: 515MB (1056384 sectors), 1048 cyls, 16 heads, 63 S/T, 512 B/S : > > wdc0: unit 1 (wd1): : > > wd1: 515MB (1056384 sectors), 1048 cyls, 16 heads, 63 S/T, 512 B/S : > > wdc1 at 0x170-0x177 irq 15 on isa : > > wdc1: unit 0 (atapi): , removable, dma : , iordis : > > wdc1: ATAPI hard disks not supported : > > : > > It's not working anyway. It's an NEC CDR-260, claims to be ATAPI rev 1.7B : > > compatible. : > : > Oh well, you have one of the drives that doesn't byteswap its name :) : > It probably has other "non-std" things as well, making the driver : > fail to see it as a CDROM. This was one of the probelms that effectively : > delayed my ata driver, there seems to be no clear way to deal with this : > except searching through a table with known stange devices.... :-( : -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)