Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Aug 1995 09:09:56 -0500
From:      Jon Loeliger <jdl@chrome.onramp.net>
To:        freebsd-hackers@freebsd.org
Subject:   Byte-swapping on NEC IDE CD ROM
Message-ID:  <199508261409.JAA25201@chrome.onramp.net>

next in thread | raw e-mail | index | archive | help
As Joerg suggested, I byte swapped the entire atapi probe tb buffer,
and things look promising.  It's raised a few questions too.

Here's what I got:

wdc0 at 0x1f0-0x1f7 irq 14 on isa
wdc0: unit 0 (wd0): <WDC AC31000H>
wd0: 1033MB (2116800 sectors), 2100 cyls, 16 heads, 63 S/T, 512 B/S
atapi0.1 at 0x1f0: attach called
wdc0: unit 1 (atapi): <NEC                 CD-ROM DRIVE:260>, removable, iordy
wcd0: info 80-85-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-20-20-20-20-20-20-20-20-20-
20-20-20-20-20-20-20-20-20-20-20-0-0-0-0-0-0-34-2e-32-33-20-20-20-20-4e-45-43-20
-20-20-20-20-20-20-20-20-20-20-20-20-20-20-20-20-43-44-2d-52-4f-4d-20-44-52-49-5
6-45-3a-32-36-30-0-0-0-0-0-0-0-0-0-a-0-0-0-3-0-0-3-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0
-0-0-0-0-0-0-0-0-0-0-0-0-0-b4-0-b4-0-0-0-0-0-0-0-0-0-0
atapi0.1: req im 5a-0-2a-0-0-0-0-0-18-0-0-0-0-0-0-0 len=24
atapi0.1: start
atapi0.1: send cmd 5a-0-2a-0-0-0-0-0-18-0-0-0-0-0-0-0
atapi0.1: intr ireason=0x1, len=24, status=48<ready,drq>, error=0
atapi0.1: send cmd 5a-0-2a-0-0-0-0-0-18-0-0-0-0-0-0-0
atapi0.1: controller not ready

Without the ATAPI spec in front of me (!), I'm at a loss to know if the
command structure is reasonable.  Also, I've not yet byte swapped the
*other* buffers coming back from the drive.

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?

Any help here would be greatly appreciated!

Thanks,
jdl



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