/* Driver for I2C Human Interface Devices. Copyright (C) 2008 Michael Lotz Distributed under the terms of the MIT license. */ #ifndef _I2C_ELAN_DRIVER_H_ #define _I2C_ELAN_DRIVER_H_ #include #include #include #include #include "DeviceList.h" #define DRIVER_NAME "i2c_elan" #define DEVICE_PATH_SUFFIX "i2c" #define DEVICE_NAME "I2C" extern DeviceList *gDeviceList; //#define TRACE_I2C_ELAN #ifdef TRACE_I2C_ELAN # define TRACE(x...) dprintf(DRIVER_NAME ": " x) #else # define TRACE(x...) #endif #define ERROR(x...) dprintf(DRIVER_NAME ": " x) #define TRACE_ALWAYS(x...) dprintf(DRIVER_NAME ": " x) #define CALLED() TRACE("CALLED %s\n", __PRETTY_FUNCTION__) #endif //_I2C_ELAN_DRIVER_H_