#ifndef _DSM_CORE_H #define _DSM_CORE_H #include #include #include #include #ifdef CONFIG_HUAWEI_DATA_ACQUISITION #include #endif #define CLIENT_SIZE (128) #define UINT_BUF_MAX (12) #define CBUFF_OCCUPY_BIT (0) #define CBUFF_READY_BIT (1) #define DSM_MAX_LOG_SIZE (1024*8) #define DSM_MIN_LOG_SIZE (5) #define DSM_EXTERN_CLIENT_MAX_BUF_SIZE (1024*30)//30K #define DSM_IOCTL_GET_CLIENT_COUNT _IOC(_IOC_READ|_IOC_WRITE, 'x', 0xF0, CLIENT_NAME_LEN) #define DSM_IOCTL_BIND _IOC(_IOC_READ|_IOC_WRITE, 'x', 0xF1, CLIENT_NAME_LEN) #define DSM_IOCTL_POLL_CLIENT_STATE _IOC(_IOC_READ|_IOC_WRITE, 'x', 0xF2, CLIENT_NAME_LEN) #define DSM_IOCTL_FORCE_DUMP _IOC(_IOC_READ|_IOC_WRITE, 'x', 0xF3, CLIENT_NAME_LEN) #define DSM_IOCTL_GET_CLIENT_ERROR _IOC(_IOC_READ|_IOC_WRITE, 'x', 0xF4, CLIENT_NAME_LEN) #define DSM_IOCTL_GET_DEVICE_NAME _IOC(_IOC_READ|_IOC_WRITE, 'x', 0xF5, CLIENT_NAME_LEN) #define DSM_IOCTL_GET_MODULE_NAME _IOC(_IOC_READ|_IOC_WRITE, 'x', 0xF6, CLIENT_NAME_LEN) #define DSM_IOCTL_GET_IC_NAME _IOC(_IOC_READ|_IOC_WRITE, 'x', 0xF7, CLIENT_NAME_LEN) #ifdef CONFIG_HUAWEI_SDCARD_VOLD #define SDCARD_ERR_LEN 5 #endif enum { DSM_CLIENT_NOTIFY_BIT = 0, DSM_CLIENT_VAILD_BIT = 31, DSM_CLIENT_NOTIFY = 1<