[pso] tema 2 linux dev_id
Luis Cazacu
lewisparma at gmail.com
Fri Apr 13 21:24:03 EEST 2007
Ma gandeam sa nu fie o problema.. ca ai recomandat sa nu suprascriem fortat.
Sau am inteles eu gresit...
On 4/13/07, Razvan Deaconescu <razvand at cs.pub.ro> wrote:
>
> Luis Cazacu wrote:
> > 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?
> >
>
> hmm, outb (0x03, MY_COM1 + 3) ?
>
> Razvan
> _______________________________________________
> 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/ce37183e/attachment.html
More information about the pso
mailing list