| 477 | } |
| 478 | |
| 479 | static rt_int32_t cistpl_funce_func0(struct rt_mmcsd_card *card, |
| 480 | const rt_uint8_t *buf, |
| 481 | rt_uint32_t size) |
| 482 | { |
| 483 | if (size < 0x04 || buf[0] != 0) |
| 484 | return -RT_ERROR; |
| 485 | |
| 486 | /* TPLFE_FN0_BLK_SIZE */ |
| 487 | card->cis.func0_blk_size = buf[1] | (buf[2] << 8); |
| 488 | |
| 489 | /* TPLFE_MAX_TRAN_SPEED */ |
| 490 | card->cis.max_tran_speed = speed_value[(buf[3] >> 3) & 15] * |
| 491 | speed_unit[buf[3] & 7]; |
| 492 | |
| 493 | return 0; |
| 494 | } |
| 495 | |
| 496 | static rt_int32_t cistpl_funce_func(struct rt_sdio_function *func, |
| 497 | const rt_uint8_t *buf, |