Advertisement
Guest User

Untitled

a guest
Jul 19th, 2024
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.53 KB | None | 0 0
  1.     printk("@starting kbd init ...\n");
  2.  
  3.     /* Send the "disable scanning" command 0xF5 to the device */
  4.     outportb(0x64, 0xf5);
  5.  
  6.     /* check for the device to send "ACK" back (0xFA) */
  7.     while(inportb(0x60) != 0xfa);
  8.  
  9.     printk("@ps2: device acknowledged disable scanning!\n");
  10.  
  11.     /* Send the "identify" command 0xF2 to the device */
  12.     outportb(0x64, 0xf2); // buggy line. this line is causing bugs
  13.  
  14.     /* Wait for the device to send "ACK" back (0xFA) */
  15.     while(inportb(0x60) != 0xfa);  
  16.  
  17.     printk("@ps2: identify command acknowledged!\n");
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement