Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Aug 1995 22:40:18 +0200 (MET DST)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Byte-swapping on NEC IDE CD ROM
Message-ID:  <199508262040.WAA17141@uriah.heep.sax.de>
In-Reply-To: <199508261409.JAA25201@chrome.onramp.net> from "Jon Loeliger" at Aug 26, 95 09:09:56 am

next in thread | previous in thread | raw e-mail | index | archive | help
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 <paul@netcraft.co.uk>
: 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): <WDC AC2540H>
: > > wd0: 515MB (1056384 sectors), 1048 cyls, 16 heads, 63 S/T, 512 B/S
: > > wdc0: unit 1 (wd1): <WDC AC2540H>
: > > 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): <EN C                DCR-MOD IREV2:06>, 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. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199508262040.WAA17141>