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_SETTINGS_H_ 13 #define _USB_ASIX_SETTINGS_H_ 14 15 16 #include <driver_settings.h> 17 18 #include "Driver.h" 19 20 21 void load_settings(); 22 void release_settings(); 23 24 void usb_asix_trace(bool force, const char *func, const char *fmt, ...); 25 26 27 #define TRACE(x...) usb_asix_trace(false, __func__, x) 28 #define TRACE_ALWAYS(x...) usb_asix_trace(true, __func__, x) 29 30 extern bool gTraceFlow; 31 #define TRACE_FLOW(x...) usb_asix_trace(gTraceFlow, NULL, x) 32 33 #define TRACE_RET(result) usb_asix_trace(false, __func__, \ 34 "Returns:%#010x\n", result); 35 36 37 #endif // _USB_ASIX_SETTINGS_H_ 38