From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4D1FA974.8090803@domain.hid> Date: Sat, 01 Jan 2011 23:23:48 +0100 From: Gilles Chanteperdrix MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] PCI1711 Rtdm driver reading and writing error List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: adilkaraoz Cc: xenomai@xenomai.org adilkaraoz wrote: > I am writing rtdm driver for PCI1711 card. I got base adress and configured > it. But when I write digtal output or Dac, I can't see changes at those > registers. My Code is below please help me. Is this issue really related to Xenomai? Do you get a different behaviour if you try writing to these registers in a plain Linux driver? I doubt it, and you do not give us any clue on what the system you are running. Please do not bother sending more information unless you have verified that the issue is specific to Xenomai. Anyway, if I were you, I would check if the physical address correct passed to ioremap is the corrrect one. That is print it, and look if it is what should be expected (if you have a working Linux driver for this hardware, the physical address should be the same). The mask with 0xfffffff0 looks suspicious, if the system is x86_64, it will not only mask the 4 lower bits, it will also mask the 32 upper bits. -- Gilles.