xs508.h 378 B

123456789101112131415161718
  1. #ifndef _XS508_H_
  2. #define _XS508_H_
  3. #define XS508_I2C_NAME "dvr_xs508"
  4. #define XS508_DEVICE_NAME "xs508"
  5. #define XS508_I2C_RETRY_COUNT 5
  6. #define XS508_IOCTL 0x60
  7. #define XS508_IOCTL_CMD_HANDSHAKE_KEY _IO(XS508_IOCTL, 0x11)
  8. struct xs508_private_data{
  9. //spinlock_t spin_lock;
  10. struct i2c_client *client;
  11. struct i2c_device_id *id;
  12. struct mutex lock;
  13. };
  14. #endif