Mouse, and stuff.....
Posted: Fri Apr 23, 2004 6:45 pm
Hey,
Okay, Heres what I have:
booted with Grub.
PIC's remapped.
in pmode(of course)
Could someone give some explanations on the mouse and how I could implement it into my kernel. Also, kind of a sidenote, the pic is remapped, but I think that only IRQ 0 and 1 are turned on. I think that's called masking. Explanation on what masking is and how I could do it would be nice.
I don't know the IRQ for the mouse, or how to read it, but I do have a keyboard driver up and running.
I was told many times that the PIC remapping documentation is hard to understand. Therefore I don't have the best idea of what the entirety of the code does. I DO KNOW that the first few lines take the IRQ adresses(correct word?) and put them somewhere out of the way. I'm confused. Thanks for staying with my terrible composition!
Brett
My PIC code:
outportb(0x20, 0x11);
outportb(0xA0, 0x11);
outportb(0x21, 0x50);
outportb(0xA1, 0x50+8);
outportb(0x21, 0x04);
outportb(0xA1, 0x02);
outportb(0x21, 0x01);
outportb(0xA1, 0x01);
outportb(0x21, ~0xFF);
outportb(0xA1, ~0xFF);
Okay, Heres what I have:
booted with Grub.
PIC's remapped.
in pmode(of course)
Could someone give some explanations on the mouse and how I could implement it into my kernel. Also, kind of a sidenote, the pic is remapped, but I think that only IRQ 0 and 1 are turned on. I think that's called masking. Explanation on what masking is and how I could do it would be nice.
I don't know the IRQ for the mouse, or how to read it, but I do have a keyboard driver up and running.
I was told many times that the PIC remapping documentation is hard to understand. Therefore I don't have the best idea of what the entirety of the code does. I DO KNOW that the first few lines take the IRQ adresses(correct word?) and put them somewhere out of the way. I'm confused. Thanks for staying with my terrible composition!
Brett
My PIC code:
outportb(0x20, 0x11);
outportb(0xA0, 0x11);
outportb(0x21, 0x50);
outportb(0xA1, 0x50+8);
outportb(0x21, 0x04);
outportb(0xA1, 0x02);
outportb(0x21, 0x01);
outportb(0xA1, 0x01);
outportb(0x21, ~0xFF);
outportb(0xA1, ~0xFF);