PCI DMA concepts ??
From: Chanemou (saravanan_sprt_at_rediffmail.com)
Date: 10/07/04
- Next message: Ganesh Okade: "Re: Select configuration URB causes USBD to deadlock - Resolved"
- Previous message: Kuan Deng: "Re: How to detect the GPRS/UMTS/EDGE NIC card type"
- Next in thread: Eliyas Yakub [MSFT]: "Re: PCI DMA concepts ??"
- Reply: Eliyas Yakub [MSFT]: "Re: PCI DMA concepts ??"
- Reply: Heeyong: "Re: PCI DMA concepts ??"
- Messages sorted by: [ date ] [ thread ]
Date: 7 Oct 2004 06:54:16 -0700
Hi everybody.
I am having some doubts with a driver for a PCI card.I learned
how to read/write configuration and map memory to kernel space but
confused in using how to do dma read & write.
1. The pci card has built in PCI & DMA controller.
DMA controller registers (READ and WRITE registers) can be
programmed by specifying (PCI_ADDRESS, LOCAL_SDRAM_ADDRESS,
SIZE).(These registers are memory mapped via BAR3 and can be
programmed by host system or by the Local card.)
2. on the host side I have done DMA alloc (say for 5MB )using
HalAllocateCommonBuffer() and also created dummy ISR to perform
Receive from the pci card.
3. for Transmitting data to the pci card , I think that I can program
the DMA registers that are memory mapped into host side. so that the
DMA controller does the Transfer. and generate interrupt ot host upon
completion. Is this a correct way?
4. for Receiving from the Pci card, the card generate interrupt to the
host after DMA transfer from pci to host memory by programming the DMA
registers from the loca side.
cld u explain for dma read and write sequence so that it wld
be helpful for me in step a head.
5. I created a large DMA bufffer for DMA Xfer. how Read and Write use
this buffer. or I have to allocate DMA buffer for Tx and Rx on the
host side.
6. ReadFile and WriteFile API are meant for DMA or what? if so how
this is performed? then whats the use of DMA controller registers on
the pci card.?
these are my few questions which really confuses me.cld u pls
answer these questions so that it wld be helpful in proceeding
furthur.
thanks
chanemou
- Next message: Ganesh Okade: "Re: Select configuration URB causes USBD to deadlock - Resolved"
- Previous message: Kuan Deng: "Re: How to detect the GPRS/UMTS/EDGE NIC card type"
- Next in thread: Eliyas Yakub [MSFT]: "Re: PCI DMA concepts ??"
- Reply: Eliyas Yakub [MSFT]: "Re: PCI DMA concepts ??"
- Reply: Heeyong: "Re: PCI DMA concepts ??"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|