Author: brooks
Date: Tue Jan 22 18:51:14 2013
New Revision: 245819
URL: http://svnweb.freebsd.org/changeset/base/245819

Log:
  MFP4 change 219820
  
  Add a missing 0 to the mask for byte0 of C_SIZE.
  
  The previous mask (0xc) worked except that the last 0-1536K of the disk
  could not be accessed since we were shifting the (wrong) bits we did
  mask off the right edge.

Modified:
  head/sys/dev/altera/sdcard/altera_sdcard.h

Modified: head/sys/dev/altera/sdcard/altera_sdcard.h
==============================================================================
--- head/sys/dev/altera/sdcard/altera_sdcard.h  Tue Jan 22 18:48:45 2013        
(r245818)
+++ head/sys/dev/altera/sdcard/altera_sdcard.h  Tue Jan 22 18:51:14 2013        
(r245819)
@@ -138,7 +138,7 @@ void        altera_sdcard_io_start(struct alter
  * data.  Software ease of use was not a design consideration.
  */
 #define        ALTERA_SDCARD_CSD_C_SIZE_BYTE0          7
-#define        ALTERA_SDCARD_CSD_C_SIZE_MASK0          0xc     /* top 2 bits */
+#define        ALTERA_SDCARD_CSD_C_SIZE_MASK0          0xc0    /* top 2 bits */
 #define        ALTERA_SDCARD_CSD_C_SIZE_RSHIFT0        6
 
 #define        ALTERA_SDCARD_CSD_C_SIZE_BYTE1          8
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to