| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 1 | /* 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 |  | 
|  | 21 | struct i2c_client *wpce_get_i2c_client(void); | 
|  | 22 | int wpce_smbus_write_word_data(u8 command, u16 value); | 
|  | 23 | struct i2c_client *wpce_get_i2c_client(void); | 
|  | 24 | void wpce_poweroff(void); | 
|  | 25 | void wpce_restart(void); | 
|  | 26 | int wpce_i2c_transfer(struct i2c_msg *msg); | 
|  | 27 | int wpce_smbus_write_word_data(u8 command, u16 value); | 
|  | 28 | int wpce_smbus_write_byte_data(u8 command, u8 value); | 
|  | 29 |  | 
|  | 30 | #endif |