xref: /haiku/src/add-ons/kernel/drivers/network/ether/usb_davicom/Driver.h (revision 4c8e85b316c35a9161f5a1c50ad70bc91c83a76f)
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 
27 const char* const kVersion = "ver.0.9.5";
28 extern usb_module_info *gUSBModule;
29 
30 
31 extern "C" {
32 
33 status_t	usb_davicom_device_added(usb_device device, void **cookie);
34 status_t	usb_davicom_device_removed(void *cookie);
35 
36 status_t	init_hardware();
37 void		uninit_driver();
38 
39 const char **publish_devices();
40 device_hooks *find_device(const char *name);
41 
42 }
43 
44 
45 #endif // _USB_DAVICOM_DRIVER_H_
46 
47