Date: Tue, 22 Jan 2013 18:51:14 +0000 (UTC) From: Brooks Davis <brooks@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r245819 - head/sys/dev/altera/sdcard Message-ID: <201301221851.r0MIpEfO073877@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301221851.r0MIpEfO073877>