Subject: ral endian issue
To: None <tech-net@netbsd.org>
From: Sean Boudreau <seanb@qnx.com>
List: tech-net
Date: 06/02/2006 12:55:36
Hi:

The eeprom bits are shifted out in host order.

Regards,

-seanb


Index: dev/ic/ral.c
===================================================================
RCS file: /cvsroot/src/sys/dev/ic/ral.c,v
retrieving revision 1.6
diff -c -r1.6 ral.c
*** dev/ic/ral.c	18 Nov 2005 16:53:56 -0000	1.6
--- dev/ic/ral.c	2 Jun 2006 16:50:34 -0000
***************
*** 993,999 ****
  	RAL_EEPROM_CTL(sc, 0);
  	RAL_EEPROM_CTL(sc, RAL_EEPROM_C);
  
! 	return le16toh(val);
  }
  
  /*
--- 993,999 ----
  	RAL_EEPROM_CTL(sc, 0);
  	RAL_EEPROM_CTL(sc, RAL_EEPROM_C);
  
! 	return val;
  }
  
  /*