Skip to contentSkip to conversation

how to mmap which using dma_map_sg() alloc dma buf

DISCUSSION figo.zhang 1 participant 1 message Apr 9, 2009 Media (V4L/DVB)

lore
Share & tools
lore

figo.zhang

author
#0 lore raw

hi, all:
i have a question, who would like to help me.

i am writing a video card driver, it support scatter DMA, so i want to using scatterlist and dma_map_sg() to alloc the dma buf, but now i dont know how to write the mmap() function. i see other code using remap_pfn_range(). but in the video_dma_sg.c, __videobuf_mmap_mapper() have not call remap_pfn_range(), why?

Thx,
Figo
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list