kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* writing pci device driver
@ 2011-06-11  7:58 Daniel Redway
  0 siblings, 0 replies; only message in thread
From: Daniel Redway @ 2011-06-11  7:58 UTC (permalink / raw)
  To: kernelnewbies

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 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-06-11  7:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-11  7:58 writing pci device driver Daniel Redway

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).