[pso] tema 2 linux dev_id
Luis Cazacu
lewisparma at gmail.com
Fri Apr 13 21:08:42 EEST 2007
Inca o intrebare :) :
incerc sa scriu in registrul LCR
initial scriu 0x83 pt aq seta dlab 1
outb(0x83|inb(MY_COM1+3),MY_COM1+3);//dlab=1
outb(0x83|inb(MY_COM2+3),MY_COM2+3);//dlab=1
Apoi dupa ce setez baud rate sfac dlab 0
outb(0x03|inb(MY_COM1+3),MY_COM1+3);//dlab=0
outb(0x03|inb(MY_COM2+3),MY_COM2+3);//dlab=0
Dar cand citesc obtin tot 0x83
value = inb(MY_COM1+3);
printk(KERN_ALERT "lcr=%x\n",value);
"value = 83"
Presupun ca e din cauza la
"0x03|inb(MY_COM1+3)"
Cum sa afc sa scrie 0x03?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20070413/e9cd051b/attachment.htm
More information about the pso
mailing list