From mboxrd@z Thu Jan 1 00:00:00 1970 From: daniel.redway85@gmail.com (Daniel Redway) Date: Sat, 11 Jun 2011 10:58:51 +0300 Subject: writing pci device driver Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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 ? 2) I dont want to use dma first step. Maybe next time I will be use. 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