Changeset c2417bc in mainline for kernel/genarch/include/kbrd/kbrd.h


Ignore:
Timestamp:
2009-04-21T12:46:26Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f2d2c7ba
Parents:
44b7783
Message:

change the way how input devices are wired together according to ticket #44
(also the proposal http://lists.modry.cz/cgi-bin/private/helenos-devel/2009-March/002507.html)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/include/kbrd/kbrd.h

    r44b7783 rc2417bc  
    3838
    3939#include <console/chardev.h>
     40#include <proc/thread.h>
     41#include <synch/spinlock.h>
    4042
    41 extern void kbrd_init(indev_t *devin);
     43typedef struct {
     44        thread_t *thread;
     45       
     46        indev_t *sink;
     47        indev_t raw;
     48       
     49        SPINLOCK_DECLARE(keylock);        /**< keylock protects keyflags and lockflags. */
     50        volatile unsigned int keyflags;   /**< Tracking of multiple keypresses. */
     51        volatile unsigned int lockflags;  /**< Tracking of multiple keys lockings. */
     52} kbrd_instance_t;
     53
     54extern kbrd_instance_t *kbrd_init(void);
     55extern indev_t *kbrd_wire(kbrd_instance_t *, indev_t *);
    4256
    4357#endif
Note: See TracChangeset for help on using the changeset viewer.