2014-11-22 15:13:43 +01:00
|
|
|
/*
|
|
|
|
* \brief Lx env
|
|
|
|
* \author Josef Soentgen
|
|
|
|
* \date 2014-10-17
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2017-02-11 17:35:30 +01:00
|
|
|
* Copyright (C) 2014-2017 Genode Labs GmbH
|
2014-11-22 15:13:43 +01:00
|
|
|
*
|
2017-02-20 13:23:52 +01:00
|
|
|
* This file is distributed under the terms of the GNU General Public License
|
|
|
|
* version 2.
|
2014-11-22 15:13:43 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _LX_H_
|
|
|
|
#define _LX_H_
|
|
|
|
|
2019-01-21 14:30:54 +01:00
|
|
|
/* Genode includes */
|
|
|
|
#include <base/allocator.h>
|
|
|
|
|
2014-11-22 15:13:43 +01:00
|
|
|
/* local includes */
|
2016-02-29 15:26:19 +01:00
|
|
|
#include <lx_kit/scheduler.h>
|
2014-11-22 15:13:43 +01:00
|
|
|
|
|
|
|
|
|
|
|
#define DEBUG_PRINTK 1
|
|
|
|
#define DEBUG_DEV_DBG 1
|
|
|
|
#define DEBUG_SCHEDULING 0
|
|
|
|
|
|
|
|
|
|
|
|
namespace Lx
|
|
|
|
{
|
2016-06-23 13:34:47 +02:00
|
|
|
void emul_init(Genode::Env&, Genode::Allocator&);
|
2014-11-22 15:13:43 +01:00
|
|
|
|
2016-06-23 13:34:47 +02:00
|
|
|
void socket_init(Genode::Entrypoint&, Genode::Allocator&);
|
2018-07-04 17:13:16 +02:00
|
|
|
void socket_kick();
|
2016-06-23 13:34:47 +02:00
|
|
|
|
|
|
|
void nic_init(Genode::Env&, Genode::Allocator&);
|
2014-11-22 15:13:43 +01:00
|
|
|
|
|
|
|
Genode::Ram_dataspace_capability backend_alloc(Genode::addr_t, Genode::Cache_attribute);
|
|
|
|
void backend_free(Genode::Ram_dataspace_capability);
|
|
|
|
|
|
|
|
void get_mac_address(unsigned char *);
|
2018-07-04 17:13:16 +02:00
|
|
|
|
|
|
|
bool open_device();
|
2014-11-22 15:13:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* _LX_H_ */
|