All of lore.kernel.org
 help / color / mirror / Atom feed
* Interrupt handling
@ 2003-10-16 13:16 Sanil K
  2003-10-16 13:51 ` Richard B. Johnson
                   ` (2 more replies)
  0 siblings, 3 replies; 25+ messages in thread
From: Sanil K @ 2003-10-16 13:16 UTC (permalink / raw)
  To: linux-kernel

Hi all,

This may be a generic problem as far as a driver is concerned.

We need to handle an interrupt and inform the user space on the event and
pass the data correspodning to the event.

The event can be informed through SIGNAL and the signal handler can be
invoked in the user space. Then again for data, we need to have the
"copy_to_user" mechanism .

Is there any other effective mechanism(s) to handle the interrupt. I mean
we need to convey the event and or data to the user space(prefer -
asynchronously).

Please share your views.

Sanil.


^ permalink raw reply	[flat|nested] 25+ messages in thread
[parent not found: <AANLkTim+7sKv+-pwPqMa5QhvuGRRQBUq+=nB8H7NEy7m@mail.gmail.com>]
* RE: Interrupt handling....
@ 2002-09-05 16:25 Jon Burgess
  0 siblings, 0 replies; 25+ messages in thread
From: Jon Burgess @ 2002-09-05 16:25 UTC (permalink / raw)
  To: Matthew Dharm; +Cc: Linux-MIPS



>    li   t0, 0xfc000000
>    lb   t1, 0xc(t0)
>
>After all,
>isn't that what ioremap is supposed to do?

I think the problem is that you need to use the pointer which ioremap() returns
to access the region you requested. It looks like you've assumed that ioremap()
will map it 1:1 which I don't think is the case.

i.e.

struct hw_regs *foo;

foo = (struct hw_regs *)ioremap(0xfc000000, <Size>);

foo->command = hw_reset;
...


     Jon

^ permalink raw reply	[flat|nested] 25+ messages in thread
[parent not found: <3D6E87EB.4010000@mvista.com>]

end of thread, other threads:[~2011-02-17 14:59 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-16 13:16 Interrupt handling Sanil K
2003-10-16 13:51 ` Richard B. Johnson
2003-10-16 19:55   ` Maciej Zenczykowski
2003-10-16 20:10     ` Richard B. Johnson
2003-10-16 18:53 ` George Anzinger
2003-10-16 19:08 ` Tom Zanussi
     [not found] <AANLkTim+7sKv+-pwPqMa5QhvuGRRQBUq+=nB8H7NEy7m@mail.gmail.com>
2011-02-15 10:46 ` Mulyadi Santosa
2011-02-15 12:20   ` Darshan Ghumare
2011-02-16  4:35     ` Darshan Ghumare
     [not found]       ` <AANLkTi=gGBf3fL9aXd5W--M7kerg9e5EDsJzXQ3wFa+b@mail.gmail.com>
2011-02-16  5:55         ` Darshan Ghumare
2011-02-16  8:54     ` Mulyadi Santosa
2011-02-16 14:50       ` Bruce Rowen
2011-02-17  4:49         ` Darshan Ghumare
2011-02-17 14:59           ` Bruce Rowen
  -- strict thread matches above, loose matches on Subject: below --
2002-09-05 16:25 Jon Burgess
     [not found] <3D6E87EB.4010000@mvista.com>
2002-09-04  1:10 ` Matthew Dharm
2002-09-04  9:53   ` Dominic Sweetman
2002-09-04 12:58     ` Maciej W. Rozycki
2002-09-04 16:36       ` Matthew Dharm
2002-09-04 20:08         ` Dominic Sweetman
2002-09-05  9:17           ` Maciej W. Rozycki
2002-09-04 16:40     ` Matthew Dharm
2002-09-04 17:02       ` Maciej W. Rozycki
2002-09-04 18:16         ` Matthew Dharm
2002-09-05  9:04           ` Maciej W. Rozycki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.