default: printk("%s: card has unknown MMCA version %d\n", mmc_hostname(card->host), card->csd.mmca_vsn); mmc_card_set_bad(card); break; 
case 2: /* MMC v2.0 - v2.2 */ case 3: /* MMC v3.1 - v3.3 */ card->cid.manfid	= UNSTUFF_BITS(resp, 120, 8); card->cid.oemid		= UNSTUFF_BITS(resp, 104, 16); card->cid.prod_name[0]	= UNSTUFF_BITS(resp, 96, 8); card->cid.prod_name[1]	= UNSTUFF_BITS(resp, 88, 8); card->cid.prod_name[2]	= UNSTUFF_BITS(resp, 80, 8); card->cid.prod_name[3]	= UNSTUFF_BITS(resp, 72, 8); card->cid.prod_name[4]	= UNSTUFF_BITS(resp, 64, 8); card->cid.prod_name[5]	= UNSTUFF_BITS(resp, 56, 8); card->cid.serial	= UNSTUFF_BITS(resp, 16, 32); card->cid.month		= UNSTUFF_BITS(resp, 12, 4); card->cid.year		= UNSTUFF_BITS(resp, 8, 4) + 1997; break;  default: printk("%s: card has unknown MMCA version %d\n", mmc_hostname(card->host), card->csd.mmca_vsn); mmc_card_set_bad(card); break; } 
static void mmc_decode_cid(struct mmc_card *card){	u32 *resp = card->raw_cid;	memset(&card->cid, 0, sizeof(struct mmc_cid));	/*	 * The selection of the format here is guesswork based upon	 * information people have sent to date.	 */	switch (card->csd.mmca_vsn) {	case 0: /* MMC v1.? */	case 1: /* MMC v1.4 */		card->cid.manfid	= UNSTUFF_BITS(resp, 104, 24);		card->cid.prod_name[0]	= UNSTUFF_BITS(resp, 96, 8);		card->cid.prod_name[1]	= UNSTUFF_BITS(resp, 88, 8);		card->cid.prod_name[2]	= UNSTUFF_BITS(resp, 80, 8);		card->cid.prod_name[3]	= UNSTUFF_BITS(resp, 72, 8);		card->cid.prod_name[4]	= UNSTUFF_BITS(resp, 64, 8);		card->cid.prod_name[5]	= UNSTUFF_BITS(resp, 56, 8);		card->cid.prod_name[6]	= UNSTUFF_BITS(resp, 48, 8);		card->cid.hwrev		= UNSTUFF_BITS(resp, 44, 4);		card->cid.fwrev		= UNSTUFF_BITS(resp, 40, 4);		card->cid.serial	= UNSTUFF_BITS(resp, 16, 24);		card->cid.month		= UNSTUFF_BITS(resp, 12, 4);		card->cid.year		= UNSTUFF_BITS(resp, 8, 4) + 1997;		break;	case 2: /* MMC v2.x ? */	case 3: /* MMC v3.x ? */		card->cid.manfid	= UNSTUFF_BITS(resp, 120, 8);		card->cid.oemid		= UNSTUFF_BITS(resp, 104, 16);		card->cid.prod_name[0]	= UNSTUFF_BITS(resp, 96, 8);		card->cid.prod_name[1]	= UNSTUFF_BITS(resp, 88, 8);		card->cid.prod_name[2]	= UNSTUFF_BITS(resp, 80, 8);		card->cid.prod_name[3]	= UNSTUFF_BITS(resp, 72, 8);		card->cid.prod_name[4]	= UNSTUFF_BITS(resp, 64, 8);		card->cid.prod_name[5]	= UNSTUFF_BITS(resp, 56, 8);		card->cid.serial	= UNSTUFF_BITS(resp, 16, 32);		card->cid.month		= UNSTUFF_BITS(resp, 12, 4);		card->cid.year		= UNSTUFF_BITS(resp, 8, 4) + 1997;		break;	default:		printk("%s: card has unknown MMCA version %d\n",			mmc_hostname(card->host), card->csd.mmca_vsn);		mmc_card_set_bad(card);		break;	}}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/335eadf2ef6a1122a720aea98e758e5d431da87d/mmc.c/buggy/drivers/mmc/mmc.c