Host ne2k driver. More...
Public Member Functions | |
bool | send_packet (const void *buffer, unsigned len) |
void | reset () |
bool | receive (MessageNetwork &msg) |
bool | receive (MessageIrq &msg) |
HostNe2k (DBus< MessageIOIn > &bus_hwioin, DBus< MessageIOOut > &bus_hwioout, DBus< MessageNetwork > &bus_network, Clock *clock, unsigned short port, unsigned irq) |
Host ne2k driver.
Copyright (C) 2010, Bernhard Kauer <bk@vmmon.org> Economic rights: Technische Universitaet Dresden (Germany)
This file is part of Vancouver.
Vancouver is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
Vancouver is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License version 2 for more details. A simple ne2k pci driver, mainly used on qemu devices.
Features: reset, send, irq, receive, overflow-recover Missing: read counters, configuration of full-duplex modes State: testing Documentation: DP8390D, rtl8029, mx98905b
HostNe2k::HostNe2k | ( | DBus< MessageIOIn > & | bus_hwioin, | |
DBus< MessageIOOut > & | bus_hwioout, | |||
DBus< MessageNetwork > & | bus_network, | |||
Clock * | clock, | |||
unsigned short | port, | |||
unsigned | irq | |||
) | [inline] |
bool HostNe2k::receive | ( | MessageNetwork & | msg | ) | [inline] |
bool HostNe2k::receive | ( | MessageIrq & | msg | ) | [inline] |
void HostNe2k::reset | ( | ) | [inline] |
bool HostNe2k::send_packet | ( | const void * | buffer, | |
unsigned | len | |||
) | [inline] |