x1205.h 909 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * x1205.h - defines for drivers/i2c/chips/x1205.c
  3. * Copyright 2004 Karen Spearel
  4. * Copyright 2005 Alessandro Zummo
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. */
  11. #ifndef __LINUX_X1205_H__
  12. #define __LINUX_X1205_H__
  13. /* commands */
  14. #define X1205_CMD_GETDATETIME 0
  15. #define X1205_CMD_SETTIME 1
  16. #define X1205_CMD_SETDATETIME 2
  17. #define X1205_CMD_GETALARM 3
  18. #define X1205_CMD_SETALARM 4
  19. #define X1205_CMD_GETDTRIM 5
  20. #define X1205_CMD_SETDTRIM 6
  21. #define X1205_CMD_GETATRIM 7
  22. #define X1205_CMD_SETATRIM 8
  23. extern int x1205_do_command(unsigned int cmd, void *arg);
  24. extern int x1205_direct_attach(int adapter_id,
  25. struct i2c_client_address_data *address_data);
  26. #endif /* __LINUX_X1205_H__ */