void mpc52xx_lpbfifo_poll(void) { struct mpc52xx_lpbfifo_request *req = lpbfifo.req; int dma = !(req->flags & MPC52XX_LPBFIFO_FLAG_NO_DMA); int write = req->flags & MPC52XX_LPBFIFO_FLAG_WRITE; if (dma && write) mpc52xx_lpbfifo_irq(0, NULL); else mpc52xx_lpbfifo_bcom_irq(0, NULL); }
/** * mpc52xx_lpbfifo_bcom_poll - Poll for DMA completion */ void mpc52xx_lpbfifo_poll(void) { struct mpc52xx_lpbfifo_request *req = lpbfifo.req; int dma = !(req->flags & MPC52XX_LPBFIFO_FLAG_NO_DMA); int write = req->flags & MPC52XX_LPBFIFO_FLAG_WRITE; /* * For more information, see comments on the "Fat Lady" */ if (dma && write) mpc52xx_lpbfifo_irq(0, NULL); else mpc52xx_lpbfifo_bcom_irq(0, NULL); }