|
Message
From: tomko81@h...<tomko81@h...>
Date: Tue Dec 9 12:07:49 CET 2003
Subject: [pci] how to handle burst mode read/write of PCI in device driver
Thank you very much for your reply.But can you tell me more how to "add" DMA on my PCI core? As for the pci card, how it can communicate with the PC can only through those PCI signal bus. What i don't understand is on the side of motherboard , which type of command and signals need to given by the master PCI so as to know it want to directly write data to memory without involve of CPU? ( i don't mean i don't know the control of those signal like FRAME,IRDY..etc as i have read the spec of PCI).
what i guess is the master PCI do normal memory write operation with burst mode and give the address of physical memory on the PC at the address period. This is just my guess and please tell me am i right or not.
Regards, TOM
----- Original Message ----- From: "Dave Warren" <dave@l... > To: "Discussion list about free,open source PCI IP core" <pci@o... > Date: Sat, 6 Dec 2003 11:47:57 -0000 Subject: Re: [pci] how to handle burst mode read/write of PCI in device driver
> > > To use burst transfers on PCI the PCI card has to be the master, > you need to > add DMA to your card. I think opencores has a wishbone DMA > controller you > can use. All the high speed PCI devices have DMA, look at specs for > SCSI > controllers ect. Anything you code in the device driver will be > brocken down > to individual reads or writes, because of latency in the system the > transfer > rate will be slow. > > good luck > > > ----- Original Message ----- > From: <tomko81@h... > > To: <pci@o... > > Sent: Saturday, December 06, 2003 6:10 AM > Subject: [pci] how to handle burst mode read/write of PCI in device > driver > > > > Hi everyone, > > > > I am using driverstudio to write a device driver for my > PCI card, > but > > i don't know how to call up burst mode Read on my PCI card, i > try to use > > one of this method > > > > VOID ind(ULONG Offset, PULONG buf, ULONG count); > > > > in the declaration of KMemoryRange supplied by driverstudio. > It can read > > in a string of DWORD (32 bits) data but it is not performing > burst mode > > read on the hardware . It is just read in data one by one. > > > > My question is : > > > > 1. How can i call up burst mode Read in my device driver? Is > there any > > command or method can use , or i need to handle the IRP by my > own? > > > > 2. By theory , where the data from the PCI board store before > reaching > > my Win32 user program ? Do they store in the RAM before > getting by > > the device driver ? > > > > Please give some sample code if it is possible. > > > > Thank you very much for you all. > > > > >
|
 |