[pso] tema 2 linux dev_id

Catalin Morosan cercetasu2003 at yahoo.com
Fri Apr 13 20:59:23 EEST 2007


pai primul parametru e irq_no care in cazul tau ar trebui sa fie 3 sau 4.

daca e 3 atunci adresa e 0x2f8 iar daca e 4 adresa e 0x3f8.

Bineinteles, asta se aplica daca ai initializat totul cum trebuie.

----- Original Message ----
From: Luis Cazacu <lewisparma at gmail.com>
To: Proiectarea Sistemelor de Operare <pso at cursuri.cs.pub.ro>
Sent: Friday, April 13, 2007 1:49:06 PM
Subject: [pso] tema 2 linux dev_id

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

_______________________________________________
pso mailing list
pso at cursuri.cs.pub.ro
http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20070413/5fbe6c26/attachment.html


More information about the pso mailing list