From: aryan aru <aryan222is@yahoo.com>
To: aryan222is@yahoo.com
Cc: linux-kernel@vger.kernel.org
Subject: PCI DMA : pci_map_single usage
Date: Wed, 19 Jun 2002 02:39:30 -0700 (PDT) [thread overview]
Message-ID: <20020619093930.69906.qmail@web21205.mail.yahoo.com> (raw)
In-Reply-To: <3C8464AB.3020404@bryanr.org>
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
prev parent reply other threads:[~2002-06-19 9:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-05 0:28 netlink vs ioctl aryan aru
2002-03-05 6:24 ` bryanr
2002-06-19 9:39 ` aryan aru [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020619093930.69906.qmail@web21205.mail.yahoo.com \
--to=aryan222is@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®