blob: ca9c7e496dabb5f548338bde8a473ccfa018064b [file] [log] [blame]
Flemmard0604a8e2013-05-23 16:15:48 -07001/*
2 $License:
3 Copyright (C) 2010 InvenSense Corporation, All Rights Reserved.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 $
18 */
19
20#ifndef __SLAVEIRQ__
21#define __SLAVEIRQ__
22
23#ifdef __KERNEL__
24#include <linux/i2c-dev.h>
25#endif
26
27#include "mpu.h"
28#include "mpuirq.h"
29
30#define SLAVEIRQ_ENABLE_DEBUG (1)
31#define SLAVEIRQ_GET_INTERRUPT_CNT (2)
32#define SLAVEIRQ_GET_IRQ_TIME (3)
33#define SLAVEIRQ_GET_LED_VALUE (4)
34#define SLAVEIRQ_SET_TIMEOUT (5)
35#define SLAVEIRQ_SET_SLAVE_INFO (6)
36
37#ifdef __KERNEL__
38
39void slaveirq_exit(struct ext_slave_platform_data *pdata);
40int slaveirq_init(struct i2c_adapter *slave_adapter,
41 struct ext_slave_platform_data *pdata,
42 char *name);
43
44#endif
45
46#endif