Subject: CVS commit: [netbsd-2] src/sys/dev/ic
To: None <>
From: Jeff Rizzo <>
List: source-changes
Date: 08/22/2005 22:10:48
Module Name:	src
Committed By:	riz
Date:		Mon Aug 22 22:10:48 UTC 2005

Modified Files:
	src/sys/dev/ic [netbsd-2]: wdc.c

Log Message:
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.
closed kern/30998.

To generate a diff of this commit:
cvs rdiff -r1. -r1. 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.