Move Exynos 5 SoC series from genode repo

Fix #203
This commit is contained in:
Stefan Kalkowski
2020-04-22 12:39:18 +02:00
committed by Norman Feske
parent dd15d65800
commit 9c7df24e20
50 changed files with 4763 additions and 2 deletions

View File

@@ -0,0 +1,54 @@
/*
* \brief Regulator-driver interface
* \author Stefan Kalkowski
* \date 2013-06-13
*/
/*
* Copyright (C) 2013-2017 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU Affero General Public License version 3.
*/
#ifndef _INCLUDE__REGULATOR__DRIVER_H_
#define _INCLUDE__REGULATOR__DRIVER_H_
#include <regulator/consts.h>
namespace Regulator {
struct Driver;
struct Driver_factory;
}
/**
* Interface to be implemented by the device-specific driver code
*/
struct Regulator::Driver : Genode::Interface
{
virtual void level(Regulator_id id, unsigned long level) = 0;
virtual unsigned long level(Regulator_id id) = 0;
virtual void state(Regulator_id id, bool enable) = 0;
virtual bool state(Regulator_id id) = 0;
};
/**
* Interface for constructing the driver object
*/
struct Regulator::Driver_factory : Genode::Interface
{
/**
* Construct new driver
*/
virtual Driver &create(Regulator_id regulator) = 0;
/**
* Destroy driver
*/
virtual void destroy(Driver &driver) = 0;
};
#endif /* _REGULATOR__DRIVER_H_ */