From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philippe Gerum In-Reply-To: <008e01cbb675$a916be60$fb443b20$@innovative-dsp.com> References: <007901cbb667$db66b860$92342920$@innovative-dsp.com> <4D347656.1050609@domain.hid> <008e01cbb675$a916be60$fb443b20$@innovative-dsp.com> Content-Type: text/plain; charset="UTF-8" Date: Mon, 17 Jan 2011 19:52:09 +0100 Message-ID: <1295290329.1857.59.camel@domain.hid> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] Xenomai mmap List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Hua Cc: xenomai@xenomai.org, pwfhua@domain.hid On Mon, 2011-01-17 at 10:37 -0800, Peter Hua wrote: > Platform: X86, 64-bit > > Thanks for the API linke. I have recoded to not use "rtdm_iomap_to_user" and used the mmap call. However, I am not able to open the driver with the open() call. It returned -1. Any suggestion? Example? > This is getting silly. Please make sure to use anything you may have been given to do your work, by order of usefulness: - brain, - documentation, - computer. You obviously have a computer, so, if you are missing any other item from this list, please make sure to get the complete package before posting anew. Also, please stop posting whatever code you happen to perpetrate to this list: it gives anyone with a functional brain a huge feeling of seasickness. Final note: this list is not a cheap helpdesk to get his work done for free. Everyone has to do some efforts to keep things rolling. Thanks (I'm trying hard to mean it). > Thanks, > Peter Hua > Innovative Integration > 805-578-4275 > > > -----Original Message----- > From: Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org] > Sent: Monday, January 17, 2011 9:03 AM > To: Peter Hua > Cc: xenomai@xenomai.org; pwfhua@domain.hid > Subject: Re: [Xenomai-help] Xenomai mmap > > Peter Hua wrote: > > Is there any example code to map PCI registers into user space? I am having > > problem getting functions rtdm_iomap_to_user and mmap to compile. My code > > is attached. > > What platform? What error message do you get? > -- Philippe.