Linux v2.6.15-rc6
[pohmelfs.git] / include / linux / x1205.h
blob64fd3af894a5d087173116d0a6ea237a8a4f4320
1 /*
2 * x1205.h - defines for drivers/i2c/chips/x1205.c
3 * Copyright 2004 Karen Spearel
4 * Copyright 2005 Alessandro Zummo
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.
12 #ifndef __LINUX_X1205_H__
13 #define __LINUX_X1205_H__
15 /* commands */
17 #define X1205_CMD_GETDATETIME 0
18 #define X1205_CMD_SETTIME 1
19 #define X1205_CMD_SETDATETIME 2
20 #define X1205_CMD_GETALARM 3
21 #define X1205_CMD_SETALARM 4
22 #define X1205_CMD_GETDTRIM 5
23 #define X1205_CMD_SETDTRIM 6
24 #define X1205_CMD_GETATRIM 7
25 #define X1205_CMD_SETATRIM 8
27 extern int x1205_do_command(unsigned int cmd, void *arg);
28 extern int x1205_direct_attach(int adapter_id,
29 struct i2c_client_address_data *address_data);
31 #endif /* __LINUX_X1205_H__ */