ca971bbfd8
This patch changes the top-level directory layout as a preparatory step for improving the tools for managing 3rd-party source codes. The rationale is described in the issue referenced below. Issue #1082
34 lines
648 B
C++
34 lines
648 B
C++
/*
|
|
* \brief Driver-internal serial interface
|
|
* \author Norman Feske
|
|
* \date 2007-09-28
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2007-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.
|
|
*/
|
|
|
|
#ifndef _SERIAL_INTERFACE_H_
|
|
#define _SERIAL_INTERFACE_H_
|
|
|
|
class Serial_interface
|
|
{
|
|
public:
|
|
|
|
virtual unsigned char read() = 0;
|
|
virtual void write(unsigned char) = 0;
|
|
virtual bool data_read_ready() = 0;
|
|
|
|
/**
|
|
* (Re-)enable device interrupt
|
|
*/
|
|
virtual void enable_irq() { }
|
|
|
|
virtual ~Serial_interface() { }
|
|
};
|
|
|
|
#endif /* _SERIAL_INTERFACE_H_ */
|