genode/repos/os/src/drivers/input/spec/ps2/verbose.h

38 lines
800 B
C++

/*
* \brief PS/2 driver
* \author Norman Feske
* \date 2017-01-02
*/
/*
* Copyright (C) 2016 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.
*/
#ifndef _DRIVERS__INPUT__SPEC__PS2__VERBOSE_H_
#define _DRIVERS__INPUT__SPEC__PS2__VERBOSE_H_
#include <util/xml_node.h>
namespace Ps2 { struct Verbose; }
struct Ps2::Verbose
{
bool const keyboard;
bool const scancodes;
bool const mouse;
Verbose(Genode::Xml_node config)
:
keyboard (config.attribute_value("verbose_keyboard", false)),
scancodes(config.attribute_value("verbose_scancodes", false)),
mouse (config.attribute_value("verbose_mouse", false))
{ }
};
#endif /* _DRIVERS__INPUT__SPEC__PS2__VERBOSE_H_ */