Changeset c852b948 in mainline


Ignore:
Timestamp:
2009-02-19T19:39:24Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4b44099d
Parents:
3f95377
Message:

Nuke i8042_poll().

Location:
kernel/genarch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/include/kbd/i8042.h

    r3f95377 rc852b948  
    4040
    4141extern void i8042_init(devno_t kbd_devno, inr_t kbd_inr, devno_t mouse_devno, inr_t mouse_inr);
    42 extern void i8042_poll(void);
    4342extern void i8042_grab(void);
    4443extern void i8042_release(void);
  • kernel/genarch/src/kbd/i8042.c

    r3f95377 rc852b948  
    224224}
    225225
    226 /** Poll for key press and release events.
    227  *
    228  * This function can be used to implement keyboard polling.
    229  */
    230 void i8042_poll(void)
    231 {
    232         uint8_t x;
    233        
    234         while (((x = i8042_status_read() & i8042_BUFFER_FULL_MASK))) {
    235                 x = i8042_data_read();
    236                 if (x & KEY_RELEASE)
    237                         key_released(x ^ KEY_RELEASE);
    238                 else
    239                         key_pressed(x);
    240         }
    241 }
    242 
    243226/** @}
    244227 */
Note: See TracChangeset for help on using the changeset viewer.