[pso] tema 2 linux dev_id

Luis Cazacu lewisparma at gmail.com
Fri Apr 13 13:49:06 EEST 2007


In handler-ul pt intrerupere

irqreturn_t my_handler(int irq_no,void *dev_id,struct pt_regs *regs)

putem sa folosim dev_id in loc de serial[0] sau serial [1] ?

unde serial [0] de exemplu este :

err =
request_irq(MY_IRQ1,my_handler,SA_INTERRUPT,"4uart16550",&my_serial[0]);

Si cum am putea afla pt ce COM este intreruperea  (adresa mai exact , adik
0x3f8 sau 0x2f8)  (fara sa citim registrul IIR) ?

Multumesc,

Luis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20070413/acefed94/attachment.htm


More information about the pso mailing list