rem: static void __card_dirwritecallback(u32 chn,s32 result)
add: static void __card_dirwritecallback(s32 chn,s32 result)
context: static void __card_dirwritecallback(u32 chn,s32 result){	s32 ret;	cardcallback cb = NULL;	struct card_dir *dir1,*dir2;	card_block *card = &cardmap[chn];#ifdef _CARD_DEBUG	printf("__card_dirwritecallback(%d,%d)\n",chn,result);#endif	ret = result;	if(ret>=0) {		dir1 = (card->workarea+0x2000);		dir2 = (card->workarea+0x4000);		if(card->curr_dir==dir1) {			card->curr_dir = dir2;			memcpy(dir2,dir1,8192);		} else {			card->curr_dir = dir1;			memcpy(dir1,dir2,8192);		}	}	if(!card->card_api_cb) __card_putcntrlblock(card,ret);#ifdef _CARD_DEBUG	printf("__card_dirwritecallback(%p,%p)\n",card->card_api_cb,card->card_erase_cb);#endif	cb = card->card_erase_cb;	if(cb) {		card->card_erase_cb = NULL;		cb(chn,ret);	}}