Alessandro Zummo | 4d4e5ce | 2005-10-17 23:04:42 +0200 | [diff] [blame] | 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 | |
| 12 | #ifndef __LINUX_X1205_H__ |
| 13 | #define __LINUX_X1205_H__ |
| 14 | |
| 15 | /* commands */ |
| 16 | |
| 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 |
| 26 | |
| 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); |
| 30 | |
| 31 | #endif /* __LINUX_X1205_H__ */ |