Messages in this thread | | | Date | Wed, 19 Jun 2002 02:39:30 -0700 (PDT) | From | aryan aru <> | Subject | PCI DMA : pci_map_single usage |
| |
Hi,
I am new to this device driver area. I have a question on PCI DMA usage. Could you plz correct me.
I have two processors, processor(pci device) pA, processor(pci device) pB. I want to use DMA pull mechanism for transfering the messages between them. I need to follow the mechanism for this.
When pA wants to send a pkt to pB:
pA places the address of the src_buff in one of the common registers. pB, by accessing that register, will come to know the location of the src_buffer. Now pB, using its DMA controller has to pull the message to its local buffer, say dest_loc_buff. For setting up the dma controller on pB, I need the pci_addr of src_buuf and dest_loc_buff( DMA controller of MPC82xx).
How can I get pci_addr of src_buff? Can I get this by using pci_map_single?
>From my understating pci_map_single takes local buffer as the argument.
In this transfer, do both the DMA controllers (pA and pB) involve in message transfer or only pB pulls the pkt.
Any driver example available in that net for this "pull" mechanism.
Any help is highly appreciated.
thans and regards Aryan
__________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |