Find the answer to your Linux question:
Results 1 to 5 of 5
Hi, I am trying to map a hardware interrupt to a virtual interrupt in my powerpc device driver for consequent use with request_irq(). A recommended way of doing this is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2010
    Posts
    1

    non-GPL equivalent for irq_of_parse_and_map()


    Hi,

    I am trying to map a hardware interrupt to a virtual interrupt in my powerpc device driver for consequent use with request_irq(). A recommended way of doing this is by using the GPL irq_of_parse_and_map() / irq_create_of_mapping() functions. Does anyone know if there is a non-GPL way of doing this?

    Thanks,
    Vadim

  2. #2
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    664
    You've come to a place that lives and breathes GPL. Can you say why you want a non-GPL way?

  3. #3
    Just Joined!
    Join Date
    Aug 2010
    Posts
    2

    Smile Re: non-GPL equivalent for irq_of_parse_and_map()

    Some of the IRQs are listed in the file "/proc/interrupts" or "/proc/irq" and
    Non-GPL applications can get information from the proc files.

    It may be possible to add some new proc files to store the irq information retrieved by calling irq_of_parse_and_map() using GPL module and other Non-GPL modules can get the irq information via new proc files.

    Could anyone know this is Non-GPL way ?

    Thanks,

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    664
    No, I could know this is GPL way.

  6. #5
    Just Joined!
    Join Date
    Aug 2010
    Posts
    2
    Hi greyhairweenie

    Thank you for your reply.

    How about the way to add a new system call ID for IRQ information and get the information via system call from Non-GPL modules ?

    Do you know any other way for some prorietary modules to get the IRQ information ?

    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •