genode/ports/src/vancouver/keyboard.h
Norman Feske 89d0e68983 vancouver: Improve locking scheme
This patch replaces the error-prone manual locking with the use of the
'Synced_interface' for the motherboard and the VCPU dispatcher. It also
removes all globally visible locks. Locks are now explicitly passed to
subsystems when needed.
2013-05-17 12:05:07 +02:00

51 lines
1.1 KiB
C++

/*
* \brief Keyboard manager
* \author Markus Partheymueller
* \date 2012-07-31
*/
/*
* Copyright (C) 2012 Intel Corporation
* Copyright (C) 2013 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU General Public License version 2.
*
* The code is partially based on the Vancouver VMM, which is distributed
* under the terms of the GNU General Public License version 2.
*
* Modifications by Intel Corporation are contributed under the terms and
* conditions of the GNU General Public License version 2.
*/
#ifndef _KEYBOARD_H_
#define _KEYBOARD_H_
/* local includes */
#include <synced_motherboard.h>
/* includes for I/O */
#include <base/env.h>
#include <input/event.h>
#include <input/keycodes.h>
class Vancouver_keyboard
{
private:
Synced_motherboard &_motherboard;
unsigned _flags;
public:
/**
* Constructor
*/
Vancouver_keyboard(Synced_motherboard &);
void handle_keycode_press(unsigned keycode);
void handle_keycode_release(unsigned keycode);
};
#endif /* _KEYBOARD_H_ */