Changeset 7f1c620 in mainline for genarch/src/i8042/i8042.c


Ignore:
Timestamp:
2006-07-04T17:17:56Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0ffa3ef5
Parents:
991779c5
Message:

Replace old u?? types with respective C99 variants (e.g. uint32_t, int64_t, uintptr_t etc.).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • genarch/src/i8042/i8042.c

    r991779c5 r7f1c620  
    8585#define IGNORE_CODE     0x7f
    8686
    87 static void key_released(__u8 sc);
    88 static void key_pressed(__u8 sc);
     87static void key_released(uint8_t sc);
     88static void key_pressed(uint8_t sc);
    8989static char key_read(chardev_t *d);
    9090
     
    9595#define ACTIVE_READ_BUFF_SIZE 16        /* Must be power of 2 */
    9696
    97 static __u8 active_read_buff[ACTIVE_READ_BUFF_SIZE];
     97static uint8_t active_read_buff[ACTIVE_READ_BUFF_SIZE];
    9898
    9999SPINLOCK_INITIALIZE(keylock);           /**< keylock protects keyflags and lockflags. */
     
    323323void i8042_interrupt(int n, istate_t *istate)
    324324{
    325         __u8 x;
    326         __u8 status;
     325        uint8_t x;
     326        uint8_t status;
    327327
    328328        while (((status=i8042_status_read()) & i8042_BUFFER_FULL_MASK)) {
     
    351351 * @param sc Scancode of the key being released.
    352352 */
    353 void key_released(__u8 sc)
     353void key_released(uint8_t sc)
    354354{
    355355        spinlock_lock(&keylock);
     
    376376 * @param sc Scancode of the key being pressed.
    377377 */
    378 void key_pressed(__u8 sc)
     378void key_pressed(uint8_t sc)
    379379{
    380380        char *map = sc_primary_map;
     
    454454}
    455455
    456 static __u8 active_read_buff_read(void)
     456static uint8_t active_read_buff_read(void)
    457457{
    458458        static int i=0;
     
    464464}
    465465
    466 static void active_read_buff_write(__u8 ch)
     466static void active_read_buff_write(uint8_t ch)
    467467{
    468468        static int i=0;
     
    474474
    475475
    476 static void active_read_key_pressed(__u8 sc)
     476static void active_read_key_pressed(uint8_t sc)
    477477{
    478478        char *map = sc_primary_map;
     
    548548
    549549        while(!(ch = active_read_buff_read())) {
    550                 __u8 x;
     550                uint8_t x;
    551551                while (!(i8042_status_read() & i8042_BUFFER_FULL_MASK))
    552552                        ;
     
    568568void i8042_poll(void)
    569569{
    570         __u8 x;
     570        uint8_t x;
    571571
    572572        while (((x = i8042_status_read() & i8042_BUFFER_FULL_MASK))) {
Note: See TracChangeset for help on using the changeset viewer.