blob: f2d7966fcf02e9364863c38f1725e18b915843da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-ac,v 1.1 2005/09/07 07:32:10 martin Exp $
--- atacmds.c.orig 2004-06-03 05:47:06.000000000 +0200
+++ atacmds.c 2005-08-10 22:18:14.000000000 +0200
@@ -673,7 +673,9 @@ int ataReadHDIdentity (int device, struc
}
}
+#ifndef __NetBSD__
// if machine is big-endian, swap byte order as needed
+ // (the NetBSD kernel does deliver the results in host byte order)
if (isbigendian()){
int i;
@@ -682,6 +684,7 @@ int ataReadHDIdentity (int device, struc
for (i=80; i<=87; i++)
swap2((char *)(rawshort+i));
}
+#endif
// If there is a checksum there, validate it
if ((rawshort[255] & 0x00ff) == 0x00a5 && checksum(rawbyte))
|