Changeset 7f1c620 in mainline for genarch/src/i8042/i8042.c
- Timestamp:
- 2006-07-04T17:17:56Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0ffa3ef5
- Parents:
- 991779c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
genarch/src/i8042/i8042.c
r991779c5 r7f1c620 85 85 #define IGNORE_CODE 0x7f 86 86 87 static void key_released( __u8sc);88 static void key_pressed( __u8sc);87 static void key_released(uint8_t sc); 88 static void key_pressed(uint8_t sc); 89 89 static char key_read(chardev_t *d); 90 90 … … 95 95 #define ACTIVE_READ_BUFF_SIZE 16 /* Must be power of 2 */ 96 96 97 static __u8active_read_buff[ACTIVE_READ_BUFF_SIZE];97 static uint8_t active_read_buff[ACTIVE_READ_BUFF_SIZE]; 98 98 99 99 SPINLOCK_INITIALIZE(keylock); /**< keylock protects keyflags and lockflags. */ … … 323 323 void i8042_interrupt(int n, istate_t *istate) 324 324 { 325 __u8x;326 __u8status;325 uint8_t x; 326 uint8_t status; 327 327 328 328 while (((status=i8042_status_read()) & i8042_BUFFER_FULL_MASK)) { … … 351 351 * @param sc Scancode of the key being released. 352 352 */ 353 void key_released( __u8sc)353 void key_released(uint8_t sc) 354 354 { 355 355 spinlock_lock(&keylock); … … 376 376 * @param sc Scancode of the key being pressed. 377 377 */ 378 void key_pressed( __u8sc)378 void key_pressed(uint8_t sc) 379 379 { 380 380 char *map = sc_primary_map; … … 454 454 } 455 455 456 static __u8active_read_buff_read(void)456 static uint8_t active_read_buff_read(void) 457 457 { 458 458 static int i=0; … … 464 464 } 465 465 466 static void active_read_buff_write( __u8ch)466 static void active_read_buff_write(uint8_t ch) 467 467 { 468 468 static int i=0; … … 474 474 475 475 476 static void active_read_key_pressed( __u8sc)476 static void active_read_key_pressed(uint8_t sc) 477 477 { 478 478 char *map = sc_primary_map; … … 548 548 549 549 while(!(ch = active_read_buff_read())) { 550 __u8x;550 uint8_t x; 551 551 while (!(i8042_status_read() & i8042_BUFFER_FULL_MASK)) 552 552 ; … … 568 568 void i8042_poll(void) 569 569 { 570 __u8x;570 uint8_t x; 571 571 572 572 while (((x = i8042_status_read() & i8042_BUFFER_FULL_MASK))) {
Note:
See TracChangeset
for help on using the changeset viewer.