1 /* 2 * ASIX AX88172/AX88772/AX88178 USB 2.0 Ethernet Driver. 3 * Copyright (c) 2008, 2011 S.Zharski <imker@gmx.li> 4 * Distributed under the terms of the MIT license. 5 * 6 * Heavily based on code of the 7 * Driver for USB Ethernet Control Model devices 8 * Copyright (C) 2008 Michael Lotz <mmlr@mlotz.ch> 9 * Distributed under the terms of the MIT license. 10 * 11 */ 12 #ifndef _USB_ASIX_DRIVER_H_ 13 #define _USB_ASIX_DRIVER_H_ 14 15 16 #include <Drivers.h> 17 #include <USB3.h> 18 19 20 #define DRIVER_NAME "usb_asix" 21 #define MAX_DEVICES 8 22 23 24 const uint8 kInvalidRequest = 0xff; 25 const char* const kVersion = "ver.0.10.1"; 26 extern usb_module_info *gUSBModule; 27 28 29 extern "C" { 30 status_t usb_asix_device_added(usb_device device, void **cookie); 31 status_t usb_asix_device_removed(void *cookie); 32 33 status_t init_hardware(); 34 void uninit_driver(); 35 36 const char **publish_devices(); 37 device_hooks *find_device(const char *name); 38 } 39 40 41 #endif // _USB_ASIX_DRIVER_H_ 42 43