smscharioctl.h 465 B

1234567891011121314151617
  1. #ifndef __smscharioctl_h__
  2. #define __smscharioctl_h__
  3. #include <linux/ioctl.h>
  4. typedef struct _smschar_buffer_t
  5. {
  6. unsigned long offset; // offset in common buffer (mapped to user space)
  7. int size;
  8. } smschar_buffer_t;
  9. #define SMSCHAR_SET_DEVICE_MODE _IOW('K', 0, int)
  10. #define SMSCHAR_GET_DEVICE_MODE _IOR('K', 1, int)
  11. #define SMSCHAR_GET_BUFFER_SIZE _IOR('K', 2, int)
  12. #define SMSCHAR_WAIT_GET_BUFFER _IOR('K', 3, smschar_buffer_t)
  13. #endif // __smscharioctl_h__