1/*
2 *	Davicom DM9601 USB 1.1 Ethernet Driver.
3 *	Copyright (c) 2008, 2011 Siarzhuk Zharski <imker@gmx.li>
4 *	Copyright (c) 2009 Adrien Destugues <pulkomandy@gmail.com>
5 *	Distributed under the terms of the MIT license.
6 *
7 *	Heavily based on code of the
8 *	Driver for USB Ethernet Control Model devices
9 *	Copyright (C) 2008 Michael Lotz <mmlr@mlotz.ch>
10 *	Distributed under the terms of the MIT license.
11 */
12#ifndef _USB_DAVICOM_DRIVER_H_
13#define _USB_DAVICOM_DRIVER_H_
14
15
16#include <Drivers.h>
17#include <USB3.h>
18
19
20// extra tracing in debug mode
21//#define UDAV_TRACE
22
23#define DRIVER_NAME	"usb_davicom"
24#define MAX_DEVICES	8
25
26
27const char* const kVersion = "ver.0.9.5";
28extern usb_module_info *gUSBModule;
29
30
31extern "C" {
32
33status_t	usb_davicom_device_added(usb_device device, void **cookie);
34status_t	usb_davicom_device_removed(void *cookie);
35
36status_t	init_hardware();
37void		uninit_driver();
38
39const char **publish_devices();
40device_hooks *find_device(const char *name);
41
42}
43
44
45#endif // _USB_DAVICOM_DRIVER_H_
46
47