Vancouver is now able to use the Intel 82576 device model from NUL to give VMs access to the network via the nic_bridge service. In order to integrate the device model, it had to be renamed to i82576 due to XML limitations. This is done by a patch applied via the 'make prepare' mechanism. Although current network card models in Vancouver panic if they can't get a MAC address, the OP_GET_MAC hostop now fails gracefully in the case where no nic_drv or nic_bridge is available.
52 lines
1.1 KiB
C++
52 lines
1.1 KiB
C++
/*
|
|
* \brief Network receive handler per MAC address
|
|
* \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 _NETWORK_H_
|
|
#define _NETWORK_H_
|
|
|
|
/* Genode includes */
|
|
#include <nic_session/connection.h>
|
|
|
|
/* NOVA userland includes */
|
|
#include <nul/motherboard.h>
|
|
|
|
using Genode::List;
|
|
using Genode::Thread;
|
|
|
|
class Vancouver_network : public Thread<4096>
|
|
{
|
|
private:
|
|
|
|
Motherboard &_mb;
|
|
Nic::Session *_nic;
|
|
|
|
public:
|
|
|
|
/* initialisation */
|
|
void entry();
|
|
|
|
/**
|
|
* Constructor
|
|
*/
|
|
Vancouver_network(Motherboard &mb, Nic::Session *nic);
|
|
};
|
|
|
|
#endif /* _NETWORK_H_ */
|