CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2018/05/30 08:04:53
Modified files:
sys/dev/sdmmc : if_bwfm_sdio.c
Log message:
For the upcoming SDIO DMA support we need to use DMA-able buffer
to send/receive data. This basically means that we cannot use any
malloc(9)'d buffer. For this, use dma_alloc(9) to allocate a buf
that can fit a whole SDIO frame (unfortunately without headers).
Keep note that we need to round up the transfer sizes to block-
sized (for TX packets) or 4-byte alignment, since some DMA con-
trollers truncate the request size. If there's anything wrong,
the KASSERTs will catch it.
ok kettenis@