writing pci device driver
Daniel Redway
daniel.redway85 at gmail.com
Sat Jun 11 03:58:51 EDT 2011
Hi
I have some question about writing device driver.
I am reading some books and text.
1) I have device which have memory space 1 mb. and I mapped this memory
using pci_iomap function.
I read some text and they said if device need access mapped memory, you set
the command register in configuration space.
But which bit will ve set? only is enough only bit set
PCI_COMMAND_MEMORY<http://lxr.linux.no/linux+*/+code=PCI_COMMAND_MEMORY>
?
2) I dont want to use dma first step. Maybe next time I will be use.
PCI_COMMAND_MASTER <http://lxr.linux.no/linux+*/+code=PCI_COMMAND_MASTER>
this command bit is only set when I use dma ? is it true?
thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110611/945aa72c/attachment.html
More information about the Kernelnewbies
mailing list