xref: /linux/drivers/hwmon/sch56xx-common.h (revision 28ff2f7a742daba86ccd7021be7b27a4673b2797)
1*28ff2f7aSHans de Goede /***************************************************************************
2*28ff2f7aSHans de Goede  *   Copyright (C) 2010-2011 Hans de Goede <hdegoede@redhat.com>           *
3*28ff2f7aSHans de Goede  *                                                                         *
4*28ff2f7aSHans de Goede  *   This program is free software; you can redistribute it and/or modify  *
5*28ff2f7aSHans de Goede  *   it under the terms of the GNU General Public License as published by  *
6*28ff2f7aSHans de Goede  *   the Free Software Foundation; either version 2 of the License, or     *
7*28ff2f7aSHans de Goede  *   (at your option) any later version.                                   *
8*28ff2f7aSHans de Goede  *                                                                         *
9*28ff2f7aSHans de Goede  *   This program is distributed in the hope that it will be useful,       *
10*28ff2f7aSHans de Goede  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
11*28ff2f7aSHans de Goede  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
12*28ff2f7aSHans de Goede  *   GNU General Public License for more details.                          *
13*28ff2f7aSHans de Goede  *                                                                         *
14*28ff2f7aSHans de Goede  *   You should have received a copy of the GNU General Public License     *
15*28ff2f7aSHans de Goede  *   along with this program; if not, write to the                         *
16*28ff2f7aSHans de Goede  *   Free Software Foundation, Inc.,                                       *
17*28ff2f7aSHans de Goede  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
18*28ff2f7aSHans de Goede  ***************************************************************************/
19*28ff2f7aSHans de Goede 
20*28ff2f7aSHans de Goede int sch56xx_read_virtual_reg(u16 addr, u16 reg);
21*28ff2f7aSHans de Goede int sch56xx_write_virtual_reg(u16 addr, u16 reg, u8 val);
22*28ff2f7aSHans de Goede int sch56xx_read_virtual_reg16(u16 addr, u16 reg);
23*28ff2f7aSHans de Goede int sch56xx_read_virtual_reg12(u16 addr, u16 msb_reg, u16 lsn_reg,
24*28ff2f7aSHans de Goede 			       int high_nibble);
25