ts-7000
[Top] [All Lists]

Re: [ts-7000] IRQ on DIO with TS-7400

To:
Subject: Re: [ts-7000] IRQ on DIO with TS-7400
From: Eddie Dawydiuk <>
Date: Thu, 19 Apr 2007 08:56:00 -0700 (MST)
Hello,

> But I'm not sure what irq to ask for with request_irq() in my kernel
> module.
> Does anyone know?

At the end of the TS-7400 documentation your question is answered.

"If you choose to use DMA or IRQ support for the GPBUS, you will
likely want to write a kernel driver.  Simple userspace applications
can not directly set up interrupt handler functions or translate
the virtual addresses of process data structures to the physical
addresses needed by the DMA controller.  When writing a kernel
driver in C, one should be aware of certain details:
   *) To set a handler on the GPBUS IRQ, you must request IRQ #33 and
      allow IRQ sharing (the UART and SD drivers also generate the
      same IRQ).  This means calling the request_irq() kernel function
      with SA_SHIRQ in the 'flags' parameter.
   *) To use DMA, you must manipulate the M2M1 EP9302 DMA channel.
Details
      on its programming can be found in the EP9301 CPU User Manual from
      Cirrus Logic at http://www.cirrus.com
   *) To access various registers in arbitrary physical address space,
use
      the __ioremap() function and not the ioremap() kernel function.
      ioremap() does not expect physical addresses and will apply an
offset
      to your requested address on the EP9302 ARM Linux kernel.
   *) If you are unable to write a driver yourself, you may consider
      contracting Technologic Systems to write one for you.  Often times,
      TS engineers can accomodate your requirements for less cost than it
      takes to accomplish internally."

Best Regards,
______________________________________________________________
  Eddie Dawydiuk, Technologic Systems | voice:  (480) 837-5200
  16610 East Laser Drive Suite 10     | fax:    (480) 837-5300
  Fountain Hills, AZ 85268            | web: www.embeddedARM.com


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU