Subject: CVS commit: [netbsd-2] src/sys/dev/ic
To: None <source-changes@NetBSD.org>
From: Jeff Rizzo <email@example.com>
Date: 08/22/2005 22:10:48
Module Name: src
Committed By: riz
Date: Mon Aug 22 22:10:48 UTC 2005
src/sys/dev/ic [netbsd-2]: wdc.c
Pull up following revision(s) (requested by bouyer in ticket #5603):
sys/dev/ic/wdc.c: revision 1.226
The ATA/ATAPI IDENTIFY data were designed to be converted on the fly to
host byte order (eventually the byte swapping could be wired in hardware, on
the 16 bit data bus). This was keept when wdc_exec_command() was created,
and as a result wdc_exec_command() is doing 16bit conversion to host byte
order. This is fine for IDENTIFY but doesn't work for other opaque data
structure, such as the ones for SMART.
So change wdc_exec_command() to do the conversion to host byte order only for
WDCC_IDENTIFY and ATAPI_IDENTIFY_DEVICE. This fixes atactl smart status
on big-endian hosts.
sys/dev/ic/wdc.c: revision 1.229
make CF on pcmcia works again.
Approved by bouyer.
To generate a diff of this commit:
cvs rdiff -r188.8.131.52.2.7 -r184.108.40.206.2.8 src/sys/dev/ic/wdc.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.