Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
User space to PCI Memory
Name: basu_arani Date: May 2, 2004 at 01:31:23 Pacific OS: Linux CPU/Ram: Pentium3/256
Comment:
Hi There,
I am developing a driver for a communication card in linux. The working of the driver is as follows:
The data has to be transferred from user space memory to some memory on a particular PCI card. This card is having the PLX PCI 9054 with a DMA controller.
If I have to pass the data from the user program to the PCI Memory, the data has to be first passed from user space to the kernel space and then from there to the PCI Memory. This is resulting in a lot of bandwidth wastage.
Is it possible for a kernel module to access the user space memory directly, so that I can transfer the data directly from the userspace to the PCI memory.
Name: Wolfbone Date: May 2, 2004 at 10:02:37 Pacific
Reply:
Do you mean something like mmio as used by ALSA and eg. the /usr/src/linux/drivers/net/8139too.c driver? I've only had experience of mmap (info Libc, /usr/include/sys/mman.h) from the user side so I couldn't tell you how to write the driver-side mapping but there are plenty of examples in the kernel source.
Summary: Hello, I am doing a diploma by Siemens, and I am writing a device driver. Can anybody give me a few tips or tricks? I am going to store frames in the driver from a network interface. These frames mu...
Summary: Hello, I am trying to program a PCI card using the mmap function in C. The card has two non-prefetchable memory areas that are user accesible. One area starts at 0xfb000000 and has a range of 16 Mb...