Save sram context after changing MPU, DSP or core clocks
[linux-ginger.git] / drivers / cbus / cbus.h
blob957224cf77b6da5e3c3fa28cd55f626518753268
1 /*
2 * drivers/cbus/cbus.h
4 * Copyright (C) 2004, 2005 Nokia Corporation
6 * Written by Juha Yrjölä <juha.yrjola@nokia.com> and
7 * David Weinehall <david.weinehall@nokia.com>
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.
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.
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
23 #ifndef __DRIVERS_CBUS_CBUS_H
24 #define __DRIVERS_CBUS_CBUS_H
26 struct cbus_host {
27 int clk_gpio, dat_gpio, sel_gpio;
28 spinlock_t lock;
31 extern struct cbus_host *cbus_host;
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);
36 #endif /* __DRIVERS_CBUS_CBUS_H */