blob: 1803122d1e71daf0cea1eba21ab33e4a7b0906a2 [file] [log] [blame]
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07001/* Quanta EC driver for the Winbond Embedded Controller
2 *
3 * Copyright (C) 2009 Quanta Computer Inc.
4 *
5 * This software is licensed under the terms of the GNU General Public
6 * License version 2, as published by the Free Software Foundation, and
7 * may be copied, distributed, and modified under those terms.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 */
15
16#ifndef WPCE775X_DRV_H
17#define WPCE775X_DRV_H
18
19#include <linux/i2c.h>
20
21struct i2c_client *wpce_get_i2c_client(void);
22int wpce_smbus_write_word_data(u8 command, u16 value);
23struct i2c_client *wpce_get_i2c_client(void);
24void wpce_poweroff(void);
25void wpce_restart(void);
26int wpce_i2c_transfer(struct i2c_msg *msg);
27int wpce_smbus_write_word_data(u8 command, u16 value);
28int wpce_smbus_write_byte_data(u8 command, u8 value);
29
30#endif