/* * drivers/cbus/cbus.h * * Copyright (C) 2004, 2005 Nokia Corporation * * Written by Juha Yrjölä and * David Weinehall * * This file is subject to the terms and conditions of the GNU General * Public License. See the file "COPYING" in the main directory of this * archive for more details. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef __DRIVERS_CBUS_CBUS_H #define __DRIVERS_CBUS_CBUS_H struct cbus_host { int clk_gpio, dat_gpio, sel_gpio; spinlock_t lock; }; extern struct cbus_host *cbus_host; extern int cbus_read_reg(struct cbus_host *host, int dev, int reg); extern int cbus_write_reg(struct cbus_host *host, int dev, int reg, u16 val); #endif /* __DRIVERS_CBUS_CBUS_H */