Hi <br>I have some question about writing device driver. <br>I am reading some books and text.<br><br>1) I have device which have memory space 1 mb. and I mapped this memory using pci_iomap function.<br>I read some text and they said if device need access mapped memory, you set the command register in configuration space.<br>
But which bit will ve set? only is enough only bit set <a href="http://lxr.linux.no/linux+*/+code=PCI_COMMAND_MEMORY" class="sref">PCI_COMMAND_MEMORY</a>?<br><br>2) I dont want to use dma first step. Maybe next time I will be use.<br>
<a href="http://lxr.linux.no/linux+*/+code=PCI_COMMAND_MASTER" class="sref">PCI_COMMAND_MASTER</a>  this command  bit is only set when I use dma ? is it true?<br><br><br>thanks.<br>