Ah found what I did to get it to compile besides the protocol.h
rem'd out the max sector function in tifm_sd.c
// mmc->max_blk_count = 2048; // mmc->max_hw_segs = mmc->max_blk_count; mmc->max_hw_segs = 16; // mmc->max_blk_size = min(2048, PAGE_SIZE); // mmc->max_seg_size = mmc->max_blk_count * mmc->max_blk_size; mmc->max_seg_size = 127 * 2048;
mmc->max_phys_segs = mmc->max_hw_segs; // mmc->max_sectors = 127 * mmc->max_phys_segs;
// mmc->max_req_size = mmc->max_seg_size;
guess that was cheating ;-)
Ah found what I did to get it to compile besides the protocol.h
rem'd out the max sector function in tifm_sd.c
// mmc->max_blk_count = 2048;
mmc->max_ hw_segs = 16;
mmc->max_ seg_size = 127 * 2048;
// mmc->max_hw_segs = mmc->max_blk_count;
// mmc->max_blk_size = min(2048, PAGE_SIZE);
// mmc->max_seg_size = mmc->max_blk_count * mmc->max_blk_size;
// mmc->max_sectors = 127 * mmc->max_phys_segs;
// mmc->max_req_size = mmc->max_seg_size;
guess that was cheating ;-)