Changeset d063365 in mainline


Ignore:
Timestamp:
2009-02-21T21:47:29Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
26e51609
Parents:
7919cd5
Message:

Do not include the IPC stuff in the i8042 kernel driver.

File:
1 edited

Legend:

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

    r7919cd5 rd063365  
    5050#include <interrupt.h>
    5151#include <sysinfo/sysinfo.h>
    52 #include <ipc/irq.h>
    5352
    5453i8042_instance_t lgcy_i8042_instance = {
     
    157156        /*
    158157         * Clear input buffer.
    159          * Number of iterations is limited to prevent infinite looping.
    160158         */
    161         int i;
    162         for (i = 0; (pio_read_8(&dev->status) & i8042_BUFFER_FULL_MASK) &&
    163             i < 100; i++) {
     159        while (pio_read_8(&dev->status) & i8042_BUFFER_FULL_MASK)
    164160                (void) pio_read_8(&dev->data);
    165         }
    166161       
     162        /*
     163         * This is the necessary evil until the userspace driver is entirely
     164         * self-sufficient.
     165         */
    167166        sysinfo_set_item_val("kbd", NULL, true);
    168167        sysinfo_set_item_val("kbd.devno", NULL, kbd_devno);
Note: See TracChangeset for help on using the changeset viewer.