linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
*  interrupt handler registering in mpc850sar  : i need help !
@ 2003-03-15 15:01 en_ch
  2003-03-15 18:49 ` Dan Malek
  0 siblings, 1 reply; 3+ messages in thread
From: en_ch @ 2003-03-15 15:01 UTC (permalink / raw)
  To: linuxppc-embedded


i have to realize a char driver to set ATM Utopia for a linux
embedded system using motorola mpc850sar.

i need help with registering the interrupt handler function: i tried
to use request_8xxirq() for the SIU and cpm_install_handler() for CPM
but interrupt handler seems not run when i trasmit and receive. which is
the correct interrupt handler registering function ? or is just a
registers setting problem ? how can i do ?

how can i configure interrupt?

thanks

en_ch@libero.it


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re:  interrupt handler registering in mpc850sar  : i need help !
  2003-03-15 15:01 interrupt handler registering in mpc850sar : i need help ! en_ch
@ 2003-03-15 18:49 ` Dan Malek
  0 siblings, 0 replies; 3+ messages in thread
From: Dan Malek @ 2003-03-15 18:49 UTC (permalink / raw)
  To: en_ch@libero.it; +Cc: linuxppc-embedded


en_ch@libero.it wrote:

> i have to realize a char driver to set ATM Utopia for a linux
> embedded system using motorola mpc850sar.

What devices interrupt the CPM and which ones interrupt the SIU?
I don't recall any ATM interrupts that use the SIU, I thought they
all were CPM interrupts through the device that holds the BDs,
like SCC4 for example.

> i need help with registering the interrupt handler function: i tried
> to use request_8xxirq() for the SIU and cpm_install_handler() for CPM
> but interrupt handler seems not run when i trasmit and receive.

That's correct.  Ensure the interrupt vector numbers you prgrammed into
the devices match the ones you are passing to the handler installer,
then ensure you have the transmit/receive interrupts enabled on the
device.  Of course, there is lots more setup of the device, especially
for ATM, than simply enabling interrupts.


	-- Dan


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re:  interrupt handler registering in mpc850sar  : i need help !
@ 2003-03-17 16:36 en_ch
  0 siblings, 0 replies; 3+ messages in thread
From: en_ch @ 2003-03-17 16:36 UTC (permalink / raw)
  To: linuxppc-embedded


i have to realize a char driver to set ATM Utopia for a linux embedded system
using motorola mpc850sar.

i Tried this :

if(request_8xx(INTERRUPT_LEVEL,myInterruptHandler,0,DEVICE_NEME,NULL))
   panic("could not allocate irq!\n");
cpm_install_handler(CPMVEC_IDMA1,myInterruptHandler,NULL);

is it correct ??? note: INTERRUPT_LEVEL is defined 4 and CPMVEC_IDMA1 is 0x15.

which register must i set (and how) to configure  interrupt in utopia mode ?
i have seen that siu and cpm register is setted by kernel... i think i have just
to register the handler.
Please help me !


en_ch
we r desperate :)


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-03-17 16:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-15 15:01 interrupt handler registering in mpc850sar : i need help ! en_ch
2003-03-15 18:49 ` Dan Malek
  -- strict thread matches above, loose matches on Subject: below --
2003-03-17 16:36 en_ch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).