mmap'ing IO memory on i386

2000-12-15 Thread Anders Torger
ens (the memory being on the sound card is unchanged). I have two questions: (1) why is this happening? (2) is it possible to make it work? Please reply to my address directly, since I'm not on the mailing list. /Anders Torger - To unsubscribe from this list: send the line "unsubsc

Re: How to transfer memory from PCI memory directly to user space safely and portable?

2000-11-26 Thread Anders Torger
On Sun, 26 Nov 2000, you wrote: > On Sun, Nov 26, 2000 at 02:21:31PM +0100, Anders Torger wrote: > > memcpy_toio(iobase, user_space_src, count); > > I hope count isn't provided by userspace here ? Fortunately, 'count' is controlled by the driver architecture (AL

Re: How to transfer memory from PCI memory directly to user space safely and portable?

2000-11-26 Thread Anders Torger
RAM, not IO memory. Unfortunately, on this sound card (RME Audio Digi96), I have to access the on-board buffers directly, using the CPU. Thus, to be portable, I cannot use mmap directly on the ioremap'd memory, right? /Anders Torger - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

How to transfer memory from PCI memory directly to user space safely and portable?

2000-11-26 Thread Anders Torger
the correct one? The copy functions is directly initiated by the user, and not through an interrupt, so I think the user space mapping will always be to the correct process. Is that correct? Since I'm not on the list, I'd like to have answers CC'd to my address. Thank you. /Ande