摘要:
static __inline__ void sdio_init( void ){ int resp; int temp; int no_resp; int resp_vld; int ccs; int i; __arch_putl(0x0,0x91004010); /*stop clock*/ __arch_putl(0x80202000,0x9100402c); /*updata c... 阅读全文
随笔档案-2013年03月
SD卡 内置DMA的使用
2013-03-27 16:50 by 至上, 1637 阅读, 收藏,
摘要:
static inline void sepmmc_dma(int real_num,struct sepmmc_host *host){ struct sepmmc_dma_descriptor *descriptor[real_num]; dma_addr_t bus_addr; dma_addr_t DESCRIPTOR_BASE[real_num]; int seg_len; int temp=0; mmc_debug("[%s] into \n",__func__); addr_minus =(unsigned int *)k... 阅读全文
__mmc_claim_host
2013-03-15 10:41 by 至上, 2314 阅读, 收藏,
摘要:
int __mmc_claim_host(struct mmc_host *host, atomic_t *abort){ DECLARE_WAITQUEUE(wait, current); //初始化一个等待节点 unsigned long flags; int stop; might_sleep(); add_wait_queue(&host->wq, &wait); //当前进程进入等待队列 spin_lock_irqsave(&host->lock, flags); while (1) { set_current_st... 阅读全文
浙公网安备 33010602011771号