31 #include <linux/types.h>
38 unsigned int sdccr_ce;
39 unsigned int sdccr_bs;
40 unsigned int sdccr_rs;
41 unsigned int sdccr_cs;
42 unsigned int sdccr_mw;
51 sdccr_ce = ((val & (1 << 10)) >> 10);
52 sdccr_bs = ((val & (1 << 8)) >> 8);
53 sdccr_rs = ((val & (3 << 5)) >> 5);
54 sdccr_cs = ((val & (7 << 2)) >> 2);
55 sdccr_mw = ((val & (1 << 0)) >> 0);
59 rs = 2048 << sdccr_rs;
64 return rs * cs * mw * bs;
69 unsigned int total = 0;