lkml.org 
[lkml]   [2002]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectPCI 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/

\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.045 / U:0.640 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site