Rabinarayan Panigrahi February 2016

functionality of pci_set_dma_mask

I am bit confused for pci_set_dma_mask. So can somebody explain me what exactly happens in below code.

#define DMA_64BIT_MASK DMA_BIT_MASK(64)
pci_set_dma_mask(dev, DMA_64BIT_MASK)

Regards Rabinarayan

Answers


i.net February 2016

AFAIK know, this function returns 0 if the PCI device in parameter can perform the DMA on the supported PCI address. If it returns a non-zero then your device cannot perform DMA and the DMA translation (if used) is unpredictable.

Regardless of my answer, I don't think SO is a place for this kind of question as this is not really a problem that can have an absolutely correct "answer" or "solution"...

Post Status

Asked in February 2016
Viewed 1,120 times
Voted 10
Answered 1 times

Search




Leave an answer