]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - drivers/cbus/cbus.h
Add Nokia CBUS support
[linux-2.6-omap-h63xx.git] / drivers / cbus / cbus.h
1 /*
2  * drivers/cbus/cbus.h
3  *
4  * Copyright (C) 2004, 2005 Nokia Corporation
5  *
6  * Written by Juha Yrjölä <juha.yrjola@nokia.com> and
7  *            David Weinehall <david.weinehall@nokia.com>
8  *
9  * This file is subject to the terms and conditions of the GNU General
10  * Public License. See the file "COPYING" in the main directory of this
11  * archive for more details.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21  */
22
23 #ifndef __DRIVERS_CBUS_CBUS_H
24 #define __DRIVERS_CBUS_CBUS_H
25
26 struct cbus_host {
27         int clk_gpio, dat_gpio, sel_gpio;
28         spinlock_t lock;
29 };
30
31 extern struct cbus_host *cbus_host;
32
33 extern int cbus_read_reg(struct cbus_host *host, int dev, int reg);
34 extern int cbus_write_reg(struct cbus_host *host, int dev, int reg, u16 val);
35
36 #endif /* __DRIVERS_CBUS_CBUS_H */