summaryrefslogtreecommitdiffstats
path: root/sys/dev/altera
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2013-01-22 18:51:14 +0000
committerbrooks <brooks@FreeBSD.org>2013-01-22 18:51:14 +0000
commit611d98380eb5b904ae2f05382e59e0909b5f45f3 (patch)
treeda1603a1316e95ee0add926d9f527bf722812ff1 /sys/dev/altera
parent33734a7b740df49abd28fdf2ba39cce2cd8ea1b8 (diff)
downloadFreeBSD-src-611d98380eb5b904ae2f05382e59e0909b5f45f3.zip
FreeBSD-src-611d98380eb5b904ae2f05382e59e0909b5f45f3.tar.gz
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.
Diffstat (limited to 'sys/dev/altera')
-rw-r--r--sys/dev/altera/sdcard/altera_sdcard.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/altera/sdcard/altera_sdcard.h b/sys/dev/altera/sdcard/altera_sdcard.h
index a0029a8..96019b2 100644
--- a/sys/dev/altera/sdcard/altera_sdcard.h
+++ b/sys/dev/altera/sdcard/altera_sdcard.h
@@ -138,7 +138,7 @@ void altera_sdcard_io_start(struct altera_sdcard_softc *sc,
* 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
OpenPOWER on IntegriCloud